diff --git a/apps/maarch_entreprise/js/angular/main.bundle.min.js b/apps/maarch_entreprise/js/angular/main.bundle.min.js index aebc47ed5e1eb723f9a33a0bfaf71cc7a1b51bd3..7bd7e469deb7e2b526b8e2bca1f065cabb62f96b 100644 --- a/apps/maarch_entreprise/js/angular/main.bundle.min.js +++ b/apps/maarch_entreprise/js/angular/main.bundle.min.js @@ -1 +1 @@ -!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).main=t()}}(function(){return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){var n=e[s][1][t];return i(n||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.mode=null,this.action={},this.statusList=[],this.actionPagesList=[],this.lang={},this.categoriesList=[],this.keywordsList=[],this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/actions\"' style='cursor: pointer'>Actions</a> > Modification")},t.prototype.prepareActions=function(){$j("#inner_content").remove()},t.prototype.ngOnInit=function(){var t=this;this.prepareActions(),this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.mode="create",t.http.get(t.coreUrl+"rest/initAction").subscribe(function(e){t.action=e.action,t.lang=e.lang,t.lang.pageTitle=t.lang.add+" "+t.lang.action,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)})):(t.mode="update",t.http.get(t.coreUrl+"rest/administration/actions/"+e.id).subscribe(function(e){t.lang=e.lang,t.action=e.action,t.lang.pageTitle=t.lang.modify_action+" : "+t.action.id,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)}))})},t.prototype.onSubmit=function(){var t=this;this.action.actionCategories=$j("#categorieslist").chosen().val(),this.action.id_status=$j("#status").chosen().val(),this.action.keyword=$j("#keyword").chosen().val(),this.action.action_page=$j("#action_page").chosen().val(),"create"==this.mode?this.http.post(this.coreUrl+"rest/actions",this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/actions/"+this.action.id,this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!0),$j("#"+e).trigger("chosen:updated")},t.prototype.unselectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!1),$j("#"+e).trigger("chosen:updated")},t}();u=r([o.Component({templateUrl:angularGlobals["action-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/action-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.ActionAdministrationComponent=u},{"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("../translate.component"),u=function(){function t(t){this.http=t,this.lang=a.LANG,this.actions=[],this.titles=[],this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Actions")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.http.get(this.coreUrl+"rest/administration/actions").subscribe(function(e){t.actions=e.actions,t.titles=e.titles,setTimeout(function(){t.table=$j("#actionsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:4}],fnInitComplete:function(){$j("#actionsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(t){console.log(t),location.href="index.php"})},t.prototype.deleteAction=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/actions/"+t).subscribe(function(n){for(var r=e.actions,i=0;i<r.length;i++)r[i].id==t&&r.splice(i,1);e.table.row($j("#"+t)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["actions-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],u),n.ActionsAdministrationComponent=u},{"../translate.component":20,"@angular/common/http":26,"@angular/core":29}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),s=t("./administration.component"),a=t("./users-administration.component"),u=t("./user-administration.component"),c=t("./statuses-administration.component"),l=t("./status-administration.component"),p=t("./actions-administration.component"),h=t("./action-administration.component"),f=t("./parameter-administration.component"),d=t("./parameters-administration.component"),m=t("./priorities-administration.component"),y=t("./priority-administration.component"),v=t("./reports-administration.component"),g=function(){function t(){}return t}();g=r([i.NgModule({imports:[o.RouterModule.forChild([{path:"administration",component:s.AdministrationComponent},{path:"administration/users",component:a.UsersAdministrationComponent},{path:"administration/users/new",component:u.UserAdministrationComponent},{path:"administration/users/:id",component:u.UserAdministrationComponent},{path:"administration/status",component:c.StatusesAdministrationComponent},{path:"administration/status/new",component:l.StatusAdministrationComponent},{path:"administration/status/:identifier",component:l.StatusAdministrationComponent},{path:"administration/parameters",component:d.ParametersAdministrationComponent},{path:"administration/parameters/new",component:f.ParameterAdministrationComponent},{path:"administration/parameters/:id",component:f.ParameterAdministrationComponent},{path:"administration/reports",component:v.ReportsAdministrationComponent},{path:"administration/priorities",component:m.PrioritiesAdministrationComponent},{path:"administration/priorities/new",component:y.PriorityAdministrationComponent},{path:"administration/priorities/:id",component:y.PriorityAdministrationComponent},{path:"administration/actions",component:p.ActionsAdministrationComponent},{path:"administration/actions/new",component:h.ActionAdministrationComponent},{path:"administration/actions/:id",component:h.ActionAdministrationComponent}])],exports:[o.RouterModule]})],g),n.AdministrationRoutingModule=g},{"./action-administration.component":1,"./actions-administration.component":2,"./administration.component":4,"./parameter-administration.component":6,"./parameters-administration.component":7,"./priorities-administration.component":8,"./priority-administration.component":9,"./reports-administration.component":10,"./status-administration.component":11,"./statuses-administration.component":12,"./user-administration.component":13,"./users-administration.component":14,"@angular/core":29,"@angular/router":34}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e){this.http=t,this.router=e,this.applicationServices=[],this.modulesServices=[],this.loading=!1}return t.prototype.prepareAdministration=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Administration")},t.prototype.ngOnInit=function(){var t=this;this.prepareAdministration(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration").subscribe(function(e){t.applicationServices=e.application,t.modulesServices=e.modules,t.loading=!1})},t.prototype.goToSpecifiedAdministration=function(t){"true"==t.angular?this.router.navigate([t.servicepage]):window.location.assign(t.servicepage)},t}();u=r([o.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.Router])],u),n.AdministrationComponent=u},{"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],5:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/common"),s=t("@angular/forms"),a=t("@angular/common/http"),u=t("./administration-routing.module"),c=t("./administration.component"),l=t("./users-administration.component"),p=t("./user-administration.component"),h=t("./statuses-administration.component"),f=t("./status-administration.component"),d=t("./actions-administration.component"),m=t("./action-administration.component"),y=t("./parameters-administration.component"),v=t("./parameter-administration.component"),g=t("./priorities-administration.component"),_=t("./priority-administration.component"),b=t("./reports-administration.component"),w=function(){function t(){}return t}();w=r([i.NgModule({imports:[o.CommonModule,s.FormsModule,a.HttpClientModule,u.AdministrationRoutingModule],declarations:[c.AdministrationComponent,l.UsersAdministrationComponent,p.UserAdministrationComponent,h.StatusesAdministrationComponent,f.StatusAdministrationComponent,d.ActionsAdministrationComponent,m.ActionAdministrationComponent,y.ParametersAdministrationComponent,v.ParameterAdministrationComponent,g.PrioritiesAdministrationComponent,_.PriorityAdministrationComponent,b.ReportsAdministrationComponent]})],w),n.AdministrationModule=w},{"./action-administration.component":1,"./actions-administration.component":2,"./administration-routing.module":3,"./administration.component":4,"./parameter-administration.component":6,"./parameters-administration.component":7,"./priorities-administration.component":8,"./priority-administration.component":9,"./reports-administration.component":10,"./status-administration.component":11,"./statuses-administration.component":12,"./user-administration.component":13,"./users-administration.component":14,"@angular/common":27,"@angular/common/http":26,"@angular/core":29,"@angular/forms":30}],6:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.creationMode=!0,this.parameter={},this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/parameters/new").subscribe(function(e){t.lang=e.lang,t.type="string",t.pageTitle=t.lang.newParameter,t.loading=!1},function(){location.href="index.php"})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/administration/parameters/"+e.id).subscribe(function(e){t.parameter=e.parameter,t.lang=e.lang,t.type=e.type,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/parameters\"' style='cursor: pointer'>Paramètres</a> > Modification")},t.prototype.onSubmit=function(){var t=this;"date"==this.type?(this.parameter.param_value_date=$j("#paramValue").val(),this.parameter.param_value_int=null,this.parameter.param_value_string=null):"int"==this.type?(this.parameter.param_value_date=null,this.parameter.param_value_string=null):"string"==this.type&&(this.parameter.param_value_date=null,this.parameter.param_value_int=null),1==this.creationMode?this.http.post(this.coreUrl+"rest/parameters",this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/parameters/"+this.parameter.id,this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["parameter-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.ParameterAdministrationComponent=u},{"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],7:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Paramètres"},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.http.get(this.coreUrl+"rest/administration/parameters").subscribe(function(e){e.errors?($j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.parametersList=e.parametersList,t.lang=e.lang,setTimeout(function(){t.table=$j("#paramsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[0,"asc"]],columnDefs:[{orderable:!1,targets:3}],fnInitComplete:function(){$j("#paramsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1)})},t.prototype.goUrl=function(){location.href="index.php?admin=parameters&page=control_param_technic"},t.prototype.deleteParameter=function(t){var e=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/parameters/"+t).subscribe(function(n){for(var r=0;r<e.parametersList.length;r++)e.parametersList[r].id==t&&e.parametersList.splice(r,1);e.table.row($j("#"+t)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=r([o.Component({templateUrl:angularGlobals["parameters-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/parameters-administration.component.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.ParametersAdministrationComponent=a},{"@angular/common/http":26,"@angular/core":29}],8:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("../translate.component"),u=function(){function t(t){this.http=t,this.lang=a.LANG,this.loading=!1,this.priorities=[]}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Priorités")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.loading=!0,this.http.get(this.coreUrl+"rest/priorities").subscribe(function(e){t.priorities=e.priorities,t.loading=!1},function(){location.href="index.php"})},t.prototype.deletePriority=function(t){var e=this;confirm("Voulez-vous vraiment supprimer cette priorité ?")&&this.http.delete(this.coreUrl+"rest/priorities/"+t).subscribe(function(t){e.priorities=t.priorities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["priorities-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],u),n.PrioritiesAdministrationComponent=u},{"../translate.component":20,"@angular/common/http":26,"@angular/core":29}],9:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=t("../translate.component"),c=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.lang=u.LANG,this.loading=!1,this.priority={working_days:!1}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/priorities\"' style='cursor: pointer'>Priorités</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1):(t.creationMode=!1,t.id=e.id,t.http.get(t.coreUrl+"rest/priorities/"+t.id).subscribe(function(e){t.priority=e.priority,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/priorities",this.priority).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/priorities"])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/priorities/"+this.id,this.priority).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/priorities"])},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();c=r([o.Component({templateUrl:angularGlobals["priority-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],c),n.PriorityAdministrationComponent=c},{"../translate.component":20,"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],10:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.test42="Ptit test OKLM",this.arrayArgsPut=[],this.lang=[]}return t.prototype.prepareState=function(){$j("#inner_content").remove()},t.prototype.ngOnInit=function(){var t=this;this.prepareState(),this.coreUrl=angularGlobals.coreUrl,this.http.get(this.coreUrl+"rest/report/groups").subscribe(function(e){t.groups=e.group,t.lang=e.lang})},t.prototype.loadGroup=function(){var t=this;this.http.get(this.coreUrl+"rest/report/groups/"+this.groups[$j("#group_id").prop("selectedIndex")-1].group_id).subscribe(function(e){t.checkboxes=e,console.log(t.checkboxes[0].id)}),$j("#formCategoryId").removeClass("hide")},t.prototype.clickOnCategory=function(t){$j(".category").addClass("hide"),$j("#"+t).removeClass("hide")},t.prototype.updateDB=function(){for(var t=this,e=0;e<$j(":checkbox").length;e++)this.arrayArgsPut.push({id:this.checkboxes[e].id,checked:$j(":checkbox")[e].checked});console.log(this.arrayArgsPut),this.http.put(this.coreUrl+"rest/report/groups/"+this.groups[$j("#group_id").prop("selectedIndex")-1].group_id,this.arrayArgsPut).subscribe(function(e){t.arrayArgsPut=[]})},t}();a=r([o.Component({templateUrl:"Views/reports.component.html",styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","../maarch_entreprise/css/reports.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.ReportsAdministrationComponent=a},{"@angular/common/http":26,"@angular/core":29}],11:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.pageTitle="",this.mode=null,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},this.lang="",this.statusImages="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.route.params.subscribe(function(e){void 0===e.identifier?t.http.get(t.coreUrl+"rest/administration/status/new").subscribe(function(e){t.lang=e.lang,t.statusImages=e.statusImages,t.mode="create",t.pageTitle=t.lang.newStatus,t.updateBreadcrumb(angularGlobals.applicationName)}):(t.mode="update",t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier)),setTimeout(function(){$j(".help").tooltipster({theme:"tooltipster-maarch",interactive:!0})},0)}),this.loading=!1},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > <a onclick='location.hash = \"/administration/status\"' style='cursor: pointer'>"+this.lang.admin_status+"</a> > ";"create"==this.mode?e+=this.lang.newItem:e+=this.lang.modification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/status/"+t).subscribe(function(t){e.status=t.status[0],"Y"==e.status.can_be_searched?e.status.can_be_searched=!0:e.status.can_be_searched=!1,"Y"==e.status.can_be_modified?e.status.can_be_modified=!0:e.status.can_be_modified=!1,"Y"==e.status.is_folder_status?e.status.is_folder_status=!0:e.status.is_folder_status=!1,e.lang=t.lang,e.statusImages=t.statusImages,e.pageTitle=e.lang.modify_status+" : "+e.status.id,e.updateBreadcrumb(angularGlobals.applicationName)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectImage=function(t){this.status.img_filename=t},t.prototype.submitStatus=function(){var t=this;"create"==this.mode?this.http.post(this.coreUrl+"rest/status",this.status).subscribe(function(){successNotification(t.lang.newStatusAdded+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/status/"+this.statusIdentifier,this.status).subscribe(function(){successNotification(t.lang.statusUpdated+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))})},t}();u=r([o.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/status-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.StatusAdministrationComponent=u},{"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],12:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/administration/status").subscribe(function(e){t.statusList=e.statusList,t.lang=e.lang,t.nbStatus=Object.keys(t.statusList).length,setTimeout(function(){t.table=$j("#statusTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[2,"asc"]],columnDefs:[{orderable:!1,targets:[0,3]}],stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > "+this.lang.admin_status},t.prototype.deleteStatus=function(t,e){var n=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/status/"+e).subscribe(function(){for(var e=n.statusList,r=0;r<e.length;r++)e[r].id==t&&e.splice(r,1);n.table.row($j("#"+t)).remove().draw(),successNotification(n.lang.delStatus+" : "+t),n.nbStatus=Object.keys(n.statusList).length},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=r([o.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.StatusesAdministrationComponent=a},{"@angular/common/http":26,"@angular/core":29}],13:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.user={lang:{}},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.userAbsenceModel=[],this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularUserAdministrationComponent={componentAfterUpload:function(t){return i.processAfterUpload(t)}}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>Utilisateurs</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.userCreation=!0,t.http.get(t.coreUrl+"rest/administration/users/new").subscribe(function(e){t.user=e,t.loading=!1},function(){location.href="index.php"})):(t.userCreation=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/administration/users/"+t.serialId).subscribe(function(e){t.user=e,t.userId=e.user_id,t.loading=!1,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0)},function(){location.href="index.php"}))})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.resetPassword=function(){confirm("Voulez-vous vraiment réinitialiser le mot de passe de l'utilisateur ?")&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addGroup=function(){var t=this,e=$j("#groupsSelect option:selected").index();if(e>0){var n={groupId:this.user.allGroups[e-1].group_id,role:$j("#groupRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",n).subscribe(function(e){t.user.groups=e.groups,t.user.allGroups=e.allGroups,$j("#groupRole")[0].value="",$j("#addGroupModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateGroup=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteGroup=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de ce groupe ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).subscribe(function(t){e.user.groups=t.groups,e.user.allGroups=t.allGroups,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addEntity=function(){var t=this,e=$j("#entitiesSelect option:selected").index();if(e>0){var n={entityId:this.user.allEntities[e-1].entity_id,role:$j("#entityRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",n).subscribe(function(e){t.user.entities=e.entities,t.user.allEntities=e.allEntities,$j("#entityRole")[0].value="",$j("#addEntityModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateEntity=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).subscribe(function(t){e.user.entities=t.entities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteEntity=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de cette entité ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id).subscribe(function(t){e.user.entities=t.entities,e.user.allEntities=t.allEntities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+e,{label:this.selectedSignatureLabel}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&""!=$j("#absenceUser")[0].value&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/baskets/absence",this.userAbsenceModel).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],$j("#manageAbs").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).subscribe(function(e){t.user.status=e.user.status,successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){var t=this;this.userCreation?this.http.post(this.coreUrl+"rest/users",this.user).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/users/"+e.user.id])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/user-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router,o.NgZone])],u),n.UserAdministrationComponent=u},{"@angular/common/http":26,"@angular/core":29,"@angular/router":34}],14:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.users=[],this.userDestRedirect={},this.userDestRedirectModels=[],this.lang={},this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Utilisateurs")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration/users").subscribe(function(e){t.users=e.users,t.lang=e.lang,setTimeout(function(){t.table=$j("#usersTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[3,5]}]}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(){location.href="index.php"})},t.prototype.suspendUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="up",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})},0)},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.suspendUserModal=function(t){var e=this;confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?(t.enabled="Y",errorNotification(n.errors)):e.http.put(e.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(e){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide"),successNotification(e.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t.prototype.activateUser=function(t){confirm(this.lang.authorizeMsg+" ?")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="N",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.deleteUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="del",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})})},function(t){errorNotification(JSON.parse(t._body).errors)})):confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(n){for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteUserModal=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&(t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?errorNotification(n.errors):e.http.delete(e.coreUrl+"rest/users/"+t.user_id).subscribe(function(n){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide");for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t}();a=r([o.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css","../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.UsersAdministrationComponent=a},{"@angular/common/http":26,"@angular/core":29}],15:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),s=t("./profile.component"),a=t("./signature-book.component"),u=function(){function t(){}return t}();u=r([i.NgModule({imports:[o.RouterModule.forRoot([{path:"profile",component:s.ProfileComponent},{path:"groups/:groupId/baskets/:basketId/signatureBook/:resId",component:a.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0})],exports:[o.RouterModule]})],u),n.AppRoutingModule=u},{"./profile.component":18,"./signature-book.component":19,"@angular/core":29,"@angular/router":34}],16:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=function(){function t(){}return t}();o=r([i.Component({selector:"my-app",template:'<div id="resultInfo" class="fade" style="display:none;"></div><router-outlet></router-outlet>',styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]})],o),n.AppComponent=o},{"@angular/core":29}],17:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/platform-browser"),s=t("@angular/platform-browser/animations"),a=t("@angular/forms"),u=t("@angular/common/http"),c=t("./app.component"),l=t("./app-routing.module"),p=t("./administration/administration.module"),h=t("./profile.component"),f=t("./signature-book.component"),d=function(){function t(){}return t}();d=r([i.NgModule({imports:[o.BrowserModule,s.BrowserAnimationsModule,a.FormsModule,u.HttpClientModule,p.AdministrationModule,l.AppRoutingModule],declarations:[c.AppComponent,h.ProfileComponent,f.SignatureBookComponent,f.SafeUrlPipe],bootstrap:[c.AppComponent]})],d),n.AppModule=d},{"./administration/administration.module":5,"./app-routing.module":15,"./app.component":16,"./profile.component":18,"./signature-book.component":19,"@angular/common/http":26,"@angular/core":29,"@angular/forms":30,"@angular/platform-browser":33,"@angular/platform-browser/animations":32}],18:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("./translate.component"),u=function(){function t(t,e){var n=this;this.http=t,this.zone=e,this.lang=a.LANG,this.user={baskets:[]},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return n.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/users/profile").subscribe(function(e){t.user=e,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0),t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.user_id+"/baskets/absence",this.userAbsenceModel).subscribe(function(){t.userAbsenceModel=[],location.search="?display=true&page=logout&abs_mode"},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success))},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,successNotification(e.success))})},t.prototype.deleteEmailSignature=function(){var t=this;if(confirm("Voulez-vous vraiment supprimer la signature de mail ?")){var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.delete(this.coreUrl+"rest/currentUser/emailSignature/"+e).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+e,{label:this.selectedSignatureLabel}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+t).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/users/profile",this.user).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"]}),i("design:paramtypes",[s.HttpClient,o.NgZone])],u),n.ProfileComponent=u},{"./translate.component":20,"@angular/common/http":26,"@angular/core":29}],19:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/platform-browser"),u=t("@angular/router"),c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()},componentAfterNotes:function(){return i.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,t.groupId=e.groupId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/groups/"+t.groupId+"/baskets/"+t.basketId+"/signatureBook/"+t.resId).subscribe(function(e){if(e.error)return location.hash="",void(location.search="");t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0)},function(e){errorNotification(JSON.parse(e._body).errors),setTimeout(function(){t.backToBasket()},2e3)})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;r<n;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));n>0&&(unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()}))},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.signatureBook.attachments[t]?this.rightViewerLink=this.signatureBook.attachments[t].viewerLink:this.rightViewerLink="",this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0!=this.signatureBook.resList.length&&null!=this.signatureBook.resList[0].allSigned||this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList/details").subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,n){t.res_id==e.resId&&(e.signatureBook.resListIndex=n)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").subscribe(function(n){var r=0;if("add"==t){var i=!1;n.forEach(function(t,n){i||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,i=!0)})}else if("edit"==t){var o=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==o&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var n=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isVersion&isOutgoing&id="+t.res_id_version:r+="&isVersion&id="+t.res_id_version:0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isOutgoing&id="+t.res_id:r+="&id="+t.res_id),this.http.get(r,e).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+n.resId+"&id="+t.new_id+"&isVersion=false",n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList.length>0&&(n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e)}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,i=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments",r="true"):0==t.res_id_version&&(n=t.res_id,e="res_attachments",r="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{}).subscribe(function(){i.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+i.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,i.signatureBook.attachments[i.rightSelectedThumbnail].viewerLink=i.rightViewerLink,i.signatureBook.attachments[i.rightSelectedThumbnail].status="A_TRA",i.signatureBook.attachments[i.rightSelectedThumbnail].idToDl=n,i.signatureBook.resList.length>0&&(i.signatureBook.resList[i.signatureBook.resListIndex].allSigned=!1)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verrouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verrouillé par "+r.lockBy),n.backToBasket());else{var i="/groups/"+n.groupId+"/baskets/"+n.basketId+"/signatureBook/"+t;n.router.navigate([i])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])}):valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=r([o.Component({templateUrl:angularGlobals["signature-bookView"]}),i("design:paramtypes",[s.HttpClient,u.ActivatedRoute,u.Router,o.NgZone])],l),n.SignatureBookComponent=l},{"@angular/common/http":26,"@angular/core":29,"@angular/platform-browser":33,"@angular/router":34}],20:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("../lang/lang-en"),i=t("../lang/lang-fr"),o={};"en"==angularGlobals.lang?o=r.LANG_EN:"fr"==angularGlobals.lang&&(o=i.LANG_FR),n.LANG=o},{"../lang/lang-en":21,"../lang/lang-fr":22}],21:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_EN={myProfile:"My profile",back:"Back",manageMyAbsences:"Manage my absences",manageMySignatures:"Manage my signatures",myGroups:"My Groups",myEntities:"My Entities",primaryEntity:"Primary entity",secondaryEntity:"Secondary entity",myInformations:"My Informations",firstname:"Firstname",lastname:"Lastname",userId:"Login",initials:"Initials",phoneNumber:"Phone number",email:"Email",fingerprint:"Digital fingerprint",changePsw:"Change your password",currentPsw:"Current password",newPsw:"New password",renewPsw:"Enter the password again",saveModifications:"Record the modifications",emailSignatures:"Email signatures",sbSignatures:"Signature Book signatures",newSignature:"New signature",signatureLabel:"Signature label",updateSignature:"Update signature",deleteSignature:"Delete signature",clickOn:"Click on",toAddSignature:"to add a signature",toUpdateSignature:"to update a signature",cancel:"Cancel",to:"to",activateMyAbs:"Activate my absence",user:"user",delete:"Delete",basketToRedirect:"Choose a basket",autoLogoutAbsence:"You are going to be automaticaly disconnected after your redirections",color:"Color",label:"Label",workingDays:"Working days",processDelay:"Process delay",save:"Save"}},{}],22:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_FR={add:"Ajouter",admin:"Administration",back:"Retour",cancel:"Annuler",clickOn:"Cliquez sur",delete:"Supprimer",deleteMsg:"Voulez-vous vraiment supprimer cet élément",desc:"Description",id:"Identifiant",isSystem:"Système",no:"Non",save:"Enregistrer",saveModifications:"Enregistrer les modifications",selectAll:"Sélectionner tout",systemParameters:"paramètres système",to:"vers",unselectAll:"Tout désélectionner",update:"Modifier",validate:"Valider",yes:"Oui",available:"disponible",display:"affichage",filteredFrom:"filtré sur un ensemble de",last:"dernier",next:"Suivant",noRecord:"Aucun élément",noResult:"Aucun résultat",outOf:"sur",page:"Page",previous:"Précecdent",record:"élément(s)",records:"résultats",recordsPerPage:"résultats par page",search:"Chercher",action:"Action",actionAdded:"Ajout d'une nouvelle action",actionHistory:"Tracer l'action",actionHistoryDesc:"Permet tracer cette action dans l'historique du document. Il est fortement recommandé de cocher cette option.",actionModified:"Modification de l'action",actionPage:"Page de résultat de l'action",actions:"Action(s)",associatedStatus:"Statut associé",chooseCategoryAssociation:"Choisissez une ou plusieurs catégories associée",chooseCategoryAssociationHelp:"Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",doNotModifyUnlessExpert:"Ne pas modifier cette section à moins de savoir ce que vous faites. Un mauvais paramètrage peut entrainer des dysfonctionnements de l'application!",infosActions:"Vous devez choisir au moins un statut et / ou un script.",isFolderAction:"Action de dossier",isFolderActionDesc:"Permet d'utiliser cette action dans une bannette de dossier",keyword:"Mot clé",newAction:"Nouvelle action",activateMyAbs:"Activer mon absence",autoLogoutAbsence:"Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",basketToRedirect:"Choisissez une banette",changePsw:"Modifier votre mot de passe",currentPsw:"Mot de passe actuel",deleteSignature:"Supprimer la signature",email:"Email",emailSignatures:"Signatures de mail",fingerprint:"Empreinte numérique",firstname:"Prénom",initials:"Initiales",lastname:"Nom",manageMyAbsences:"Gérer mes absences",manageMySignatures:"Gérer mes signatures",myEntities:"Mes Entités",myGroups:"Mes Groupes",myInformations:"Mes Informations",myProfile:"Mon profil",newPsw:"Nouveau mot de passe",newSignature:"Nouvelle signature",phoneNumber:"Numéro de téléphone",primaryEntity:"Entité Primaire",renewPsw:"Retaper le mot de passe",sbSignatures:"Signatures de parapheur",secondaryEntity:"Entité Secondaire",signatureLabel:"Label de la signature",toAddSignature:"pour ajouter une signature",toUpdateSignature:"pour modifier la signature téléchargée",updateSignature:"Modifier la signature",user:"utilisateur",userId:"Identifiant",color:"Couleur",label:"Label",processDelay:"Délai de traitement",workingDays:"Jours travaillés"}},{}],23:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),i=t("@angular/core"),o=t("./app/app.module");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)},{"./app/app.module":17,"@angular/core":29,"@angular/platform-browser-dynamic":31}],24:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/animations")):i((r.ng=r.ng||{},r.ng.animations=r.ng.animations||{},r.ng.animations.browser=r.ng.animations.browser||{}),r.ng.animations)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t){switch(t.length){case 0:return new e.NoopAnimationPlayer;case 1:return t[0];default:return new e.ɵAnimationGroupPlayer(t)}}function i(t,n,r,i,o,s){void 0===o&&(o={}),void 0===s&&(s={});var a=[],u=[],c=-1,l=null;if(i.forEach(function(t){var r=t.offset,i=r==c,p=i&&l||{};Object.keys(t).forEach(function(r){var i=r,u=t[r];u==e.ɵPRE_STYLE?u=o[r]:u==e.AUTO_STYLE?u=s[r]:"offset"!=r&&(i=n.normalizePropertyName(r,a),u=n.normalizeStyleValue(r,i,t[r],a)),p[i]=u}),i||u.push(p),l=p,c=r}),a.length){throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "))}return u}function o(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&s(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&s(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&s(n,"destroy",t.totalTime))})}}function s(t,e,n){var r=a(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function a(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function u(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function c(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}function l(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:p(parseFloat(e[1]),e[2])}function p(t,e){switch(e){case"s":return t*gt;default:return t}}function h(t,e,n){return t.hasOwnProperty("duration")?t:f(t,e,n)}function f(t,e,n){var r,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o=0,s="";if("string"==typeof t){var a=t.match(i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=p(parseFloat(a[1]),a[2]);var u=a[3];null!=u&&(o=p(Math.floor(parseFloat(u)),a[4]));var c=a[5];c&&(s=c)}else r=t;if(!n){var l=!1,h=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(h,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:s}}function d(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function m(t){var e={};return Array.isArray(t)?t.forEach(function(t){return y(t,!1,e)}):y(t,!1,e),e}function y(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else d(t,n);return n}function v(t,e){t.style&&Object.keys(e).forEach(function(n){var r=S(n);t.style[r]=e[n]})}function g(t,e){t.style&&Object.keys(e).forEach(function(e){var n=S(e);t.style[n]=""})}function _(t){return Array.isArray(t)?1==t.length?t[0]:e.sequence(t):t}function b(t,e,n){var r=e.params||{};if("string"==typeof t){var i=t.toString().match(Ct);i&&i.forEach(function(t){r.hasOwnProperty(t)||n.push("Unable to resolve the local animation param "+t+" in the given list of values")})}}function w(t,e,n){var r=t.toString(),i=r.replace(Ct,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function E(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}function C(t,e){if(t.params){var n=t.params;e.params||(e.params={});var r=e.params;Object.keys(n).forEach(function(t){r.hasOwnProperty(t)||(r[t]=n[t])})}return e}function S(t){return t.replace(St,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function x(t,e){return 0===t||0===e}function T(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function P(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return A(t,n,e)}):n.push(t),n}function A(t,e,n){":"==t[0]&&(t=O(t,n));var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=r[1],o=r[2],s=r[3];e.push(N(i,s));var a=i==Ht&&s==Ht;"<"!=o[0]||a||e.push(N(s,i))}function O(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}function N(t,e){return function(n,r){var i=t==Ht||t==n,o=e==Ht||e==r;return i||"boolean"!=typeof n||(i=n?"true"===t:"false"===t),o||"boolean"!=typeof r||(o=r?"true"===e:"false"===e),i&&o}}function M(t,e){return(new $t).build(t,e)}function R(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==qt});return e&&(t=t.replace(zt,"")),t=t.replace(Wt,_t).replace(Gt,bt).replace(/@\*/g,wt).replace(/@\w+/g,function(t){return wt+"-"+t.substr(1)}).replace(/:animating/g,Et),[t,e]}function k(t){return t?d(t):null}function I(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(j(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(j(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}function j(t){return!Array.isArray(t)&&"object"==typeof t}function D(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){h(t,e).duration;return new Ut(t,0,"")}var r=t;return r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})?new Bt(r):(n=n||h(r,e),new Ut(n.duration,n.delay,n.easing))}function L(t){return t?(t=d(t)).params&&(t.params=k(t.params)):t={},t}function F(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}function V(t,e,n,r,i,o,s,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===a&&(a=[]),(new Jt).buildKeyframes(t,e,n,r,i,o,s,a)}function U(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}function B(t,n){var r,i={};return t.forEach(function(t){"*"===t?(r=r||Object.keys(n)).forEach(function(t){i[t]=e.AUTO_STYLE}):y(t,!1,i)}),i}function H(t,e,n,r,i,o,s,a,u,c,l,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}function q(t,e,n){return t.some(function(t){return t(e,n)})}function z(t,e){return new ae(t,e)}function G(t,e){var n=[function(t,e){return!0}],r=new Nt([]),i=new Ot(n,r);return new se(t,i,e)}function W(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}function $(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}function K(t){switch(typeof t){case"boolean":return t?"1":"0";default:return null!=t?t.toString():null}}function Q(t){return t&&1===t.nodeType}function J(t){return"start"==t||"done"==t}function X(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Y(t,e,n,r){var i=e.map(function(t){return X(t)}),o=new Map;return n.forEach(function(e,n){var i={};e.forEach(function(e){var o=i[e]=t.computeStyle(n,e,r);o&&0!=o.length||(n[fe]=he)}),o.set(n,i)}),e.forEach(function(t,e){return X(t,i[e])}),o}function Z(t){var e,n=new Set(t),r=new Set;return e=function(t){return!t||!n.has(t.parentNode)&&(!!r.has(t.parentNode)||!!e(t.parentNode)&&(r.add(t),!0))}}function tt(t,e){if(t.classList)return t.classList.contains(e);var n=t[be];return n&&n[e]}function et(t,e){if(t.classList)t.classList.add(e);else{var n=t[be];n||(n=t[be]={}),n[e]=!0}}function nt(t,e){if(t.classList)t.classList.remove(e);else{var n=t[be];n&&delete n[e]}}function rt(){return"undefined"!=typeof document?document.body:null}function it(t,e,n){r(n).onDone(function(){return t.processLeaveNode(e)})}function ot(t,e){return window.getComputedStyle(t)[e]}function st(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate}var at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ut=function(t,e){return!1},ct=function(t,e){return!1},lt=function(t,e,n){return[]};if("undefined"!=typeof Element){if(ut=function(t,e){return t.contains(e)},Element.prototype.matches)ct=function(t,e){return t.matches(e)};else{var pt=Element.prototype,ht=pt.matchesSelector||pt.mozMatchesSelector||pt.msMatchesSelector||pt.oMatchesSelector||pt.webkitMatchesSelector;ht&&(ct=function(t,e){return ht.apply(t,[e])})}lt=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var ft=ct,dt=ut,mt=lt,yt=function(){function t(){}return t.prototype.matchesElement=function(t,e){return ft(t,e)},t.prototype.containsElement=function(t,e){return dt(t,e)},t.prototype.query=function(t,e,n){return mt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,n,r,i,o,s){return void 0===s&&(s=[]),new e.NoopAnimationPlayer},t}(),vt=function(){function t(){}return t}();vt.NOOP=new yt;var gt=1e3,_t=".ng-enter",bt=".ng-leave",wt=".ng-trigger",Et=".ng-animating",Ct=/\{\{\s*(.+?)\s*\}\}/g,St=/-+([a-z0-9])/g,xt={},Tt=function(){function t(){this.options=xt}return t.prototype.visit=function(t,e){},Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params||null},enumerable:!0,configurable:!0}),t}(),Pt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.name=e,i.states=n,i.transitions=r,i.queryCount=0,i.depCount=0,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitTrigger(this,e)},e}(Tt),At=function(t){function e(e,n){var r=t.call(this)||this;return r.name=e,r.style=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitState(this,e)},e}(Tt),Ot=function(t){function e(e,n){var r=t.call(this)||this;return r.matchers=e,r.animation=n,r.queryCount=0,r.depCount=0,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitTransition(this,e)},e}(Tt),Nt=function(t){function e(e){var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitSequence(this,e)},e}(Tt),Mt=function(t){function e(e){var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitGroup(this,e)},e}(Tt),Rt=function(t){function e(e,n){var r=t.call(this)||this;return r.timings=e,r.style=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimate(this,e)},e}(Tt),kt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.styles=e,i.easing=n,i.offset=r,i.isEmptyStep=!1,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitStyle(this,e)},e}(Tt),It=function(t){function e(e){var n=t.call(this)||this;return n.styles=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitKeyframes(this,e)},e}(Tt),jt=function(t){function e(e){var n=t.call(this)||this;return n.animation=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitReference(this,e)},e}(Tt),Dt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimateChild(this,e)},e}(Tt),Lt=function(t){function e(e){var n=t.call(this)||this;return n.animation=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimateRef(this,e)},e}(Tt),Ft=function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.selector=e,s.limit=n,s.optional=r,s.includeSelf=i,s.animation=o,s}return n(e,t),e.prototype.visit=function(t,e){return t.visitQuery(this,e)},e}(Tt),Vt=function(t){function e(e,n){var r=t.call(this)||this;return r.timings=e,r.animation=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitStagger(this,e)},e}(Tt),Ut=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=null);var i=t.call(this)||this;return i.duration=e,i.delay=n,i.easing=r,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitTiming(this,e)},e}(Tt),Bt=function(t){function e(e){var n=t.call(this,0,0,"")||this;return n.value=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitTiming(this,e)},e}(Ut),Ht="*",qt=":self",zt=new RegExp("s*"+qt+"s*,?","g"),Gt=new RegExp(":leave","g"),Wt=new RegExp(":enter","g"),$t=function(){function t(){}return t.prototype.build=function(t,e){var n=new Kt(e);return this._resetContextStyleTimingState(n),T(this,_(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],s=[];t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,u=a.name;u.split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=u}else if(1==t.type){var c=n.visitTransition(t,e);r+=c.queryCount,i+=c.depCount,s.push(c)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")});var a=new Pt(t.name,o,s);return a.options=L(t.options),a.queryCount=r,a.depCount=i,a},t.prototype.visitState=function(t,e){return new At(t.name,this.visitStyle(t.styles,e))},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=T(this,_(t.animation),e),r=P(t.expr,e.errors),i=new Ot(r,n);return i.options=L(t.options),i.queryCount=e.queryCount,i.depCount=e.depCount,i},t.prototype.visitSequence=function(t,e){var n=this,r=new Nt(t.steps.map(function(t){return T(n,t,e)}));return r.options=L(t.options),r},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=T(n,t,e);return i=Math.max(i,e.currentTime),o});e.currentTime=i;var s=new Mt(o);return s.options=L(t.options),s},t.prototype.visitAnimate=function(t,n){var r=D(t.timings,n.errors);n.currentAnimateTimings=r;var i,o=t.styles?t.styles:e.style({});if(5==o.type)i=this.visitKeyframes(o,n);else{var s=t.styles,a=!1;if(!s){a=!0;var u={};r.easing&&(u.easing=r.easing),s=e.style(u)}n.currentTime+=r.duration+r.delay;var c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,new Rt(r,i)},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,n){var r=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==e.AUTO_STYLE?r.push(t):n.errors.push("The provided style string value "+t+" is not allowed."):r.push(t)}):r.push(t.styles);var i=null;return r.forEach(function(t){if(j(t)){var e=t,n=e.easing;n&&(i=n,delete e.easing)}}),new kt(r,i,t.offset)},t.prototype._validateStyleAst=function(t,e){var n=e.currentAnimateTimings,r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){var o=e.collectedStyles[e.currentQuerySelector],s=o[n],a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'+n+'" that exists between the times of "'+s.startTime+'ms" and "'+s.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+r+'ms"'),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&b(t[n],e.options,e.errors)})})},t.prototype.visitKeyframes=function(t,e){var n=this;if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),new It([]);var r=0,i=[],o=!1,s=!1,a=0,u=t.steps.map(function(t){var u=n._makeStyleAst(t,e),c=null!=u.offset?u.offset:I(u.styles),l=0;return null!=c&&(r++,l=u.offset=c),s=s||l<0||l>1,o=o||l<a,a=l,i.push(l),u});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,l=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(l=1/(c-1));var p=c-1,h=e.currentTime,f=e.currentAnimateTimings,d=f.duration;return u.forEach(function(t,r){var o=l>0?r==p?1:l*r:i[r],s=o*d;e.currentTime=h+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=o}),new It(u)},t.prototype.visitReference=function(t,e){var n=T(this,_(t.animation),e),r=new jt(n);return r.options=L(t.options),r},t.prototype.visitAnimateChild=function(t,e){e.depCount++;var n=new Dt;return n.options=L(t.options),n},t.prototype.visitAnimateRef=function(t,e){var n=this.visitReference(t.animation,e),r=new Lt(n);return r.options=L(t.options),r},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=R(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,u(e.collectedStyles,e.currentQuerySelector,{});var a=T(this,_(t.animation),e);e.currentQuery=null,e.currentQuerySelector=n;var c=new Ft(o,r.limit||0,!!r.optional,s,a);return c.originalSelector=t.selector,c.options=L(t.options),c},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:h(t.timings,e.errors,!0),r=T(this,_(t.animation),e);return new Vt(n,r)},t}(),Kt=function(){function t(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}return t}(),Qt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Jt=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a){void 0===a&&(a=[]),s=s||new Qt;var u=new Yt(t,e,s,a,[]);u.options=o,u.currentTimeline.setStyles([r],null,u.errors,o),n.visit(this,u);var c=u.timelines.filter(function(t){return t.containsAnimation()});if(c.length&&Object.keys(i).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([i],null,u.errors,o)}return c.length?c.map(function(t){return t.buildKeyframes()}):[F(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?l(n.duration):null,o=null!=n.delay?l(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),t.animation.visit(this,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){i.previousNode instanceof kt&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Xt);var s=l(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return t.visit(n,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?l(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),s.visit(n,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype.visitTiming=function(t,e){return t instanceof Bt?h(e.params?w(t.value,e.params,e.errors):t.value.toString(),e.errors):{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this.visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;i instanceof It?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;o.forwardTime(n*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?l(i.delay):0;o&&(e.previousNode instanceof kt||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Xt);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),t.animation.visit(n,a),a.currentTimeline.applyStylesToKeyframe();var c=a.currentTimeline.currentTime;s=Math.max(s,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;t.animation.visit(this,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),Xt={},Yt=function(){function t(t,e,n,r,i,o){this._driver=t,this.element=e,this.subInstructions=n,this.errors=r,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Xt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new Zt(e,0),i.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=l(r.duration)),null!=r.delay&&(i.delay=l(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=w(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(this.options.params).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Xt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new te(t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){var a=1!=n;s.push.apply(s,this._driver.query(this.element,t,a))}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Zt=function(){function t(t,e,n){this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){n._backFill[t]=n._globalTimelineStyles[t]||e.AUTO_STYLE,n._currentKeyframe[t]=e.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,n,r,i){var o=this;n&&(this._previousKeyframe.easing=n);var s=i&&i.params||{},a=B(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var n=w(a[t],s,r);o._pendingStyles[t]=n,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:e.AUTO_STYLE),o._updateStyle(t,n)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var n=new Set,r=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(s,a){var u=y(s,!0);Object.keys(u).forEach(function(t){var i=u[t];i==e.ɵPRE_STYLE?n.add(t):i==e.AUTO_STYLE&&r.add(t)}),i||(u.offset=a/t.duration),o.push(u)});var s=n.size?E(n.values()):[],a=r.size?E(r.values()):[];if(i){var u=o[0],c=d(u);u.offset=0,c.offset=1,o=[u,c]}return F(this.element,o,s,a,this.duration,this.startTime,this.easing,!1)},t}(),te=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!1);var a=t.call(this,e,o.delay)||this;return a.element=e,a.keyframes=n,a.preStyleProps=r,a.postStyleProps=i,a._stretchStartingKeyframe=s,a.timings={duration:o.duration,delay:o.delay,easing:o.easing},a}return n(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=y(t[0],!1);u.offset=0,o.push(u);var c=y(t[0],!1);c.offset=U(a),o.push(c);for(var l=t.length-1,p=1;p<=l;p++){var h=y(t[p],!1),f=n+h.offset*r;h.offset=U(f/s),o.push(h)}r=s,n=0,i="",t=o}return F(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Zt),ee=function(){function t(t,e){this._driver=t;var n=[],r=M(e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}return t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?m(e):e,s=Array.isArray(n)?m(n):n,a=[];i=i||new Qt;var u=V(this._driver,t,this._animationAst,o,s,r,i,a);if(a.length){var c="animation building failed:\n"+a.join("\n");throw new Error(c)}return u},t}(),ne=function(){function t(){}return t}(),re=function(){function t(){}return t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n},t}(),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.normalizePropertyName=function(t,e){return S(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(oe[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(ne),oe=function(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")),se=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return q(this.ast.matchers,t,e)},t.prototype.build=function(t,e,n,r,i,o){var s=C(this.ast.options||{},i||{}),a=this._stateStyles["*"]||{},c=this._stateStyles[n]||a,l=this._stateStyles[r]||a,p=new Set,h=new Map,f=new Map,d="void"===r,m=[],y=V(t,e,this.ast.animation,c,l,s,o,m);if(m.length)return H(e,this._triggerName,n,r,d,c,l,[],[],h,f,m);y.forEach(function(t){var n=t.element,r=u(h,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=u(f,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&p.add(n)});var v=E(p.values());return H(e,this._triggerName,n,r,d,c,l,y,v,h,f)},t}(),ae=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=n.states[t.name]={};t.style.styles.forEach(function(t){"object"==typeof t&&y(t,!1,e)})}),W(this.states,"true","1"),W(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new se(t,e,n.states))}),this.fallbackTransition=G(t,this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t}(),ue=new Qt,ce=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=M(e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=i(this._driver,this._normalizer,r,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,n,i){var o=this;void 0===i&&(i={});var s,a=[],c=this._animations[t],l=new Map;if(c?(s=V(this._driver,n,c,{},{},i,ue,a)).forEach(function(t){var e=u(l,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),s=[]),a.length)throw new Error("Unable to create the animation due to the following errors: "+a.join("\n"));l.forEach(function(t,n){Object.keys(t).forEach(function(r){t[r]=o._driver.computeStyle(n,r,e.AUTO_STYLE)})});var p=r(s.map(function(t){var e=l.get(t.element);return o._buildPlayer(t,{},e)}));return this._playersById[t]=p,p.onDestroy(function(){return o.destroy(t)}),this.players.push(p),p},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=a(e,"","","");return o(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n){if("create"==n){var i=r[0]||{};return void this.create(t,e,i)}var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.register(t,r[0])},t}(),le=[],pe={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},he={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},fe="__ng_removed",de=function(){function t(t){var e=t&&t.hasOwnProperty("value"),n=e?t.value:t;if(this.value=K(n),e){var r=d(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),me=new de("void"),ye=new de("DELETED"),ve=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,et(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if(!J(n))throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var o=u(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);var a=u(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(et(t,"ng-trigger"),et(t,"ng-trigger-"+e),a[e]=null),function(){i._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),i._triggers[e]||delete a[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new _e(this.id,e,t),a=this._engine.statesByElement.get(t);a||(et(t,"ng-trigger"),et(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var c=a[e],l=new de(n);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[e]=l,c){if(c===ye)return s}else c=me;if("void"===l.value||c.value!==l.value){var p=u(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,l.value),f=!1;if(!h){if(!r)return;h=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:f}),f||(et(t,"ng-animate-queued"),s.onStart(function(){nt(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),p.push(s),s}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._destroyInnerNodes=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,wt,!0).forEach(function(t){if(n&&tt(t,r._hostClassName)){var i=r._engine.namespacesByHostElement.get(t);i&&i.removeNode(t,e,!0),r.removeNode(t,e,!0)}else r.clearElementCache(t)})},t.prototype.removeNode=function(t,e,n){var i=this,o=this._engine;!n&&t.childElementCount&&this._destroyInnerNodes(t,e,!0);var s=o.statesByElement.get(t);if(s){var a=[];if(Object.keys(s).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",!1);n&&a.push(n)}}),a.length)return o.markElementAsRemoved(this.id,t,!0,e),void r(a).onDone(function(){return o.processLeaveNode(t)})}var u=!1;if(o.totalAnimations){var c=o.players.length?o.playersByQueriedElement.get(t):[];if(c&&c.length)u=!0;else for(var l=t;l=l.parentNode;)if(o.statesByElement.get(l)){u=!0;break}}var p=this._elementListeners.get(t);if(p){var h=new Set;p.forEach(function(e){var n=e.name;if(!h.has(n)){h.add(n);var r=i._triggers[n].fallbackTransition,s=o.statesByElement.get(t)[n]||me,a=new de("void"),u=new _e(i.id,n,t);i._engine.totalQueuedPlayers++,i._queue.push({element:t,triggerName:n,transition:r,fromState:s,toState:a,player:u,isFallbackTransition:!0})}})}u?o.markElementAsRemoved(this.id,t,!1,e):(o.afterFlush(function(){return i.clearElementCache(t)}),o.destroyInnerAnimations(t),o._onRemovalComplete(t,e))},t.prototype.insertNode=function(t,e){et(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var s=r.element,u=e._elementListeners.get(s);u&&u.forEach(function(e){if(e.name==r.triggerName){var n=a(s,r.triggerName,r.fromState.value,r.toState.value);n._data=t,o(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._destroyInnerNodes(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),ge=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new ve(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.trigger=function(t,e,n,r){return!!Q(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Q(e)){var i=e[fe];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),et(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),nt(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(Q(e)){var i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n,r):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[fe]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Q(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,wt,!0);n.forEach(function(t){var n=e.playersByElement.get(t);n&&n.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var r=e.statesByElement.get(t);r&&Object.keys(r).forEach(function(t){return r[t]=ye})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Et,!0)).length&&n.forEach(function(t){var n=e.playersByQueriedElement.get(t);n&&n.forEach(function(t){return t.finish()})})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return r(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[fe];if(n&&n.setForRemoval){if(t[fe]=pe,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(o=0;o<i.length;o++)i[o]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++){var s=this.collectedLeaveElements[o];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var a=this._whenQuietFns;this._whenQuietFns=[],n.length?r(n).onDone(function(){a.forEach(function(t){return t()})}):a.forEach(function(t){return t()})}},t.prototype._flushAnimations=function(t,n){var i=this,o=new Qt,s=[],a=new Map,c=[],l=new Map,p=new Map,h=new Map,f=new Set;this.disabledNodes.forEach(function(t){for(var e=i.driver.query(t,".ng-animate-queued",!0),n=0;n<e.length;n++)f.add(e[n])});for(var d=rt(),m=this.collectedEnterElements.length?this.collectedEnterElements.filter(Z(this.collectedEnterElements)):[],y=0;y<m.length;y++)et(m[y],"ng-enter");for(var _=[],b=[],y=0;y<this.collectedLeaveElements.length;y++)(R=(x=this.collectedLeaveElements[y])[fe])&&R.setForRemoval&&(et(x,"ng-leave"),_.push(x),R.hasAnimation||b.push(x));t.push(function(){m.forEach(function(t){return nt(t,"ng-enter")}),_.forEach(function(t){nt(t,"ng-leave"),i.processLeaveNode(t)})});for(var w=[],E=[],y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(function(t){var e=t.player;w.push(e);var n=t.element;if(d&&i.driver.containsElement(d,n)){var r=i._buildInstruction(t,o);if(r.errors&&r.errors.length)E.push(r);else{if(t.isFallbackTransition)return e.onStart(function(){return g(n,r.fromStyles)}),e.onDestroy(function(){return v(n,r.toStyles)}),void s.push(e);r.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),o.append(n,r.timelines);var a={instruction:r,player:e,element:n};c.push(a),r.queriedElements.forEach(function(t){return u(l,t,[]).push(e)}),r.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=p.get(e);r||p.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),r.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(E.length){var C="Unable to process animations due to the following failed trigger transitions\n";throw E.forEach(function(t){C+="@"+t.triggerName+" has failed due to:\n",t.errors.forEach(function(t){C+="- "+t+"\n"})}),w.forEach(function(t){return t.destroy()}),new Error(C)}for(var S=[],y=0;y<m.length;y++){var x=m[y];o.has(x)||S.push(x)}var T=new Map,P=[];c.forEach(function(t){var e=t.element;o.has(e)&&(P.unshift(e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,T))}),s.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){u(T,e,[]).push(t)})}),T.forEach(function(t){return t.forEach(function(t){return t.destroy()})});var A=p.size?Y(this.driver,S,p,e.ɵPRE_STYLE):new Map,O=Y(this.driver,b,h,e.AUTO_STYLE),N=[],M=[];c.forEach(function(t){var e=t.element,n=t.player,u=t.instruction;if(o.has(e)){if(f.has(e))return void s.push(n);var c=i._buildAnimation(n.namespaceId,u,T,a,A,O);n.setRealPlayer(c);for(var l=null,p=0;p<P.length;p++){var h=P[p];if(h===e)break;if(i.driver.containsElement(h,e)){l=h;break}}if(l){var d=i.playersByElement.get(l);d&&d.length&&(n.parentPlayer=r(d)),s.push(n)}else N.push(n)}else g(e,u.fromStyles),n.onDestroy(function(){return v(e,u.toStyles)}),M.push(n)}),M.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=r(e);t.setRealPlayer(n)}}),s.forEach(function(t){t.parentPlayer?t.parentPlayer.onDestroy(function(){return t.destroy()}):t.destroy()});for(y=0;y<_.length;y++){var R=(x=_[y])[fe];if(nt(x,"ng-leave"),!R||!R.hasAnimation){var k=[];if(l.size){var I=l.get(x);I&&I.length&&k.push.apply(k,I);for(var j=this.driver.query(x,Et,!0),D=0;D<j.length;D++){var L=l.get(j[D]);L&&L.length&&k.push.apply(k,L)}}k.length?it(this,x,k):this.processLeaveNode(x)}}return _.length=0,N.forEach(function(t){i.players.push(t),t.onDone(function(){t.destroy();var e=i.players.indexOf(t);i.players.splice(e,1)}),t.play()}),N},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[fe];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var s=this.playersByQueriedElement.get(t);s&&(o=s)}else{var a=this.playersByElement.get(t);if(a){var u=!i||"void"==i;a.forEach(function(t){t.queued||(u||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r=this;g(e.element,e.fromStyles);var i=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:i;e.timelines.map(function(t){var i=t.element,c=i!==o,l=u(n,i,[]);r._getPreviousPlayers(i,c,s,a,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),l.push(t)})})},t.prototype._buildAnimation=function(t,n,o,s,a,c){var l=this,p=n.triggerName,h=n.element,f=[],d=new Set,m=new Set,y=n.timelines.map(function(n){var r=n.element;d.add(r);var u=r[fe];if(u&&u.removedBeforeQueried)return new e.NoopAnimationPlayer;var y=r!==h,v=(o.get(r)||le).map(function(t){return t.getRealPlayer()}),g=a.get(r),_=c.get(r),b=i(l.driver,l._normalizer,r,n.keyframes,g,_),w=l._buildPlayer(n,b,v);if(n.subTimeline&&s&&m.add(r),y){var E=new _e(t,p,r);E.setRealPlayer(w),f.push(E)}return w});f.forEach(function(t){u(l.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return $(l.playersByQueriedElement,t.element,t)})}),d.forEach(function(t){return et(t,"ng-animating")});var g=r(y);return g.onDestroy(function(){d.forEach(function(t){return nt(t,"ng-animating")}),v(h,n.toStyles)}),m.forEach(function(t){u(s,t,[]).push(g)}),g},t.prototype._buildPlayer=function(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new e.NoopAnimationPlayer},t}(),_e=function(){function t(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new e.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(t.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return o(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},t.prototype.getRealPlayer=function(){return this._player},t.prototype._queueEvent=function(t,e){u(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t}(),be="$$classes",we=function(){function t(t,e){var n=this;this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new ge(t,e),this._timelineEngine=new ce(t,e),this._transitionEngine.onRemovalComplete=function(t,e){n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=M(i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=z(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.process=function(t,e,n,r){switch(n.charAt(0)){case".":return".disabled"==n&&this._transitionEngine.markElementAsDisabled(e,!!r),!1;case"@":var i=c(n),o=i[0],s=i[1],a=r;return this._timelineEngine.command(o,e,s,a),!1;default:return this._transitionEngine.trigger(t,e,n,r)}},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=c(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,e,a,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Ee=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,x(this._duration,this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return y(t,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,s=1;s<e.length;s++)!function(){var t=e[s];i.forEach(function(e){t[e]=ot(o.element,e)})}()}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this._player.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0,this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this._player.currentTime=t*this.time},t.prototype.getPosition=function(){return this._player.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:ot(t.element,n))}),this.currentSnapshot=e},t}(),Ce=function(){function t(){}return t.prototype.matchesElement=function(t,e){return ft(t,e)},t.prototype.containsElement=function(t,e){return dt(t,e)},t.prototype.query=function(t,e,n){return mt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var a=o.filter(function(t){return t instanceof Ee});return new Ee(t,e,s,a)},t}();t.AnimationDriver=vt,t.ɵAnimation=ee,t.ɵAnimationStyleNormalizer=ne,t.ɵNoopAnimationStyleNormalizer=re,t.ɵWebAnimationsStyleNormalizer=ie,t.ɵNoopAnimationDriver=yt,t.ɵAnimationEngine=we,t.ɵWebAnimationsDriver=Ce,t.ɵsupportsWebAnimations=st,t.ɵWebAnimationsPlayer=Ee,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/animations":25}],25:[function(t,e,n){!function(t,r){r("object"==typeof n&&void 0!==e?n:(t.ng=t.ng||{},t.ng.animations=t.ng.animations||{}))}(this,function(t){"use strict";function e(t,e){return{type:7,name:t,definitions:e,options:{}}}function n(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function r(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function i(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function o(t){return{type:6,styles:t,offset:null}}function s(t,e){return{type:0,name:t,styles:e}}function a(t){return{type:5,steps:t}}function u(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function c(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}}function l(t){return void 0===t&&(t=null),{type:9,options:t}}function p(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}}function h(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function f(t,e){return{type:12,timings:t,animation:e}}function d(t){Promise.resolve(null).then(t)}var m=function(){function t(){}return t.prototype.build=function(t){},t}(),y=function(){function t(){}return t.prototype.create=function(t,e){},t}(),v=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this.triggerMicrotask(),this._onStart()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;d(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t}(),g=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0;var n=0,r=0,i=0,o=this._players.length;0==o?d(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=o&&e._onFinish()}),t.onDestroy(function(){++r>=o&&e._onDestroy()}),t.onStart(function(){++i>=o&&e._onStart()})}),this.totalTime=this._players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this._players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}();t.AnimationBuilder=m,t.AnimationFactory=y,t.AUTO_STYLE="*",t.animate=n,t.animateChild=l,t.animation=c,t.group=r,t.keyframes=a,t.query=h,t.sequence=i,t.stagger=f,t.state=s,t.style=o,t.transition=u,t.trigger=e,t.useAnimation=p,t.NoopAnimationPlayer=v,t.ɵAnimationGroupPlayer=g,t.ɵPRE_STYLE="!",Object.defineProperty(t,"__esModule",{value:!0})})},{}],26:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("tslib"),t("@angular/core"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/filter"),t("rxjs/operator/map"),t("@angular/common"),t("rxjs/Observable")):i((r.ng=r.ng||{},r.ng.commmon=r.ng.commmon||{},r.ng.commmon.http=r.ng.commmon.http||{}),r.tslib_1,r.ng.core,r.rxjs_observable_of,r.rxjs_operator_concatMap,r.rxjs_operator_filter,r.rxjs_operator_map,r._angular_common,r.Rx)}(this,function(t,e,n,r,i,o,s,a,u){"use strict";function c(t,e){var n=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),i=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=i[0],s=i[1],a=n.get(o)||[];a.push(s),n.set(o,a)}),n}function l(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 p(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function h(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function f(t){return"undefined"!=typeof Blob&&t instanceof Blob}function d(t){return"undefined"!=typeof FormData&&t instanceof FormData}function m(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}function y(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function v(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new M(t,e)},t):t}function g(){return"object"==typeof window?window:{}}var _=function(){function t(){}return t.prototype.handle=function(t){},t}(),b=function(){function t(){}return t.prototype.handle=function(t){},t}(),w=function(){function t(){}return t.prototype.encodeKey=function(t){return l(t)},t.prototype.encodeValue=function(t){return l(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}(),E=function(){function t(t){void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new w,this.map=t.fromString?c(t.fromString,this.encoder):null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}(),C=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),S=function(){function t(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();var i;if(p(this.method)||r?(this.body=n||null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new C),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?"),a=-1===s?"?":s<e.length-1?"&":"";this.urlWithParams=e+a+o}}else this.params=new E,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:h(this.body)||f(this.body)||d(this.body)||"string"==typeof this.body?this.body:this.body instanceof E?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:d(this.body)?null:f(this.body)?this.body.type||null:h(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof E?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(c=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},c)),new t(n,r,o,{params:c,headers:u,reportProgress:a,responseType:i,withCredentials:s})},t}(),x={};x.Sent=0,x.UploadProgress=1,x.ResponseHeader=2,x.DownloadProgress=3,x.Response=4,x.User=5,x[x.Sent]="Sent",x[x.UploadProgress]="UploadProgress",x[x.ResponseHeader]="ResponseHeader",x[x.DownloadProgress]="DownloadProgress",x[x.Response]="Response",x[x.User]="User";var T=function(){function t(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new C,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}return t}(),P=function(t){function n(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.ResponseHeader,n}return e.__extends(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(T),A=function(t){function n(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=x.Response,n.body=e.body||null,n}return e.__extends(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(T),O=function(t){function n(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return e.__extends(n,t),n}(T),N=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var a=this;void 0===n&&(n={});var u;u=t instanceof S?t:new S(t,e,n.body||null,{headers:n.headers,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials});var c=i.concatMap.call(r.of(u),function(t){return a.handler.handle(t)});if(t instanceof S||"events"===n.observe)return c;var l=o.filter.call(c,function(t){return t instanceof A});switch(n.observe||"body"){case"body":switch(u.responseType){case"arraybuffer":return s.map.call(l,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return s.map.call(l,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return s.map.call(l,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return s.map.call(l,function(t){return t.body})}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new E).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,m(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,m(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,m(n,e))},t}();N.decorators=[{type:n.Injectable}],N.ctorParameters=function(){return[{type:_}]};var M=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),R=new n.InjectionToken("HTTP_INTERCEPTORS"),k=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}();k.decorators=[{type:n.Injectable}],k.ctorParameters=function(){return[]};var I=0,j=function(){function t(){}return t}(),D=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+I++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new u.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var s=null,a=!1,u=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],u||(s=t,a=!0)};var c=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},l=function(t){u||(c(),a?(n.next(new A({body:s,status:200,statusText:"OK",url:i})),n.complete()):n.error(new O({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){u||(c(),n.error(new O({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",l),o.addEventListener("error",p),e.document.body.appendChild(o),n.next({type:x.Sent}),function(){u=!0,o.removeEventListener("load",l),o.removeEventListener("error",p),c()}})},t}();D.decorators=[{type:n.Injectable}],D.ctorParameters=function(){return[{type:j},{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]}]};var L=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t}();L.decorators=[{type:n.Injectable}],L.ctorParameters=function(){return[{type:D}]};var F=/^\)\]\}',?\n/,V=function(){function t(){}return t.prototype.build=function(){},t}(),U=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();U.decorators=[{type:n.Injectable}],U.ctorParameters=function(){return[]};var B=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new u.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}t.responseType&&(r.responseType=t.responseType.toLowerCase());var o=t.serializeBody(),s=null,a=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new C(r.getAllResponseHeaders()),o=y(r)||t.url;return s=new P({headers:i,status:e,statusText:n,url:o})},u=function(){var e=a(),i=e.headers,o=e.status,s=e.statusText,u=e.url,c=null;204!==o&&"string"==typeof(c=void 0===r.response?r.responseText:r.response)&&(c=c.replace(F,"")),0===o&&(o=c?200:0);var l=o>=200&&o<300;if(l&&"string"==typeof c&&"json"===t.responseType)try{c=JSON.parse(c)}catch(t){l=!1,c={error:t,text:c}}l?(n.next(new A({body:c,headers:i,status:o,statusText:s,url:u||void 0})),n.complete()):n.error(new O({error:c,headers:i,status:o,statusText:s,url:u||void 0}))},c=function(t){var e=new O({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},l=!1,p=function(e){l||(n.next(a()),l=!0);var i={type:x.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},h=function(t){var e={type:x.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:x.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}();B.decorators=[{type:n.Injectable}],B.ctorParameters=function(){return[{type:V}]};var H=new n.InjectionToken("XSRF_COOKIE_NAME"),q=new n.InjectionToken("XSRF_HEADER_NAME"),z=function(){function t(){}return t.prototype.getToken=function(){},t}(),G=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=a.ɵparseCookieValue(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}();G.decorators=[{type:n.Injectable}],G.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]},{type:void 0,decorators:[{type:n.Inject,args:[H]}]}]};var W=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}();W.decorators=[{type:n.Injectable}],W.ctorParameters=function(){return[{type:z},{type:void 0,decorators:[{type:n.Inject,args:[q]}]}]};var $=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:W,useClass:k}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:H,useValue:e.cookieName}:[],e.headerName?{provide:q,useValue:e.headerName}:[]]}},t}();$.decorators=[{type:n.NgModule,args:[{providers:[W,{provide:R,useExisting:W,multi:!0},{provide:z,useClass:G},{provide:H,useValue:"XSRF-TOKEN"},{provide:q,useValue:"X-XSRF-TOKEN"}]}]}],$.ctorParameters=function(){return[]};var K=function(){function t(){}return t}();K.decorators=[{type:n.NgModule,args:[{imports:[$.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[N,{provide:_,useFactory:v,deps:[b,[new n.Optional,new n.Inject(R)]]},B,{provide:b,useExisting:B},U,{provide:V,useExisting:U}]}]}],K.ctorParameters=function(){return[]};var Q=function(){function t(){}return t}();Q.decorators=[{type:n.NgModule,args:[{providers:[D,{provide:j,useFactory:g},{provide:R,useClass:L,multi:!0}]}]}],Q.ctorParameters=function(){return[]},t.HttpBackend=b,t.HttpHandler=_,t.HttpClient=N,t.HttpHeaders=C,t.HTTP_INTERCEPTORS=R,t.JsonpClientBackend=D,t.JsonpInterceptor=L,t.HttpClientJsonpModule=Q,t.HttpClientModule=K,t.HttpClientXsrfModule=$,t.ɵinterceptingHandler=v,t.HttpParams=E,t.HttpUrlEncodingCodec=w,t.HttpRequest=S,t.HttpErrorResponse=O,t.HttpEventType=x,t.HttpHeaderResponse=P,t.HttpResponse=A,t.HttpResponseBase=T,t.HttpXhrBackend=B,t.XhrFactory=V,t.HttpXsrfTokenExtractor=z,t.ɵa=k,t.ɵb=j,t.ɵc=g,t.ɵd=U,t.ɵg=G,t.ɵh=W,t.ɵe=H,t.ɵf=q,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":27,"@angular/core":29,"rxjs/Observable":38,"rxjs/observable/of":58,"rxjs/operator/concatMap":61,"rxjs/operator/filter":63,"rxjs/operator/map":66,tslib:91}],27:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.common=r.ng.common||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}k(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function i(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?q.One:q.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?q.One:q.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?q.One:q.Other;case"ar":return 0===n?q.Zero:1===n?q.One:2===n?q.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?q.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?q.Many:q.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?q.One:q.Other;case"be":return n%10==1&&n%100!=11?q.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?q.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?q.Many:q.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?q.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?q.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?q.Few:0!==n&&n%1e6==0?q.Many:q.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?q.Few:q.Other;case"cs":case"sk":return 1===i&&0===o?q.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?q.Few:0!==o?q.Many:q.Other;case"cy":return 0===n?q.Zero:1===n?q.One:2===n?q.Two:3===n?q.Few:6===n?q.Many:q.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?q.One:q.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?q.One:0===o&&i%100==2||s%100==2?q.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?q.Few:q.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?q.One:q.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?q.One:q.Other;case"ga":return 1===n?q.One:2===n?q.Two:n===Math.floor(n)&&n>=3&&n<=6?q.Few:n===Math.floor(n)&&n>=7&&n<=10?q.Many:q.Other;case"gd":return 1===n||11===n?q.One:2===n||12===n?q.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?q.Few:q.Other;case"gv":return 0===o&&i%10==1?q.One:0===o&&i%10==2?q.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?q.Many:q.Other:q.Few;case"he":return 1===i&&0===o?q.One:2===i&&0===o?q.Two:0!==o||n>=0&&n<=10||n%10!=0?q.Other:q.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?q.One:q.Other;case"ksh":return 0===n?q.Zero:1===n?q.One:q.Other;case"kw":case"naq":case"se":case"smn":return 1===n?q.One:2===n?q.Two:q.Other;case"lag":return 0===n?q.Zero:0!==i&&1!==i||0===n?q.Other:q.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?q.Few:0!==s?q.Many:q.Other:q.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?q.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?q.One:q.Other;case"mk":return 0===o&&i%10==1||s%10==1?q.One:q.Other;case"mt":return 1===n?q.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?q.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?q.Many:q.Other;case"pl":return 1===i&&0===o?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?q.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?q.Many:q.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?q.One:q.Other;case"ro":return 1===i&&0===o?q.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?q.Few:q.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?q.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?q.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?q.Many:q.Other;case"shi":return 0===i||1===n?q.One:n===Math.floor(n)&&n>=2&&n<=10?q.Few:q.Other;case"si":return 0===n||1===n||0===i&&1===s?q.One:q.Other;case"sl":return 0===o&&i%100==1?q.One:0===o&&i%100==2?q.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?q.Few:q.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?q.One:q.Other;default:return q.Other}}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t){return t.name||typeof t}function c(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function l(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function p(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function h(t){return function(e,n){return t(e,n).split(" ")[0]}}function f(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function d(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=f(t,n,e);return r?r.substring(3):""}}function m(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function v(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function g(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function _(t){return function(e,n){return f(e,n,t)}}function b(t,e,n){var r=vt[t];if(r)return r(e,n);var i=t,o=_t.get(i);if(!o){o=[];var s=void 0;yt.exec(t);for(var a=t;a;)(s=yt.exec(a))?a=(o=o.concat(s.slice(1))).pop():(o.push(a),a=null);_t.set(i,o)}return o.reduce(function(t,r){var i=gt[r];return t+(i?i(e,n):w(r))},"")}function w(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function E(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&S(n)?+n:n))throw c(t,n);var a=void 0,u=void 0,l=void 0;if(r!==dt.Currency&&(a=1,u=0,l=3),i){var p=i.match(wt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=C(p[1])),null!=p[3]&&(u=C(p[3])),null!=p[5]&&(l=C(p[5]))}return mt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function S(t){return!isNaN(t-parseFloat(t))}function x(t){return null==t||""===t}function T(t){return t instanceof Date&&!isNaN(t.valueOf())}function P(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=A(t[9]+t[10]),r=A(t[9]+t[11])),i.call(e,A(t[1]),A(t[2])-1,A(t[3]));var s=A(t[4]||"0")-n,a=A(t[5]||"0")-r,u=A(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function A(t){return parseInt(t,10)}function O(t){return t===jt}function N(t){return t===Dt}function M(t){return t===Lt}function R(t){return t===Ft}var k=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),j=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),L=new e.InjectionToken("appBaseHref"),F=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var o=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(i(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,i(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t}();F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return n(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=F.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},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:[L]}]}]};var U=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return n(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 F.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+F.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);U.decorators=[{type:e.Injectable}],U.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[L]}]}]};var B=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),H=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return n(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case q.Zero:return"zero";case q.One:return"one";case q.Two:return"two";case q.Few:return"few";case q.Many:return"many";default:return"other"}},e}(B);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var q={};q.Zero=0,q.One=1,q.Two=2,q.Few=3,q.Many=4,q.Other=5,q[q.Zero]="Zero",q[q.One]="One",q[q.Two]="Two",q[q.Few]="Few",q[q.Many]="Many",q[q.Other]="Other";var z=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],z.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},z.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var G=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();G.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],G.ctorParameters=function(){return[{type:e.ViewContainerRef}]},G.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var W=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),$=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+u(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new W(null,e.ngForOf,-1,-1),i),s=new K(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{o=e._viewContainer.get(r);e._viewContainer.move(o,i);s=new K(t,o);n.push(s)}});for(r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();$.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],$.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},$.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=$,J=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}();J.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},J.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}(),Y=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}(),Z=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}();Z.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Z.ctorParameters=function(){return[]},Z.propDecorators={ngSwitch:[{type:e.Input}]};var tt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Y(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]},tt.propDecorators={ngSwitchCase:[{type:e.Input}]};var et=function(){function t(t,e,n){n._addDefault(new Y(t,e))}return t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],et.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]};var nt=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}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],nt.ctorParameters=function(){return[{type:B}]},nt.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new Y(n,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:nt,decorators:[{type:e.Host}]}]};var it=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();it.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],it.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},it.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(t){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 st=[z,G,$,J,ot,it,Z,tt,et,nt,rt],at=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}(),ut=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),ct=new at,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(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return ut;if(e.ɵisObservable(n))return ct;throw c(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();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 c(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 c(t,e);return e.split(/\b/g).map(function(t){return l(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 c(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,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:dt[n].toLowerCase()};return n==dt.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,vt={yMMMdjms:_(g([y("year",1),v("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:_(g([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:_(g([y("year",1),v("month",4),v("weekday",4),y("day",1)])),yMMMMd:_(g([y("year",1),v("month",4),y("day",1)])),yMMMd:_(g([y("year",1),v("month",3),y("day",1)])),yMd:_(g([y("year",1),y("month",1),y("day",1)])),jms:_(g([y("hour",1),y("second",1),y("minute",1)])),jm:_(g([y("hour",1),y("minute",1)]))},gt={yyyy:_(y("year",4)),yy:_(y("year",2)),y:_(y("year",1)),MMMM:_(v("month",4)),MMM:_(v("month",3)),MM:_(y("month",2)),M:_(y("month",1)),LLLL:_(v("month",4)),L:_(v("month",1)),dd:_(y("day",2)),d:_(y("day",1)),HH:p(h(_(m(y("hour",2),!1)))),H:h(_(m(y("hour",1),!1))),hh:p(h(_(m(y("hour",2),!0)))),h:h(_(m(y("hour",1),!0))),jj:_(y("hour",2)),j:_(y("hour",1)),mm:p(_(y("minute",2))),m:_(y("minute",1)),ss:p(_(y("second",2))),s:_(y("second",1)),sss:_(y("second",3)),EEEE:_(v("weekday",4)),EEE:_(v("weekday",3)),EE:_(v("weekday",2)),E:_(v("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(_(m(y("hour",1),!0))),Z:d("short"),z:d("long"),ww:_({}),w:_({}),G:_(v("era",1)),GG:_(v("era",2)),GGG:_(v("era",3)),GGGG:_(v("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,n){return b(n,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return E(t,this._locale,e,dt.Decimal,n)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return E(t,this._locale,e,dt.Percent,n)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Ct.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,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),E(t,this._locale,e,dt.Currency,i,n,r)},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,n){void 0===n&&(n="mediumDate");var r;if(x(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),T(e))r=e;else if(S(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!T(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw c(t,e);r=P(u)}return bt.format(r,this._locale,t._ALIASES[n]||n)},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,n){if(null==e)return"";if("object"!=typeof n||null===n)throw c(t,n);return n[o(e,Object.keys(n),this._localization)].replace(Pt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:B}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw c(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Nt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Nt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Nt.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw c(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=[lt,ft,pt,Nt,Mt,Et,Ct,ht,St,Tt,At,Ot],kt=function(){function t(){}return t}();kt.decorators=[{type:e.NgModule,args:[{declarations:[st,Rt],exports:[st,Rt],providers:[{provide:B,useClass:H}]}]}],kt.ctorParameters=function(){return[]};var It=new e.InjectionToken("DocumentToken"),jt="browser",Dt="server",Lt="browserWorkerApp",Ft="browserWorkerUi",Vt=new e.Version("4.3.0");t.NgLocaleLocalization=H,t.NgLocalization=B,t.ɵparseCookieValue=a,t.CommonModule=kt,t.NgClass=z,t.NgFor=Q,t.NgForOf=$,t.NgForOfContext=W,t.NgIf=J,t.NgIfContext=X,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=Z,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.NgComponentOutlet=G,t.DOCUMENT=It,t.AsyncPipe=lt,t.DatePipe=Tt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Nt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Et,t.PercentPipe=Ct,t.SlicePipe=Mt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=jt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=Lt,t.ɵPLATFORM_WORKER_UI_ID=Ft,t.isPlatformBrowser=O,t.isPlatformServer=N,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=j,t.LocationStrategy=D,t.APP_BASE_HREF=L,t.HashLocationStrategy=V,t.PathLocationStrategy=U,t.Location=F,t.ɵa=st,t.ɵb=Rt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":29}],28:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.compiler=r.ng.compiler||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}ni(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function i(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"===i(t)[1]}function s(t){return"ng-content"===i(t)[1]}function a(t){return"ng-template"===i(t)[1]}function u(t){return null===t?null:i(t)[0]}function c(t,e){return t?":"+t+":"+e:e}function l(t){return Ti[t.toLowerCase()]||Pi}function p(t){return t.replace(ki,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function h(t,e){return d(t,":",e)}function f(t,e){return d(t,".",e)}function d(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function m(t,e,n){return Array.isArray(t)?e.visitArray(t,n):E(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function y(t){return null!==t&&void 0!==t}function v(t){return void 0===t?null:t}function g(t,e){var n=Error(t);return n[Di]=!0,e&&(n[Li]=e),n}function _(t){return t[Di]}function b(t){return t[Li]||[]}function w(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function E(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Fi}function C(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function S(t){return t.replace(/\W/g,"_")}function x(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof wi)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+Xi++,n.__anonymousType=r):r=S(r),r}function T(t){var n=t.reference;return n instanceof wi?n.filePath:"./"+e.ɵstringify(n)}function P(t,e){return"View_"+x({reference:t})+"_"+e}function A(t){return"RenderType_"+x({reference:t})}function O(t){return"HostView_"+x({reference:t})}function N(t){return x({reference:t})+"NgFactory"}function M(t){return null!=t.value?S(t.value):x(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function k(t,n,r){var i=Oi.parse(n.selector)[0].getMatchingElementTemplate();return eo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new to({encapsulation:e.ViewEncapsulation.None,template:i,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function I(t){return t||[]}function j(t){return t.reduce(function(t,e){var n=Array.isArray(e)?j(e):e;return t.concat(n)},[])}function D(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function L(t,e,n){var r;return r=n.isInline?e.type.reference instanceof wi?e.type.reference.filePath+"."+e.type.reference.name+".html":x(t)+"/"+x(e.type)+".html":n.templateUrl,D(r)}function F(t,e){var n=t.moduleUrl.split(/\/\\/g);return D("css/"+e+n[n.length-1]+".ngstyle.js")}function V(t){return D(x(t.type)+"/module.ngfactory.js")}function U(t,e){return D(x(t)+"/"+x(e.type)+".ngfactory.js")}function B(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}function H(t){return t>=Vo&&t<=zo||t==ys}function q(t){return ts<=t&&t<=es}function z(t){return t>=as&&t<=ds||t>=ns&&t<=os}function G(t){return t>=as&&t<=cs||t>=ns&&t<=is||q(t)}function W(){return function(t){return t}}function $(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function K(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],i=n[1];gs.forEach(function(t){if(t.test(r)||t.test(i))throw new Error("['"+r+"', '"+i+"'] contains unusable interpolation symbol.")})}}function Q(t,e){return new Ss(t,ws.Character,e,String.fromCharCode(e))}function J(t,e){return new Ss(t,ws.Identifier,0,e)}function X(t,e){return new Ss(t,ws.Keyword,0,e)}function Y(t,e){return new Ss(t,ws.Operator,0,e)}function Z(t,e){return new Ss(t,ws.String,0,e)}function tt(t,e){return new Ss(t,ws.Number,e,"")}function et(t,e){return new Ss(t,ws.Error,0,e)}function nt(t){return as<=t&&t<=ds||ns<=t&&t<=os||t==ss||t==Wo}function rt(t){if(0==t.length)return!1;var e=new Ts(t);if(!nt(e.peek))return!1;for(e.advance();e.peek!==Fo;){if(!it(e.peek))return!1;e.advance()}return!0}function it(t){return z(t)||q(t)||t==ss||t==Wo}function ot(t){return t==us||t==rs}function st(t){return t==Qo||t==Ko}function at(t){return t===$o||t===Go||t===vs}function ut(t){switch(t){case ls:return Uo;case cs:return Ho;case ps:return qo;case hs:return Vo;case fs:return Bo;default:return t}}function ct(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function lt(t){var e=w(t.start)+"([\\s\\S]*?)"+w(t.end);return new RegExp(e,"g")}function pt(t,e){var n=T(e),r=null!=n?"in "+t+" "+x(e)+" in "+n:"in "+t+" "+x(e),i=new ks("",r);return new Is(new Rs(i,-1,-1,-1),new Rs(i,-1,-1,-1))}function ht(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function ft(t){var e=t.sourceSpan.start.offset,n=t.sourceSpan.end.offset;return t instanceof Hs&&(t.endSourceSpan?n=t.endSourceSpan.end.offset:t.children&&t.children.length&&(n=ft(t.children[t.children.length-1]).end)),{start:e,end:n}}function dt(t,e){var r=[];return ht(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.visit=function(t,n){var i=ft(t);if(!(i.start<=e&&e<i.end))return!0;r.push(t)},i}(zs)),t),new Ls(r,e)}function mt(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=bs),new Xs(new ks(t,e),n,r,i).tokenize()}function yt(t){return'Unexpected character "'+(t===Fo?"EOF":String.fromCharCode(t))+'"'}function vt(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function gt(t){return!H(t)||t===Fo}function _t(t){return H(t)||t===Zo||t===Jo||t===$o||t===Go||t===Yo}function bt(t){return(t<as||ds<t)&&(t<ns||os<t)&&(t<ts||t>es)}function wt(t){return t==Xo||t==Fo||!G(t)}function Et(t){return t==Xo||t==Fo||!z(t)}function Ct(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==ms&&!r}function St(t){return t===Yo||z(t)}function xt(t,e){return Tt(t)==Tt(e)}function Tt(t){return t>=as&&t<=ds?t-as+ns:t}function Pt(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Gs.TEXT&&i.type==Gs.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}function At(t,e){return t.length>0&&t[t.length-1]===e}function Ot(t){return t.id||Rt(Mt(t.nodes).join("")+"["+t.meaning+"]")}function Nt(t){if(t.id)return t.id;var e=new ia;return jt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Mt(t){return t.map(function(t){return t.visit(ra,null)})}function Rt(t){var e=C(t),n=zt(e,oa.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;g<80;g++){i[g]=g<16?n[p+g]:Ht(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var _=kt(g,a,u,c),b=_[0],w=_[1],E=[Ht(s,5),b,l,w,i[g]].reduce(Ft);l=(S=[c,u,Ht(a,30),s,E])[0],c=S[1],u=S[2],a=S[3],s=S[4]}s=(x=[Ft(s,f),Ft(a,d),Ft(u,m),Ft(c,y),Ft(l,v)])[0],a=x[1],u=x[2],c=x[3],l=x[4]}return Qt($t([s,a,u,c,l]));var S,x}function kt(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function It(t){var e=C(t),n=[Dt(e,0),Dt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function jt(t,e){var n=It(t),r=n[0],i=n[1];if(e){var o=It(e),s=o[0],a=o[1];r=(u=Ut(qt([r,i],1),[s,a]))[0],i=u[1]}return Jt($t([2147483647&r,i]));var u}function Dt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;n+12<=s;n+=12)i=(a=Lt([i=Ft(i,Wt(t,n,oa.Little)),o=Ft(o,Wt(t,n+4,oa.Little)),e=Ft(e,Wt(t,n+8,oa.Little))]))[0],o=a[1],e=a[2];return i=Ft(i,Wt(t,n,oa.Little)),o=Ft(o,Wt(t,n+4,oa.Little)),e=Ft(e,s),e=Ft(e,Wt(t,n+8,oa.Little)<<8),Lt([i,o,e])[2];var a}function Lt(t){var e=t[0],n=t[1],r=t[2];return e=Bt(e,n),e=Bt(e,r),e^=r>>>13,n=Bt(n,r),n=Bt(n,e),n^=e<<8,r=Bt(r,e),r=Bt(r,n),r^=n>>>13,e=Bt(e,n),e=Bt(e,r),e^=r>>>12,n=Bt(n,r),n=Bt(n,e),n^=e<<16,r=Bt(r,e),r=Bt(r,n),r^=n>>>5,e=Bt(e,n),e=Bt(e,r),e^=r>>>3,n=Bt(n,r),n=Bt(n,e),n^=e<<10,r=Bt(r,e),r=Bt(r,n),r^=n>>>15,[e,n,r]}function Ft(t,e){return Vt(t,e)[1]}function Vt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Ut(t,e){var n=t[0],r=t[1],i=e[0],o=Vt(r,e[1]),s=o[0],a=o[1];return[Ft(Ft(n,i),s),a]}function Bt(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Ht(t,e){return t<<e|t>>>32-e}function qt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function zt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Wt(t,4*r,e);return n}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,n){var r=0;if(n===oa.Big)for(i=0;i<4;i++)r+=Gt(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)r+=Gt(t,e+i)<<8*i;return r}function $t(t){return t.reduce(function(t,e){return t+Kt(e)},"")}function Kt(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Qt(t){for(var e="",n=0;n<t.length;n++){var r=Gt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Jt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Xt(e,Yt(Gt(t,r),n)),n=Yt(256,n);return e.split("").reverse().join("")}function Xt(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function Yt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Xt(n,r)),r=Xt(r,r);return n}function Zt(t){var e=new ga(va,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function te(t){return t.split(_a)[2]}function ee(t,e,n,r){return new Pa(n,r).extract(t,e)}function ne(t,e,n,r,i){return new Pa(r,i).merge(t,e,n)}function re(t){return!!(t instanceof qs&&t.value&&t.value.startsWith("i18n"))}function ie(t){return!!(t instanceof qs&&t.value&&"/i18n"===t.value)}function oe(t){return t.attrs.find(function(t){return t.name===wa})||null}function se(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Sa),n=t.indexOf(Ca),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function ae(t){return Aa}function ue(t){return t.map(function(t){return t.visit(Ra)}).join("")}function ce(t){return Fa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function le(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function pe(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 he(t){return Nt(t)}function fe(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function de(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function me(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new $a;case"xtb":return new Ja;case"xliff2":case"xlf2":return new qa;case"xliff":case"xlf":default:return new Va}}function ye(t){return{identifier:{reference:t}}}function ve(t,e){return ye(t.resolveExternalReference(e))}function ge(t){var e=new uu;return new su(ht(e,t),e.isExpanded,e.errors)}function _e(t,e){var n=t.cases.map(function(t){-1!=ou.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new au(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+ou.join(", ")));var n=ge(t.expression);return e.push.apply(e,n.errors),new Hs("ng-template",[new Bs("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Bs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Hs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function be(t,e){var n=t.cases.map(function(t){var n=ge(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Hs("ng-template",[new Bs("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Hs("ng-template",[new Bs("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Bs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Hs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function we(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Ee(t,e){var n=e.eager,r=e.providers;return new mi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ce(t,e,n){var r=new Map;return t.forEach(function(t){Se([{token:{identifier:t.type},useClass:t.type}],t.isComponent?yi.Component:yi.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){Se(t.providers,yi.PublicService,!1,e,n,r),Se(t.viewProviders,yi.PrivateService,!1,e,n,r)}),r}function Se(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&i.push(new cu("Mixing multi and non multi provider is not possible for token "+M(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new mi(t.token,!!t.multi,n||u,[t],e,a,r),o.set(R(t.token),s)}})}function xe(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Pe(n,{meta:t,queryId:e++})}),n}function Te(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Pe(r,{meta:t,queryId:n++})})}),r}function Pe(t,e){e.meta.selectors.forEach(function(n){var r=t.get(R(n));r||(r=[],t.set(R(n),r)),r.push(e)})}function Ae(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(vu);return null===e||"package"==e[1]||"asset"==e[1]}function Oe(t,e,n){var r=[],i=n.replace(yu,"").replace(mu,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return Ae(o)?(r.push(t.resolve(e,o)),""):n[0]});return new du(i,r)}function Ne(t){return"@"==t[0]}function Me(t,n,r,i){var o=[];return Oi.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,r,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function Re(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Eu?e=t.value:s==xu?n=t.value:s==Su?r=t.value:t.name==Ou?i=!0:t.name==Nu&&t.value.length>0&&(o=t.value)}),e=ke(e);var a=t.name.toLowerCase(),u=Mu.OTHER;return s(a)?u=Mu.NG_CONTENT:a==Pu?u=Mu.STYLE:a==Au?u=Mu.SCRIPT:a==Cu&&r==Tu&&(u=Mu.STYLESHEET),new Ru(u,e,n,i,o)}function ke(t){return null===t||0===t.length?"*":t}function Ie(t){return function(e){return-1===t.indexOf(e.msg)||(Fu[e.msg]=(Fu[e.msg]||0)+1,Fu[e.msg]<=1)}}function je(t){return t.trim().split(/\s+/g)}function De(t,e){var n=new Oi,r=i(t)[1];n.setElement(r);for(var o=0;o<e.length;o++){var s=e[o][0],a=i(s)[1],u=e[o][1];n.addAttribute(a,u),s.toLowerCase()==ju&&je(u).forEach(function(t){return n.addClassName(t)})}return n}function Le(t){return t instanceof Fs&&0==t.value.trim().length}function Fe(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 ko&&(t=t.ast),t instanceof ho}function Ue(t,e,n){if(a(t.name))return!0;var r=i(t.name)[1];return!(r.toLowerCase()!==Iu||!e||r.toLowerCase()!==Iu)&&(n(Lu,t.sourceSpan),!0)}function Be(){return new Xu}function He(){return new Xu(".")}function qe(t){var e=Ge(t);return e&&e[Zu.Scheme]||""}function ze(t,e,n,r,i,o,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=o&&a.push("?"+o),null!=s&&a.push("#"+s),a.join("")}function Ge(t){return t.match(Yu)}function We(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function $e(t){var e=t[Zu.Path];return e=null==e?"":We(e),t[Zu.Path]=e,ze(t[Zu.Scheme],t[Zu.UserInfo],t[Zu.Domain],t[Zu.Port],e,t[Zu.QueryData],t[Zu.Fragment])}function Ke(t,e){var n=Ge(encodeURI(e)),r=Ge(t);if(null!=n[Zu.Scheme])return $e(n);n[Zu.Scheme]=r[Zu.Scheme];for(var i=Zu.Scheme;i<=Zu.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Zu.Path][0])return $e(n);var o=r[Zu.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Zu.Path],n[Zu.Path]=o,$e(n)}function Qe(t){return t instanceof e.Directive}function Je(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Xe(t,e){void 0===e&&(e=!1);var n=tn(t,e);return n[0]+".ngfactory"+n[1]}function Ye(t){return t.replace(ic,".")}function Ze(t){return ic.test(t)}function tn(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function en(t){return t.replace(rc,"")+".ngsummary.json"}function nn(t,e){void 0===e&&(e=!1);var n=tn(Ye(t),e);return n[0]+".ngsummary"+n[1]}function rn(t){return t.replace(oc,".")}function on(t){return t+"NgSummary"}function sn(t){return t.replace(sc,"")}function an(t,e,n){return t.hasLifecycleHook(n,cn(e))}function un(t,e){return uc.filter(function(n){return an(t,n,e)})}function cn(t){switch(t){case ac.OnInit:return"ngOnInit";case ac.OnDestroy:return"ngOnDestroy";case ac.DoCheck:return"ngDoCheck";case ac.OnChanges:return"ngOnChanges";case ac.AfterContentInit:return"ngAfterContentInit";case ac.AfterContentChecked:return"ngAfterContentChecked";case ac.AfterViewInit:return"ngAfterViewInit";case ac.AfterViewChecked:return"ngAfterViewChecked"}}function ln(t){return t instanceof e.NgModule}function pn(t){return t instanceof e.Pipe}function hn(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=e.resolveForwardRef(t[r]);Array.isArray(i)?hn(i,n):n.push(i)}return n}function fn(t){return t?Array.from(new Set(t)):[]}function dn(t){return fn(hn(t))}function mn(t){return t instanceof wi||t instanceof e.Type}function yn(t,e){m(t,new mc,e)}function vn(t){return t instanceof wi?t.name+" in "+t.filePath:e.ɵstringify(t)}function gn(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function _n(t){var e=new yl;return e.visitAllStatements(t,null),e.varNames}function bn(t,e){if(!e)return t;var n=new vl(e);return t.visitStatement(n,null)}function wn(t,e){if(!e)return t;var n=new vl(e);return t.visitExpression(n,null)}function En(t,e,n){return new Oc(t,e,n)}function Cn(t,e,n){return void 0===e&&(e=null),new Fc(t,null,e,n)}function Sn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?xn(Cn(t,e,null),n):null}function xn(t,e){return void 0===e&&(e=null),null!=t?new bc(t,e):null}function Tn(t,e,n){return new Qc(t,e,n)}function Pn(t,e){return void 0===e&&(e=null),new Xc(t.map(function(t){return new Jc(t.key,t.value,t.quoted)}),e,null)}function An(t,e){return new Bc(t,e)}function On(t,e){return new Hc(t,e)}function Nn(t,e,n,r){return new Gc(t,e,n,r)}function Mn(t,e,n){return new Lc(t,e,n)}function Rn(t,e,n){return void 0===n&&(n=null),m(e,new gl(t),n)}function kn(t,e){var n=0;e.eager||(n|=4096),e.providerType===yi.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==ac.OnDestroy&&e.providerType!==yi.Directive&&e.providerType!==yi.Component||(n|=Fn(t))});var r=e.multiProvider?In(t,n,e.providers):jn(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:Dn(t,e.token)}}function In(t,e,n){function r(e,n){return n.map(function(n,r){var s="p"+e+"_"+r;return o.push(new zc(s,Cc)),i.push(Ln(t,n)),En(s)})}var i=[],o=[],s=n.map(function(e,n){var i;if(e.useClass){o=r(n,e.deps||e.useClass.diDeps);i=t.importExpr(e.useClass.reference).instantiate(o)}else if(e.useFactory){var o=r(n,e.deps||e.useFactory.diDeps);i=t.importExpr(e.useFactory.reference).callFn(o)}else i=e.useExisting?(o=r(n,[{token:e.useExisting}]))[0]:Rn(t,e.useValue);return i});return{providerExpr:Nn(o,[new sl(Tn(s))],Sc),flags:1024|e,depsExpr:Tn(i)}}function jn(t,e,n,r){var i,o;return n===yi.Directive||n===yi.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=Zc,e|=2048,o=[{token:r.useExisting}]):(i=Rn(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:Tn(o.map(function(e){return Ln(t,e)}))}}function Dn(t,e){return e.identifier?t.importExpr(e.identifier.reference):Mn(e.value)}function Ln(t,e){var n=e.isValue?Rn(t,e.value):Dn(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:Tn([Mn(r),n])}function Fn(t){var e=0;switch(t){case ac.AfterContentChecked:e=2097152;break;case ac.AfterContentInit:e=1048576;break;case ac.AfterViewChecked:e=8388608;break;case ac.AfterViewInit:e=4194304;break;case ac.DoCheck:e=262144;break;case ac.OnChanges:e=524288;break;case ac.OnDestroy:e=131072;break;case ac.OnInit:e=65536}return e}function Vn(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=ve(t,iu.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:Tn(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:ve(t,iu.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(iu.CodegenComponentFactoryResolver)},a=jn(e,n,yi.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:Dn(e,o)}}function Un(t){var e="";t=C(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Hn(r>>2),e+=Hn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Hn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Hn(63&o)}return e}function Bn(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Hn(n)}while(t>0);return e}function Hn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return Cl[t]}function qn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(Sl,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!xl.test(r)?"'"+r+"'":r}function zn(t){for(var e="",n=0;n<t;n++)e+=Tl;return e}function Gn(t){var e=new kl,n=Nl.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof nl)t.visitStatement(e,n);else if(t instanceof Pc)t.visitExpression(e,n);else{if(!(t instanceof vc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Wn(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];Il[i.toLowerCase()]=t}}function $n(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 Kn(t){return t.replace(sp,"")}function Qn(t){var e=t.match(ap);return e?e[0]:""}function Jn(t,e){var n=Xn(t),r=0;return n.escapedString.replace(up,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+hp)&&(s=n.blocks[r++],a=a.substring(hp.length+1),u="{");var c=e(new fp(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Xn(t){for(var e=t.split(cp),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==pp&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(hp),o=[]),n.push(a)),a==lp&&i++}return o.length>0&&(r.push(o.join("")),n.push(hp)),new dp(n.join(""),r)}function Yn(t){var e="styles";return t&&(e+="_"+x(t.type)),e}function Zn(t,e,n,r){t||(t=new Sp);var i=tr({createLiteralArrayConverter:function(t){return function(t){return Tn(t)}},createLiteralMapConverter:function(t){return function(e){return Pn(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new Cp(t,e,r),s=[];cr(i.visit(o,wp.Statement),s),or(o.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=hr(s[a]);c&&(u=pr(r),s[a]=u.set(c.cast(Cc).notIdentical(Mn(!1))).toDeclStmt(null,[el.Final]))}return new _p(s,u)}function tr(t,e){return nr(t,e)}function er(t,e,n,r){t||(t=new Sp);var i=lr(r),o=[],s=new Cp(t,e,r),a=n.visit(s,wp.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)o.push(ir(r,u));return o.push(i.set(a).toDeclStmt(null,[el.Final])),new bp(o,i)}function nr(t,e){var n=new Ep(t);return e.visit(n)}function rr(t,e){return"tmp_"+t+"_"+e}function ir(t,e){return new rl(rr(t,e),Zc)}function or(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(ir(e,r))}function sr(t,e){if(t!==wp.Statement)throw new Error("Expected a statement, but saw "+e)}function ar(t,e){if(t!==wp.Expression)throw new Error("Expected an expression, but saw "+e)}function ur(t,e){return t===wp.Statement?e.toStmt():e}function cr(t,e){Array.isArray(t)?t.forEach(function(t){return cr(t,e)}):e.push(t)}function lr(t){return En("currVal_"+t)}function pr(t){return En("pd_"+t)}function hr(t){return t instanceof ol?t.expr:t instanceof sl?t.value:null}function fr(t){var e=t[t.length-1];return e instanceof hi?e.hasViewContainer:e instanceof pi?o(e.name)&&e.children.length?fr(e.children):e.hasViewContainer:e instanceof vi}function dr(t,e){switch(t.type){case gi.Attribute:return Tn([Mn(1),Mn(t.name),Mn(t.securityContext)]);case gi.Property:return Tn([Mn(8),Mn(t.name),Mn(t.securityContext)]);case gi.Animation:return Tn([Mn(8|(e&&e.directive.isComponent?32:16)),Mn("@"+t.name),Mn(t.securityContext)]);case gi.Class:return Tn([Mn(2),Mn(t.name),Zc]);case gi.Style:return Tn([Mn(4),Mn(t.name),Mn(t.unit)])}}function mr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?yr(n,i,r):r})}),Tn(Object.keys(e).sort().map(function(t){return Tn([Mn(t),Mn(e[t])])}))}function yr(t,e,n){return t==Tp||t==Pp?e+" "+n:n}function vr(t,e){return e.length>10?Rp.callFn([Mp,Mn(t),Mn(1),Tn(e)]):Rp.callFn([Mp,Mn(t),Mn(0)].concat(e))}function gr(t,e,n){return Cn(iu.unwrapValue).callFn([Mp,Mn(t),Mn(e),n])}function _r(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof pi?(_r(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof hi&&(_r(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function br(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function wr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Er(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function Cr(t,e){if(void 0===e&&(e=""),!t.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+t.genFileUrl);return(new Rl).emitStatements(D(t.srcFileUrl),t.genFileUrl,t.stmts,e)}function Sr(t,e,n,r,i){var o=new Fp(n,e),s=new Vp(t,n);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var a=0;a<o.symbols.length;a++){var u=o.symbols[a];if(e.isLibraryFile(u.filePath)){var c=e.resolveSummary(u);if(!c){var l=n.resolveSymbol(u);l&&(c={symbol:l.symbol,metadata:l.metadata})}c&&(c.type&&s.addLibType(c.type),o.addOrMergeSummary(c))}}i.forEach(function(t){var n=t.summary,r=t.metadata;if(s.addSourceType(n,r),o.addOrMergeSummary({symbol:n.type.reference,metadata:null,type:n}),n.summaryKind===Yi.NgModule){var i=n;i.exportedDirectives.concat(i.exportedPipes).forEach(function(t){var n=t.reference;if(e.isLibraryFile(n.filePath)){var r=e.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}});var p=o.serialize(),h=p.json,f=p.exportAs;return s.serialize(f),{json:h,exportAs:f}}function xr(t,e){return new Up(t).deserialize(e)}function Tr(t,e){return Pr(t,e,Zc)}function Pr(t,e,n){var r=on(e.name);t.statements.push(Nn([],[new sl(n)],new wc(Cc)).toDeclStmt(r,[el.Final,el.Exported]))}function Ar(t,e){t.statements.push(Cn(e).toStmt())}function Or(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Nr(e.moduleUrl,n,r),e.name))})}function Nr(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Mr(t,e,n){var r=jr(t,e,n);return kr(t,r.ngModules,r.symbolsMissingModule,n)}function Rr(t,e,n){var r=Mr(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length)throw g(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"));return r}function kr(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:e,symbolsMissingModule:n}}function Ir(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function jr(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Dr(t){return t&&"ignore"==t.__symbolic}function Lr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Fr(t){return"Error encountered resolving symbol values statically. "+Lr(t)}function Vr(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);Dr(i)||(qp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Ur(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Br(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function Hr(t){return t.startsWith("___")?t.substr(1):t}function qr(t,n){var r=n.translations||"",i=He(),o=new Ei,s=new Zp(t,o),a=new Yp(t,o,s),u=new Kp(s,a),c=new e.ɵConsole,l=new nu(new Za,r,n.i18nFormat,n.missingTranslation,c),p=new ao({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:!1!==n.enableLegacyTemplate,missingTranslation:n.missingTranslation}),h=new tc({get:function(e){return t.loadResource(e)}},i,l,p),f=new Os(new Cs),d=new Bl,m=new Hu(p,u,f,d,l,c,[]),y=new dc(p,new cc(u),new nc(u),new lc(u),s,d,h,c,o,u),v=new Op(p,u,d);return{compiler:new Bp(p,t,u,y,m,new vp(i),v,new wl(u),new Rl,s,n.locale||null,n.i18nFormat||null,n.enableSummariesForJit||null,a),reflector:u}}function zr(t){var e=new th(null,null,null,new Map);(new nh).visitAllStatements(t,e);var n={};return e.exports.forEach(function(t){n[t]=e.vars.get(t)}),n}function Gr(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<t.length;s++)o.vars.set(t[s],e[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}function Wr(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new th(e,this,t.name,e.vars);return Gr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new th(e,this,t.name,e.vars);return Gr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new th(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Gr(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function $r(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Gr(t,i,e,n,r)}}function Kr(t,n,r){var i=n.toSource()+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Qr(t,e){var n=new oh,r=Nl.createRoot();return n.visitAllStatements(e,r),n.createReturnStmt(r),Kr(t,r,n.getArgs())}function Jr(t){if(!t.isComponent)throw new Error("Could not compile '"+x(t.type)+"' because it is not a component.")}function Xr(t,e){return void 0===e&&(e=[]),t().forEach(function(t){"function"==typeof t?Xr(t,e):e.push(t)}),e}function Yr(){return{statements:[],genFilePath:"",importExpr:function(t){return Cn({name:x(t),moduleName:null,runtime:t})}}}function Zr(t){return{useJit:ti(t.map(function(t){return t.useJit})),defaultEncapsulation:ti(t.map(function(t){return t.defaultEncapsulation})),providers:ei(t.map(function(t){return t.providers})),missingTranslation:ti(t.map(function(t){return t.missingTranslation})),enableLegacyTemplate:ti(t.map(function(t){return t.enableLegacyTemplate}))}}function ti(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function ei(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ri=new e.Version("4.3.0"),ii=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),oi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),si=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ai=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===gi.Animation},enumerable:!0,configurable:!0}),t}(),ui=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),ci=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),li=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),pi=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,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}(),hi=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,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}(),fi=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),di=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),mi=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),yi={};yi.PublicService=0,yi.PrivateService=1,yi.Component=2,yi.Directive=3,yi.Builtin=4,yi[yi.PublicService]="PublicService",yi[yi.PrivateService]="PrivateService",yi[yi.Component]="Component",yi[yi.Directive]="Directive",yi[yi.Builtin]="Builtin";var vi=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),gi={};gi.Property=0,gi.Attribute=1,gi.Class=2,gi.Style=3,gi.Animation=4,gi[gi.Property]="Property",gi[gi.Attribute]="Attribute",gi[gi.Class]="Class",gi[gi.Style]="Style",gi[gi.Animation]="Animation";var _i=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),bi=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){function n(e){e&&e.length&&i.push(r(o,e,t))}var i=[],o=this;return e(n),[].concat.apply([],i)},e}(_i),wi=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Ei=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new wi(t,e,n),this.cache.set(r,i)),i},t}(),Ci={};Ci.RAW_TEXT=0,Ci.ESCAPABLE_RAW_TEXT=1,Ci.PARSABLE_DATA=2,Ci[Ci.RAW_TEXT]="RAW_TEXT",Ci[Ci.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ci[Ci.PARSABLE_DATA]="PARSABLE_DATA";var Si={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:"‌"},xi=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?Ci.PARSABLE_DATA:o,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Ti={base:new xi({isVoid:!0}),meta:new xi({isVoid:!0}),area:new xi({isVoid:!0}),embed:new xi({isVoid:!0}),link:new xi({isVoid:!0}),img:new xi({isVoid:!0}),input:new xi({isVoid:!0}),param:new xi({isVoid:!0}),hr:new xi({isVoid:!0}),br:new xi({isVoid:!0}),source:new xi({isVoid:!0}),track:new xi({isVoid:!0}),wbr:new xi({isVoid:!0}),p:new xi({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 xi({closedByChildren:["tbody","tfoot"]}),tbody:new xi({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new xi({closedByChildren:["tbody"],closedByParent:!0}),tr:new xi({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new xi({closedByChildren:["td","th"],closedByParent:!0}),th:new xi({closedByChildren:["td","th"],closedByParent:!0}),col:new xi({requiredParents:["colgroup"],isVoid:!0}),svg:new xi({implicitNamespacePrefix:"svg"}),math:new xi({implicitNamespacePrefix:"math"}),li:new xi({closedByChildren:["li"],closedByParent:!0}),dt:new xi({closedByChildren:["dt","dd"]}),dd:new xi({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new xi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new xi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new xi({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new xi({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new xi({closedByChildren:["optgroup"],closedByParent:!0}),option:new xi({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new xi({ignoreFirstLf:!0}),listing:new xi({ignoreFirstLf:!0}),style:new xi({contentType:Ci.RAW_TEXT}),script:new xi({contentType:Ci.RAW_TEXT}),title:new xi({contentType:Ci.ESCAPABLE_RAW_TEXT}),textarea:new xi({contentType:Ci.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Pi=new xi,Ai=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Oi=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(Ai.lastIndex=0;n=Ai.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return l(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Ni=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new Mi(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new Ri(t,e,n);if(i&&((u=0===s.length&&0===o.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)),o)for(l=0;l<o.length;l++){var u=0===s.length&&l===o.length-1,c=o[l];u?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(var l=0;l<s.length;l+=2){var u=l===s.length-2,p=s[l],h=s[l+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=r._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),r=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),Mi=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),Ri=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Ni.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),ki=/-+([a-z0-9])/g,Ii=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return m(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=m(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),ji={assertSync:function(t){if(e.ɵisPromise(t))throw new Error("Illegal state: value cannot be a promise");return t},then:function(t,n){return e.ɵisPromise(t)?t.then(n):n(t)},all:function(t){return t.some(e.ɵisPromise)?Promise.all(t):t}},Di="ngSyntaxError",Li="ngParseErrors",Fi=Object.getPrototypeOf({}),Vi=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Ui=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Bi=function(){function t(){}return t}(),Hi=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return n(e,t),e}(Bi),qi=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return n(e,t),e}(Bi),zi=function(){function t(){}return t}(),Gi=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e}(zi),Wi=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return n(e,t),e}(zi),$i=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return n(e,t),e}(zi),Ki=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e}(zi),Qi=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return n(e,t),e}(Ki),Ji=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return n(e,t),e}(Ki),Xi=0,Yi={};Yi.Pipe=0,Yi.Directive=1,Yi.NgModule=2,Yi.Injectable=3,Yi[Yi.Pipe]="Pipe",Yi[Yi.Directive]="Directive",Yi[Yi.NgModule]="NgModule",Yi[Yi.Injectable]="Injectable";var Zi=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=I(r),this.styleUrls=I(i)}return t}(),to=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.styles,o=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=I(i),this.styleUrls=I(o),this.externalStylesheets=I(s),this.animations=a?j(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}(),eo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,y=t.entryComponents,v=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,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 n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=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={},E={},C={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(Vi);null===n?C[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var S={};null!=u&&u.forEach(function(t){var e=h(t,[t,t]);S[e[0]]=e[1]});var x={};return null!=c&&c.forEach(function(t){var e=h(t,[t,t]);x[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:S,outputs:x,hostListeners:w,hostProperties:E,hostAttributes:C,providers:p,viewProviders:f,queries:d,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:_,componentFactory:b})},t.prototype.toSummary=function(){return{summaryKind:Yi.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}(),no=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Yi.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),ro=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=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(r),this.exportedDirectives=I(i),this.declaredPipes=I(o),this.exportedPipes=I(s),this.providers=I(n),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:Yi.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),io=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}(),oo=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}return t}(),so=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.hasLifecycleHook=function(t,e){},t.prototype.componentModuleUrl=function(t,e){},t.prototype.resolveExternalReference=function(t){},t}(),ao=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,i=void 0===r?e.ViewEncapsulation.Emulated:r,o=n.useJit,s=void 0===o||o,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=i,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=!1!==u}return t}(),uo=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),co=function(){function t(t,e){this.start=t,this.end=e}return t}(),lo=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}(),po=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(lo),ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(lo),fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(lo),mo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(lo),yo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(lo),vo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(lo),go=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(lo),_o=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(lo),bo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(lo),wo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(lo),Eo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(lo),Co=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(lo),So=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(lo),xo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(lo),To=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(lo),Po=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(lo),Ao=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(lo),Oo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(lo),No=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(lo),Mo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(lo),Ro=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(lo),ko=function(t){function e(e,n,r,i){var o=t.call(this,new co(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(lo),Io=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),jo=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),Do=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),Lo=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new To(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Co(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new vo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new go(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new _o(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new No(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new Mo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ro(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new So(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new xo(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Po(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new Ao(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new Oo(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new yo(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Eo(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new bo(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new wo(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new mo(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new po(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Fo=0,Vo=9,Uo=10,Bo=11,Ho=12,qo=13,zo=32,Go=34,Wo=36,$o=39,Ko=43,Qo=45,Jo=47,Xo=59,Yo=61,Zo=62,ts=48,es=57,ns=65,rs=69,is=70,os=90,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=118,ds=122,ms=123,ys=160,vs=96,gs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],_s=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(K("interpolation",e),new t(e[0],e[1])):bs},t}(),bs=new _s("{{","}}"),ws={};ws.Character=0,ws.Identifier=1,ws.Keyword=2,ws.String=3,ws.Operator=4,ws.Number=5,ws.Error=6,ws[ws.Character]="Character",ws[ws.Identifier]="Identifier",ws[ws.Keyword]="Keyword",ws[ws.String]="String",ws[ws.Operator]="Operator",ws[ws.Number]="Number",ws[ws.Error]="Error";var Es=["var","let","as","null","undefined","true","false","if","else","this"],Cs=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ts(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();Cs.decorators=[{type:W}],Cs.ctorParameters=function(){return[]};var Ss=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==ws.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ws.Number},t.prototype.isString=function(){return this.type==ws.String},t.prototype.isOperator=function(t){return this.type==ws.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ws.Identifier},t.prototype.isKeyword=function(){return this.type==ws.Keyword},t.prototype.isKeywordLet=function(){return this.type==ws.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ws.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ws.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ws.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ws.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ws.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ws.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ws.Error},t.prototype.toNumber=function(){return this.type==ws.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ws.Character:case ws.Identifier:case ws.Keyword:case ws.Operator:case ws.String:case ws.Error:return this.strValue;case ws.Number:return this.numValue.toString();default:return null}},t}(),xs=new Ss(-1,ws.Character,0,""),Ts=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?Fo:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=zo;){if(++r>=e){n=Fo;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(nt(n))return this.scanIdentifier();if(q(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),q(this.peek)?this.scanNumber(i):Q(i,46);case 40:case 41:case ms:case 125:case 91:case 93:case 44:case 58:case Xo:return this.scanCharacter(i,n);case $o:case Go:return this.scanString();case 35:case Ko:case Qo:case 42:case Jo:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Zo:return this.scanComplexOperator(i,String.fromCharCode(n),Yo,"=");case 33:case Yo:return this.scanComplexOperator(i,String.fromCharCode(n),Yo,"=",Yo,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case ys:for(;H(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),Q(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),Y(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),Y(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();it(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Es.indexOf(e)>-1?X(t,e):J(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(q(this.peek));else if(46==this.peek)e=!1;else{if(!ot(this.peek))break;if(this.advance(),st(this.peek)&&this.advance(),!q(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return tt(t,e?ct(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=ut(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Fo)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),Z(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return et(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Ps=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),As=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),Os=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=bs),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new Ns(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new ko(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=bs);var r=this._parseBindingAst(t,e,n);return new ko(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=bs);var r=this._parseBindingAst(t,e,n),i=Ms.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new ko(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new uo(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new Ns(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!rt(r))return null;var i=t.substring(n+1);return new po(new co(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new Ns(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=bs);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),c=new Ns(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new ko(new To(new co(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=bs);var r=lt(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Ps(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new ko(new Co(new co(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),i=t.charCodeAt(n+1);if(r===Jo&&i==Jo&&null==e)return n;e===r?e=null:null==e&&at(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=lt(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}();Os.decorators=[{type:W}],Os.ctorParameters=function(){return[{type:Cs}]};var Ns=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,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]:xs},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 co(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(Xo))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Xo););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ho(this.span(e)):1==t.length?t[0]:new mo(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Eo(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new ho(this.span(t))}return new yo(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new Po(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 Po(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new Po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Po(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ws.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new Po(this.span(t),e,new Co(new co(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new Ao(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new wo(this.span(t.span.start),t,e,n)}else t=new bo(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ro(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new Oo(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Co(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Co(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Co(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Co(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new fo(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new So(this.span(t),n)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new fo(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Co(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Co(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ho(this.span(t))):(this.error("Unexpected token "+this.next),new ho(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new xo(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new Mo(o,t,r,i):new No(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ho(this.span(n))):new _o(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ho(this.span(n));var s=this.parseConditional();return new go(this.span(n),t,r,s)}return new vo(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey(),s=o;i||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(i)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){h=this.inputIndex;this.advance(),a=o,s=this.expectTemplateBindingKey(),i=!0}else if(this.next!==xs&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new ko(l,p,this.location,this.errors)}if(t.push(new Io(this.span(r),s,i,a,u)),this.peekKeywordAs()&&!i){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new Io(this.span(h),f,!0,s,null))}this.optionalCharacter(Xo)||this.optionalCharacter(44)}return new As(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new uo(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(Xo)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new uo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ms=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Rs=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(i--,e++,(u=n.charCodeAt(i))==Uo){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Uo));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==Uo?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),ks=function(){function t(t,e){this.content=t,this.url=e}return t}(),Is=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),js={};js.WARNING=0,js.ERROR=1,js[js.WARNING]="WARNING",js[js.ERROR]="ERROR";var Ds=function(){function t(t,e,n){void 0===n&&(n=js.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?' ("'+t.before+"["+js[this.level]+" ->]"+t.after+'")':""},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return""+this.msg+this.contextualMessage()+": "+this.span.start+t},t}(),Ls=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),Fs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Vs=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Us=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Bs=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Hs=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),qs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),zs=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){function n(e){e&&r.push(ht(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)},t}(),Gs={};Gs.TAG_OPEN_START=0,Gs.TAG_OPEN_END=1,Gs.TAG_OPEN_END_VOID=2,Gs.TAG_CLOSE=3,Gs.TEXT=4,Gs.ESCAPABLE_RAW_TEXT=5,Gs.RAW_TEXT=6,Gs.COMMENT_START=7,Gs.COMMENT_END=8,Gs.CDATA_START=9,Gs.CDATA_END=10,Gs.ATTR_NAME=11,Gs.ATTR_VALUE=12,Gs.DOC_TYPE=13,Gs.EXPANSION_FORM_START=14,Gs.EXPANSION_CASE_VALUE=15,Gs.EXPANSION_CASE_EXP_START=16,Gs.EXPANSION_CASE_EXP_END=17,Gs.EXPANSION_FORM_END=18,Gs.EOF=19,Gs[Gs.TAG_OPEN_START]="TAG_OPEN_START",Gs[Gs.TAG_OPEN_END]="TAG_OPEN_END",Gs[Gs.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Gs[Gs.TAG_CLOSE]="TAG_CLOSE",Gs[Gs.TEXT]="TEXT",Gs[Gs.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Gs[Gs.RAW_TEXT]="RAW_TEXT",Gs[Gs.COMMENT_START]="COMMENT_START",Gs[Gs.COMMENT_END]="COMMENT_END",Gs[Gs.CDATA_START]="CDATA_START",Gs[Gs.CDATA_END]="CDATA_END",Gs[Gs.ATTR_NAME]="ATTR_NAME",Gs[Gs.ATTR_VALUE]="ATTR_VALUE",Gs[Gs.DOC_TYPE]="DOC_TYPE",Gs[Gs.EXPANSION_FORM_START]="EXPANSION_FORM_START",Gs[Gs.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Gs[Gs.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Gs[Gs.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Gs[Gs.EXPANSION_FORM_END]="EXPANSION_FORM_END",Gs[Gs.EOF]="EOF";var Ws=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),$s=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return n(e,t),e}(Ds),Ks=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Qs=/\r\n?/g,Js=function(){function t(t){this.error=t}return t}(),Xs=function(){function t(t,e,n,r){void 0===r&&(r=bs),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Qs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Fo;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Qo)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Jo)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Js))throw t;this.errors.push(t.error)}}return this._beginToken(Gs.EOF),this._endToken([]),new Ks(Pt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Ct(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(St(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Rs(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 Is(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Ws(this._currentTokenType,t,new Is(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new $s(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Js(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(yt(Fo),this._getSpan());this._peek===Uo?(this._line++,this._column=0):this._peek!==Uo&&this._peek!==qo&&this._column++,this._index++,this._peek=this._index>=this._length?Fo:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Fo:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!xt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(yt(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(yt(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(yt(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Et),this._peek!=Xo)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=Si[n];if(!r)throw this._createError(vt(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(wt),this._peek!=Xo)throw this._createError(yt(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(vt(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Gs.ESCAPABLE_RAW_TEXT:Gs.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Gs.COMMENT_START,t),this._requireCharCode(Qo),this._endToken([]);var n=this._consumeRawText(!1,Qo,function(){return e._attemptStr("->")});this._beginToken(Gs.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Gs.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Gs.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Gs.DOC_TYPE,t),this._attemptUntilChar(Zo),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!bt(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(_t,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!z(this._peek))throw this._createError(yt(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(gt);this._peek!==Jo&&this._peek!==Zo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(gt),this._attemptCharCode(Yo)&&(this._attemptCharCodeUntilFn(gt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(gt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Js)return this._restorePosition(r),this._beginToken(Gs.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===Ci.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===Ci.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Jo)&&(n._attemptCharCodeUntilFn(gt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(gt),n._attemptCharCode(Zo)))});this._beginToken(Gs.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Gs.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Gs.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Gs.ATTR_VALUE);var t;if(this._peek===$o||this._peek===Go){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(_t,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Jo)?Gs.TAG_OPEN_END_VOID:Gs.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Zo),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Gs.TAG_CLOSE,t),this._attemptCharCodeUntilFn(gt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(gt),this._requireCharCode(Zo),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Gs.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Gs.EXPANSION_FORM_START),this._beginToken(Gs.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(gt),this._beginToken(Gs.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(gt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Gs.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(gt),this._beginToken(Gs.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(gt),this._expansionCaseStack.push(Gs.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Gs.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(gt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Gs.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Gs.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Fo)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Ct(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Gs.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Gs.EXPANSION_FORM_START},t}(),Ys=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return n(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Ds),Zs=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ta=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=bs);var i=mt(t,e,this.getTagDefinition,n,r),o=new ea(i.tokens,this.getTagDefinition).build();return new Zs(o.rootNodes,i.errors.concat(o.errors))},t}(),ea=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!==Gs.EOF;)this._peek.type===Gs.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Gs.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Gs.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Gs.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Gs.TEXT||this._peek.type===Gs.RAW_TEXT||this._peek.type===Gs.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Gs.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Zs(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Gs.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Gs.RAW_TEXT);this._advanceIf(Gs.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new qs(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Gs.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Gs.EXPANSION_FORM_END){var o=new Is(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Vs(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Ys.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Gs.EXPANSION_CASE_EXP_START)return this._errors.push(Ys.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Ws(Gs.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Is(e.sourceSpan.start,i.sourceSpan.end),a=new Is(n.sourceSpan.start,i.sourceSpan.end);return new Us(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Gs.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Gs.EXPANSION_FORM_START&&this._peek.type!==Gs.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Gs.EXPANSION_CASE_EXP_END){if(!At(n,Gs.EXPANSION_CASE_EXP_START))return this._errors.push(Ys.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Gs.EXPANSION_FORM_END){if(!At(n,Gs.EXPANSION_FORM_START))return this._errors.push(Ys.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Gs.EOF)return this._errors.push(Ys.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Fs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Gs.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Gs.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==u(i)||s.isVoid||this._errors.push(Ys.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Gs.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,c=new Is(t.sourceSpan.start,a),l=new Hs(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Hs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,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(Ys.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Ys.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=c(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Gs.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Bs(e,r,new Is(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=u(n.name)),c(t,e)},t}(),na=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),ra=new na,ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(na),oa={};oa.Little=0,oa.Big=1,oa[oa.Little]="Little",oa[oa.Big]="Big";var sa=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),aa=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ua=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),ca=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),la=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),pa=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),ha=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),fa=function(){function t(){}return t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new ua(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new ca(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new la(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new pa(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new ha(t.value,t.name,t.sourceSpan)},t}(),da=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),ma={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"},ya=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=ma[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=ma[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),va=new Os(new Cs),ga=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Vs,this._icuDepth=0,this._placeholderRegistry=new ya,this._placeholderToContent={},this._placeholderToMessage={};var i=ht(this,t,{});return new sa(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ht(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=l(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new la(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new ca(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new ua(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new ha(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new aa(t,e);for(var r=[],i=new ua(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=te(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new aa(n.strings[u],e)),r.push(new pa(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new aa(n.strings[h],e)),i},t}(),_a=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,ba=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Ds),wa="i18n",Ea=/^i18n:?/,Ca="|",Sa="@@",xa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),Ta={};Ta.Extract=0,Ta.Merge=1,Ta[Ta.Extract]="Extract",Ta[Ta.Merge]="Merge";var Pa=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(Ta.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new xa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(Ta.Merge,n),this._translations=e;var r=new Hs("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Zs(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ht(this,t.expression,e);if(this._mode===Ta.Merge)return new Us(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=ht(this,t.cases,e);return this._mode===Ta.Merge&&(t=new Vs(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=re(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var r=ie(t);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ht(this,this._translateMessage(t,i))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Ea,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=oe(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Ta.Extract&&ht(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==Ta.Extract){var h=a||l;h&&this._openTranslatableSection(t),ht(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Ta.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Ta.Merge){var f=this._translateAttributes(t);return new Hs(t.name,f,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){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=Zt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Bs&&!t[0].value)return null;var n=se(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Ta.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=se(t.value))});var i=[];return n.forEach(function(n){if(n.name!==wa&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new Bs(n.name,"",n.sourceSpan));else if(l[0]instanceof Fs){var p=l[0].value;i.push(new Bs(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof qs?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof aa)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),Aa=new(function(){function t(){this.closedByParent=!1,this.contentType=Ci.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),Oa=function(t){function e(){return t.call(this,ae)||this}return n(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(ta),Na=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),Ma=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return n(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(da),Ra=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),ka=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ce(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Ia=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),ja=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=ce(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Da=function(){function t(t){this.value=ce(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),La=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return n(e,t),e}(Da),Fa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Va=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new Ua,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new ja("context-group",{purpose:"location"});n.children.push(new La(10),new ja("context",{"context-type":"sourcefile"},[new Da(t.filePath)]),new La(10),new ja("context",{"context-type":"linenumber"},[new Da(""+t.startLine)]),new La(8)),e.push(new La(8),n)});var i=new ja("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new La(8),new ja("source",{},n.serialize(t.nodes)),new La(8),new ja("target")].concat(e)),t.description&&i.children.push(new La(8),new ja("note",{priority:"1",from:"description"},[new Da(t.description)])),t.meaning&&i.children.push(new La(8),new ja("note",{priority:"1",from:"meaning"},[new Da(t.meaning)])),i.children.push(new La(6)),r.push(new La(6),i);var o});var i=new ja("body",{},r.concat([new La(4)])),o=new ja("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new La(4),i,new La(2)]),s=new ja("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new La(2),o,new La]);return ue([new ka({version:"1.0",encoding:"UTF-8"}),new La,s,new La])},e.prototype.load=function(t,e){var n=(new Ba).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ha;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,u=n.errors;o.push.apply(o,u),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Ot(t)},e}(Na),Ua=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Da(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Da("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Da(e+" {")].concat(t.cases[e].visit(n),[new Da("} ")]))}),r.push(new Da("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=le(t.tag),r=new ja("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var i=new ja("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new ja("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new ja("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ba=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ht(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),ht(this,t.children,null);break;default:ht(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),Ha=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ht(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new pa("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ht(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),qa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new za,r=[];t.forEach(function(t){var e=new ja("unit",{id:t.id}),i=new ja("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new La(8),new ja("note",{category:"description"},[new Da(t.description)])),t.meaning&&i.children.push(new La(8),new ja("note",{category:"meaning"},[new Da(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new La(8),new ja("note",{category:"location"},[new Da(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new La(6)),e.children.push(new La(6),i);var o=new ja("segment");o.children.push(new La(8),new ja("source",{},n.serialize(t.nodes)),new La(6)),e.children.push(new La(6),o,new La(4)),r.push(new La(4),e)});var i=new ja("file",{original:"ng.template",id:"ngi18n"},r.concat([new La(2)])),o=new ja("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new La(2),i,new La]);return ue([new ka({version:"1.0",encoding:"UTF-8"}),new La,o,new La])},e.prototype.load=function(t,e){var n=(new Ga).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Wa;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,u=n.errors;o.push.apply(o,u),s[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Nt(t)},e}(Na),za=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Da(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Da("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Da(e+" {")].concat(t.cases[e].visit(n),[new Da("} ")]))}),r.push(new Da("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=pe(t.tag);if(t.isVoid)return[new ja("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var i=new ja("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Da("")),[i]},t.prototype.visitPlaceholder=function(t,e){return[new ja("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new ja("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ga=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ht(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):ht(this,t.children,null)}break;default:ht(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),Wa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ht(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new pa("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,[new pa("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new pa("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ht(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),$a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new Qa,r=new Ka,i=new ja("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new ja("source",{},[new Da(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new La(2),new ja("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new La),ue([new ka({version:"1.0",encoding:"UTF-8"}),new La,new Ia("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new La,n.addDefaultExamples(i),new La])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return he(t)},e.prototype.createNameMapper=function(t){return new Ma(t,fe)},e}(Na),Ka=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Da(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Da("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Da(e+" {")].concat(t.cases[e].visit(n),[new Da("} ")]))}),r.push(new Da("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new ja("ex",{},[new Da("<"+t.tag+">")]),r=new ja("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new ja("ex",{},[new Da("</"+t.tag+">")]),o=new ja("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new ja("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new ja("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Qa=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Da(t.attrs.name||"...");t.children=[new ja("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),Ja=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Xa).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ya;if(Object.keys(i).forEach(function(t){de(s,t,function(){var n=a.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return he(t)},e.prototype.createNameMapper=function(t){return new Ma(t,fe)},e}(Na),Xa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":++this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ht(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(o,s);this._msgIdToHtml[i]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),Ya=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ht(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ht(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new pa("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),Za=function(t){function e(){return t.call(this,l)||this}return n(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=bs),t.prototype.parse.call(this,e,n,r,i)},e}(ta);Za.decorators=[{type:W}],Za.ctorParameters=function(){return[]};var tu=function(){function t(t,n,r,i,o,s){void 0===t&&(t={}),void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=i,this._i18nToHtml=new eu(t,n,r,i,o,s)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),eu=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Za).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,i=this._digest(t),o=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(i))n=this._i18nNodesByMsgId[i],this._mapper=function(t){return o?o.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+i+'"'+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 "'+i+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ba(t.sourceSpan,e))},t}(),nu=function(){function t(t,n,r,i,o){if(void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=me(r);this._translationBundle=tu.load(n,"i18n",s,i,o)}else this._translationBundle=new tu({},null,Ot,void 0,i,o)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=bs);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new Zs(i.rootNodes,i.errors):ne(i.rootNodes,this._translationBundle,r,[],{})},t}(),ru="@angular/core",iu=function(){function t(){}return t}();iu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:ru,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},iu.ElementRef={name:"ElementRef",moduleName:ru,runtime:e.ElementRef},iu.NgModuleRef={name:"NgModuleRef",moduleName:ru,runtime:e.NgModuleRef},iu.ViewContainerRef={name:"ViewContainerRef",moduleName:ru,runtime:e.ViewContainerRef},iu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:ru,runtime:e.ChangeDetectorRef},iu.QueryList={name:"QueryList",moduleName:ru,runtime:e.QueryList},iu.TemplateRef={name:"TemplateRef",moduleName:ru,runtime:e.TemplateRef},iu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:ru,runtime:e.ɵCodegenComponentFactoryResolver},iu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:ru,runtime:e.ComponentFactoryResolver},iu.ComponentFactory={name:"ComponentFactory",moduleName:ru,runtime:e.ComponentFactory},iu.ComponentRef={name:"ComponentRef",moduleName:ru,runtime:e.ComponentRef},iu.NgModuleFactory={name:"NgModuleFactory",moduleName:ru,runtime:e.NgModuleFactory},iu.createModuleFactory={name:"ɵcmf",moduleName:ru,runtime:e.ɵcmf},iu.moduleDef={name:"ɵmod",moduleName:ru,runtime:e.ɵmod},iu.moduleProviderDef={name:"ɵmpd",moduleName:ru,runtime:e.ɵmpd},iu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:ru,runtime:e.ɵregisterModuleFactory},iu.Injector={name:"Injector",moduleName:ru,runtime:e.Injector},iu.ViewEncapsulation={name:"ViewEncapsulation",moduleName:ru,runtime:e.ViewEncapsulation},iu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:ru,runtime:e.ChangeDetectionStrategy},iu.SecurityContext={name:"SecurityContext",moduleName:ru,runtime:e.SecurityContext},iu.LOCALE_ID={name:"LOCALE_ID",moduleName:ru,runtime:e.LOCALE_ID},iu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:ru,runtime:e.TRANSLATIONS_FORMAT},iu.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:ru,runtime:e.ɵinlineInterpolate},iu.interpolate={name:"ɵinterpolate",moduleName:ru,runtime:e.ɵinterpolate},iu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:ru,runtime:e.ɵEMPTY_ARRAY},iu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:ru,runtime:e.ɵEMPTY_MAP},iu.Renderer={name:"Renderer",moduleName:ru,runtime:e.Renderer},iu.viewDef={name:"ɵvid",moduleName:ru,runtime:e.ɵvid},iu.elementDef={name:"ɵeld",moduleName:ru,runtime:e.ɵeld},iu.anchorDef={name:"ɵand",moduleName:ru,runtime:e.ɵand},iu.textDef={name:"ɵted",moduleName:ru,runtime:e.ɵted},iu.directiveDef={name:"ɵdid",moduleName:ru,runtime:e.ɵdid},iu.providerDef={name:"ɵprd",moduleName:ru,runtime:e.ɵprd},iu.queryDef={name:"ɵqud",moduleName:ru,runtime:e.ɵqud},iu.pureArrayDef={name:"ɵpad",moduleName:ru,runtime:e.ɵpad},iu.pureObjectDef={name:"ɵpod",moduleName:ru,runtime:e.ɵpod},iu.purePipeDef={name:"ɵppd",moduleName:ru,runtime:e.ɵppd},iu.pipeDef={name:"ɵpid",moduleName:ru,runtime:e.ɵpid},iu.nodeValue={name:"ɵnov",moduleName:ru,runtime:e.ɵnov},iu.ngContentDef={name:"ɵncd",moduleName:ru,runtime:e.ɵncd},iu.unwrapValue={name:"ɵunv",moduleName:ru,runtime:e.ɵunv},iu.createRendererType2={name:"ɵcrt",moduleName:ru,runtime:e.ɵcrt},iu.RendererType2={name:"RendererType2",moduleName:ru,runtime:null},iu.ViewDefinition={name:"ɵViewDefinition",moduleName:ru,runtime:null},iu.createComponentFactory={name:"ɵccf",moduleName:ru,runtime:e.ɵccf};var ou=["zero","one","two","few","many","other"],su=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),au=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(Ds),uu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Hs(t.name,t.attrs,ht(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?_e(t,this.errors):be(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),cu=function(t){function e(e,n){return t.call(this,n,e)||this}return n(e,t),e}(Ds),lu=function(){function t(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=xe(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(R(t.token))&&n.viewProviders.set(R(t.token),!0)})}return t}(),pu=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=Ce(l,u,t.errors),this._contentQueries=Te(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ve(this.viewContext.reflector,iu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||ve(c.viewContext.reflector,iu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(iu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(R(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=R(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(R(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(R(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(R(e));if(!i||(t===yi.Directive||t===yi.PublicService)&&i.providerType===yi.PrivateService||(t===yi.PrivateService||t===yi.PublicService)&&i.providerType===yi.Builtin)return null;var o=this._transformedProviders.get(R(e));if(o)return o;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new cu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return we(t,{useExisting:o,useValue:e,deps:s})});return o=Ee(i,{eager:n,providers:s}),this._transformedProviders.set(R(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===yi.Directive||t===yi.Component){if(R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.Renderer)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ElementRef)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ChangeDetectorRef)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.TemplateRef))return e;R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(yi.PublicService,e,i)}o||(o=!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?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new cu("No provider for "+M(e.token),this._sourceSpan)),o},t}(),hu=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){Se([{token:{identifier:t},useClass:t}],yi.PublicService,!0,r,i._errors,i._allProviders)}),Se(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),yi.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(R(t));if(!r)return null;var i=this._transformedProviders.get(R(t));if(i)return i;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new cu("Cannot instantiate cyclic dependency! "+M(t),r.sourceSpan)),null;this._seenProviders.set(R(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return we(t,{useExisting:o,useValue:i,deps:s})});return i=Ee(r,{eager:e,providers:o}),this._transformedProviders.set(R(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(R(t.token)===this.reflector.resolveExternalReference(iu.Injector)||R(t.token)===this.reflector.resolveExternalReference(iu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new cu("No provider for "+M(t.token),n))),i},t}(),fu=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),du=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),mu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,yu=/\/\*.+?\*\//g,vu=/^([^:/?#]+):/,gu={};gu.DEFAULT=0,gu.LITERAL_ATTR=1,gu.ANIMATION=2,gu[gu.DEFAULT]="DEFAULT",gu[gu.LITERAL_ATTR]="LITERAL_ATTR",gu[gu.ANIMATION]="ANIMATION";var _u=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===gu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===gu.ANIMATION},enumerable:!0,configurable:!0}),t}(),bu=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new li(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,js.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Ne(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,js.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new _u(t,this._exprParser.wrapLiteralPrimitive(e,""),gu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ne(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new _u(t,e,gu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new _u(t,o,gu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new ai(n.name,gi.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r=null,i=void 0,o=null,s=n.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){o=s[1],this._validatePropertyOrAttributeName(o,n.sourceSpan,!0),a=Me(this._schemaRegistry,t,o,!0);var u=o.indexOf(":");u>-1&&(o=c(o.substring(0,u),o.substring(u+1))),i=gi.Attribute}else"class"==s[0]?(o=s[1],i=gi.Class,a=[e.SecurityContext.NONE]):"style"==s[0]&&(r=s.length>2?s[2]:null,o=s[1],i=gi.Style,a=[e.SecurityContext.STYLE]);return null===o&&(o=this._schemaRegistry.getMappedPropName(n.name),a=Me(this._schemaRegistry,t,o,!1),i=gi.Property,this._validatePropertyOrAttributeName(o,n.sourceSpan,!1)),new ai(o,i,a[0],n.expression,r,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Ne(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=f(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new ui(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=h(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new ui(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof ho?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=js.ERROR),this._targetErrors.push(new Ds(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new wu;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Is(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,js.ERROR)},t}(),wu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return n(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(Do),Eu="select",Cu="link",Su="rel",xu="href",Tu="stylesheet",Pu="style",Au="script",Ou="ngNonBindable",Nu="ngProjectAs",Mu={};Mu.NG_CONTENT=0,Mu.STYLE=1,Mu.STYLESHEET=2,Mu.SCRIPT=3,Mu.OTHER=4,Mu[Mu.NG_CONTENT]="NG_CONTENT",Mu[Mu.STYLE]="STYLE",Mu[Mu.STYLESHEET]="STYLESHEET",Mu[Mu.SCRIPT]="SCRIPT",Mu[Mu.OTHER]="OTHER";var Ru=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),ku=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Iu="template",ju="class",Du=Oi.parse("*")[0],Lu="The <template> element is deprecated. Use <ng-template> instead",Fu={},Vu=new e.InjectionToken("TemplateTransforms"),Uu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return n(e,t),e}(Ds),Bu=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Hu=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===js.WARNING}).filter(Ie(["The template attribute is deprecated. Use an ng-template element instead.",Lu])),u=s.errors.filter(function(t){return t.level===js.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0)throw g("Template parse errors:\n"+u.join("\n"),u);return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,i,o){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Fe(n),l=Fe(i),p=new lu(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var f=new bu(this._exprParser,h,this._schemaRegistry,l,a),d=new qu(this._reflector,this._config,p,c,f,this._schemaRegistry,o,a);s=ht(d,t.rootNodes,$u),a.push.apply(a,p.errors),u.push.apply(u,f.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Bu(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Bu(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ge(t.rootNodes);n.push.apply(n,r.errors),t=new Zs(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return _s.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Uu('Reference "#'+r+'" is defined several times',t.sourceSpan,js.ERROR);e.push(i)}})})},t}();Hu.decorators=[{type:W}],Hu.ctorParameters=function(){return[{type:ao},{type:so},{type:Os},{type:fu},{type:nu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Vu]}]}]};var qu=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new Ni,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Oi.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Du),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new oi(r,n,t.sourceSpan):new ii(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new si(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Re(t);if(o.type===Mu.SCRIPT||o.type===Mu.STYLE)return null;if(o.type===Mu.STYLESHEET&&Ae(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],y=Ue(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,js.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,js.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var v=null!=e;v&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),i||v||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var v=De(i,s),g=this._parseDirectives(this.selectorMatcher,v),_=g.directives,b=g.matchElement,w=[],E=new Set,C=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,E),S=this._createElementPropertyAsts(t.name,a,E),x=e.isTemplateElement||d,T=new pu(this.providerViewContext,e.providerContext,x,C,m,w,y,r,t.sourceSpan),P=ht(o.nonBindable?Ku:this,t.children,Wu.create(y,C,y?e.providerContext:T));T.afterElement();var A,O=null!=o.projectAs?Oi.parse(o.projectAs)[0]:v,N=e.findNgContentIndex(O);if(o.type===Mu.NG_CONTENT)t.children&&!t.children.every(Le)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new vi(this.ngContentCount++,d?null:N,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(C,l),this._assertNoComponentsNorElementBindingsOnTemplate(C,S,t.sourceSpan),A=new hi(m,l,w,c,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:N,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(C,t.sourceSpan);var M=d?null:e.findNgContentIndex(O);A=new pi(i,m,S,l,w,T.transformedDirectiveAsts,T.transformProviders,T.transformedHasViewContainer,T.queryMatches,P,d?null:M,t.sourceSpan,t.endSourceSpan||null)}if(d){var R=this.contentQueryStartId,k=De(Iu,h),I=this._parseDirectives(this.selectorMatcher,k).directives,j=new Set,D=this._createDirectiveAsts(!0,t.name,I,p,[],t.sourceSpan,[],j),L=this._createElementPropertyAsts(t.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(D,L,t.sourceSpan);var F=new pu(this.providerViewContext,e.providerContext,e.isTemplateElement,D,[],[],!0,R,t.sourceSpan);F.afterElement(),A=new hi([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[A],N,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(ku),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,o)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new li(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Gu(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Is(o.start,o.end,"Directive "+x(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new ci(e.name,ye(t.type.reference),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new di(t,p,h,f,d,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=ve(u.reflector,iu.TemplateRef)),s.push(new ci(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),Ve(s.expression)||n.push(new fi(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return x(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===gi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=js.ERROR),this._targetErrors.push(new Ds(e,t,n))},t}(),zu=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Re(t);if(n.type===Mu.SCRIPT||n.type===Mu.STYLE||n.type===Mu.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=De(t.name,r),o=e.findNgContentIndex(i),s=ht(this,t.children,$u);return new pi(t.name,ht(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new si(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Du);return new ii(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Gu=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Wu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Ni,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(Oi.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),$u=new Wu(!0,new Ni,null,null),Ku=new zu,Qu=function(){function t(){}return t.prototype.get=function(t){return""},t}(),Ju={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Xu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=Ke(t,n));var r=Ge(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Zu.Scheme]){var o=r[Zu.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();Xu.decorators=[{type:W}],Xu.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Yu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Zu={};Zu.Scheme=1,Zu.UserInfo=2,Zu.Domain=3,Zu.Port=4,Zu.Path=5,Zu.QueryData=6,Zu.Fragment=7,Zu[Zu.Scheme]="Scheme",Zu[Zu.UserInfo]="UserInfo",Zu[Zu.Domain]="Domain",Zu[Zu.Port]="Port",Zu[Zu.Path]="Path",Zu[Zu.QueryData]="QueryData",Zu[Zu.Fragment]="Fragment";var tc=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n=this;if(y(t.template)){if(y(t.templateUrl))throw g("'"+e.ɵstringify(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw g("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string")}else{if(!y(t.templateUrl))throw g("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw g("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string")}return ji.then(this.normalizeTemplateOnly(t),function(t){return n.normalizeExternalStylesheets(t)})},t.prototype.normalizeTemplateOnly=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),ji.then(e,function(e){return r.normalizeLoadedTemplate(t,e,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var i=!!t.template,o=_s.fromArray(t.interpolation),s=this._htmlParser.parse(n,L({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:i,templateUrl:r}),!0,o);if(s.errors.length>0)throw g("Template parse errors:\n"+s.errors.join("\n"));var a=this.normalizeStylesheet(new Zi({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),u=new ec;ht(u,s.rootNodes);var c=this.normalizeStylesheet(new Zi({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:r})),l=t.encapsulation;null==l&&(l=this._config.defaultEncapsulation);var p=a.styles.concat(c.styles),h=a.styleUrls.concat(c.styleUrls);return l===e.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(l=e.ViewEncapsulation.None),new to({encapsulation:l,template:n,templateUrl:r,styles:p,styleUrls:h,ngContentSelectors:u.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:i,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return ji.then(this._loadMissingExternalStylesheets(t.styleUrls),function(e){return new to({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),ji.then(ji.all(t.filter(function(t){return!e.has(t)}).map(function(t){return ji.then(n._fetch(t),function(r){var i=n.normalizeStylesheet(new Zi({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(Ae).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=Oe(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Zi({styles:i,styleUrls:r,moduleUrl:n})},t}();tc.decorators=[{type:W}],tc.ctorParameters=function(){return[{type:Qu},{type:Xu},{type:Za},{type:ao}]};var ec=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Re(t);switch(n.type){case Mu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Mu.STYLE:var r="";t.children.forEach(function(t){t instanceof Fs&&(r+=t.value)}),this.styles.push(r);break;case Mu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ht(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ht(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ht(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),nc=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Qe)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=Je(r,Qe);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var i=[],o=[],s={},a={};return Object.keys(n).forEach(function(t){var r=Je(n[t],function(t){return t instanceof e.Input});r&&(r.bindingPropertyName?i.push(t+": "+r.bindingPropertyName):i.push(t));var u=Je(n[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?o.push(t+": "+u.bindingPropertyName):o.push(t)),n[t].filter(function(t){return t&&t instanceof e.HostBinding}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),n[t].filter(function(t){return t&&t instanceof e.HostListener}).forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Je(n[t],function(t){return t instanceof e.Query});c&&(a[t]=c)}),this._merge(t,i,o,s,a,r)},t.prototype._extractPublicName=function(t){return h(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,n,r,i,o,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),u=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),c=t.host?Object.assign({},t.host,i):i,l=t.queries?Object.assign({},t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();nc.decorators=[{type:W}],nc.ctorParameters=function(){return[{type:so}]};var rc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,ic=/\.ngfactory\.|\.ngsummary\./,oc=/\.ngsummary\./,sc=/NgSummary$/,ac={};ac.OnInit=0,ac.OnDestroy=1,ac.DoCheck=2,ac.OnChanges=3,ac.AfterContentInit=4,ac.AfterContentChecked=5,ac.AfterViewInit=6,ac.AfterViewChecked=7,ac[ac.OnInit]="OnInit",ac[ac.OnDestroy]="OnDestroy",ac[ac.DoCheck]="DoCheck",ac[ac.OnChanges]="OnChanges",ac[ac.AfterContentInit]="AfterContentInit",ac[ac.AfterContentChecked]="AfterContentChecked",ac[ac.AfterViewInit]="AfterViewInit",ac[ac.AfterViewChecked]="AfterViewChecked";var uc=[ac.OnInit,ac.OnDestroy,ac.DoCheck,ac.OnChanges,ac.AfterContentInit,ac.AfterContentChecked,ac.AfterViewInit,ac.AfterViewChecked],cc=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(ln)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=Je(this._reflector.annotations(t),ln);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();cc.decorators=[{type:W}],cc.ctorParameters=function(){return[{type:so}]};var lc=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(pn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=Je(r,pn);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();lc.decorators=[{type:W}],lc.ctorParameters=function(){return[{type:so}]};var pc=function(){function t(){}return t.prototype.isLibraryFile=function(t){},t.prototype.getLibraryFileName=function(t){},t.prototype.resolveSummary=function(t){},t.prototype.getSymbolsOf=function(t){},t.prototype.getImportAs=function(t){},t.prototype.addSummary=function(t){},t}(),hc=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();hc.decorators=[{type:W}],hc.ctorParameters=function(){return[]};var fc=new e.InjectionToken("ErrorCollector"),dc=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this._config=t,this._ngModuleResolver=e,this._directiveResolver=n,this._pipeResolver=r,this._summaryResolver=i,this._schemaRegistry=o,this._directiveNormalizer=s,this._console=a,this._staticSymbolCache=u,this._reflector=c,this._errorCollector=l,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,i=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return i.setDelegate=function(t){r=t,i.prototype=t.prototype},i.overriddenName=n,i},t.prototype.getGeneratedClass=function(t,e){return t instanceof wi?this._staticSymbolCache.get(Xe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,P(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,O(t))},t.prototype.getHostComponentType=function(t){var e=x({reference:t})+"_Host";if(t instanceof wi)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof wi?this._staticSymbolCache.get(Xe(t.filePath),A(t)):{}},t.prototype.getComponentFactory=function(t,n,r,i){if(n instanceof wi)return this._staticSymbolCache.get(Xe(n.filePath),N(n));var o=this.getHostComponentViewClass(n);return e.ɵccf(t,n,o,r,i,[])},t.prototype.initComponentFactory=function(t,e){t instanceof wi||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.loadDirectiveMetadata=function(t,n,r){var i=this;if(this._directiveCache.has(n))return null;n=e.resolveForwardRef(n);var o=this.getNonNormalizedDirectiveMetadata(n),s=o.annotation,a=o.metadata,u=function(t){var e=new eo({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&&i.initComponentFactory(a.componentFactory,t.ngContentSelectors),i._directiveCache.set(n,e),i._summaryCache.set(n,e.toSummary()),null};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:this._reflector.componentModuleUrl(n,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return e.ɵisPromise(l)&&r?(this._reportError(gn(n),n),null):ji.then(l,u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(!(t=e.resolveForwardRef(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var i=this._directiveResolver.resolve(t,!1);if(!i)return null;var o=void 0;if(i instanceof e.Component){$("styles",i.styles),$("styleUrls",i.styleUrls),K("interpolation",i.interpolation);var s=i.animations;o=new to({encapsulation:v(i.encapsulation),template:v(i.template),templateUrl:v(i.templateUrl),styles:i.styles||[],styleUrls:i.styleUrls||[],animations:s||[],interpolation:v(i.interpolation),isInline:!!i.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+vn(t)+'"',[],t)),i.entryComponents&&(c=dn(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(g("Directive "+vn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=i.providers&&(p=this._getProvidersMetadata(i.providers,c,'providers for "'+vn(t)+'"',[],t));var h=[],f=[];null!=i.queries&&(h=this._getQueriesMetadata(i.queries,!1,t),f=this._getQueriesMetadata(i.queries,!0,t));var d=eo.create({isHost:!1,selector:l,exportAs:v(i.exportAs),isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs||[],outputs:i.outputs||[],host:i.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:f||[],entryComponents:c,componentViewType:o?this.getComponentViewClass(t):null,rendererType:o?this.getRendererType(t):null,componentFactory:null});return o&&(d.componentFactory=this.getComponentFactory(l,t,d.inputs,d.outputs)),r={metadata:d,annotation:i},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(g("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+vn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Yi.Directive);return e||this._reportError(g("Illegal state: Could not load the summary for directive "+vn(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Yi.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Yi.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Yi.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Yi.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);(e=n?n.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,n);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[];o.imports&&dn(o.imports).forEach(function(e){var n=void 0;if(mn(e))n=e;else if(e&&e.ngModule){var i=e;n=i.ngModule,i.providers&&p.push.apply(p,r._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+vn(n)+"'",[],e))}if(n){if(!r._checkSelfImport(t,n)){var o=r.getNgModuleSummary(n);o?c.push(o):r._reportError(g("Unexpected "+r._getTypeDescriptor(e)+" '"+vn(e)+"' imported by the module '"+vn(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(g("Unexpected value '"+vn(e)+"' imported by the module '"+vn(t)+"'"),t)}),o.exports&&dn(o.exports).forEach(function(e){if(mn(e)){var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))}else r._reportError(g("Unexpected value '"+vn(e)+"' exported by the module '"+vn(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&dn(o.declarations).forEach(function(e){if(mn(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))m.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(g("Unexpected "+r._getTypeDescriptor(e)+" '"+vn(e)+"' declared by the module '"+vn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(g("Unexpected value '"+vn(e)+"' declared by the module '"+vn(t)+"'"),t)});var y=[],v=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(g("Can't export "+r._getTypeDescriptor(e.reference)+" "+vn(e.reference)+" from "+vn(t)+" as it was neither declared nor imported!"),t);v.push(e),m.addExportedPipe(e)}}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+vn(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,dn(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&dn(o.bootstrap).forEach(function(e){mn(e)?f.push(r._getIdentifierMetadata(e)):r._reportError(g("Unexpected value '"+vn(e)+"' used in the bootstrap property of module '"+vn(t)+"'"),t)}),h.push.apply(h,f.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&d.push.apply(d,dn(o.schemas)),i=new ro({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:v,importedModules:c,exportedModules:l,transitiveModule:m,id:o.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(g("'"+vn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this.isDirective(t)?"directive":this.isPipe(t)?"pipe":this.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(g("Type "+vn(t)+" is part of the declarations of 2 modules: "+vn(n)+" and "+vn(e)+"! Please consider moving "+vn(t)+" to a higher module that imports "+vn(n)+" and "+vn(e)+". You can also create a new NgModule that exports and includes "+vn(t)+" then import that NgModule in "+vn(n)+" and "+vn(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new io,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=R(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Yi.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Yi.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:un(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(g("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+vn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Yi.Pipe);return e||this._reportError(g("Illegal state: Could not load the summary for pipe "+vn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new no({type:this._getTypeMetadata(t),name:n.name,pure:!!n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var i=this;void 0===r&&(r=!0);var o=!1,s=(n||this._reflector.parameters(t)||[]).map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:mn(t)&&null==c&&(c=t)}):c=t,null==c?(o=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:i._getTokenMetadata(c)}});if(o){var a=s.map(function(t){return t?vn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+vn(t)+": ("+a+").";r?this._reportError(g(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=e.resolveForwardRef(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,i);else{var c=void 0;if((a=e.resolveForwardRef(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new oo(a.provide,a);else{if(!mn(a)){if(void 0===a)return void s._reportError(g("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<u?t.push(""+vn(e)):n==u?t.push("?"+vn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(g("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),o)}c=new oo(a,{useClass:a})}c.token===s._reflector.resolveExternalReference(iu.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(g("Invalid provider for "+vn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(yn(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(g("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Yi.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw g(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(g("Can't construct a query for the property \""+e+'" of "'+vn(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();dc.decorators=[{type:W}],dc.ctorParameters=function(){return[{type:ao},{type:cc},{type:nc},{type:lc},{type:pc},{type:fu},{type:tc},{type:e.ɵConsole},{type:Ei,decorators:[{type:e.Optional}]},{type:so},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[fc]}]}]};var mc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Ii),yc={};yc.Const=0,yc[yc.Const]="Const";var vc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),gc={};gc.Dynamic=0,gc.Bool=1,gc.String=2,gc.Int=3,gc.Number=4,gc.Function=5,gc.Inferred=6,gc[gc.Dynamic]="Dynamic",gc[gc.Bool]="Bool",gc[gc.String]="String",gc[gc.Int]="Int",gc[gc.Number]="Number",gc[gc.Function]="Function",gc[gc.Inferred]="Inferred";var _c=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(vc),bc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(vc),wc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(vc),Ec=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(vc),Cc=new _c(gc.Dynamic),Sc=new _c(gc.Inferred),xc=new _c(gc.Bool),Tc=(new _c(gc.Int),new _c(gc.Number),new _c(gc.String),new _c(gc.Function),{});Tc.Equals=0,Tc.NotEquals=1,Tc.Identical=2,Tc.NotIdentical=3,Tc.Minus=4,Tc.Plus=5,Tc.Divide=6,Tc.Multiply=7,Tc.Modulo=8,Tc.And=9,Tc.Or=10,Tc.Lower=11,Tc.LowerEquals=12,Tc.Bigger=13,Tc.BiggerEquals=14,Tc[Tc.Equals]="Equals",Tc[Tc.NotEquals]="NotEquals",Tc[Tc.Identical]="Identical",Tc[Tc.NotIdentical]="NotIdentical",Tc[Tc.Minus]="Minus",Tc[Tc.Plus]="Plus",Tc[Tc.Divide]="Divide",Tc[Tc.Multiply]="Multiply",Tc[Tc.Modulo]="Modulo",Tc[Tc.And]="And",Tc[Tc.Or]="Or",Tc[Tc.Lower]="Lower",Tc[Tc.LowerEquals]="LowerEquals",Tc[Tc.Bigger]="Bigger",Tc[Tc.BiggerEquals]="BiggerEquals";var Pc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new $c(this,t,null,e)},t.prototype.key=function(t,e,n){return new Kc(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Ic(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new jc(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new Dc(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Uc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Wc(Tc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Wc(Tc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Wc(Tc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Wc(Tc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Wc(Tc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Wc(Tc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Wc(Tc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Wc(Tc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Wc(Tc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Wc(Tc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Wc(Tc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Wc(Tc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Wc(Tc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Wc(Tc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Wc(Tc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tl,t)},t.prototype.cast=function(t,e){return new qc(this,t,e)},t.prototype.toStmt=function(){return new ol(this,null)},t}(),Ac={};Ac.This=0,Ac.Super=1,Ac.CatchError=2,Ac.CatchStack=3,Ac[Ac.This]="This",Ac[Ac.Super]="Super",Ac[Ac.CatchError]="CatchError",Ac[Ac.CatchStack]="CatchStack";var Oc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return n(e,t),e.prototype.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 Nc(this.name,t,null,this.sourceSpan)},e}(Pc),Nc=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new rl(this.name,this.value,t,e,this.sourceSpan)},e}(Pc),Mc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Pc),Rc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Pc),kc={};kc.ConcatArray=0,kc.SubscribeObservable=1,kc.Bind=2,kc[kc.ConcatArray]="ConcatArray",kc[kc.SubscribeObservable]="SubscribeObservable",kc[kc.Bind]="Bind";var Ic=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Pc),jc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Pc),Dc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Pc),Lc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Pc),Fc=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Pc),Vc=function(){function t(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}return t}(),Uc=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Pc),Bc=function(t){function e(e,n){var r=t.call(this,xc,n)||this;return r.condition=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Pc),Hc=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Pc),qc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Pc),zc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Gc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new il(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Pc),Wc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||n.type,o)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Pc),$c=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Rc(this.receiver,this.name,t,null,this.sourceSpan)},e}(Pc),Kc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Mc(this.receiver,this.index,t,null,this.sourceSpan)},e}(Pc),Qc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Pc),Jc=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t}(),Xc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Pc),Yc=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Pc),Zc=(new Oc(Ac.This,null,null),new Oc(Ac.Super,null,null),new Oc(Ac.CatchError,null,null),new Oc(Ac.CatchStack,null,null),new Lc(null,null,null)),tl=new Lc(null,Sc,null),el={};el.Final=0,el.Private=1,el.Exported=2,el[el.Final]="Final",el[el.Private]="Private",el[el.Exported]="Exported";var nl=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),rl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(nl),il=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(nl),ol=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(nl),sl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(nl),al=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}(),ul=function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return n(e,t),e}(al),cl=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return n(e,t),e}(al),ll=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(nl),pl=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(nl),hl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(nl),fl=function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(nl),dl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(nl),ml=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Nc(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Mc(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 Rc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Ic(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new jc(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 Dc(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 Uc(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 Bc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Hc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new qc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Gc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Wc(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 $c(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Kc(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 Qc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Jc(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new Ec(t.valueType,null);return this.transformExpr(new Xc(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Yc(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new rl(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new il(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 ol(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sl(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new cl(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new ul(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 ul(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new ll(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new pl(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 fl(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new dl(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),yl=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return n(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}()),vl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return n(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(ml),gl=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return Tn(t.map(function(t){return m(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Jc(e,m(t[e],n,null),i.has(e)))}),new Xc(r,e)},t.prototype.visitPrimitive=function(t,e){return Mn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Pc?t:this.ctx.importExpr(t)},t}(),_l=function(){function t(t){this.ngModuleFactoryVar=t}return t}(),bl=En("_l"),wl=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=pt("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new hu(this.reflector,e,n,r),a=[Vn(this.reflector,t,0,i)].concat(s.parse().map(function(e){return kn(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return Cn(iu.moduleProviderDef).callFn([Mn(r),i,e,n])}),u=Cn(iu.moduleDef).callFn([Tn(a)]),c=Nn([new zc(bl.name)],[new sl(u)],Sc),l=x(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,Cn(iu.createModuleFactory).callFn([t.importExpr(e.type.reference),Tn(o.map(function(e){return t.importExpr(e.reference)})),c])),e.id){var p=Cn(iu.RegisterModuleFactoryFn).callFn([Mn(e.id),En(l)]).toStmt();t.statements.push(p)}return new _l(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,Zc)},t.prototype._createNgModuleFactory=function(t,e,n){var r=En(x({reference:e})+"NgFactory").set(n).toDeclStmt(Sn(iu.NgModuleFactory,[xn(t.importExpr(e))],[yc.Const]),[el.Final,el.Exported]);t.statements.push(r)},t}();wl.decorators=[{type:W}],wl.ctorParameters=function(){return[{type:so}]};var El=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=Bn(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=Bn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=Bn(t.sourceLine0-a),a=t.sourceLine0,n+=Bn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+Un(JSON.stringify(this,null,0)):""},t}(),Cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sl=/'|\\|\n|\r|\$/g,xl=/^[$A-Z_][0-9A-Z_$]*$/i,Tl=" ",Pl=En("error",null,null),Al=En("stack",null,null),Ol=function(){function t(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}return t}(),Nl=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Ol(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*Tl.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Ol(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?zn(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new El(e),i=!1,o=function(){i||(r.addSource(t," ").addMapping(0,t,0,0),i=!0)},s=0;s<n;s++)r.addLine(),o();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*Tl.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?i=!0:o();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-n.indent,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Ml=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case Ac.Super:n="super";break;case Ac.This:n="this";break;case Ac.CatchError:n=Pl.name;break;case Ac.CatchStack:n=Al.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,qn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Tc.Equals:n="==";break;case Tc.Identical:n="===";break;case Tc.NotEquals:n="!=";break;case Tc.NotIdentical:n="!==";break;case Tc.And:n="&&";break;case Tc.Or:n="||";break;case Tc.Plus:n="+";break;case Tc.Minus:n="-";break;case Tc.Divide:n="/";break;case Tc.Multiply:n="*";break;case Tc.Modulo:n="%";break;case Tc.Lower:n="<";break;case Tc.LowerEquals:n="<=";break;case Tc.Bigger:n=">";break;case Tc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,qn(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Rl=function(){function t(){}return t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===r&&(r=""),void 0===i&&(i=!0);var o=new kl,s=Nl.createRoot();o.visitAllStatements(n,s);var a=r?r.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var u=i?s.toSourceMapGenerator(t,e,a.length).toJsComment():"",c=a.concat([s.toSource(),u]);return u&&c.push(""),s.setPreambleLineCount(a.length),{sourceText:c.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n,r){return void 0===r&&(r=""),this.emitStatementsAndContext(t,e,n,r).sourceText},t}(),kl=function(t){function e(){var e=t.call(this,!1)||this;return e.typeExpression=0,e.importsWithPrefixes=new Map,e.reexports=new Map,e}return n(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=Sc?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(el.Exported)&&t.value instanceof Fc&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(el.Exported)&&e.print(t,"export "),t.hasModifier(el.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(el.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(el.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(el.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(el.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(el.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Pl.name+") {"),e.incIndent();var n=[Al.set(Pl.prop("stack",null)).toDeclStmt(null,[el.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case gc.Bool:n="boolean";break;case gc.Dynamic:n="any";break;case gc.Function:n="Function";break;case gc.Number:case gc.Int:n="number";break;case gc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case kc.ConcatArray:e="concat";break;case kc.SubscribeObservable:e="subscribe";break;case kc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}n.print(null,i),this.typeExpression>0&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))},e.prototype._printColonType=function(t,e,n){t!==Sc&&(e.print(null,":"),this.visitType(t,e,n))},e}(Ml),Il={};Wn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Wn(e.SecurityContext.STYLE,["*|style"]),Wn(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"]),Wn(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 jl="boolean",Dl="number",Ll="string",Fl="object",Vl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Ul={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Bl=function(t){function r(){var e=t.call(this)||this;return e._schema={},Vl.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1].split(","),s=i.split("^"),a=s[0],u=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var c=u&&e._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(t){n[t]=c[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=jl;break;case"#":n[t.substring(1)]=Dl;break;case"%":n[t.substring(1)]=Fl;break;default:n[t]=Ll}})}),e}return n(r,t),r.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[n]},r.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var i=Il[t+"|"+n];return i||((i=Il["*|"+n])||e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Ul[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},r.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return p(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if($n(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},r}(fu);Bl.decorators=[{type:W}],Bl.ctorParameters=function(){return[]};var Hl=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Qn(t);return t=Kn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(zl,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(Gl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+r).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Wl.lastIndex=0;null!==(e=Wl.exec(t));)n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n";return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Jl,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Xl,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Yl,s,t[3]))}return i.join(",")}return Yl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf($l)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace($l,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return tp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Jn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new fp(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(ep)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+np,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(rp.lastIndex=0,rp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Zl,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(rp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,i=this,o=/\[is=([^\]]*)\]/g,s="["+(e=e.replace(o,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]}))+"]",a=function(t){var r=t.trim();if(!r)return"";if(t.indexOf(Yl)>-1)r=i._applySimpleSelectorScope(t,e,n);else{var o=t.replace(rp,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},u=new ql(t),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=(t=u.content()).indexOf(Yl);null!==(r=p.exec(t));){var f=r[1],d=t.slice(l,r.index).trim();c+=(l>=h?a(d):d)+" "+f+" ",l=p.lastIndex}return c+=a(t.substring(l)),u.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(op,Kl).replace(ip,$l)},t}(),ql=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),zl=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Gl=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Wl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,$l="-shadowcsshost",Kl="-shadowcsscontext",Ql=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Jl=new RegExp("("+$l+Ql,"gim"),Xl=new RegExp("("+Kl+Ql,"gim"),Yl=$l+"-no-combinator",Zl=/-shadowcsshost-no-combinator([^\s]*)/,tp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ep=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,np="([>\\s~+[.,{:][\\s\\S]*)?$",rp=/-shadowcsshost/gim,ip=/:host/gim,op=/:host-context/gim,sp=/\/\*\s*[\s\S]*?\*\//g,ap=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,up=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,cp=/([{}])/g,lp="{",pp="}",hp="%BLOCK%",fp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),dp=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),mp=function(){function t(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}return t}(),yp=function(){function t(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),vp=function(){function t(t){this._urlResolver=t,this._shadowCss=new Hl}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Zi({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:T(e.type)}),!0)},t.prototype.compileStyles=function(t,e,n){return this._compileStyles(t,e,n,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===e.ViewEncapsulation.Emulated},t.prototype._compileStyles=function(t,e,n,r){var i=this,o=this.needsStyleShim(e),s=n.styles.map(function(t){return Mn(i._shimIfNeeded(t,o))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new mp(Yn(null),e,function(e){return s[n]=t.importExpr(e)}))});var u=Yn(r?e:null),c=En(u).set(Tn(s,new wc(Cc,[yc.Const]))).toDeclStmt(null,r?[el.Final]:[el.Final,el.Exported]);return t.statements.push(c),new yp(t,u,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();vp.decorators=[{type:W}],vp.ctorParameters=function(){return[{type:Xu}]};var gp=function(){function t(){}return t}();gp.event=En("$event");var _p=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),bp=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),wp={};wp.Statement=0,wp.Expression=1,wp[wp.Statement]="Statement",wp[wp.Expression]="Expression";var Ep=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return n(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new xp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new xp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new xp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Lo),Cp=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Tc.Plus;break;case"-":n=Tc.Minus;break;case"*":n=Tc.Multiply;break;case"/":n=Tc.Divide;break;case"%":n=Tc.Modulo;break;case"&&":n=Tc.And;break;case"||":n=Tc.Or;break;case"==":n=Tc.Equals;break;case"!=":n=Tc.NotEquals;break;case"===":n=Tc.Identical;break;case"!==":n=Tc.NotIdentical;break;case"<":n=Tc.Lower;break;case">":n=Tc.Bigger;break;case"<=":n=Tc.LowerEquals;break;case">=":n=Tc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return ur(e,new Wc(n,this._visit(t.left,wp.Expression),this._visit(t.right,wp.Expression)))},t.prototype.visitChain=function(t,e){return sr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return ur(e,this._visit(t.condition,wp.Expression).conditional(this._visit(t.trueExp,wp.Expression),this._visit(t.falseExp,wp.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,wp.Expression);return n=t instanceof xp?t.converter(r):this._visit(t.target,wp.Expression).callFn(r),ur(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return ar(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){ar(e,t);for(var n=[Mn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Mn(t.strings[r])),n.push(this._visit(t.expressions[r],wp.Expression));return n.push(Mn(t.strings[t.strings.length-1])),t.expressions.length<=9?Cn(iu.inlineInterpolate).callFn(n):Cn(iu.interpolate).callFn([n[0],Tn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):ur(e,this._visit(t.obj,wp.Expression).key(this._visit(t.key,wp.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,wp.Expression),r=this._visit(t.key,wp.Expression),i=this._visit(t.value,wp.Expression);return ur(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return ur(e,Mn(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,wp.Expression),i=null,o=this._visit(t.receiver,wp.Expression);if(o===this._implicitReceiver){var s=this._getLocal(t.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),ur(e,i)},t.prototype.visitPrefixNot=function(t,e){return ur(e,An(this._visit(t.expression,wp.Expression)))},t.prototype.visitNonNullAssert=function(t,e){return ur(e,On(this._visit(t.expression,wp.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,wp.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),ur(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,wp.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return ur(e,n.prop(t.name).set(this._visit(t.value,wp.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n._visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype._visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this._visit(e.receiver,wp.Expression),i=void 0;this.needsTemporary(e.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof Mo?this._nodeMap.set(e,new No(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new vo(e.span,e.receiver,e.name));var s=this._visit(t,wp.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),ur(n,o.conditional(Mn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitNonNullAssert:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitNonNullAssert:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Oc(rr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=rr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),Sp=function(){function t(){}return t.prototype.getLocal=function(t){return t===gp.event.name?gp.event:null},t}(),xp=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return n(e,t),e}(Ro),Tp="class",Pp="style",Ap=function(){function t(t,e){this.viewClassVar=t,this.rendererTypeVar=e}return t}(),Op=function(){function t(t,e,n){this._config=t,this._reflector=e,this._schemaRegistry=n}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,s=0,a=_r(n),u=void 0;if(!e.isHost){var c=e.template,l=[];c.animations&&c.animations.length&&l.push(new Jc("animation",Rn(t,c.animations),!0));var p=En(A(e.type.reference));u=p.name,t.statements.push(p.set(Cn(iu.createRendererType2).callFn([new Xc([new Jc("encapsulation",Mn(c.encapsulation),!1),new Jc("styles",r,!1),new Jc("data",new Xc(l),!1)])])).toDeclStmt(Sn(iu.RendererType2),[el.Final,el.Exported]))}var h=function(n){var r=s++;return new Dp(o._reflector,t,n,e,r,i,a,h)},f=h(null);return f.visitAll([],n),(d=t.statements).push.apply(d,f.build()),new Ap(f.viewName,u);var d},t}();Op.decorators=[{type:W}],Op.ctorParameters=function(){return[{type:ao},{type:so},{type:fu}]};var Np=En("_l"),Mp=En("_v"),Rp=En("_ck"),kp=En("_co"),Ip=En("en"),jp=En("ad"),Dp=function(){function t(t,e,n,r,i,o,s,a){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?Cc:xn(e.importExpr(this.component.type.reference))}return Object.defineProperty(t.prototype,"viewName",{get:function(){return P(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 i=br(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,o=t.first?0:1,s=134217728|Er(i,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:Cn(iu.queryDef).callFn([Mn(s),Mn(r),new Xc([new Jc(t.propertyName,Mn(o),!1)])])}})})}r(this,e),this.parent&&(0===e.length||fr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:Cn(iu.anchorDef).callFn([Mn(0),Zc,Zc,Mn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,i=n.updateDirectivesStmts,o=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(i),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new il(this.viewName,[new zc(Np.name)],[new sl(Cn(iu.viewDef).callFn([Mn(u),Tn(o),a,s]))],Sn(iu.ViewDefinition),0===this.embeddedViewIndex?[el.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&_n(t).has(kp.name)&&n.push(kp.set(Mp.prop("component")).toDeclStmt(this.compType)),e=Nn([new zc(Rp.name,Sc),new zc(Mp.name,Sc)],n.concat(t),Sc)}else e=Zc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:Cn(iu.ngContentDef).callFn([Mn(t.ngContentIndex),Mn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:Cn(iu.textDef).callFn([Mn(t.ngContentIndex),Tn([Mn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:kp,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:Cn(iu.textDef).callFn([Mn(t.ngContentIndex),Tn(i.strings.map(function(t){return Mn(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:Cn(iu.anchorDef).callFn([Mn(o),s,Mn(t.ngContentIndex),Mn(c),n._createElementHandleEventFn(r,a),En(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,f=[],d=[],m=[];if(s){var y=t.inputs.map(function(t){return{context:kp,inputAst:t,dirAst:null}}).concat(p);y.length&&(d=y.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),f=y.map(function(t){return dr(t.inputAst,t.dirAst)})),m=c.map(function(t){var e=t[0],n=t[1];return Tn([Mn(e),Mn(n)])})}r(this,t.children);var v=this.nodes.length-i-1,g=t.directives.find(function(t){return t.directive.isComponent}),_=Zc,b=Zc;g&&(b=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType)),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:Cn(iu.elementDef).callFn([Mn(u),l,Mn(t.ngContentIndex),Mn(v),Mn(s),s?mr(t):Zc,f.length?Tn(f):Zc,m.length?Tn(m):Zc,n._createElementHandleEventFn(i,h),b,_]),updateRenderer:d}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,i=0;n.hasViewContainer&&(i|=16777216);var o=new Map;n.outputs.forEach(function(t){var n=wr(t,null),r=n.name,i=n.target;o.set(e.ɵelementEventFullName(i,r),[i,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=wr(n,t),i=r.name,s=r.target;o.set(e.ɵelementEventFullName(s,i),[s,i])})});var s=[],a=[];this._visitComponentFactoryResolverProvider(n.directives),n.providers.forEach(function(e,i){var u=void 0,c=void 0;if(n.directives.forEach(function(t,n){t.directive.type.reference===R(e.token)&&(u=t,c=n)}),u){var l=r._visitDirective(e,u,c,t,n.references,n.queryMatches,o,r.staticQueryIds.get(n)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(e,n.queryMatches)});var u=[];return n.queryMatches.forEach(function(t){var e=void 0;R(t.value)===r.reflector.resolveExternalReference(iu.ElementRef)?e=0:R(t.value)===r.reflector.resolveExternalReference(iu.ViewContainerRef)?e=3:R(t.value)===r.reflector.resolveExternalReference(iu.TemplateRef)&&(e=2),null!=e&&u.push(Tn([Mn(t.queryId),Mn(e)]))}),n.references.forEach(function(e){var n=void 0;e.value?R(e.value)===r.reflector.resolveExternalReference(iu.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,u.push(Tn([Mn(e.name),Mn(n)])))}),n.outputs.forEach(function(t){a.push({context:kp,eventAst:t,dirAst:null})}),{flags:i,usedEvents:Array.from(o.values()),queryMatchesExpr:u.length?Tn(u):Zc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Er(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:Cn(iu.queryDef).callFn([Mn(i),Mn(r),new Xc([new Jc(t.propertyName,Mn(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,m=p.depsExpr;i.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,f.push(Tn([Mn(e.name),Mn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=Tn([Mn(e),Mn(t.directiveName)]);return new Jc(t.directiveName,n,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&v.push(new Jc(t,Mn(e),!1))});var _=[];(e.inputs.length||(327680&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:kp,value:t.value})}));var b=Cn(iu.nodeValue).callFn([Mp,Mn(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),E=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:Cn(iu.directiveDef).callFn([Mn(h),f.length?Tn(f):Zc,Mn(l),d,m,y.length?new Xc(y):Zc,v.length?new Xc(v):Zc]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:E}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=Vn(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:Cn(iu.providerDef).callFn([Mn(t.flags),t.queryMatchExprs.length?Tn(t.queryMatchExprs):Zc,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){R(e.value)===R(t.token)&&n.push(Tn([Mn(e.queryId),Mn(4)]))});var r=kn(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==gp.event.name)return gp.event;for(var e=Mp,n=this;n;n=n.parent,e=e.prop("parent").cast(Cc)){var r=n.refNodeIndices[t];if(null!=r)return Cn(iu.nodeValue).callFn([e,Mn(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=Cn(iu.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:Cn(iu.pureArrayDef).callFn([Mn(e)])}}),function(t){return vr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=Cn(iu.EMPTY_MAP);return function(){return n}}var r=Pn(e.map(function(t,e){return Object.assign({},t,{value:Mn(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:Cn(iu.pureObjectDef).callFn([r])}}),function(t){return vr(i,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:Cn(iu.purePipeDef).callFn([Mn(n)])}});for(var o=Mp,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(Cc);var a=s.purePipeNodeIndices[e],u=Cn(iu.nodeValue).callFn([o,Mn(a)]);return function(e){return gr(t.nodeIndex,t.bindingIndex,vr(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=Cn(iu.nodeValue).callFn([Mp,Mn(c)]);return function(e){return gr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===ac.OnDestroy&&(i|=Fn(t))});var o=e.type.diDeps.map(function(t){return Ln(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:Cn(iu.pipeDef).callFn([Mn(i),n.outputCtx.importExpr(e.type.reference),Tn(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:tr({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=er(i===kp?e:null,i,o,a),c=u.stmts,l=u.currValExpr;return s.push.apply(s,c.map(function(t){return bn(t,r)})),wn(l,r)});return(i.length||o)&&s.push(bn(vr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(327680&a)>0)),wn(3&a?new Yc([Np.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,i=[],o=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+o++,c=Zn(n===kp?r:null,n,s.handler,u),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(jp.set(p.and(jp)).toStmt());var f=wr(s,a),d=f.target,m=f.name,y=e.ɵelementEventFullName(d,m);i.push(bn(new pl(Mn(y).identical(Ip),h),s.sourceSpan))});var s;if(i.length>0){var a=[jp.set(Mn(!0)).toDeclStmt(xc)];!this.component.isHost&&_n(i).has(kp.name)&&a.push(kp.set(Mp.prop("component")).toDeclStmt(this.compType)),s=Nn([new zc(Mp.name,Sc),new zc(Ip.name,Sc),new zc(gp.event.name,Sc)],a.concat(i,[new sl(jp)]),Sc)}else s=Zc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),Lp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t}(),Fp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return n(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(i=n.name+"_"+r,e.push({symbol:n,exportAs:i})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t){return m(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof wi){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Ii),Vp=function(){function t(t,e){this.outputCtx=t,this.symbolResolver=e,this.data=new Map}return t.prototype.addSourceType=function(t,e){this.data.set(t.type.reference,{summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.set(t.type.reference,{summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var e=this,n=new Set;Array.from(this.data.values()).forEach(function(t){var r=t.summary,i=t.metadata,o=t.isLibrary;if(r.summaryKind===Yi.NgModule&&(n.add(r.type.reference),r.modules.forEach(function(t){n.add(t.reference)})),!o){on(r.type.reference.name);Pr(e.outputCtx,r.type.reference,e.serializeSummaryWithDeps(r,i))}}),t.forEach(function(t){var r=t.symbol;if(n.has(r)){var i=on(t.exportAs);e.outputCtx.statements.push(En(i).set(e.serializeSummaryRef(r)).toDeclStmt(null,[el.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof ro)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===Yi.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:Yi.Injectable,type:t.useClass})})),Tn(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(nn(t.filePath),on(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return m(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return Tn(t.map(function(t){return m(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new Xc(Object.keys(t).map(function(r){return new Jc(r,m(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return Mn(t)},t.prototype.visitOther=function(t,n){if(t instanceof wi)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),Up=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return n(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:m(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Ii),Bp=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h,f){this._config=t,this._host=e,this._reflector=n,this._metadataResolver=r,this._templateParser=i,this._styleCompiler=o,this._viewCompiler=s,this._ngModuleCompiler=a,this._outputEmitter=u,this._summaryResolver=c,this._localeId=l,this._translationFormat=p,this._enableSummariesForJit=h,this._symbolResolver=f}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Rr(Ir(this._symbolResolver,t,this._host),this._host,this._metadataResolver);return n.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Rr(Ir(this._symbolResolver,t,this._host),this._host,this._metadataResolver);return Promise.all(n.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return n})},t.prototype.emitAllStubs=function(t){var e=this;return j(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!1)}))},t.prototype.emitPartialStubs=function(t){var e=this;return j(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!0)}))},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return j(t.files.map(function(t){return e._compileImplFile(t.srcUrl,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileStubFile=function(t,e,n,r,i){var o=this,s=tn(t,!0)[1],a=[],u=this._createOutputContext(Xe(t,!0)),c=this._createOutputContext(nn(t,!0));r.forEach(function(t){o._ngModuleCompiler.createStub(u,t),Tr(c,t)});var l=!1,p=!1;return e.forEach(function(t){var e=o._metadataResolver.getDirectiveMetadata(t);l=!0,e.isComponent&&(e.template.externalStylesheets.forEach(function(t){var n=o._createOutputContext(Nr(t.moduleUrl,o._styleCompiler.needsStyleShim(e),s));Ar(n,iu.ComponentFactory),a.push(o._codegenSourceModule(t.moduleUrl,n))}),p=!0)}),(p||!i)&&u.statements.length<=0&&Ar(u,iu.ComponentFactory),(l||!i||n&&n.length>0)&&c.statements.length<=0&&Ar(c,iu.ComponentFactory),a.push(this._codegenSourceModule(t,u)),this._enableSummariesForJit&&a.push(this._codegenSourceModule(t,c)),a},t.prototype._compileImplFile=function(t,e,n,r,i,o){var s=this,a=tn(t,!0)[1],u=[],c=this._createOutputContext(Xe(t,!0));if(u.push.apply(u,this._createSummary(t,n,r,i,o,c)),i.forEach(function(t){return s._compileModule(c,t)}),n.forEach(function(t){var n=s._metadataResolver.getDirectiveMetadata(t);if(n.isComponent){var r=e.get(t);if(!r)throw new Error("Internal Error: cannot determine the module for component "+x(n.type)+"!");var i=s._styleCompiler.compileComponent(c,n);n.template.externalStylesheets.forEach(function(t){u.push(s._codegenStyles(t.moduleUrl,n,t,a))});s._compileComponent(c,n,r,r.transitiveModule.directives,i,a);s._compileComponentFactory(c,n,r,a)}}),c.statements.length>0){var l=this._codegenSourceModule(t,c);u.unshift(l)}return u},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t),metadata:s._metadataResolver.getNgModuleMetadata(t)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),c=this._createOutputContext(nn(t,!0)),l=Sr(c,this._summaryResolver,this._symbolResolver,a,u),p=l.json;l.exportAs.forEach(function(t){o.statements.push(En(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[el.Exported]))});var h=new Lp(t,en(t),p);return this._enableSummariesForJit?[h,this._codegenSourceModule(t,c)]:[h]},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(e),r=[];this._localeId&&r.push({token:ve(this._reflector,iu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:ve(this._reflector,iu.TRANSLATIONS_FORMAT),useValue:this._translationFormat}),this._ngModuleCompiler.compile(t,n,r)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentType(e.type.reference),o=k(i,e,this._metadataResolver.getHostComponentViewClass(i)),s=this._compileComponent(t,o,n,[e.type],null,r).viewClassVar,a=N(e.type.reference),u=[];for(var c in e.inputs){p=e.inputs[c];u.push(new Jc(c,Mn(p),!1))}var l=[];for(var c in e.outputs){var p=e.outputs[c];l.push(new Jc(c,Mn(p),!1))}t.statements.push(En(a).set(Cn(iu.createComponentFactory).callFn([Mn(e.selector),t.importExpr(e.type.reference),En(s),new Xc(u),new Xc(l),Tn(e.template.ngContentSelectors.map(function(t){return Mn(t)}))])).toDeclStmt(Sn(iu.ComponentFactory,[xn(t.importExpr(e.type.reference))],[yc.Const]),[el.Final,el.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=n.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(e,e.template.template,a,u,n.schemas,L(n.type,e,e.template)),l=c.template,p=c.pipes,h=i?En(i.stylesVar):Tn([]),f=this._viewCompiler.compileComponent(t,e,l,h,p);return i&&Or(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),f},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof wi))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,u=o.members,c=e._symbolResolver.fileNameToModuleName(s,t),l=c===e._symbolResolver.fileNameToModuleName(t,t)?null:c,p=r||[],h=i-p.length,f=p.concat(new Array(h).fill(Cc));return u.reduce(function(t,e){return t.prop(e)},Cn(new Vc(l,a,null),f))}}},t.prototype._codegenStyles=function(t,e,n,r){var i=this._createOutputContext(Nr(n.moduleUrl,this._styleCompiler.needsStyleShim(e),r)),o=this._styleCompiler.compileStyles(i,e,n);return Or(this._symbolResolver,o,this._styleCompiler.needsStyleShim(e),r),this._codegenSourceModule(t,i)},t.prototype._codegenSourceModule=function(t,e){return new Lp(t,e.genFilePath,e.statements)},t}(),Hp="@angular/core",qp=/^\$.*\$$/,zp={__symbolic:"ignore"},Gp="useValue",Wp="provide",$p=new Set([Gp,"useFactory","data"]),Kp=function(){function t(t,n,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=o,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),r.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),i.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Yi.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Yi.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Yi.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Yi.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.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t){var e=this.getStaticSymbol(t.moduleName,t.name),n=this.findDeclaration(t.moduleName,t.name);return e!=n&&this.symbolResolver.recordImportAs(n,e),n},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof wi?this.findSymbolDeclaration(e.metadata):t},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),i=this.findParentType(t,r);if(i){var o=this.annotations(i);n.push.apply(n,o)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),i&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(i.filePath)){var a=this.summaryResolver.resolveSummary(i);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(g("Class "+t.name+" in "+t.filePath+" extends from a "+Yi[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,n[r]),n[r]=o,i&&i.decorators&&o.push.apply(o,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof wi))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,a),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof wi)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof wi||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Hp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Hp,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Hp,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Hp,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Hp,"state"),e.state),this._registerFunction(this.findDeclaration(Hp,"transition"),e.transition),this._registerFunction(this.findDeclaration(Hp,"style"),e.style),this._registerFunction(this.findDeclaration(Hp,"animate"),e.animate),this._registerFunction(this.findDeclaration(Hp,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Hp,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Hp,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(e,i,u){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var c=i.value;if(c&&(0!=r||"error"!=c.__symbolic)){var p=i.parameters,h=i.defaults;u=u.map(function(e){return n(t,e,r+1,a)}).map(function(t){return Dr(t)?void 0:t}),h&&h.length>u.length&&u.push.apply(u,h.slice(u.length).map(function(t){return l(t)}));for(var f=Qp.build(),d=0;d<p.length;d++)f.define(p[d],u[d]);var m,y=o;try{o=f.done(),m=n(e,c,r+1,a)}finally{o=y}return m}}finally{s.delete(e)}}return 0===r?zp:l({__symbolic:"error",message:"Function call not supported",context:e})}function l(e){if(Ur(e))return e;if(e instanceof Array){for(var s=[],p=0,h=e;p<h.length;p++){var f=h[p];if(f&&"spread"===f.__symbolic){var d=l(f.expression);if(Array.isArray(d)){for(var m=0,y=d;m<y.length;m++){var v=y[m];s.push(v)}continue}}var g=l(f);Dr(g)||s.push(g)}return s}if(e instanceof wi)return e===i.injectionToken||e===i.opaqueToken||i.conversionMap.has(e)||a>0?e:(O=u(_=e))?n(_,O,r+1,a):_;if(e){if(e.__symbolic){var _=void 0;switch(e.__symbolic){case"binop":var b=l(e.left);if(Dr(b))return b;var w=l(e.right);if(Dr(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 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 b/w;case"%":return b%w}return null;case"if":return l(l(e.condition)?e.thenExpression:e.elseExpression);case"pre":var E=l(e.operand);if(Dr(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var C=l(e.expression),S=l(e.index);return C&&Ur(S)?C[S]:null;case"select":var x=e.member,T=t,P=l(e.expression);if(P instanceof wi){var A=P.members.concat(x),O=u(T=i.getStaticSymbol(P.filePath,P.name,A));return O?n(T,O,r+1,a):T}return P&&Ur(x)?n(T,P[x],r+1,a):null;case"reference":var N=e.name,M=o.resolve(N);if(M!=Qp.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((_=n(t,e.expression,r+1,0))instanceof wi){if(_===i.injectionToken||_===i.opaqueToken)return t;var R=e.arguments||[],k=i.conversionMap.get(_);if(k){var I=R.map(function(e){return n(t,e,r+1,a)}).map(function(t){return Dr(t)?void 0:t});return k(t,I)}return c(_,u(_),R)}return zp;case"error":var j=Fr(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",i.reportError(Br(j,t.filePath,e.line,e.character),t)):i.reportError(new Error(j),t),zp;case"ignore":return e}return null}return Vr(e,function(o,s){if($p.has(s)){if(s===Gp&&Wp in e){var u=l(e.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return l(o)}return n(t,o,r,a+1)}return l(o)})}return zp}try{return l(e)}catch(e){var p=t.members.length?"."+t.members.join("."):"",h=e.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(e.fileName)throw Br(h,e.fileName,e.line,e.column);throw g(h)}}var r=this,i=this,o=Qp.empty,s=new Map,a=this.errorRecorder?function(t,e){try{return n(t,e,0,0)}catch(e){r.reportError(e,t)}}(t,e):n(t,e,0,0);if(!Dr(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Qp=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Jp(e):t.empty}}},t}();Qp.missing={},Qp.empty={resolve:function(t){return Qp.missing}};var Jp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return n(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Qp.missing},e}(Qp),Xp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Yp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){r=this.getStaticSymbol(t.filePath,t.name);return(i=this.getImportAs(r))?this.getStaticSymbol(i.filePath,i.name,t.members):null}var e=rn(t.filePath);if(e!==t.filePath){var n=sn(t.name),r=this.getStaticSymbol(e,n,t.members),i=this.getImportAs(r);return i?this.getStaticSymbol(nn(i.filePath),on(i.name),r.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ze(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof wi;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.fileNameToModuleName=function(t,e){return this.knownFileNameToModuleNames.get(t)||this.host.fileNameToModuleName(t,e)},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof wi)return new Xp(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Xp(t,i)}return r.statics&&1===e.length?new Xp(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Xp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.metadata){var i=new Set(Object.keys(r.metadata).map(Hr)),o=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Hr(s),c=e.getStaticSymbol(t,u),l=o.hasOwnProperty(s)&&o[s];if(l){var p=e.resolveModule(l,t);p?e.symbolResourcePaths.set(c,p):e.reportError(new Error("Couldn't resolve original symbol for "+l+" from "+t))}n.push(e.createResolvedSymbol(c,t,i,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++)!function(r){if(r.export)r.export.forEach(function(i){var o,s=o=Hr(o="string"==typeof i?i:i.as);"string"!=typeof i&&(s=Hr(i.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(e.createExport(c,u))}});else{var i=s.resolveModule(r.from,t);i&&s.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}}(u[a]);n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,i){if(this.summaryResolver.isLibraryFile(t.filePath)&&i&&"class"===i.__symbolic){var o={__symbolic:"class",arity:i.arity};return new Xp(t,o)}var s=this,a=m(i,new(function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return n(o,i),o.prototype.visitStringMap=function(n,o){var a=n.__symbolic;if("function"===a){var u=o.length;o.push.apply(o,n.parameters||[]);var c=i.prototype.visitStringMap.call(this,n,o);return o.length=u,c}if("reference"!==a)return i.prototype.visitStringMap.call(this,n,o);var l=n.module,p=n.name?Hr(n.name):n.name;if(!p)return null;var h=void 0;return l?(h=s.resolveModule(l,t.filePath),h?s.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):o.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?s.getStaticSymbol(e,p):void 0},o}(Ii)),[]);return a instanceof wi?this.createExport(t,a):new Xp(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 Xp(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Zp=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(Ye(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.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=en(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var i=xr(this.staticSymbolCache,r),o=i.summaries,s=i.importAs;o.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Xe(t),n.importAs))})}}},t}(),th=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),eh=function(){function t(t){this.value=t}return t}(),nh=function(){function t(){}return t.prototype.debugAst=function(t){return Gn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case Ac.Super:return e.instance.__proto__;case Ac.This:return e.instance;case Ac.CatchError:n=rh;break;case Ac.CatchStack:n=ih;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case kc.ConcatArray:n=r.concat.apply(r,i);break;case kc.SubscribeObservable:n=r.subscribe({next:i[0]});break;case kc.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof Oc&&r.builtin===Ac.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new eh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Wr(t,e,this);return e.vars.set(t.name,n),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(rh,r),n.vars.set(ih,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.runtime},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return $r(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,$r(n,t.statements,e,this)),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Tc.Equals:return r()==i();case Tc.Identical:return r()===i();case Tc.NotEquals:return r()!=i();case Tc.NotIdentical:return r()!==i();case Tc.And:return r()&&i();case Tc.Or:return r()||i();case Tc.Plus:return r()+i();case Tc.Minus:return r()-i();case Tc.Divide:return r()/i();case Tc.Multiply:return r()*i();case Tc.Modulo:return r()%i();case Tc.Lower:return r()<i();case Tc.LowerEquals:return r()<=i();case Tc.Bigger:return r()>i();case Tc.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].visitStatement(this,e);if(r instanceof eh)return r}return null},t}(),rh="error",ih="stack",oh=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e._evalExportedVars=[],e}return n(e,t),e.prototype.createReturnStmt=function(t){new sl(new Xc(this._evalExportedVars.map(function(t){return new Jc(t,En(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.runtime,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=x({reference:t.value.runtime})||"val";this._evalArgNames.push("jit_"+i+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(function(t){function e(){return t.call(this,!1)||this}return n(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===Ac.This)n.print(e,"self");else{if(e.builtin===Ac.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Oc&&r.builtin===Ac.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Pl.name+") {"),e.incIndent();var n=[Al.set(Pl.prop("stack")).toDeclStmt(null,[el.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case kc.ConcatArray:e="concat";break;case kc.SubscribeObservable:e="subscribe";break;case kc.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Ml)),sh=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._summaryResolver=s,this._compilerConfig=a,this._console=u,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 ji.assertSync(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return ji.assertSync(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){var e=this;this.clearCache(),Xr(t).forEach(function(t){e._summaryResolver.addSummary({symbol:t.type.reference,metadata:null,type:t})})},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return ji.then(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this;return ji.then(this._loadModules(t,n),function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),ji.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new oo(e.Compiler,{useFactory:function(){return new uh(n,i.type.reference)}}))],s=Yr(),a=this._ngModuleCompiler.compile(s,i,o);r=this._compilerConfig.useJit?Qr(V(i),s.statements)[a.ngModuleFactoryVar]:zr(s.statements)[a.ngModuleFactoryVar],this._compiledNgModuleCache.set(i.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var s=n._metadataResolver.getDirectiveMetadata(t);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(s.componentFactory)}})}),s.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var i=this._metadataResolver.getDirectiveMetadata(t);Jr(i);var o=i.componentFactory,s=k(this._metadataResolver.getHostComponentType(t),i,e.ɵgetComponentViewDefinitionFactory(o));r=new ah(!0,i.type,s,n,[i.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Jr(t),n=new ah(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=Yr(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(Yr(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);var s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,L(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(i,n,l,En(o.stylesVar),p),f=(s=this._compilerConfig.useJit?Qr(U(t.ngModule.type,t.compMeta),i.statements):zr(i.statements))[h.viewClassVar],d=s[h.rendererTypeVar];t.compiled(f,d)}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Qr(F(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]:zr(t.outputCtx.statements)[t.stylesVar]},t}();sh.decorators=[{type:W}],sh.ctorParameters=function(){return[{type:e.Injector},{type:dc},{type:Hu},{type:vp},{type:Op},{type:wl},{type:pc},{type:ao},{type:e.ɵConsole}]};var ah=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),uh=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}(),ch=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=ee(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new lh;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new sa(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(i,this._locale)},t}(),lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new la(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new pa(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new ha(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(fa),ph=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=Rr(Ir(this.staticSymbolResolver,t,this.host),this.host,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=_s.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var i=new Za,o=He(),s=new Ei,a=new Zp(n,s),u=new Yp(n,s,a),c=new Kp(a,u),l=new ao({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new tc({get:function(t){return n.loadResource(t)}},o,i,l),h=new Bl,f=new dc(l,new cc(c),new nc(c),new lc(c),a,h,p,new e.ɵConsole,s,c),d=new ch(i,[],{},r);return{extractor:new t(n,u,d,f),staticReflector:c}},t}(),hh=function(){function t(){this.reflectionCapabilities=new e.ɵReflectionCapabilities}return t.prototype.componentModuleUrl=function(t,n){var r=n.moduleId;if("string"==typeof r)return qe(r)?r:"package:"+r;if(null!==r&&void 0!==r)throw g('moduleId should be a string in "'+e.ɵstringify(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+e.ɵstringify(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return t.runtime},t}(),fh={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},dh=new e.InjectionToken("HtmlParser"),mh=[{provide:so,useValue:new hh},{provide:Qu,useValue:fh},hc,{provide:pc,useExisting:hc},e.ɵConsole,Cs,Os,{provide:dh,useClass:Za},{provide:nu,useFactory:function(t,n,r,i,o){var s=(n=n||"")?i.missingTranslation:e.MissingTranslationStrategy.Ignore;return new nu(t,n,r,s,o)},deps:[dh,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ao],[e.ɵConsole]]},{provide:Za,useExisting:nu},Hu,tc,dc,Ju,vp,Op,wl,{provide:ao,useValue:new ao},sh,{provide:e.Compiler,useExisting:sh},Bl,{provide:fu,useExisting:Bl},Xu,nc,lc,cc],yh=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Zr(this._defaultOptions.concat(t));return e.ReflectiveInjector.resolveAndCreate([mh,{provide:ao,useFactory:function(){return new ao({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]).get(e.Compiler)},t}();yh.decorators=[{type:W}],yh.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var vh=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:yh}]);t.VERSION=ri,t.TEMPLATE_TRANSFORMS=Vu,t.CompilerConfig=ao,t.JitCompiler=sh,t.DirectiveResolver=nc,t.PipeResolver=lc,t.NgModuleResolver=cc,t.DEFAULT_INTERPOLATION_CONFIG=bs,t.InterpolationConfig=_s,t.NgModuleCompiler=wl,t.AssertNotNull=Hc,t.BinaryOperator=Tc,t.BinaryOperatorExpr=Wc,t.BuiltinMethod=kc,t.BuiltinVar=Ac,t.CastExpr=qc,t.ClassStmt=ll,t.CommaExpr=Yc,t.CommentStmt=hl,t.ConditionalExpr=Uc,t.DeclareFunctionStmt=il,t.DeclareVarStmt=rl,t.ExpressionStatement=ol,t.ExternalExpr=Fc,t.ExternalReference=Vc,t.FunctionExpr=Gc,t.IfStmt=pl,t.InstantiateExpr=Dc,t.InvokeFunctionExpr=jc,t.InvokeMethodExpr=Ic,t.LiteralArrayExpr=Qc,t.LiteralExpr=Lc,t.LiteralMapExpr=Xc,t.NotExpr=Bc,t.ReadKeyExpr=Kc,t.ReadPropExpr=$c,t.ReadVarExpr=Oc,t.ReturnStatement=sl,t.ThrowStmt=dl,t.TryCatchStmt=fl,t.WriteKeyExpr=Mc,t.WritePropExpr=Rc,t.WriteVarExpr=Nc,t.StmtModifier=el,t.Statement=nl,t.EmitterVisitorContext=Nl,t.ViewCompiler=Op,t.getParseErrors=b,t.isSyntaxError=_,t.syntaxError=g,t.TextAst=ii,t.BoundTextAst=oi,t.AttrAst=si,t.BoundElementPropertyAst=ai,t.BoundEventAst=ui,t.ReferenceAst=ci,t.VariableAst=li,t.ElementAst=pi,t.EmbeddedTemplateAst=hi,t.BoundDirectivePropertyAst=fi,t.DirectiveAst=di,t.ProviderAst=mi,t.ProviderAstType=yi,t.NgContentAst=vi,t.PropertyBindingType=gi,t.NullTemplateVisitor=_i,t.RecursiveTemplateAstVisitor=bi,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=Ui,t.CompileAnimationStateMetadata=Bi,t.CompileAnimationStateDeclarationMetadata=Hi,t.CompileAnimationStateTransitionMetadata=qi,t.CompileAnimationMetadata=zi,t.CompileAnimationKeyframesSequenceMetadata=Gi,t.CompileAnimationStyleMetadata=Wi,t.CompileAnimationAnimateMetadata=$i,t.CompileAnimationWithStepsMetadata=Ki,t.CompileAnimationSequenceMetadata=Qi,t.CompileAnimationGroupMetadata=Ji,t.identifierName=x,t.identifierModuleUrl=T,t.viewClassName=P,t.rendererTypeName=A,t.hostViewClassName=O,t.componentFactoryName=N,t.CompileSummaryKind=Yi,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=Zi,t.CompileTemplateMetadata=to,t.CompileDirectiveMetadata=eo,t.createHostComponentMeta=k,t.CompilePipeMetadata=no,t.CompileNgModuleMetadata=ro,t.TransitiveCompileNgModuleMetadata=io,t.ProviderMeta=oo,t.flatten=j,t.sourceUrl=D,t.templateSourceUrl=L,t.sharedStylesheetJitUrl=F,t.ngModuleJitUrl=V,t.templateJitUrl=U,t.createAotCompiler=qr,t.AotCompiler=Bp,t.analyzeNgModules=Mr,t.analyzeAndValidateNgModules=Rr,t.extractProgramSymbols=Ir,t.GeneratedFile=Lp,t.toTypeScript=Cr,t.StaticReflector=Kp,t.StaticSymbol=wi,t.StaticSymbolCache=Ei,t.ResolvedStaticSymbol=Xp,t.StaticSymbolResolver=Yp,t.unescapeIdentifier=Hr,t.AotSummaryResolver=Zp,t.AstPath=Ls,t.SummaryResolver=pc,t.JitSummaryResolver=hc,t.COMPILER_PROVIDERS=mh,t.JitCompilerFactory=yh,t.platformCoreDynamic=vh,t.JitReflector=hh,t.CompileReflector=so,t.createUrlResolverWithoutPackagePrefix=Be,t.createOfflineCompileUrlResolver=He,t.DEFAULT_PACKAGE_URL_PROVIDER=Ju,t.UrlResolver=Xu,t.getUrlScheme=qe,t.ResourceLoader=Qu,t.ElementSchemaRegistry=fu,t.Extractor=ph,t.I18NHtmlParser=nu,t.MessageBundle=ch,t.Serializer=Na,t.Xliff=Va,t.Xliff2=qa,t.Xmb=$a,t.Xtb=Ja,t.DirectiveNormalizer=tc,t.ParserError=uo,t.ParseSpan=co,t.AST=lo,t.Quote=po,t.EmptyExpr=ho,t.ImplicitReceiver=fo,t.Chain=mo,t.Conditional=yo,t.PropertyRead=vo,t.PropertyWrite=go,t.SafePropertyRead=_o,t.KeyedRead=bo,t.KeyedWrite=wo,t.BindingPipe=Eo,t.LiteralPrimitive=Co,t.LiteralArray=So,t.LiteralMap=xo,t.Interpolation=To,t.Binary=Po,t.PrefixNot=Ao,t.NonNullAssert=Oo,t.MethodCall=No,t.SafeMethodCall=Mo,t.FunctionCall=Ro,t.ASTWithSource=ko,t.TemplateBinding=Io,t.NullAstVisitor=jo,t.RecursiveAstVisitor=Do,t.AstTransformer=Lo,t.visitAstChildren=B,t.TokenType=ws,t.Lexer=Cs,t.Token=Ss,t.EOF=xs,t.isIdentifier=rt,t.isQuote=at,t.SplitInterpolation=Ps,t.TemplateBindingParseResult=As,t.Parser=Os,t._ParseAST=Ns,t.ERROR_COLLECTOR_TOKEN=fc,t.CompileMetadataResolver=dc,t.Text=Fs,t.Expansion=Vs,t.ExpansionCase=Us,t.Attribute=Bs,t.Element=Hs,t.Comment=qs,t.visitAll=ht,t.RecursiveVisitor=zs,t.findNode=dt,t.ParseTreeResult=Zs,t.TreeError=Ys,t.HtmlParser=Za,t.HtmlTagDefinition=xi,t.getHtmlTagDefinition=l,t.TagContentType=Ci,t.splitNsName=i,t.isNgContainer=o,t.isNgContent=s,t.isNgTemplate=a,t.getNsPrefix=u,t.mergeNsAndName=c,t.NAMED_ENTITIES=Si,t.debugOutputAstAsTypeScript=Gn,t.TypeScriptEmitter=Rl,t.ParseLocation=Rs,t.ParseSourceFile=ks,t.ParseSourceSpan=Is,t.ParseErrorLevel=js,t.ParseError=Ds,t.typeSourceSpan=pt,t.DomElementSchemaRegistry=Bl,t.CssSelector=Oi,t.SelectorMatcher=Ni,t.SelectorListContext=Mi,t.SelectorContext=Ri,t.StylesCompileDependency=mp,t.CompiledStylesheet=yp,t.StyleCompiler=vp,t.TemplateParseError=Uu,t.TemplateParseResult=Bu,t.TemplateParser=Hu,t.splitClasses=je,t.createElementCssSelector=De,t.removeSummaryDuplicates=Fe,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":29}],29:[function(t,e,n){(function(r){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):i((r.ng=r.ng||{},r.ng.core=r.ng.core||{}),r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx)}(this,function(t,e,n,i,o){"use strict";function s(t,e){function n(){this.constructor=t}Pi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(){if(!Ii){var t=ki.Symbol;if(t&&t.iterator)Ii=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ii=r)}}return Ii}function u(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function c(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function l(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function h(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+l(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+l(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+l(i));for(var o=[],s=0,a=n.length-1;s<a;s++){var u=[];o.push(u);var c=n[s];if(Array.isArray(c))for(var h=0;h<c.length;h++)u.push(p(c[h]));else"function"==typeof c?u.push(p(c)):u.push(c)}return Di.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+l(t)+"'")}function f(t){var e=h(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+l(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=h(t[r],r));this&&this.annotations instanceof Array&&Di.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+ji++),e}function d(t,e,n,r){function i(t){if(!Di||!Di.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=Di.getOwnMetadata("annotations",t)||[];return n.push(e),Di.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=f,r&&r(s),s}var o=m(e);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function m(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function y(t,e,n){function r(){function t(t,e,n){for(var r=Di.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),Di.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=o,t}var i=m(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=Di.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),Di.defineMetadata("propMetadata",r,t.constructor)}}var i=m(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function g(t){return null==t||t===zi.Default}function _(t){return t.__forward_ref__=_,t.toString=function(){return l(this())},t}function b(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===_?t():t}function w(t){return t[vo]}function E(t){return t[go]}function C(t){return t[_o]||S}function S(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function x(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[go]=e,r}function T(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function P(t){return t.length>1?" ("+T(t.slice().reverse()).map(function(t){return l(t.token)}).join(" -> ")+")":""}function A(t,e,n,r){var i=[e],o=n(i),s=r?x(o,r):Error(o);return s.addKey=O,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[go]=r,s}function O(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function N(t,e){return A(t,e,function(t){return"No provider for "+l(t[0].token)+"!"+P(t)})}function M(t,e){return A(t,e,function(t){return"Cannot instantiate cyclic dependency!"+P(t)})}function R(t,e,n,r){return A(t,r,function(t){var n=l(t[0].token);return e.message+": Error during instantiation of "+n+"!"+P(t)+"."},e)}function k(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function I(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(l).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+l(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+l(t)+"' is decorated with Injectable.")}function j(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 L(t){return"function"==typeof t}function F(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function U(t){var e,n;if(t.useClass){var r=b(t.useClass);e=Po.factory(r),n=W(r)}else t.useExisting?(e=function(t){return t},n=[Ao.fromKey(wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=G(t.useFactory,t.deps)):(e=function(){return t.useValue},n=Oo);return new Mo(e,n)}function B(t){return new No(wo.get(t.provide),[U(t)],t.multi||!1)}function H(t){var e=q(z(t,[]).map(B),new Map);return Array.from(e.values())}function q(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw D(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new No(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function z(t,e){return t.forEach(function(t){if(t instanceof Co)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);z(t,e)}}),e}function G(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return $(t,e,n)})}return W(t)}function W(t){var e=Po.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw I(t,e);return e.map(function(n){return $(t,n,e)})}function $(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof so?K(e.token,i,null):K(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Co?r=a:a instanceof so?r=a.token:a instanceof ao?i=!0:a instanceof co||a instanceof lo?o=a:a instanceof Oi&&(r=a)}if(null!=(r=b(r)))return K(r,i,o);throw I(t,n)}function K(t,e,n){return new Ao(wo.get(t),e,n)}function Q(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function J(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function Y(){return""+Z()+Z()+Z()}function Z(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function tt(){throw new Error("Runtime compiler is not loaded")}function et(t){var e=Error("No component factory found for "+l(t)+". Did you add it to @NgModule.entryComponents?");return e[Xo]=t,e}function nt(){var t=ki.wtf;return!(!t||!(ts=t.trace))&&(es=ts.events,!0)}function rt(t,e){return void 0===e&&(e=null),es.createScope(t,e)}function it(t,e){return ts.leaveScope(t,e),e}function ot(t,e){return ts.beginTimeRange(t,e)}function st(t){ts.endTimeRange(t)}function at(t,e){return null}function ut(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function ct(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return lt(t),e.invokeTask(r,i,o,s)}finally{pt(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return lt(t),e.invoke(r,i,o,s,a)}finally{pt(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,ut(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.onError.emit(i),!1}})}function lt(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function pt(t){t._nesting--,ut(t)}function ht(t){ys=t}function ft(){if(gs)throw new Error("Cannot enable prod mode after platform setup.");vs=!1}function dt(){return gs=!0,vs}function mt(t){if(ms&&!ms.destroyed&&!ms.injector.get(_s,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ms=t.get(ws);var e=t.get(Uo,null);return e&&e.forEach(function(t){return t()}),ms}function yt(t,e,n){void 0===n&&(n=[]);var r=new Oi("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=_t();return i&&!i.injector.get(_s,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):mt(ko.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),vt(r)}}function vt(t){var e=_t();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 gt(){ms&&!ms.destroyed&&ms.destroy()}function _t(){return ms&&!ms.destroyed?ms:null}function bt(t,e){try{var n=e();return J(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function wt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Et(t,e){var n=Is.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Is.set(t,e)}function Ct(t){var e=Is.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function St(t){return t.reduce(function(t,e){var n=Array.isArray(e)?St(e):e;return t.concat(n)},[])}function xt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function Tt(t){return t.map(function(t){return t.nativeElement})}function Pt(t,e,n){t.childNodes.forEach(function(t){t instanceof Ws&&(e(t)&&n.push(t),Pt(t,e,n))})}function At(t,e,n){t instanceof Ws&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ws&&At(t,e,n)})}function Ot(t){return $s.get(t)||null}function Nt(t){$s.set(t.nativeNode,t)}function Mt(t){$s.delete(t.nativeNode)}function Rt(t,e){var n=kt(t),r=kt(e);if(n&&r)return It(t,e,Rt);var i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!o)||c(t,e)}function kt(t){return!!Dt(t)&&(Array.isArray(t)||!(t instanceof Map)&&a()in t)}function It(t,e,n){for(var r=t[a()](),i=e[a()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function jt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[a()](),i=void 0;!(i=r.next()).done;)e(i.value)}function Dt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Lt(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Ft(t){return t.name||typeof t}function Vt(){return Po}function Ut(){return ca}function Bt(){return la}function Ht(t){return t||"en-US"}function qt(t,e){return t.nodes[e]}function zt(t,e){return t.nodes[e]}function Gt(t,e){return t.nodes[e]}function Wt(t,e){return t.nodes[e]}function $t(t,e){return t.nodes[e]}function Kt(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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 ?"),Jt(i,t)}function Qt(t,e){return t instanceof Error||(t=new Error(t.toString())),Xt(t,e),t}function Jt(t,e){var n=new Error(t);return Xt(n,e),n}function Xt(t,e){t[vo]=e,t[_o]=e.logError.bind(e)}function Yt(t){return!!w(t)}function Zt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function te(t){var e=Ea.get(t);return e||(e=l(t)+"_"+Ea.size,Ea.set(t,e)),e}function ee(t,e,n,r){if(r instanceof Ks){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof Ks&&(o=o.wrapped),t.oldValues[i]=new Ks(o)}return r}function ne(t){return{id:Ca,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function re(t){if(t&&t.id===Ca){var e=null!=t.encapsulation&&t.encapsulation!==no.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+xa++:Sa}return t&&t.id===Sa&&(t=null),t||null}function ie(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&c(i[e.bindingIndex+n],r))}function oe(t,e,n,r){return!!ie(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function se(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Rt(i,r))throw Kt(ba.createDebugContext(t,e.index),i,r,0!=(1&t.state))}function ae(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function ue(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ce(t,e,n,r){return ae(33554432&t.def.nodes[e].flags?zt(t,e).componentView:t),ba.handleEvent(t,e,n,r)}function le(t){return t.parent?zt(t.parent,t.parentNodeDef.index):null}function pe(t){return t.parent?t.parentNodeDef.parent:null}function he(t,e){switch(201347067&e.flags){case 1:return zt(t,e.index).renderElement;case 2:return qt(t,e.index).renderText}}function fe(t,e){return t?t+":"+e:e}function de(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function me(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ye(t){return 1<<t%32}function ve(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=ye(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ge(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:te(e)}})}function _e(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===no.Native?zt(t,n.renderParent.index).renderElement:void 0:e}function be(t){var e=Ta.get(t);return e||((e=t(function(){return wa})).factory=t,Ta.set(t,e)),e}function we(t){var e=[];return Ee(t,0,void 0,void 0,e),e}function Ee(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(he(t,t.def.lastRenderRootNode))),Ce(t,e,0,t.def.nodes.length-1,n,r,i)}function Ce(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&xe(t,u,e,i,o,s),a+=u.childCount}}function Se(t,e,n,r,i,o){for(var s=t;s&&!de(s);)s=s.parent;for(var a=s.parent,u=pe(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&xe(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(p=0;p<f.length;p++)Te(t,f[p],n,r,i,o)}}function xe(t,e,n,r,i,o){if(8&e.flags)Se(t,e.ngContent.index,n,r,i,o);else{var s=he(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Te(t,s,n,r,i,o),32&e.bindingFlags&&Te(zt(t,e.index).componentView,s,n,r,i,o)):Te(t,s,n,r,i,o),16777216&e.flags)for(var a=zt(t,e.index).viewContainer._embeddedViews,u=0;u<a.length;u++)Ee(a[u],n,r,i,o);1&e.flags&&!e.element.name&&Ce(t,n,e.index+1,e.index+e.childCount,r,i,o)}}function Te(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function Pe(t){if(":"===t[0]){var e=t.match(Pa);return[e[1],e[2]]}return["",t]}function Ae(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function Oe(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+Me(e[r+1]);return n+e[2*t]}function Ne(t,e,n,r,i,o,s,a,u,c,l,p,h,f,d,m,y,v,g,_){switch(t){case 1:return e+Me(n)+r;case 2:return e+Me(n)+r+Me(i)+o;case 3:return e+Me(n)+r+Me(i)+o+Me(s)+a;case 4:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c;case 5:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p;case 6:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+f;case 7:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+f+Me(d)+m;case 8:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+f+Me(d)+m+Me(y)+v;case 9:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+f+Me(d)+m+Me(y)+v+Me(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function Me(t){return null!=t?t.toString():""}function Re(t,e,n,r,i,o){t|=1;var s=ve(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?be(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||wa},provider:null,text:null,query:null,ngContent:null}}function ke(t,e,n,r,i,o,s,a,u,c,l){void 0===o&&(o=[]),u||(u=wa);var p=ve(e),h=p.matchedQueries,f=p.references,d=p.matchedQueryIds,m=null,y=null;i&&(m=(k=Pe(i))[0],y=k[1]),s=s||[];for(var v=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],E=_[2],C=Pe(w),S=C[0],x=C[1],T=void 0,P=void 0;switch(15&b){case 4:P=E;break;case 1:case 8:T=E}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],N=O[0],M=O[1];A[g]={type:0,target:N,eventName:M,propName:null}}var R=(o=o||[]).map(function(t){var e=t[0],n=t[1],r=Pe(e);return[r[0],r[1],n]});return l=re(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:d,references:f,ngContentIndex:n,childCount:r,bindings:v,bindingFlags:Ae(v),outputs:A,element:{ns:m,name:y,attrs:R,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||wa},provider:null,text:null,query:null,ngContent:null};var k}function Ie(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=_e(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=i.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function je(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=De(t,n.index,fe(o.target,o.eventName)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}}function De(t,e,n){return function(r){try{return ce(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Le(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Ve(t,e,0,n)&&(f=!0),h>1&&Ve(t,e,1,r)&&(f=!0),h>2&&Ve(t,e,2,i)&&(f=!0),h>3&&Ve(t,e,3,o)&&(f=!0),h>4&&Ve(t,e,4,s)&&(f=!0),h>5&&Ve(t,e,5,a)&&(f=!0),h>6&&Ve(t,e,6,u)&&(f=!0),h>7&&Ve(t,e,7,c)&&(f=!0),h>8&&Ve(t,e,8,l)&&(f=!0),h>9&&Ve(t,e,9,p)&&(f=!0),f}function Fe(t,e,n){for(var r=!1,i=0;i<n.length;i++)Ve(t,e,i,n[i])&&(r=!0);return r}function Ve(t,e,n,r){if(!oe(t,e,n,r))return!1;var i=e.bindings[n],o=zt(t,e.index),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:Ue(t,i,s,i.ns,a,r);break;case 2:Be(t,s,a,r);break;case 4:He(t,i,s,a,r);break;case 8:qe(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function Ue(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}function Be(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}function He(t,e,n,r,i){var o=t.root.sanitizer.sanitize(va.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}function qe(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}function ze(t,e,n,r){return{index:-1,deps:ge(r),flags:t,token:e,value:n}}function Ge(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[te(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function We(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];n[r]=4096&i.flags?Na:Ke(t,i)}}function $e(t,e,n){if(void 0===n&&(n=yo.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case Ma:case Ra:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return o===Na&&(o=t._providers[i.index]=Ke(t,i)),o}return t._parent.get(e.token,n)}function Ke(t,e){var n;switch(201347067&e.flags){case 512:n=Qe(t,e.value,e.deps);break;case 1024:n=Je(t,e.value,e.deps);break;case 2048:n=$e(t,e.deps[0]);break;case 256:n=e.value}return n}function Qe(t,e,n){var r,i=n.length;switch(i){case 0:r=new e;break;case 1:r=new e($e(t,n[0]));break;case 2:r=new e($e(t,n[0]),$e(t,n[1]));break;case 3:r=new e($e(t,n[0]),$e(t,n[1]),$e(t,n[2]));break;default:for(var o=new Array(i),s=0;s<i;s++)o[s]=$e(t,n[s]);r=new(e.bind.apply(e,[void 0].concat(o)))}return r}function Je(t,e,n){var r,i=n.length;switch(i){case 0:r=e();break;case 1:r=e($e(t,n[0]));break;case 2:r=e($e(t,n[0]),$e(t,n[1]));break;case 3:r=e($e(t,n[0]),$e(t,n[1]),$e(t,n[2]));break;default:for(var o=Array(i),s=0;s<i;s++)o[s]=$e(t,n[s]);r=e.apply(void 0,o)}return r}function Xe(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==Na&&i.ngOnDestroy()}}function Ye(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,an(i,n,r),Ze(e,r),ba.dirtyParentQueries(r),on(e,n>0?i[n-1]:null,r)}function Ze(t,e){var n=le(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),tn(e.parent.def,e.parentNodeDef)}}function tn(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function en(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,un(n,e),ba.dirtyParentQueries(r),sn(r),r}function nn(t){if(16&t.state){var e=le(t);if(e){var n=e.template._projectedViews;n&&(un(n,n.indexOf(t)),ba.dirtyParentQueries(t))}}}function rn(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return un(r,e),null==n&&(n=r.length),an(r,n,i),ba.dirtyParentQueries(i),sn(i),on(t,n>0?r[n-1]:null,i),i}function on(t,e,n){var r=e?he(e,e.def.lastRenderRootNode):t.renderElement;Ee(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function sn(t){Ee(t,3,null,null,void 0)}function an(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function un(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function cn(t,e,n,r,i,o){return new Ia(t,e,n,r,i,o)}function ln(t){return t.viewDefFactory}function pn(t,e,n){return new Da(t,e,n)}function hn(t){return new La(t)}function fn(t,e){return new Fa(t,e)}function dn(t,e){return new Va(t,e)}function mn(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=zt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return qt(t,n.index).renderText;if(20240&n.flags)return Gt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function yn(t){return new Ua(t.renderer)}function vn(t,e,n,r){return new Ba(t,e,n,r)}function gn(t,e,n,r,i,o,s){var a=[];if(o)for(var u in o){var c=o[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=16384,wn(t,e,n,r,r,i,a,h)}function _n(t,e,n){return t|=16,wn(t,null,0,e,e,n)}function bn(t,e,n,r,i){return wn(t,e,0,n,r,i)}function wn(t,e,n,r,i,o,s,a){var u=ve(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=ge(o);return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:Ae(s),outputs:a,element:null,provider:{token:r,value:i,deps:h},text:null,query:null,ngContent:null}}function En(t,e){return 4096&e.flags?Qa:An(t,e)}function Cn(t,e){for(var n=t;n.parent&&!de(n);)n=n.parent;return On(n.parent,pe(n),!0,e.provider.value,e.provider.deps)}function Sn(t,e){var n=(32768&e.flags)>0,r=On(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(xn(t,e.parent.index,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function xn(t,e,n){return function(r){try{return ce(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Tn(t,e,n,r,i,o,s,a,u,c,l,p){var h=Gt(t,e.index),f=h.instance,d=!1,m=void 0,y=e.bindings.length;return y>0&&ie(t,e,0,n)&&(d=!0,m=kn(t,h,e,0,n,m)),y>1&&ie(t,e,1,r)&&(d=!0,m=kn(t,h,e,1,r,m)),y>2&&ie(t,e,2,i)&&(d=!0,m=kn(t,h,e,2,i,m)),y>3&&ie(t,e,3,o)&&(d=!0,m=kn(t,h,e,3,o,m)),y>4&&ie(t,e,4,s)&&(d=!0,m=kn(t,h,e,4,s,m)),y>5&&ie(t,e,5,a)&&(d=!0,m=kn(t,h,e,5,a,m)),y>6&&ie(t,e,6,u)&&(d=!0,m=kn(t,h,e,6,u,m)),y>7&&ie(t,e,7,c)&&(d=!0,m=kn(t,h,e,7,c,m)),y>8&&ie(t,e,8,l)&&(d=!0,m=kn(t,h,e,8,l,m)),y>9&&ie(t,e,9,p)&&(d=!0,m=kn(t,h,e,9,p,m)),m&&f.ngOnChanges(m),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function Pn(t,e,n){for(var r=Gt(t,e.index),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)ie(t,e,a,n[a])&&(o=!0,s=kn(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),2&t.state&&65536&e.flags&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}function An(t,e){var n,r=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:n=On(t,e.parent,r,i.value,i.deps);break;case 1024:n=Nn(t,e.parent,r,i.value,i.deps);break;case 2048:n=Mn(t,e.parent,r,i.deps[0]);break;case 256:n=i.value}return n}function On(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=new r;break;case 1:o=new r(Mn(t,e,n,i[0]));break;case 2:o=new r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]));break;case 3:o=new r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]),Mn(t,e,n,i[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=Mn(t,e,n,i[u]);o=new(r.bind.apply(r,[void 0].concat(a)))}return o}function Nn(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=r();break;case 1:o=r(Mn(t,e,n,i[0]));break;case 2:o=r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]));break;case 3:o=r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]),Mn(t,e,n,i[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=Mn(t,e,n,i[u]);o=r.apply(void 0,a)}return o}function Mn(t,e,n,r,i){if(void 0===i&&(i=yo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===$a&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Ha:return yn(a=Rn(t,e,n));case qa:var a=Rn(t,e,n);return a.renderer;case za:return new Rs(zt(t,e.index).renderElement);case Ga:return zt(t,e.index).viewContainer;case Wa:if(e.element.template)return zt(t,e.index).template;break;case $a:return hn(Rn(t,e,n));case Ka:return dn(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Gt(t,u.index);return c.instance===Qa&&(c.instance=An(t,u)),c.instance}}n=de(t),e=pe(t),t=t.parent}var l=o.root.injector.get(r.token,Ja);return l!==Ja||i===Ja?l:o.root.ngModule.injector.get(r.token,i)}function Rn(t,e,n){var r;if(n)r=zt(t,e.index).componentView;else for(r=t;r.parent&&!de(r);)r=r.parent;return r}function kn(t,e,n,r,i,o){if(32768&n.flags){var s=zt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(e.instance[a]=i,524288&n.flags){o=o||{};var u=t.oldValues[n.bindingIndex+r];u instanceof Ks&&(u=u.wrapped),o[n.bindings[r].nonMinifiedName]=new Js(u,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function In(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var i=n[r],o=i.parent;for(!o&&i.flags&e&&Dn(t,r,i.flags&e),0==(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.index+o.childCount;)o.directChildFlags&e&&jn(t,o,e),o=o.parent}}function jn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var i=t.def.nodes[r];i.flags&n&&Dn(t,r,i.flags&n),r+=i.childCount}}function Dn(t,e,n){var r=Gt(t,e).instance;r!==Qa&&(ba.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function Ln(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}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:ye(e),bindings:r},ngContent:null}}function Fn(){return new js}function Vn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&me(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&$t(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.index)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o=t.def.nodes[i];134217728&o.flags&&536870912&o.flags&&$t(t,i).setDirty(),i+=o.childCount}}function Un(t,e){var n=$t(t,e.index);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Bn(t,o.index,o.index+o.childCount,e.query,[]),r=Gt(t,e.parent.index).instance}else 134217728&e.flags&&(i=Bn(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function Bn(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Hn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=zt(t,o);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=le(p);h&&h===u&&Bn(p,0,p.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(l=0;l<f.length;l++){var d=f[l];Bn(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Hn(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=zt(t,e.index).renderElement;break;case 0:r=new Rs(zt(t,e.index).renderElement);break;case 2:r=zt(t,e.index).template;break;case 3:r=zt(t,e.index).viewContainer;break;case 4:r=Gt(t,e.index).instance}return r}}function qn(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function zn(t,e,n){var r=_e(t,e,n);r&&Se(t,n.ngContent.index,1,r,null,void 0)}function Gn(t){return Kn(128,new Array(t+1))}function Wn(t){return Kn(32,new Array(t))}function $n(t){for(var e=Object.keys(t),n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[t[o]]=o}return Kn(64,r)}function Kn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var i=e[r];n[r]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:Ae(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Qn(t,e){return{value:void 0}}function Jn(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&oe(t,e,0,n)&&(f=!0),d>1&&oe(t,e,1,r)&&(f=!0),d>2&&oe(t,e,2,i)&&(f=!0),d>3&&oe(t,e,3,o)&&(f=!0),d>4&&oe(t,e,4,s)&&(f=!0),d>5&&oe(t,e,5,a)&&(f=!0),d>6&&oe(t,e,6,u)&&(f=!0),d>7&&oe(t,e,7,c)&&(f=!0),d>8&&oe(t,e,8,l)&&(f=!0),d>9&&oe(t,e,9,p)&&(f=!0),f){var m=Wt(t,e.index),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=i),d>3&&(y[3]=o),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 64:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=i),d>3&&(y[h[3].name]=o),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 128:var v=n;switch(d){case 1:y=v.transform(n);break;case 2:y=v.transform(r);break;case 3:y=v.transform(r,i);break;case 4:y=v.transform(r,i,o);break;case 5:y=v.transform(r,i,o,s);break;case 6:y=v.transform(r,i,o,s,a);break;case 7:y=v.transform(r,i,o,s,a,u);break;case 8:y=v.transform(r,i,o,s,a,u,c);break;case 9:y=v.transform(r,i,o,s,a,u,c,l);break;case 10:y=v.transform(r,i,o,s,a,u,c,l,p)}}m.value=y}return f}function Xn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)oe(t,e,o,n[o])&&(i=!0);if(i){var s=Wt(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return i}function Yn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:Ae(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Zn(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=_e(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function tr(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&oe(t,e,0,n)&&(h=!0),d>1&&oe(t,e,1,r)&&(h=!0),d>2&&oe(t,e,2,i)&&(h=!0),d>3&&oe(t,e,3,o)&&(h=!0),d>4&&oe(t,e,4,s)&&(h=!0),d>5&&oe(t,e,5,a)&&(h=!0),d>6&&oe(t,e,6,u)&&(h=!0),d>7&&oe(t,e,7,c)&&(h=!0),d>8&&oe(t,e,8,l)&&(h=!0),d>9&&oe(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;d>0&&(m+=nr(n,f[0])),d>1&&(m+=nr(r,f[1])),d>2&&(m+=nr(i,f[2])),d>3&&(m+=nr(o,f[3])),d>4&&(m+=nr(s,f[4])),d>5&&(m+=nr(a,f[5])),d>6&&(m+=nr(u,f[6])),d>7&&(m+=nr(c,f[7])),d>8&&(m+=nr(l,f[8])),d>9&&(m+=nr(p,f[9]));var y=qt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function er(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)oe(t,e,o,n[o])&&(i=!0);if(i){for(var s="",o=0;o<n.length;o++)s+=nr(n[o],r[o]);s=e.text.prefix+s;var a=qt(t,e.index).renderText;t.renderer.setValue(a,s)}return i}function nr(t,e){return(null!=t?t.toString():"")+e.suffix}function rr(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;)(_=c.parent)&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_;var d=e[f];d.index=f,d.parent=c,d.bindingIndex=i,d.outputIndex=o;var m=void 0;if(m=c&&1&c.flags&&!c.element.name?c.renderParent:c,d.renderParent=m,d.element){var y=d.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,l=!1,p=!1}if(ir(c,d,e.length),s|=d.flags,u|=d.matchedQueryIds,d.element&&d.element.template&&(u|=d.element.template.nodeMatchedQueries),c?(c.childFlags|=d.flags,c.directChildFlags|=d.flags,c.childMatchedQueries|=d.matchedQueryIds,d.element&&d.element.template&&(c.childMatchedQueries|=d.element.template.nodeMatchedQueries)):a|=d.flags,i+=d.bindings.length,o+=d.outputs.length,!m&&3&d.flags&&(h=d),20224&d.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var v=0!=(8192&d.flags),g=0!=(32768&d.flags);!v||g?c.element.publicProviders[te(d.provider.token)]=d:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[te(d.provider.token)]=d),g&&(c.element.componentProvider=d)}d.childCount&&(c=d)}for(;c;){var _=c.parent;_&&(_.childFlags|=c.childFlags,_.childMatchedQueries|=c.childMatchedQueries),c=_}var b=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||wa,updateRenderer:r||wa,handleEvent:b||wa,bindingCount:i,outputCount:o,lastRenderRootNode:h}}function ir(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:n-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 or(t,e,n,r){var i=ur(t.root,t.renderer,t,e,n);return cr(i,t.component,r),lr(i),i}function sr(t,e,n){var r=ur(t,t.renderer,null,null,e);return cr(r,n,n),lr(r),r}function ar(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ur(t.root,i,t,e.element.componentProvider,n)}function ur(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function cr(t,e,n){t.component=e,t.context=n}function lr(t){var e;if(de(t)){var n=t.parentNodeDef;e=zt(t.parent,n.parent.index).renderElement}for(var r=t.def,i=t.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];ba.setCurrentNode(t,o);var a=void 0;switch(201347067&s.flags){case 1:var u=Ie(t,e,s),c=void 0;if(33554432&s.flags){var l=be(s.element.componentView);c=ba.createComponentView(t,s,l,u)}je(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?fn(t,s):void 0},16777216&s.flags&&(a.viewContainer=pn(t,s,a));break;case 2:a=Zn(t,e,s);break;case 512:case 1024:case 2048:case 256:a={instance:p=En(t,s)};break;case 16:a={instance:p=Cn(t,s)};break;case 16384:var p=Sn(t,s);a={instance:p},32768&s.flags&&cr(zt(t,s.parent.index).componentView,p,p);break;case 32:case 64:case 128:a=Qn(t,s);break;case 67108864:case 134217728:a=Fn();break;case 8:zn(t,e,s),a=void 0}i[o]=a}Cr(t,Xa.CreateViewNodes),Pr(t,201326592,268435456,0)}function pr(t){dr(t),ba.updateDirectives(t,1),Sr(t,Xa.CheckNoChanges),ba.updateRenderer(t,1),Cr(t,Xa.CheckNoChanges),t.state&=-97}function hr(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,dr(t),ba.updateDirectives(t,0),Sr(t,Xa.CheckAndUpdate),Pr(t,67108864,536870912,0),In(t,2097152|(2&t.state?1048576:0)),ba.updateRenderer(t,0),Cr(t,Xa.CheckAndUpdate),Pr(t,134217728,536870912,0),In(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function fr(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?mr(t,e,r,i,o,s,a,u,c,l,p,h):yr(t,e,r)}function dr(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=zt(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,ue(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function mr(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Le(t,e,n,r,i,o,s,a,u,c,l,p);break;case 2:h=tr(t,e,n,r,i,o,s,a,u,c,l,p);break;case 16384:h=Tn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 32:case 64:case 128:h=Jn(t,e,n,r,i,o,s,a,u,c,l,p)}return h}function yr(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=Fe(t,e,n);break;case 2:r=er(t,e,n);break;case 16384:r=Pn(t,e,n);break;case 32:case 64:case 128:r=Xn(t,e,n)}if(r)for(var i=e.bindings.length,o=e.bindingIndex,s=t.oldValues,a=0;a<i;a++)s[o+a]=n[a];return r}function vr(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?gr(t,e,r,i,o,s,a,u,c,l,p,h):_r(t,e,r),!1}function gr(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&se(t,e,0,n),h>1&&se(t,e,1,r),h>2&&se(t,e,2,i),h>3&&se(t,e,3,o),h>4&&se(t,e,4,s),h>5&&se(t,e,5,a),h>6&&se(t,e,6,u),h>7&&se(t,e,7,c),h>8&&se(t,e,8,l),h>9&&se(t,e,9,p)}function _r(t,e,n){for(var r=0;r<n.length;r++)se(t,e,r,n[r])}function br(t,e){if($t(t,e.index).dirty)throw Kt(ba.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function wr(t){if(!(128&t.state)){if(Sr(t,Xa.Destroy),Cr(t,Xa.Destroy),In(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();nn(t),t.renderer.destroyNode&&Er(t),de(t)&&t.renderer.destroy(),t.state|=128}}function Er(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(zt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(qt(t,n).renderText)}}function Cr(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?xr(zt(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function Sr(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=zt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)xr(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function xr(t,e){var n=t.state;switch(e){case Xa.CheckNoChanges:0==(128&n)&&(12==(12&n)?pr(t):64&n&&Tr(t,Xa.CheckNoChangesProjectedViews));break;case Xa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?pr(t):64&n&&Tr(t,e));break;case Xa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?hr(t):64&n&&Tr(t,Xa.CheckAndUpdateProjectedViews));break;case Xa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?hr(t):64&n&&Tr(t,e));break;case Xa.Destroy:wr(t);break;case Xa.CreateViewNodes:lr(t)}}function Tr(t,e){Sr(t,e),Cr(t,e)}function Pr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(ba.setCurrentNode(t,s.index),r){case 0:Un(t,s);break;case 1:br(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function Ar(){if(!Ya){Ya=!0;var t=dt()?Nr():Or();ba.setCurrentNode=t.setCurrentNode,ba.createRootView=t.createRootView,ba.createEmbeddedView=t.createEmbeddedView,ba.createComponentView=t.createComponentView,ba.createNgModuleRef=t.createNgModuleRef,ba.overrideProvider=t.overrideProvider,ba.clearProviderOverrides=t.clearProviderOverrides,ba.checkAndUpdateView=t.checkAndUpdateView,ba.checkNoChangesView=t.checkNoChangesView,ba.destroyView=t.destroyView,ba.resolveDep=Mn,ba.createDebugContext=t.createDebugContext,ba.handleEvent=t.handleEvent,ba.updateDirectives=t.updateDirectives,ba.updateRenderer=t.updateRenderer,ba.dirtyParentQueries=Vn}}function Or(){return{setCurrentNode:function(){},createRootView:Mr,createEmbeddedView:or,createComponentView:ar,createNgModuleRef:vn,overrideProvider:wa,clearProviderOverrides:wa,checkAndUpdateView:hr,checkNoChangesView:pr,destroyView:wr,createDebugContext:function(t,e){return new ou(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Br:Hr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Br:Hr,t)}}}function Nr(){return{setCurrentNode:Wr,createRootView:Rr,createEmbeddedView:Ir,createComponentView:jr,createNgModuleRef:Dr,overrideProvider:Lr,clearProviderOverrides:Fr,checkAndUpdateView:qr,checkNoChangesView:zr,destroyView:Gr,createDebugContext:function(t,e){return new ou(t,e)},handleEvent:$r,updateDirectives:Kr,updateRenderer:Qr}}function Mr(t,e,n,r,i,o){return sr(kr(t,i,i.injector.get(Os),e,n),r,o)}function Rr(t,e,n,r,i,o){var s=i.injector.get(Os),a=kr(t,i,new su(s),e,n),u=Vr(r);return si(tu.create,sr,null,[a,u,o])}function kr(t,e,n,r,i){var o=e.injector.get(ga),s=e.injector.get(bo);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Ir(t,e,n,r){var i=Vr(n);return si(tu.create,or,null,[t,e,i,r])}function jr(t,e,n,r){var i=Vr(n);return si(tu.create,ar,null,[t,e,i,r])}function Dr(t,e,n,r){return vn(t,e,n,Ur(r))}function Lr(t){Za.set(t.token,t)}function Fr(){Za.clear()}function Vr(t){if(0===Za.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Za.has(i.provider.token)&&(e.push(n.index),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return wa});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){r.flags|=4096;var i=r.provider,o=Za.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=ge(o.deps),i.value=o.value)}}}(t,e[n]);return t}function Ur(t){return 0!==Za.size&&function(t){return t.providers.some(function(t){return!!(3840&t.flags)&&Za.has(t.token)})}(t)?(t=t.factory(function(){return wa}),function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];n.flags|=4096;var r=Za.get(n.token);r&&(n.flags=-3841&n.flags|r.flags,n.deps=ge(r.deps),n.value=r.value)}}(t),t):t}function Br(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return fr(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Wt(t,e).value:void 0}function Hr(t,e,n,r,i,o,s,a,u,c,l,p,h){var f=t.def.nodes[e];return vr(t,f,n,r,i,o,s,a,u,c,l,p,h),224&f.flags?Wt(t,e).value:void 0}function qr(t){return si(tu.detectChanges,hr,null,[t])}function zr(t){return si(tu.checkNoChanges,pr,null,[t])}function Gr(t){return si(tu.destroy,wr,null,[t])}function Wr(t,e){nu=t,ru=e}function $r(t,e,n,r){return Wr(t,e),si(tu.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Kr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Jr(t,s,r,i):Xr(t,s,r,i),16384&s.flags&&Wr(t,ei(t,n)),224&s.flags?Wt(t,s.index).value:void 0}if(128&t.state)throw Zt(tu[eu]);return Wr(t,ei(t,0)),t.def.updateDirectives(n,t)}function Qr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Jr(t,s,r,i):Xr(t,s,r,i),3&s.flags&&Wr(t,ni(t,n)),224&s.flags?Wt(t,s.index).value:void 0}if(128&t.state)throw Zt(tu[eu]);return Wr(t,ni(t,0)),t.def.updateRenderer(n,t)}function Jr(t,e,n,r){if(fr.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[Yr(a.nonMinifiedName)]=ti(u))}var c=e.parent,l=zt(t,c.index).renderElement;if(c.element.name)for(var p in o)null!=(u=o[p])?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p);else t.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function Xr(t,e,n,r){vr.apply(void 0,[t,e,n].concat(r))}function Yr(t){return"ng-reflect-"+(t=Zr(t.replace(/[$@]/g,"_")))}function Zr(t){return t.replace(iu,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function ti(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function ei(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ni(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ri(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}function ii(t){for(;t&&!de(t);)t=t.parent;return t.parent?zt(t.parent,pe(t).index):null}function oi(t,e,n){for(var r in e.references)n[r]=Hn(t,e,e.references[r])}function si(t,e,n,r){var i=eu,o=nu,s=ru;try{eu=t;var a=e.apply(n,r);return nu=o,ru=s,eu=i,a}catch(t){if(Yt(t)||!nu)throw t;throw Qt(t,ai())}}function ai(){return nu?new ou(nu,ru):null}function ui(t){return Ar(),ba.overrideProvider(t)}function ci(){return Ar(),ba.clearProviderOverrides()}function li(t,e,n){return new uu(t,e,n)}function pi(t,e){return{type:7,name:t,definitions:e,options:{}}}function hi(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function fi(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function di(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function mi(t){return{type:6,styles:t,offset:null}}function yi(t,e){return{type:0,name:t,styles:e}}function vi(t){return{type:5,steps:t}}function gi(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function _i(t,e){return pi(t,e)}function bi(t,e){return hi(t,e)}function wi(t){return fi(t)}function Ei(t){return di(t)}function Ci(t){return mi(t)}function Si(t,e){return yi(t,e)}function xi(t){return vi(t)}function Ti(t,e){return gi(t,e)}var Pi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Ai=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Oi=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Ai),Ni="undefined"!=typeof window&&window,Mi="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ri=void 0!==r&&r,ki=Ni||Ri||Mi,Ii=null,ji=0,Di=ki.Reflect,Li=new Oi("AnalyzeForEntryComponents"),Fi=y("Attribute",function(t){return{attributeName:t}}),Vi=function(){function t(){}return t}(),Ui=v("ContentChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},Vi),Bi=v("ContentChild",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},Vi),Hi=v("ViewChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},Vi),qi=v("ViewChild",function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},Vi),zi={};zi.OnPush=0,zi.Default=1,zi[zi.OnPush]="OnPush",zi[zi.Default]="Default";var Gi={};Gi.CheckOnce=0,Gi.Checked=1,Gi.CheckAlways=2,Gi.Detached=3,Gi.Errored=4,Gi.Destroyed=5,Gi[Gi.CheckOnce]="CheckOnce",Gi[Gi.Checked]="Checked",Gi[Gi.CheckAlways]="CheckAlways",Gi[Gi.Detached]="Detached",Gi[Gi.Errored]="Errored",Gi[Gi.Destroyed]="Destroyed";var Wi=d("Directive",function(t){return void 0===t&&(t={}),t}),$i=d("Component",function(t){return void 0===t&&(t={}),Object.assign({changeDetection:zi.Default},t)},Wi),Ki=d("Pipe",function(t){return Object.assign({pure:!0},t)}),Qi=v("Input",function(t){return{bindingPropertyName:t}}),Ji=v("Output",function(t){return{bindingPropertyName:t}}),Xi=v("HostBinding",function(t){return{hostPropertyName:t}}),Yi=v("HostListener",function(t,e){return{eventName:t,args:e}}),Zi={name:"custom-elements"},to={name:"no-errors-schema"},eo=d("NgModule",function(t){return t}),no={};no.Emulated=0,no.Native=1,no.None=2,no[no.Emulated]="Emulated",no[no.Native]="Native",no[no.None]="None";var ro=function(){function t(t){void 0===t&&(t={}),this.templateUrl=t.templateUrl,this.template=t.template,this.styleUrls=t.styleUrls,this.styles=t.styles,this.encapsulation=t.encapsulation,this.animations=t.animations,this.interpolation=t.interpolation}return t}(),io=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}(),oo=new io("4.3.0"),so=y("Inject",function(t){return{token:t}}),ao=y("Optional"),uo=d("Injectable"),co=y("Self"),lo=y("SkipSelf"),po=y("Host"),ho=new Object,fo=ho,mo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=ho),e===ho)throw new Error("No provider for "+l(t)+"!");return e},t}(),yo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();yo.THROW_IF_NOT_FOUND=ho,yo.NULL=new mo;var vo="ngDebugContext",go="ngOriginalError",_o="ngErrorLogger",bo=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=C(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?w(t)?w(t):this._findContext(E(t)):null},t.prototype._findOriginalError=function(t){for(var e=E(t);e&&E(e);)e=E(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 l(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Eo.get(b(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Eo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Eo=new(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}()),Co=Function,So=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,xo=function(){function t(t){this._reflect=t||ki.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(So.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&F(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){o=this._reflect.getOwnMetadata("parameters",t);if((i=this._reflect.getOwnMetadata("design:paramtypes",t))||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!L(t))return[];var e=V(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?F(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!L(t))return[];var e=V(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=F(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!L(t))return{};var e=V(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Co&&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:"./"+l(t)},t.prototype.resourceUri=function(t){return"./"+l(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),To=function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}(),Po=new To(new xo),Ao=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),Oo=[],No=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),Mo=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),Ro=new Object,ko=function(){function t(){}return t.resolve=function(t){return H(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Io(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),Io=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Ro}return t.prototype.get=function(t,e){return void 0===e&&(e=fo),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=ko.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(ko.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw j(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var o;try{o=i.apply(void 0,n)}catch(e){throw R(this,e,e.stack,t.key)}return o},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:fo)},t.prototype._getByKey=function(t,e,n){return t===jo?this:e instanceof co?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Ro&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Ro},t.prototype._throwOrNull=function(t,e){if(e!==fo)return e;throw N(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Ro?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof lo?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Ro)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+Q(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),jo=wo.get(yo),Do=new Oi("Application Initializer"),Lo=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();J(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();Lo.decorators=[{type:uo}],Lo.ctorParameters=function(){return[{type:Array,decorators:[{type:so,args:[Do]},{type:ao}]}]};var Fo=new Oi("AppId"),Vo={provide:Fo,useFactory:Y,deps:[]},Uo=new Oi("Platform Initializer"),Bo=new Oi("Platform ID"),Ho=new Oi("appBootstrapListener"),qo=new Oi("Application Packages Root URL"),zo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();zo.decorators=[{type:uo}],zo.ctorParameters=function(){return[]};var Go=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Wo=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw tt()},t.prototype.compileModuleAsync=function(t){throw tt()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw tt()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw tt()},t.prototype.getNgContentSelectors=function(t){throw tt()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Wo.decorators=[{type:uo}],Wo.ctorParameters=function(){return[]};var $o=new Oi("compilerOptions"),Ko=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Qo=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Jo=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Xo="ngComponent",Yo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw et(t)},t}(),Zo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Zo.NULL=new Yo;var ts,es,ns=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw et(t);return new rs(e,this._ngModule)},t}(),rs=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return s(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Jo),is=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),os=function(){function t(){}return t.prototype.moduleType=function(){},t.prototype.create=function(t){},t}(),ss=nt(),as=ss?rt:function(t,e){return at},us=ss?it:function(t,e){return e},cs=ss?ot:function(t,e){return null},ls=ss?st:function(t){return null},ps=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return s(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(o.Subject),hs=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ps(!1),this.onMicrotaskEmpty=new ps(!1),this.onStable=new ps(!1),this.onError=new ps(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),ct(r)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this._inner.run(t)},t.prototype.runGuarded=function(t){return this._inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}(),fs=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(){hs.assertNotInAngularZone(),u(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()?u(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();fs.decorators=[{type:uo}],fs.ctorParameters=function(){return[{type:hs}]};var ds=function(){function t(){this._applications=new Map,ys.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),ys.findTestabilityInTree(this,t,e)},t}();ds.decorators=[{type:uo}],ds.ctorParameters=function(){return[]};var ms,ys=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),vs=!0,gs=!1,_s=new Oi("AllowMultipleToken"),bs=function(){function t(t,e){this.name=t,this.token=e}return t}(),ws=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Es=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return s(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new hs({enableLongStackTrace:dt()})),e.run(function(){var r=ko.resolveAndCreate([{provide:hs,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(bo,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return wt(n._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),bt(o,function(){var t=i.injector.get(Lo);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(Ko).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Cs);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+l(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}(ws);Es.decorators=[{type:uo}],Es.ctorParameters=function(){return[{type:yo}]};var Cs=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),Ss=function(t){function r(r,o,s,a,c,l){var p=t.call(this)||this;p._zone=r,p._console=o,p._injector=s,p._exceptionHandler=a,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=dt(),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(){hs.assertNotInAngularZone(),u(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){hs.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,i.share.call(f)),p}return s(r,t),r.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},r.prototype.detachView=function(t){var e=t;wt(this._views,e),e.detachFromAppRef()},r.prototype.bootstrap=function(t,e){var n=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 Jo?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var i=r instanceof rs?null:this._injector.get(is),o=e||r.selector,s=r.create(yo.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(fs,null);return a&&s.injector.get(ds).registerApplication(s.location.nativeElement,a),this._loadComponent(s),dt()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},r.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(Ho,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},r.prototype._unloadComponent=function(t){this.detachView(t.hostView),wt(this._rootComponents,t)},r.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=r._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._exceptionHandler.handleError(t)}finally{this._runningTick=!1,us(t)}},r.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(r.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),r}(Cs);Ss._tickScope=as("ApplicationRef#tick()"),Ss.decorators=[{type:uo}],Ss.ctorParameters=function(){return[{type:hs},{type:zo},{type:yo},{type:bo},{type:Zo},{type:Lo}]};var xs=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}(),Ts=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}(),Ps=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,i,o,s){},t}(),As=(new Oi("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),Os=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t.prototype.begin=function(){},t.prototype.end=function(){},t.prototype.whenRenderingDone=function(){},t}(),Ns={};Ns.Important=1,Ns.DashCase=2,Ns[Ns.Important]="Important",Ns[Ns.DashCase]="DashCase";var Ms=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),Rs=function(){function t(t){this.nativeElement=t}return t}(),ks=function(){function t(){}return t.prototype.load=function(t){},t}(),Is=new Map,js=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new ps}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[a()]=function(){return this._results[a()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=St(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}(),Ds=function(){function t(){}return t}(),Ls={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Fs=function(){function t(t,e){this._compiler=t,this._config=e||Ls}return t.prototype.load=function(t){return this._compiler instanceof Wo?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return xt(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return xt(t,n,r)})},t}();Fs.decorators=[{type:uo}],Fs.ctorParameters=function(){return[{type:Wo},{type:Ds,decorators:[{type:ao}]}]};var Vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),Us=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,i){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),Bs=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(Bs),qs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Hs),zs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Gs=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ws?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}(),Ws=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return s(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return Pt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return At(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Gs),$s=new Map,Ks=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Qs=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ks?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Js=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Xs=function(){function t(){}return t.prototype.supports=function(t){return kt(t)},t.prototype.create=function(t,e){return new Zs(e||t)},t}(),Ys=function(t,e){return e},Zs=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||Ys}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Lt(n,r,i)?e:n,s=Lt(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,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=[]),!kt(t))throw new Error("Error trying to diff '"+l(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],i=this._trackByFn(a,r),null!==o&&c(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),c(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,jt(t,function(t){i=e._trackByFn(n,t),null!==o&&c(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),c(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(c(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ta(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new na),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),ta=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?l(this.item):l(this.item)+"["+l(this.previousIndex)+"->"+l(this.currentIndex)+"]"},t}(),ea=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&c(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),na=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new ea,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+l(this.map)+")"},t}(),ra=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Dt(t)},t.prototype.create=function(t){return new ia},t}(),ia=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||Dt(t)))throw new Error("Error trying to diff '"+l(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new oa(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){c(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),oa=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}(),sa=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lo,new ao]]}},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 '"+Ft(t)+"'")},t}(),aa=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lo,new ao]]}},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}(),ua=[new ra],ca=new sa([new Xs]),la=new aa(ua),pa=yt(null,"core",[{provide:Bo,useValue:"unknown"},Es,{provide:ws,useExisting:Es},{provide:To,useFactory:Vt,deps:[]},ds,zo]),ha=new Oi("LocaleId"),fa=new Oi("Translations"),da=new Oi("TranslationsFormat"),ma={};ma.Error=0,ma.Warning=1,ma.Ignore=2,ma[ma.Error]="Error",ma[ma.Warning]="Warning",ma[ma.Ignore]="Ignore";var ya=function(){function t(t){}return t}();ya.decorators=[{type:eo,args:[{providers:[Ss,{provide:Cs,useExisting:Ss},Lo,Wo,Vo,{provide:sa,useFactory:Ut},{provide:aa,useFactory:Bt},{provide:ha,useFactory:Ht,deps:[[new so(ha),new ao,new lo]]}]}]}],ya.ctorParameters=function(){return[{type:Cs}]};var va={};va.NONE=0,va.HTML=1,va.STYLE=2,va.SCRIPT=3,va.URL=4,va.RESOURCE_URL=5,va[va.NONE]="NONE",va[va.HTML]="HTML",va[va.STYLE]="STYLE",va[va.SCRIPT]="SCRIPT",va[va.URL]="URL",va[va.RESOURCE_URL]="RESOURCE_URL";var ga=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),_a=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),ba={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides: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},wa=function(){},Ea=new Map,Ca="$$undefined",Sa="$$empty",xa=0,Ta=new WeakMap,Pa=/^:([^:]+):(.+)$/,Aa=[],Oa={},Na=new Object,Ma=te(yo),Ra=te(is),ka=new Object,Ia=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return s(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=be(this.viewDefFactory),o=i.nodes[0].element.componentProvider.index,s=ba.createRootView(t,e||[],n,i,r,ka),a=Gt(s,o).instance;return n&&s.renderer.setAttribute(zt(s,0).renderElement,"ng-version",oo.full),new ja(s,new La(s),a)},e}(Jo),ja=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i}return s(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Rs(zt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Va(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}(Qo),Da=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Rs(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Va(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=pe(t),t=t.parent;return t?new Va(t,e):new Va(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=en(this._data,t);ba.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new La(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof rs||(i=o.get(is));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Ye(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return rn(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=en(this._data,t);e&&ba.destroyView(e)},t.prototype.detach=function(t){var e=en(this._data,t);return e?new La(e):null},t}(),La=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return we(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){ae(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),ba.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){ba.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),ba.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,sn(this._view),ba.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),Fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return s(e,t),e.prototype.createEmbeddedView=function(t){return new La(ba.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Rs(zt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(Vs),Va=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=yo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return ba.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:te(t)},e)},t}(),Ua=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Pe(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=Pe(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),Ba=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,We(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=yo.THROW_IF_NOT_FOUND),$e(this,{token:t,tokenKey:te(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Zo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+l(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Xe(this,131072),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Ha=te(Ps),qa=te(Ms),za=te(Rs),Ga=te(Us),Wa=te(Vs),$a=te(Bs),Ka=te(yo),Qa=new Object,Ja={},Xa={};Xa.CreateViewNodes=0,Xa.CheckNoChanges=1,Xa.CheckNoChangesProjectedViews=2,Xa.CheckAndUpdate=3,Xa.CheckAndUpdateProjectedViews=4,Xa.Destroy=5,Xa[Xa.CreateViewNodes]="CreateViewNodes",Xa[Xa.CheckNoChanges]="CheckNoChanges",Xa[Xa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",Xa[Xa.CheckAndUpdate]="CheckAndUpdate",Xa[Xa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",Xa[Xa.Destroy]="Destroy";var Ya=!1,Za=new Map,tu={};tu.create=0,tu.detectChanges=1,tu.checkNoChanges=2,tu.destroy=3,tu.handleEvent=4,tu[tu.create]="create",tu[tu.detectChanges]="detectChanges",tu[tu.checkNoChanges]="checkNoChanges",tu[tu.destroy]="destroy",tu[tu.handleEvent]="handleEvent";var eu,nu,ru,iu=/([A-Z])/g,ou=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=pe(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return zt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return dn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){oi(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&oi(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=ii(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?he(this.view,this.nodeDef):he(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.index):(r=this.elView.def,i=this.elDef.index);var o=ri(r,i),s=-1,a=function(){return s++,s===o?(n=t.error).bind.apply(n,[t].concat(e)):wa;var n};r.factory(a),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),su=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new au(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),au=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){Mt(Ot(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=ai();if(r){var i=new Ws(n,null,r);i.name=t,Nt(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=ai();return n&&Nt(new Gs(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=ai();return n&&Nt(new Gs(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=Ot(t),r=Ot(e);n&&r&&n instanceof Ws&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=Ot(t),i=Ot(e),o=Ot(n);r&&i&&r instanceof Ws&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=Ot(t),r=Ot(e);n&&r&&n instanceof Ws&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=ai();return n&&Nt(new Ws(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=Ot(t);if(i&&i instanceof Ws){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=Ot(t);if(r&&r instanceof Ws){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=Ot(t);n&&n instanceof Ws&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=Ot(t);n&&n instanceof Ws&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=Ot(t);i&&i instanceof Ws&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=Ot(t);r&&r instanceof Ws&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=Ot(t);r&&r instanceof Ws&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=Ot(t);r&&r.listeners.push(new zs(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),uu=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return s(e,t),e.prototype.create=function(t){Ar();var e=be(this._ngModuleDefFactory);return ba.createNgModuleRef(this.moduleType,t||yo.NULL,this._bootstrapComponents,e)},e}(os);t.Class=f,t.createPlatform=mt,t.assertPlatform=vt,t.destroyPlatform=gt,t.getPlatform=_t,t.PlatformRef=ws,t.ApplicationRef=Cs,t.enableProdMode=ft,t.isDevMode=dt,t.createPlatformFactory=yt,t.NgProbeToken=bs,t.APP_ID=Fo,t.PACKAGE_ROOT_URL=qo,t.PLATFORM_INITIALIZER=Uo,t.PLATFORM_ID=Bo,t.APP_BOOTSTRAP_LISTENER=Ho,t.APP_INITIALIZER=Do,t.ApplicationInitStatus=Lo,t.DebugElement=Ws,t.DebugNode=Gs,t.asNativeElements=Tt,t.getDebugNode=Ot,t.Testability=fs,t.TestabilityRegistry=ds,t.setTestabilityGetter=ht,t.TRANSLATIONS=fa,t.TRANSLATIONS_FORMAT=da,t.LOCALE_ID=ha,t.MissingTranslationStrategy=ma,t.ApplicationModule=ya,t.wtfCreateScope=as,t.wtfLeave=us,t.wtfStartTimeRange=cs,t.wtfEndTimeRange=ls,t.Type=Co,t.EventEmitter=ps,t.ErrorHandler=bo,t.Sanitizer=ga,t.SecurityContext=va,t.ANALYZE_FOR_ENTRY_COMPONENTS=Li,t.Attribute=Fi,t.ContentChild=Bi,t.ContentChildren=Ui,t.Query=Vi,t.ViewChild=qi,t.ViewChildren=Hi,t.Component=$i,t.Directive=Wi,t.HostBinding=Xi,t.HostListener=Yi,t.Input=Qi,t.Output=Ji,t.Pipe=Ki,t.CUSTOM_ELEMENTS_SCHEMA=Zi,t.NO_ERRORS_SCHEMA=to,t.NgModule=eo,t.ViewEncapsulation=no,t.Version=io,t.VERSION=oo,t.forwardRef=_,t.resolveForwardRef=b,t.Injector=yo,t.ReflectiveInjector=ko,t.ResolvedReflectiveFactory=Mo,t.ReflectiveKey=wo,t.InjectionToken=Oi,t.OpaqueToken=Ai,t.Inject=so,t.Optional=ao,t.Injectable=uo,t.Self=co,t.SkipSelf=lo,t.Host=po,t.NgZone=hs,t.RenderComponentType=xs,t.Renderer=Ps,t.Renderer2=Ms,t.RendererFactory2=Os,t.RendererStyleFlags2=Ns,t.RootRenderer=As,t.COMPILER_OPTIONS=$o,t.Compiler=Wo,t.CompilerFactory=Ko,t.ModuleWithComponentFactories=Go,t.ComponentFactory=Jo,t.ComponentRef=Qo,t.ComponentFactoryResolver=Zo,t.ElementRef=Rs,t.NgModuleFactory=os,t.NgModuleRef=is,t.NgModuleFactoryLoader=ks,t.getModuleFactory=Ct,t.QueryList=js,t.SystemJsNgModuleLoader=Fs,t.SystemJsNgModuleLoaderConfig=Ds,t.TemplateRef=Vs,t.ViewContainerRef=Us,t.EmbeddedViewRef=qs,t.ViewRef=Hs,t.ChangeDetectionStrategy=zi,t.ChangeDetectorRef=Bs,t.DefaultIterableDiffer=Zs,t.IterableDiffers=sa,t.KeyValueDiffers=aa,t.SimpleChange=Js,t.WrappedValue=Ks,t.platformCore=pa,t.ɵALLOW_MULTIPLE_PLATFORMS=_s,t.ɵAPP_ID_RANDOM_PROVIDER=Vo,t.ɵValueUnwrapper=Qs,t.ɵdevModeEqual=Rt,t.ɵisListLikeIterable=kt,t.ɵChangeDetectorStatus=Gi,t.ɵisDefaultChangeDetectionStrategy=g,t.ɵConsole=zo,t.ɵERROR_COMPONENT_TYPE="ngComponentType",t.ɵComponentFactory=Jo,t.ɵCodegenComponentFactoryResolver=ns,t.ɵViewMetadata=ro,t.ɵReflectionCapabilities=xo,t.ɵRenderDebugInfo=Ts,t.ɵglobal=ki,t.ɵlooseIdentical=c,t.ɵstringify=l,t.ɵmakeDecorator=d,t.ɵisObservable=X,t.ɵisPromise=J,t.ɵclearProviderOverrides=ci,t.ɵoverrideProvider=ui,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Ja,t.ɵregisterModuleFactory=Et,t.ɵEMPTY_ARRAY=Aa,t.ɵEMPTY_MAP=Oa,t.ɵand=Re,t.ɵccf=cn,t.ɵcmf=li,t.ɵcrt=ne,t.ɵdid=gn,t.ɵeld=ke,t.ɵelementEventFullName=fe,t.ɵgetComponentViewDefinitionFactory=ln,t.ɵinlineInterpolate=Ne,t.ɵinterpolate=Oe,t.ɵmod=Ge,t.ɵmpd=ze,t.ɵncd=qn,t.ɵnov=mn,t.ɵpid=_n,t.ɵprd=bn,t.ɵpad=Wn,t.ɵpod=$n,t.ɵppd=Gn,t.ɵqud=Ln,t.ɵted=Yn,t.ɵunv=ee,t.ɵvid=rr,t.AUTO_STYLE="*",t.trigger=_i,t.animate=bi,t.group=wi,t.sequence=Ei,t.style=Ci,t.state=Si,t.keyframes=xi,t.transition=Ti,t.ɵx=hi,t.ɵy=fi,t.ɵbc=vi,t.ɵz=di,t.ɵbb=yi,t.ɵba=mi,t.ɵbd=gi,t.ɵw=pi,t.ɵk=Ut,t.ɵl=Bt,t.ɵm=Ht,t.ɵe=Ss,t.ɵf=Y,t.ɵg=ca,t.ɵh=la,t.ɵi=Xs,t.ɵj=ra,t.ɵb=Io,t.ɵc=Ao,t.ɵd=H,t.ɵn=ss,t.ɵp=rt,t.ɵo=nt,t.ɵs=st,t.ɵq=it,t.ɵr=ot,t.ɵa=y,t.ɵt=wn,t.ɵu=_a,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":38,"rxjs/Subject":41,"rxjs/observable/merge":57,"rxjs/operator/share":73}],30:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.forms=r.ng.forms||{}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)}(this,function(t,e,n,r,i,o){"use strict";function s(t,e){function n(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t){return null==t||0===t.length}function u(t){return null!=t}function c(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function l(t,e){return e.map(function(e){return e(t)})}function p(t,e){return e.map(function(e){return e(t)})}function h(t){var e=t.reduce(function(t,e){return null!=e?Object.assign({},t,e):t},{});return 0===Object.keys(e).length?null:e}function f(){var t=o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function d(t){return t.validate?function(e){return t.validate(e)}:t}function m(t){return t.validate?function(e){return t.validate(e)}:t}function y(){throw new Error("unimplemented")}function v(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function g(t){return t.split(":")[0]}function _(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function b(t){return t.split(":")[0]}function w(t,e){return e.path.concat([t])}function E(t,e){t||T(e,"Cannot find control with"),e.valueAccessor||T(e,"No value accessor for form control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return x(e)}),e.valueAccessor.registerOnTouched(function(){return x(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 S(t,e){null==t&&T(e,"Cannot find control with"),t.validator=q.compose([t.validator,e.validator]),t.asyncValidator=q.composeAsync([t.asyncValidator,e.asyncValidator])}function x(t){return T(t,"There is no FormControl instance attached to form control element with")}function T(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function P(t){return null!=t?q.compose(t.map(d)):null}function A(t){return null!=t?q.composeAsync(t.map(m)):null}function O(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}function N(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===Q?n=e:N(e)?(r&&T(t,"More than one built-in value accessor matches form control with"),r=e):(i&&T(t,"More than one custom value accessor matches form control with"),i=e)}),i||(r||(n||(T(t,"No valid value accessor for form control with"),null)))}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof gt?t.controls[e]||null:t instanceof _t?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?P(t):t||null}function I(t){return Array.isArray(t)?A(t):t||null}function j(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t){return!(t instanceof Dt||t instanceof It||t instanceof Ft)}var L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},F=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(F),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.min=function(t){return function(e){if(a(e.value)||a(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(a(e.value)||a(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return a(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(a(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(a(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(u);return 0==e.length?null:function(t){return h(l(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(u);return 0==e.length?null:function(t){var r=p(t,e).map(c);return i.map.call(n.forkJoin(r),h)}},t}(),z=new e.InjectionToken("NgValueAccessor"),G={provide:z,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();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.Renderer2},{type:e.ElementRef}]};var $={provide:z,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!f())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();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.Renderer2},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var J={provide:z,useExisting:e.forwardRef(function(){return X}),multi:!0},X=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();X.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[J]}]}],X.ctorParameters=function(){return[{type:e.Renderer2},{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 s(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return y()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(F),Z={provide:z,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Y),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Z]}]}],et.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var nt={provide:z,useExisting:e.forwardRef(function(){return rt}),multi:!0},rt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}]}],rt.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]};var it={provide:z,useExisting:e.forwardRef(function(){return ot}),multi:!0},ot=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=v(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=g(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();ot.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:[it]}]}],ot.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},ot.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(v(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:ot,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:z,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=e._getOptionValue(s.value);r.push(a)}else for(var i=n.options,o=0;o<i.length;o++)if((s=i.item(o)).selected){a=e._getOptionValue(s.value);r.push(a)}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=b(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.Renderer2},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(_(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(_(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,rt,X,ot,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),ft={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},dt=function(t){function e(e){return t.call(this,e)||this}return s(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 s(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ft}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this._touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this._pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this._status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=c(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this._errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this._pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this._touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),vt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,k(n),I(r))||this;return i._onChange=[],i._applyFormState(e),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return s(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),gt=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof vt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(yt),_t=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof vt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),bt={provide:V,useExisting:e.forwardRef(function(){return Et})},wt=Promise.resolve(null),Et=function(t){function n(n,r){var i=t.call(this)||this;return i._submitted=!1,i.ngSubmit=new e.EventEmitter,i.form=new gt({},P(n),A(r)),i}return s(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),E(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path),r=new gt({});S(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;wt.then(function(){n.form.get(t.path).setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);Et.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[bt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Et.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 Ct={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},St=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Ct.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 "+Ct.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 "+Ct.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Ct.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 "+Ct.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Ct.ngModelGroup)},t}(),xt={provide:V,useExisting:e.forwardRef(function(){return Tt})},Tt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Et||St.modelGroupParentException()},e}(pt);Tt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[xt],exportAs:"ngModelGroup"}]}],Tt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Tt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Pt={provide:Y,useExisting:e.forwardRef(function(){return Ot})},At=Promise.resolve(null),Ot=function(t){function n(n,r,i,o){var s=t.call(this)||this;return s._control=new vt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=M(s,o),s}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),O(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?w(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return A(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){E(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Tt)&&this._parent instanceof pt?St.formGroupNameException():this._parent instanceof Tt||this._parent instanceof Et||St.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||St.missingNameException()},n.prototype._updateValue=function(t){var e=this;At.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;At.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(Y);Ot.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Pt],exportAs:"ngModel"}]}],Ot.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ot.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var 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 "+Ct.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 '+Ct.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Ct.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Ct.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 "+Ct.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 "+Ct.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}(),Mt={provide:Y,useExisting:e.forwardRef(function(){return Rt})},Rt=function(t){function n(n,r,i){var o=t.call(this)||this;return o.update=new e.EventEmitter,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=M(o,i),o}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(E(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),O(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return A(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(Y);Rt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Mt],exportAs:"ngForm"}]}],Rt.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]}]}]},Rt.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 kt={provide:V,useExisting:e.forwardRef(function(){return It})},It=function(t){function n(n,r){var i=t.call(this)||this;return i._validators=n,i._asyncValidators=r,i._submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new e.EventEmitter,i}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return E(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){j(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);S(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(t){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);S(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(t){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(C(e._control,e),n&&E(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=P(this._validators);this.form.validator=q.compose([this.form.validator,t]);var e=A(this._asyncValidators);this.form.asyncValidator=q.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||Nt.missingFormException()},n}(V);It.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[kt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],It.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},It.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var jt={provide:V,useExisting:e.forwardRef(function(){return Dt})},Dt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(e,t),e.prototype._checkParentType=function(){D(this._parent)&&Nt.groupParentException()},e}(pt);Dt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[jt]}]}],Dt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]}]},Dt.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Ft})},Ft=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(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 w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return A(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&Nt.arrayParentException()},e}(V);Ft.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],Ft.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]}]}]},Ft.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Vt={provide:Y,useExisting:e.forwardRef(function(){return Ut})},Ut=function(t){function n(n,r,i,o){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=M(s,o),s}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){Nt.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),O(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return A(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Dt)&&this._parent instanceof pt?Nt.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof It||this._parent instanceof Ft||Nt.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(Y);Ut.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Vt]}]}],Ut.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[z]}]}]},Ut.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var Bt={provide:U,useExisting:e.forwardRef(function(){return qt}),multi:!0},Ht={provide:U,useExisting:e.forwardRef(function(){return zt}),multi:!0},qt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?q.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();qt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Bt],host:{"[attr.required]":'required ? "" : null'}}]}],qt.ctorParameters=function(){return[]},qt.propDecorators={required:[{type:e.Input}]};var zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.validate=function(t){return this.required?q.requiredTrue(t):null},e}(qt);zt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]};var Gt={provide:U,useExisting:e.forwardRef(function(){return Wt}),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?q.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Wt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Gt]}]}],Wt.ctorParameters=function(){return[]},Wt.propDecorators={email:[{type:e.Input}]};var $t={provide:U,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Kt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.minLength(parseInt(this.minlength,10))},t}();Kt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[$t],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={minlength:[{type:e.Input}]};var Qt={provide:U,useExisting:e.forwardRef(function(){return Jt}),multi:!0},Jt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.maxLength(parseInt(this.maxlength,10))},t}();Jt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Qt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={maxlength:[{type:e.Input}]};var Xt={provide:U,useExisting:e.forwardRef(function(){return Yt}),multi:!0},Yt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=q.pattern(this.pattern)},t}();Yt.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Xt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Yt.ctorParameters=function(){return[]},Yt.propDecorators={pattern:[{type:e.Input}]};var Zt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new gt(n,r,i)},t.prototype.control=function(t,e,n){return new vt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new _t(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof vt||t instanceof gt||t instanceof _t)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();Zt.decorators=[{type:e.Injectable}],Zt.ctorParameters=function(){return[]};var te=new e.Version("4.3.0"),ee=function(){function t(){}return t}();ee.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var ne=[ee,st,ct,Q,X,rt,W,ot,ut,et,dt,mt,qt,Kt,Jt,Yt,zt,Wt],re=[Ot,Tt,Et],ie=[Rt,It,Ut,Dt,Ft],oe=function(){function t(){}return t}();oe.decorators=[{type:e.NgModule,args:[{declarations:ne,exports:ne}]}],oe.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{declarations:re,providers:[tt],exports:[oe,re]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:e.NgModule,args:[{declarations:[ie],providers:[Zt,tt],exports:[oe,ie]}]}],ae.ctorParameters=function(){return[]},t.AbstractControlDirective=F,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=Et,t.NgModel=Ot,t.NgModelGroup=Tt,t.RadioControlValueAccessor=et,t.FormControlDirective=Rt,t.FormControlName=Ut,t.FormGroupDirective=It,t.FormArrayName=Ft,t.FormGroupName=Dt,t.NgSelectOption=st,t.SelectControlValueAccessor=ot,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=zt,t.EmailValidator=Wt,t.MaxLengthValidator=Jt,t.MinLengthValidator=Kt,t.PatternValidator=Yt,t.RequiredValidator=qt,t.FormBuilder=Zt,t.AbstractControl=yt,t.FormArray=_t,t.FormControl=vt,t.FormGroup=gt,t.NG_ASYNC_VALIDATORS=B,t.NG_VALIDATORS=U,t.Validators=q,t.VERSION=te,t.FormsModule=se,t.ReactiveFormsModule=ae,t.ɵba=oe,t.ɵz=ie,t.ɵx=ne,t.ɵy=re,t.ɵa=G,t.ɵb=$,t.ɵc=ht,t.ɵd=ft,t.ɵe=bt,t.ɵf=Pt,t.ɵg=xt,t.ɵbf=ee,t.ɵbb=J,t.ɵbc=X,t.ɵh=Z,t.ɵi=tt,t.ɵbd=nt,t.ɵbe=rt,t.ɵj=Mt,t.ɵk=Vt,t.ɵl=kt,t.ɵn=Lt,t.ɵm=jt,t.ɵo=it,t.ɵq=ct,t.ɵp=at,t.ɵs=Ht,t.ɵt=Gt,t.ɵv=Qt,t.ɵu=$t,t.ɵw=Xt,t.ɵr=Bt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":29,"@angular/platform-browser":33,"rxjs/observable/forkJoin":54,"rxjs/observable/fromPromise":56,"rxjs/operator/map":66}],31:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.platformBrowserDynamic=r.ng.platformBrowserDynamic||{}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)}(this,function(t,e,n,r,i){"use strict";function o(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e}(e.ResourceLoader);a.decorators=[{type:n.Injectable}],a.ctorParameters=function(){return[]};var u=[i.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:a}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],c=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return o(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),l=new n.Version("4.3.0"),p=[{provide:e.ResourceLoader,useClass:c}],h=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",u);t.RESOURCE_CACHE_PROVIDER=p,t.platformBrowserDynamic=h,t.VERSION=l,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=u,t.ɵResourceLoaderImpl=a,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":27,"@angular/compiler":28,"@angular/core":29,"@angular/platform-browser":33}],32:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/platform-browser"),t("@angular/animations"),t("@angular/animations/browser")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{},r.ng.platformBrowser.animations=r.ng.platformBrowser.animations||{}),r.ng.core,r.ng.platformBrowser,r.ng.animations,r.ng.animations.browser)}(this,function(t,e,n,r,i){"use strict";function o(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}function a(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function u(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}function c(){return i.ɵsupportsWebAnimations()?new i.ɵWebAnimationsDriver:new i.ɵNoopAnimationDriver}function l(){return new i.ɵWebAnimationsStyleNormalizer}function p(t,e,n){return new y(t,e,n)}var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},f=function(t){function n(n){var r=t.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=n.createRenderer(document.body,i),r}return o(n,t),n.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?r.sequence(t):t;return s(this._renderer,null,e,"register",[n]),new d(e,this._renderer)},n}(r.AnimationBuilder);f.decorators=[{type:e.Injectable}],f.ctorParameters=function(){return[{type:e.RendererFactory2}]};var d=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new m(this._id,t,e||{},this._renderer)},e}(r.AnimationFactory),m=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return s(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}(),y=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new v("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,s=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,s,t,e.name,e)}),new g(this,s,r,this.engine)},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[{type:e.RendererFactory2},{type:i.ɵAnimationEngine},{type:e.NgZone}]};var v=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t}(),g=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return o(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?(e=e.substr(1),this.engine.process(this.namespaceId,t,e,n)):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r=this;if("@"==e.charAt(0)){var i=a(t),o=e.substr(1),s="";return"@"!=o.charAt(0)&&(o=(c=u(o))[0],s=c[1]),this.engine.listen(this.namespaceId,i,o,s,function(t){var e=t._data||-1;r.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n);var c},e}(v),_=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(i.ɵAnimationEngine);_.decorators=[{type:e.Injectable}],_.ctorParameters=function(){return[{type:i.AnimationDriver},{type:i.ɵAnimationStyleNormalizer}]};var b=[{provide:r.AnimationBuilder,useClass:f},{provide:i.ɵAnimationStyleNormalizer,useFactory:l},{provide:i.ɵAnimationEngine,useClass:_},{provide:e.RendererFactory2,useFactory:p,deps:[n.ɵDomRendererFactory2,i.ɵAnimationEngine,e.NgZone]}],w=[{provide:i.AnimationDriver,useFactory:c}].concat(b),E=[{provide:i.AnimationDriver,useClass:i.ɵNoopAnimationDriver}].concat(b),C=function(){function t(){}return t}();C.decorators=[{type:e.NgModule,args:[{imports:[n.BrowserModule],providers:w}]}],C.ctorParameters=function(){return[]};var S=function(){function t(){}return t}();S.decorators=[{type:e.NgModule,args:[{imports:[n.BrowserModule],providers:E}]}],S.ctorParameters=function(){return[]},t.BrowserAnimationsModule=C,t.NoopAnimationsModule=S,t.ɵBrowserAnimationBuilder=f,t.ɵBrowserAnimationFactory=d,t.ɵAnimationRenderer=g,t.ɵAnimationRendererFactory=y,t.ɵa=v,t.ɵf=w,t.ɵg=E,t.ɵb=_,t.ɵd=l,t.ɵe=p,t.ɵc=c,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/animations":25,"@angular/animations/browser":24,"@angular/core":29,"@angular/platform-browser":33}],33:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{}),r.ng.common,r.ng.core)}(this,function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(){return L}function o(t){L||(L=t)}function s(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function a(t){return q||(q=document.createElement("a")),q.setAttribute("href",t),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname}function u(){return!!window.history.pushState}function c(t,e,r){return function(){r.get(n.ApplicationInitStatus).donePromise.then(function(){var n=i();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function l(t,e){Z||(n.ɵglobal.ng=Z=n.ɵglobal.ng||{}),Z[t]=e}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return l(et,p),l(nt,Object.assign({},tt,f(n||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return ft.replace(pt,t)}function m(t){return ht.replace(pt,t)}function y(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?y(t,i,n):(i=i.replace(pt,t),n.push(i))}return n}function v(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===yt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return(t=String(t)).match(Pt)||t.match(At)?t:(n.isDevMode()&&i().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return(t=String(t)).split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Ot)return Ot;var t=(Nt=i()).createElement("template");if("content"in t)return t;var e=Nt.createHtmlDocument();if(null==(Ot=Nt.querySelector(e,"body"))){var n=Nt.createElement("html",e);Ot=Nt.createElement("body",e),Nt.appendChild(n,Ot),Nt.appendChild(e,n)}return Ot}function E(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function C(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&Nt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Nt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&").replace(qt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(zt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){Nt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Nt.removeAttribute(t,n)});for(var e=0,n=Nt.childNodesAsList(t);e<n.length;e++){var r=n[e];Nt.isElementNode(r)&&T(r)}}function P(t,e){try{var r=w(),i=e?String(e):"",o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,Nt.setInnerHTML(r,i),t.documentMode&&T(r),s=Nt.getInnerHTML(r)}while(i!==s);for(var a=new Ht,u=a.sanitizeChildren(Nt.getTemplateContent(r)||r),c=Nt.getTemplateContent(r)||r,l=0,p=Nt.childNodesAsList(c);l<p.length;l++){var h=p[l];Nt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&Nt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Ot=null,t}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function O(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&_(e[1])===e[1]||t.match(Gt)&&A(t)?t:(n.isDevMode()&&i().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function N(){z.makeCurrent(),X.init()}function M(){return new n.ErrorHandler}function R(){return document}function k(t){return l(ue,new ae(t)),t}function I(){l(ue,null)}var j,D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},L=null,F=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),V=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return r(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(F),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},H={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};n.ɵglobal.Node&&(j=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var q,z=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){o(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){t[e].apply(t,n)},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return j.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return document.createComment(t)},n.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},n.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},n.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return document.title},n.prototype.setTitle=function(t,e){document.title=e||""},n.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.href},n.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&H.hasOwnProperty(e)&&(e=H[e]))}return B[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=s();return null==e?null:a(e)},n.prototype.resetBaseElement=function(){G=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(V),G=null,W=e.DOCUMENT,$=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this._location=i().getLocation(),this._history=i().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return i().getBaseHref(this._doc)},e.prototype.onPopState=function(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){u()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){u()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);$.decorators=[{type:n.Injectable}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var K=function(){function t(t){this._doc=t,this._dom=i()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();K.decorators=[{type:n.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Q=new n.InjectionToken("TRANSITION_ID"),J=[{provide:n.APP_INITIALIZER,useFactory:c,deps:[Q,W,n.Injector],multi:!0}],X=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,i=!1,o=function(e){i=i||e,0==--r&&t(i)};e.forEach(function(t){t.whenStable(o)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?i().isShadowRoot(e)?this.findTestabilityInTree(t,i().getHost(e),!0):this.findTestabilityInTree(t,i().parentElement(e),!0):null},t}(),Y=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return i().getTitle(this._doc)},t.prototype.setTitle=function(t){i().setTitle(this._doc,t)},t}();Y.decorators=[{type:n.Injectable}],Y.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Z,tt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},et="probe",nt="coreTokens",rt=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[rt,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],ot=new n.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:n.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[ot]}]},{type:n.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var r=i().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:n.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return i().remove(t)})},e}(ut);ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="_nghost-%COMP%",ft="_ngcontent-%COMP%",dt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new vt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new gt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}();dt.decorators=[{type:n.Injectable}],dt.ctorParameters=function(){return[{type:st},{type:ct}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=lt[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,i){i&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,i&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))},t}(),yt="@".charCodeAt(0),vt=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=y(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=d(r.id),i.hostAttr=m(r.id),i}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(mt),gt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=y(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),_t=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(at);_t.decorators=[{type:n.Injectable}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var bt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wt=new n.InjectionToken("HammerGestureConfig"),Et=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();Et.decorators=[{type:n.Injectable}],Et.ctorParameters=function(){return[]};var Ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return r(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);Ct.decorators=[{type:n.Injectable}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]},{type:Et,decorators:[{type:n.Inject,args:[wt]}]}]};var St=["alt","control","meta","shift"],xt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return i().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(St.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=i().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),St.forEach(function(r){r!=n&&(0,xt[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(at);Tt.decorators=[{type:n.Injectable}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Pt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,At=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ot=null,Nt=null,Mt=E("area,br,col,hr,img,wbr"),Rt=E("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),kt=E("rp,rt"),It=C(kt,Rt),jt=C(Rt,E("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Dt=C(kt,E("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Lt=C(Mt,jt,Dt,It),Ft=E("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vt=E("srcset"),Ut=E("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt=C(Ft,Vt,Ut),Ht=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Nt.isElementNode(e)?this.startElement(e):Nt.isTextNode(e)?this.chars(Nt.nodeValue(e)):this.sanitizedSomething=!0,Nt.firstChild(e))e=Nt.firstChild(e);else for(;e;){Nt.isElementNode(e)&&this.endElement(e);var n=S(e,Nt.nextSibling(e));if(n){e=n;break}e=S(e,Nt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Nt.nodeName(t).toLowerCase();Lt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Nt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();Bt.hasOwnProperty(r)?(Ft[r]&&(t=_(t)),Vt[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=Nt.nodeName(t).toLowerCase();Lt.hasOwnProperty(e)&&!Mt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),qt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,zt=/([^\#-~ |!])/g,Gt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wt=/^url\(([^)]+)\)$/,$t=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Kt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Jt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),P(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof Yt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof te||e instanceof Zt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Qt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new te(t)},e}($t);Kt.decorators=[{type:n.Injectable}],Kt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Qt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Qt),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Qt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Qt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Qt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Qt),ee=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:N,multi:!0},{provide:e.PlatformLocation,useClass:$},{provide:W,useFactory:R,deps:[]}],ne=[{provide:n.Sanitizer,useExisting:$t},{provide:$t,useClass:Kt}],re=n.createPlatformFactory(n.platformCore,"browser",ee),ie=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:Q,useExisting:n.APP_ID},J]}},t}();ie.decorators=[{type:n.NgModule,args:[{providers:[ne,{provide:n.ErrorHandler,useFactory:M,deps:[]},{provide:ot,useClass:_t,multi:!0},{provide:ot,useClass:Tt,multi:!0},{provide:ot,useClass:Ct,multi:!0},{provide:wt,useClass:Et},dt,{provide:n.RendererFactory2,useExisting:dt},{provide:ut,useExisting:ct},ct,n.Testability,st,it,K,Y],exports:[e.CommonModule,n.ApplicationModule]}]}],ie.ctorParameters=function(){return[{type:ie,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var oe="undefined"!=typeof window&&window||{},se=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ae=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=oe.console.profile;e&&n&&oe.console.profile("Change Detection");for(var r=i().performanceNow(),o=0;o<5||i().performanceNow()-r<500;)this.appRef.tick(),o++;var s=i().performanceNow();e&&n&&oe.console.profileEnd("Change Detection");var a=(s-r)/o;return oe.console.log("ran "+o+" change detection cycles"),oe.console.log(a.toFixed(2)+" ms per check"),new se(a,o)},t}(),ue="profiler",ce=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&i().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),le=new n.Version("4.3.0");t.BrowserModule=ie,t.platformBrowser=re,t.Meta=K,t.Title=Y,t.disableDebugTools=I,t.enableDebugTools=k,t.By=ce,t.NgProbeToken=rt,t.DOCUMENT=W,t.EVENT_MANAGER_PLUGINS=ot,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=wt,t.HammerGestureConfig=Et,t.DomSanitizer=$t,t.VERSION=le,t.ɵBROWSER_SANITIZATION_PROVIDERS=ne,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ee,t.ɵinitDomAdapter=N,t.ɵBrowserDomAdapter=z,t.ɵBrowserPlatformLocation=$,t.ɵTRANSITION_ID=Q,t.ɵBrowserGetTestability=X,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=F,t.ɵgetDOM=i,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=dt,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=_t,t.ɵHammerGesturesPlugin=Ct,t.ɵKeyEventsPlugin=Tt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=R,t.ɵa=M,t.ɵh=V,t.ɵg=J,t.ɵf=c,t.ɵc=h,t.ɵd=at,t.ɵe=Kt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":27,"@angular/core":29}],34:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):i((r.ng=r.ng||{},r.ng.router=r.ng.router||{}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)}(this,function(t,e,n,r,i,o,s,a,u,c,l,p,h,f,d,m,y,v,g,_,b,w){"use strict";function E(t,e){function n(){this.constructor=t}Ae(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function C(t){return new Be(t)}function S(t){var e=Error("NavigationCancelingError: "+t);return e[He]=!0,e}function x(t){return t[He]}function T(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function P(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];A(r,O(e,r))}}function A(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!==Ue)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&P(t.children,e)}function O(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function N(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!M(t[n],e[n]))return!1;return!0}function M(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])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 n in t)t.hasOwnProperty(n)&&e(t[n],n)}function j(t,e){if(0===Object.keys(t).length)return s.of({});var n=[],r=[],i={};I(t,function(t,o){var s=l.map.call(e(o,t),function(t){return i[o]=t});o===Ue?n.push(s):r.push(s)});var o=m.concatAll.call(s.of.apply(void 0,n.concat(r))),a=g.last.call(o);return l.map.call(a,function(){return i})}function D(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return!0===t})}function L(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?v.fromPromise(Promise.resolve(t)):s.of(t)}function F(){return new ze(new Ge([],{}),{},null)}function V(t,e,n){return n?U(t.queryParams,e.queryParams)&&B(t.root,e.root):H(t.queryParams,e.queryParams)&&q(t.root,e.root)}function U(t,e){return M(t,e)}function B(t,e){if(!W(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!B(t.children[n],e.children[n]))return!1}return!0}function H(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function q(t,e){return z(t,e,e.segments)}function z(t,e,n){if(t.segments.length>n.length)return!!W(i=t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!W(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!q(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!W(t.segments,i)&&(!!t.children[Ue]&&z(t.children[Ue],e,o))}function G(t,e){return W(t,e)&&t.every(function(t,n){return M(t.parameters,e[n].parameters)})}function W(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function $(t,e){var n=[];return I(t.children,function(t,r){r===Ue&&(n=n.concat(e(t,r)))}),I(t.children,function(t,r){r!==Ue&&(n=n.concat(e(t,r)))}),n}function K(t){return t.segments.map(function(t){return Y(t)}).join("/")}function Q(t,e){if(!t.hasChildren())return K(t);if(e){var n=t.children[Ue]?Q(t.children[Ue],!1):"",r=[];return I(t.children,function(t,e){e!==Ue&&r.push(e+":"+Q(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var i=$(t,function(e,n){return n===Ue?[Q(t.children[Ue],!1)]:[n+":"+Q(e,!1)]});return K(t)+"/("+i.join("//")+")"}function J(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function X(t){return decodeURIComponent(t)}function Y(t){return""+J(t.path)+Z(t.parameters)}function Z(t){return Object.keys(t).map(function(e){return";"+J(e)+"="+J(t[e])}).join("")}function tt(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return J(e)+"="+J(t)}).join("&"):J(e)+"="+J(n)});return e.length?"?"+e.join("&"):""}function et(t){var e=t.match(Je);return e?e[0]:""}function nt(t){var e=t.match(Xe);return e?e[0]:""}function rt(t){var e=t.match(Ye);return e?e[0]:""}function it(t){return new f.Observable(function(e){return e.error(new tn(t))})}function ot(t){return new f.Observable(function(e){return e.error(new en(t))})}function st(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function at(t){return new f.Observable(function(e){return e.error(S("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function ut(t,e,n,r,i){return new nn(t,e,n,r,i).apply()}function ct(t,e){var n=e.canLoad;return n&&0!==n.length?D(l.map.call(o.from(n),function(n){var r=t.get(n);return L(r.canLoad?r.canLoad(e):r(e))})):s.of(!0)}function lt(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||T)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function pt(t,e,n,r){if(n.length>0&&mt(t,n,r))return{segmentGroup:ht(i=new Ge(e,dt(r,new Ge(n,t.children)))),slicedSegments:[]};if(0===n.length&&yt(t,n,r)){var i=new Ge(t.segments,ft(t,n,r,t.children));return{segmentGroup:ht(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function ht(t){if(1===t.numberOfChildren&&t.children[Ue]){var e=t.children[Ue];return new Ge(t.segments.concat(e.segments),e.children)}return t}function ft(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];vt(t,e,a)&&!r[gt(a)]&&(i[gt(a)]=new Ge([],{}))}return Object.assign({},r,i)}function dt(t,e){var n={};n[Ue]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&>(o)!==Ue&&(n[gt(o)]=new Ge([],{}))}return n}function mt(t,e,n){return n.some(function(n){return vt(t,e,n)&>(n)!==Ue})}function yt(t,e,n){return n.some(function(n){return vt(t,e,n)})}function vt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function gt(t){return t.outlet||Ue}function _t(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=_t(t,r[n]);if(i)return i}return null}function bt(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=bt(t,r[n]);if(i.length)return i.unshift(e),i}return[]}function wt(t,e){var n=Et(t,e),i=new r.BehaviorSubject([new We("",{})]),o=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new an(i,o,a,u,s,Ue,e,n.root);return c.snapshot=n.root,new sn(new on(c,[]),n)}function Et(t,e){var n=new un([],{},{},"",{},Ue,e,null,t.root,-1,{});return new cn("",new on(n,[]))}function Ct(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function St(t,e){e.value._routerState=t,e.children.forEach(function(e){return St(t,e)})}function xt(t){var e=t.children.length>0?" { "+t.children.map(xt).join(", ")+" } ":"";return""+t.value+e}function Tt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,M(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),M(e.params,n.params)||t.params.next(n.params),N(e.url,n.url)||t.url.next(n.url),M(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Pt(t,e){var n=M(t.params,e.params)&&G(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Pt(t.parent,e.parent))}function At(t,e,n){var r=Ot(t,e._root,n?n._root:void 0);return new sn(r,e)}function Ot(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(i=n.value)._futureSnapshot=e.value;o=Mt(t,e,n);return new on(i,o)}if(t.retrieve(e.value)){var r=t.retrieve(e.value).route;return Nt(e,r),r}var i=Rt(e.value),o=e.children.map(function(e){return Ot(t,e)});return new on(i,o)}function Nt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Nt(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Ot(t,e,o)}return Ot(t,e)})}function Rt(t){return new an(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function kt(t,e,n,r,i){if(0===n.length)return jt(e.root,e.root,e,r,i);var o=Lt(n);if(o.toRoot())return jt(e.root,new Ge([],{}),e,r,i);var s=Ft(o,e,t),a=s.processChildren?qt(s.segmentGroup,s.index,o.commands):Ht(s.segmentGroup,s.index,o.commands);return jt(s.segmentGroup,a,e,r,i)}function It(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function jt(t,e,n,r,i){var o={};return r&&I(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new ze(e,o,i):new ze(Dt(n.root,t,e),o,i)}function Dt(t,e,n){var r={};return I(t.children,function(t,i){r[i]=t===e?n:Dt(t,e,n)}),new Ge(t.segments,r)}function Lt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ln(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return I(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new ln(n,e,r)}function Ft(t,e,n){if(t.isAbsolute)return new pn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new pn(n.snapshot._urlSegment,!0,0);var r=It(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Vt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Vt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new pn(r,!1,i-o)}function Ut(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Ue]:""+t}function Bt(t){return"object"!=typeof t[0]?(e={},e[Ue]=t,e):void 0===t[0].outlets?(n={},n[Ue]=t,n):t[0].outlets;var e,n}function Ht(t,e,n){if(t||(t=new Ge([],{})),0===t.segments.length&&t.hasChildren())return qt(t,e,n);var r=zt(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Ge(t.segments.slice(0,r.pathIndex),{});return o.children[Ue]=new Ge(t.segments.slice(r.pathIndex),t.children),qt(o,0,i)}return r.match&&0===i.length?new Ge(t.segments,{}):r.match&&!t.hasChildren()?Gt(t,e,n):r.match?qt(t,0,i):Gt(t,e,n)}function qt(t,e,n){if(0===n.length)return new Ge(t.segments,{});var r=Bt(n),i={};return I(r,function(n,r){null!==n&&(i[r]=Ht(t.children[r],e,n))}),I(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Ge(t.segments,i)}function zt(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Ut(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Kt(a,u,s))return o;r+=2}else{if(!Kt(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Gt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Wt(n[i].outlets);return new Ge(r,o)}if(0===i&&It(n[0])){var s=t.segments[e];r.push(new We(s.path,n[0])),i++}else{var a=Ut(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&It(u)?(r.push(new We(a,$t(u))),i+=2):(r.push(new We(a,{})),i++)}}return new Ge(r,{})}function Wt(t){var e={};return I(t,function(t,n){null!==t&&(e[n]=Gt(new Ge([],{}),0,t))}),e}function $t(t){var e={};return I(t,function(t,n){return e[n]=""+t}),e}function Kt(t,e,n){return t==n.path&&M(e,n.parameters)}function Qt(t,e,n,r){return new fn(t,e,n,r).recognize()}function Jt(t){t.sort(function(t,e){return t.value.outlet===Ue?-1:e.value.outlet===Ue?1:t.value.outlet.localeCompare(e.value.outlet)})}function Xt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Yt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new hn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||T)(n,t,e);if(!r)throw new hn;var i={};I(r.posParams,function(t,e){i[e]=t.path});var o=Object.assign({},i,r.consumed[r.consumed.length-1].parameters);return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}function Zt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function te(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ee(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ne(t,e,n,r){if(n.length>0&&oe(t,n,r)){var i=new Ge(e,ie(t,e,r,new Ge(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&se(t,n,r)){var o=new Ge(t.segments,re(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Ge(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function re(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(ae(t,e,a)&&!r[ue(a)]){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[ue(a)]=u}}return Object.assign({},r,i)}function ie(t,e,n,r){var i={};i[Ue]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&ue(a)!==Ue){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[ue(a)]=u}}return i}function oe(t,e,n){return n.some(function(n){return ae(t,e,n)&&ue(n)!==Ue})}function se(t,e,n){return n.some(function(n){return ae(t,e,n)})}function ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function ue(t){return t.outlet||Ue}function ce(t){return t.data||{}}function le(t){return t.resolve||{}}function pe(t){throw t}function he(t){return s.of(null)}function fe(t){Tt(t.value),t.children.forEach(fe)}function de(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function me(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function ye(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ve(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ge(t){return""===t||!!t}function _e(){return new n.NgProbeToken("Router",bn)}function be(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ee(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:yn,multi:!0,useValue:t}]}function Ce(t,e,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new bn(null,e,n,r,i,o,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[Bn,{provide:n.APP_INITIALIZER,multi:!0,useFactory:xe,deps:[Bn]},{provide:Hn,useFactory:Te,deps:[Bn]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Hn}]}var Ae=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},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}(),Ne=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),ke=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ie=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),De=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Le=function(){function t(t,e,n,r,i){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}return t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(),Fe=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ve=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ue="primary",Be=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}(),He="ngNavigationCancelingError",qe=function(){function t(t,e){this.routes=t,this.module=e}return t}(),ze=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Qe.serialize(this)},t}(),Ge=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,I(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return K(this)},t}(),We=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 Y(this)},t}(),$e=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Ke=function(){function t(){}return t.prototype.parse=function(t){var e=new Ze(t);return new ze(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+Q(t.root,!0))+tt(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Qe=new Ke,Je=/^[^\/()?;=&#]+/,Xe=/^[^=?&#]+/,Ye=/^[^?&#]+/,Ze=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 Ge([],{}):new Ge([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ue]=new Ge(t,e)),n},t.prototype.parseSegment=function(){var t=et(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new We(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=et(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=et(this.remaining);r&&(n=r,this.capture(n))}t[X(e)]=X(n)}},t.prototype.parseQueryParam=function(t){var e=nt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=rt(this.remaining);r&&(n=r,this.capture(n))}var i=X(e),o=X(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=et(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Ue);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Ue]:new Ge([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),tn=function(){function t(t){this.segmentGroup=t||null}return t}(),en=function(){function t(t){this.urlTree=t}return t}(),nn=function(){function t(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ue),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof en)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof tn)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Ue),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof tn)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ge([],(i={},i[Ue]=t,i)):t;return new ze(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new Ge([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return j(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,i,o);return d._catch.call(c,function(t){if(t instanceof tn)return s.of(null);throw t})}),h=m.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t,n){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,r,i))return s.of(new Ge([],{}));throw new tn(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return gt(r)!==o?it(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):it(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ot(o):p.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Ge(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=lt(e,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return it(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?ot(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Ge(r,{})}):s.of(new Ge(r,{}));var o=lt(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return it(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,o=pt(e,u,h,r),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var p=i.expandChildren(n,r,a);return l.map.call(p,function(t){return new Ge(u,t)})}if(0===r.length&&0===c.length)return s.of(new Ge(u,{}));var f=i.expandSegment(n,a,r,c,Ue,!0);return l.map.call(f,function(t){return new Ge(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new qe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ct(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):at(e)}):s.of(new qe([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Ue])return st(t.redirectTo);r=r.children[Ue]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new ze(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return I(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return I(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Ge(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),rn=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=_t(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=_t(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=bt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return bt(t,this._root).map(function(t){return t.value})},t}(),on=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),sn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,St(r,e),r}return E(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(rn),an=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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}(),un=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},t}(),cn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,St(r,n),r}return E(e,t),e.prototype.toString=function(){return xt(this._root)},e}(rn),ln=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&It(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==k(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),hn=function(){function t(){}return t}(),fn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ne(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Ue),n=new un([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ue,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new on(n,e),i=new cn(this.url,r);return this.inheritParamsAndData(i._root),s.of(i)}catch(t){return new f.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Ct(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=$(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Zt(r),Jt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof hn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new hn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new hn;if((t.outlet||Ue)!==r)throw new hn;if("**"===t.path){var i=n.length>0?k(n).parameters:{},o=new un(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ce(t),r,t.component,t,te(e),ee(e)+n.length,le(t));return[new on(o,[])]}var s=Yt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Xt(t),h=ne(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,m=new un(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ce(t),r,t.component,t,te(e),ee(e)+a.length,le(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new on(m,y)]}if(0===p.length&&0===d.length)return[new on(m,[])];var v=this.processSegment(p,f,d,Ue);return[new on(m,v)]},t}(),dn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),mn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),yn=new n.InjectionToken("ROUTES"),vn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new qe(R(i.injector.get(yn)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?v.fromPromise(this.loader.load(t)):p.mergeMap.call(L(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):v.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),gn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),_n=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),bn=function(){function t(t,e,o,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=pe,this.navigated=!1,this.hooks={beforePreactivation:he,afterPreactivation:he},this.urlHandlingStrategy=new _n,this.routeReuseStrategy=new mn;var h=function(t){return p.triggerEvent(new Ie(t))},f=function(t){return p.triggerEvent(new je(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=F(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new vn(u,c,h,f),this.currentRouterState=wt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){P(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var r=e.relativeTo,i=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,u=e.preserveFragment;n.isDevMode()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=r||this.routerState.root,l=u?this.currentUrlTree.fragment:o,p=null;if(a)switch(a){case"merge":p=Object.assign({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=s?this.currentUrlTree.queryParams:i||null;return kt(c,this.currentUrlTree,t,p,l)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof ze?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ve(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof ze)return V(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return V(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Oe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,wt(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Me(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var f=ut(a.ngModule.injector,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(f,function(e){return l.map.call(Qt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new ke(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var d,m,y=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),v=l.map.call(y,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return(d=new Cn(n,a.currentRouterState.snapshot,r)).traverse(a.rootContexts),{appliedUrl:e,snapshot:n}}),g=p.mergeMap.call(v,function(e){var n=e.appliedUrl,r=e.snapshot;return a.navigationId!==i?s.of(!1):(a.triggerEvent(new De(i,a.serializeUrl(t),n,r)),l.map.call(d.checkGuards(),function(e){return a.triggerEvent(new Le(i,a.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),_=p.mergeMap.call(g,function(e){return a.navigationId!==i?s.of(!1):e.shouldActivate&&d.isActivating()?(a.triggerEvent(new Fe(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),l.map.call(d.resolveData(),function(){return a.triggerEvent(new Ve(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):s.of(e)}),b=p.mergeMap.call(_,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=l.map.call(b,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;return r?{appliedUrl:e,state:At(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}:{appliedUrl:e,state:null,shouldActivate:r}}),E=a.currentRouterState,C=a.currentUrlTree;w.forEach(function(t){var o=t.appliedUrl,s=t.state;if(t.shouldActivate&&i===a.navigationId){if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new Sn(a.routeReuseStrategy,s,E).activate(a.rootContexts),m=!0}else m=!1}).then(function(){m?(a.navigated=!0,a.routerEvents.next(new Ne(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Me(i,a.serializeUrl(t),"")),u(!1))},function(n){if(x(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Me(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new Re(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=E,a.currentUrlTree=C,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),En=function(){function t(t,e){this.component=t,this.route=e}return t}(),Cn=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())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(!this.isActivating())return s.of(null);var e=o.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=ye(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),I(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i._routeConfig===o._routeConfig){if(this.shouldRunGuardsAndResolvers(o,i,i._routeConfig.runGuardsAndResolvers)){this.canActivateChecks.push(new wn(r));var a=s.outlet;this.canDeactivateChecks.push(new En(a.component,o))}else i.data=o.data,i._resolvedData=o._resolvedData;i.component?this.traverseChildRoutes(t,e,s?s.children:null,r):this.traverseChildRoutes(t,e,n,r)}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),i.component?this.traverseChildRoutes(t,null,s?s.children:null,r):this.traverseChildRoutes(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Pt(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Pt(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=ye(t),i=t.value;I(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new En(e.outlet.component,i)):this.canDeactivateChecks.push(new En(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=o.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=o.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return D(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?D(l.map.call(o.from(n),function(n){var r,i=e.getToken(n,t);return r=L(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(r)})):s.of(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return D(l.map.call(o.from(r),function(t){return D(l.map.call(o.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=L(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),c.first.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var i=p.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,e);return i=L(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),c.first.call(i)});return u.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object.assign({},t.data,Ct(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return j(t,function(t,r){var i=n.getToken(r,e);return L(i.resolve?i.resolve(e,n.future):i(e,n.future))})},t.prototype.getToken=function(t,e){var n=me(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Sn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Tt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=ye(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),I(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=ye(t),o=t.value.component?r.children:e;I(i,function(t,e){n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=ye(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Tt(r),r===i)if(r.component){o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),fe(s.route)}else{var a=de(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}(),xn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();xn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],xn.ctorParameters=function(){return[{type:bn},{type:an},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer2},{type:n.ElementRef}]},xn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Tn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Ne&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:ge(this.skipLocationChange),replaceUrl:ge(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ge(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ge(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Tn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Tn.ctorParameters=function(){return[{type:bn},{type:an},{type:e.LocationStrategy}]},Tn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var Pn=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Ne&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],Pn.ctorParameters=function(){return[{type:bn},{type:n.ElementRef},{type:n.Renderer2},{type:n.ChangeDetectorRef}]},Pn.propDecorators={links:[{type:n.ContentChildren,args:[xn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Tn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var An=function(){function t(){this.outlet=null,this.route=null,this.resolver=null,this.children=new On,this.attachRef=null}return t}(),On=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new An,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Nn=function(){function t(t,e,r,i,o){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.name=i||Ue,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"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}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot._routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Mn(t,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}();Nn.decorators=[{type:n.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Nn.ctorParameters=function(){return[{type:On},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]},{type:n.ChangeDetectorRef}]},Nn.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var Mn=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===an?this.route:t===On?this.childContexts:this.parent.get(t,e)},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),jn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;var o=function(e){return t.triggerEvent(new Ie(e))},s=function(e){return t.triggerEvent(new je(e))};this.loader=new vn(e,n,o,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Ne});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(o.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();jn.decorators=[{type:n.Injectable}],jn.ctorParameters=function(){return[{type:bn},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var Dn=[Nn,xn,Tn,Pn],Ln=new n.InjectionToken("ROUTER_CONFIGURATION"),Fn=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Vn=[e.Location,{provide:$e,useClass:Ke},{provide:bn,useFactory:Ce,deps:[n.ApplicationRef,$e,On,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,yn,Ln,[gn,new n.Optional],[dn,new n.Optional]]},On,{provide:an,useFactory:Se,deps:[bn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},jn,In,kn,{provide:Ln,useValue:{enableTracing:!1}}],Un=function(){function t(t,e){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Vn,Ee(r),{provide:Fn,useFactory:we,deps:[[bn,new n.Optional,new n.SkipSelf]]},{provide:Ln,useValue:i||{}},{provide:e.LocationStrategy,useFactory:be,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],Ln]},{provide:Rn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:In},{provide:n.NgProbeToken,multi:!0,useFactory:_e},Pe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ee(e)]}},t}();Un.decorators=[{type:n.NgModule,args:[{declarations:Dn,exports:Dn}]}],Un.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Fn]}]},{type:bn,decorators:[{type:n.Optional}]}]};var Bn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new i.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(bn),i=t.injector.get(Ln);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Ln),r=this.injector.get(jn),i=this.injector.get(bn),o=this.injector.get(n.ApplicationRef);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Bn.decorators=[{type:n.Injectable}],Bn.ctorParameters=function(){return[{type:n.Injector}]};var Hn=new n.InjectionToken("Router Initializer"),qn=new n.Version("4.3.0");t.RouterLink=xn,t.RouterLinkWithHref=Tn,t.RouterLinkActive=Pn,t.RouterOutlet=Nn,t.GuardsCheckEnd=Le,t.GuardsCheckStart=De,t.NavigationCancel=Me,t.NavigationEnd=Ne,t.NavigationError=Re,t.NavigationStart=Oe,t.ResolveEnd=Ve,t.ResolveStart=Fe,t.RouteConfigLoadEnd=je,t.RouteConfigLoadStart=Ie,t.RoutesRecognized=ke,t.RouteReuseStrategy=dn,t.Router=bn,t.ROUTES=yn,t.ROUTER_CONFIGURATION=Ln,t.ROUTER_INITIALIZER=Hn,t.RouterModule=Un,t.provideRoutes=Ee,t.ChildrenOutletContexts=On,t.OutletContext=An,t.NoPreloading=In,t.PreloadAllModules=kn,t.PreloadingStrategy=Rn,t.RouterPreloader=jn,t.ActivatedRoute=an,t.ActivatedRouteSnapshot=un,t.RouterState=sn,t.RouterStateSnapshot=cn,t.PRIMARY_OUTLET=Ue,t.convertToParamMap=C,t.UrlHandlingStrategy=gn,t.DefaultUrlSerializer=Ke,t.UrlSegment=We,t.UrlSegmentGroup=Ge,t.UrlSerializer=$e,t.UrlTree=ze,t.VERSION=qn,t.ɵROUTER_PROVIDERS=Vn,t.ɵflatten=R,t.ɵa=Fn,t.ɵg=Bn,t.ɵh=xe,t.ɵi=Te,t.ɵd=we,t.ɵc=be,t.ɵj=Pe,t.ɵf=Se,t.ɵb=_e,t.ɵe=Ce,t.ɵk=rn,t.ɵl=on,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":27,"@angular/core":29,"@angular/platform-browser":33,"rxjs/BehaviorSubject":35,"rxjs/Observable":38,"rxjs/Subject":41,"rxjs/observable/from":55,"rxjs/observable/fromPromise":56,"rxjs/observable/of":58,"rxjs/operator/catch":59,"rxjs/operator/concatAll":60,"rxjs/operator/concatMap":61,"rxjs/operator/every":62,"rxjs/operator/filter":63,"rxjs/operator/first":64,"rxjs/operator/last":65,"rxjs/operator/map":66,"rxjs/operator/mergeAll":68,"rxjs/operator/mergeMap":69,"rxjs/operator/reduce":72,"rxjs/util/EmptyError":77}],35:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=s},{"./Subject":41,"./util/ObjectUnsubscribedError":78}],36:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);n.InnerSubscriber=i},{"./Subscriber":43}],37:[function(t,e,n){"use strict";var r=t("./Observable"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":38}],38:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":75,"./util/root":87,"./util/toSubscriber":89}],39:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],40:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=i},{"./Subscriber":43}],41:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":38,"./SubjectSubscription":42,"./Subscriber":43,"./Subscription":44,"./symbol/rxSubscriber":76,"./util/ObjectUnsubscribedError":78}],42:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(t("./Subscription").Subscription);n.SubjectSubscription=i},{"./Subscription":44}],43:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":39,"./Subscription":44,"./symbol/rxSubscriber":76,"./util/isFunction":83}],44:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=t("./util/isArray"),o=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=p?p.length:0;l;)l.remove(this),l=++d<m&&p[d]||null;if(s.isFunction(h)&&(v=a.tryCatch(h).call(this))===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e])),i.isArray(f))for(d=-1,m=f.length;++d<m;){var y=f[d];if(o.isObject(y)){var v=a.tryCatch(y.unsubscribe).call(y);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":79,"./util/errorObject":80,"./util/isArray":81,"./util/isFunction":83,"./util/isObject":84,"./util/tryCatch":90}],45:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=a},{"../Observable":38,"./EmptyObservable":48,"./ScalarObservable":53}],46:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayObservable=u},{"../Observable":38,"../util/isScheduler":86,"./EmptyObservable":48,"./ScalarObservable":53}],47:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(o.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":38,"../Subject":41,"../Subscriber":43,"../Subscription":44}],48:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);n.EmptyObservable=i},{"../Observable":38}],49:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);n.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,i=n.resultSelector,o=n.values,s=o.length;if(t._hasValue){if(++this.completed===s){if(r===s){var a=i?i.apply(this,o):o;e.next(a)}e.complete()}}else e.complete()},e}(u.OuterSubscriber)},{"../Observable":38,"../OuterSubscriber":40,"../util/isArray":81,"../util/subscribeToResult":88,"./EmptyObservable":48}],50:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/isArray"),o=t("../util/isArrayLike"),s=t("../util/isPromise"),a=t("./PromiseObservable"),u=t("./IteratorObservable"),c=t("./ArrayObservable"),l=t("./ArrayLikeObservable"),p=t("../symbol/iterator"),h=t("../Observable"),f=t("../operator/observeOn"),d=t("../symbol/observable"),m=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=m},{"../Observable":38,"../operator/observeOn":71,"../symbol/iterator":74,"../symbol/observable":75,"../util/isArray":81,"../util/isArrayLike":82,"../util/isPromise":85,"./ArrayLikeObservable":45,"./ArrayObservable":46,"./IteratorObservable":51,"./PromiseObservable":52}],51:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this,r=n.iterator,i=n.scheduler;if(i)return i.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},{"../Observable":38,"../symbol/iterator":74,"../util/root":87}],52:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);n.PromiseObservable=a},{"../Observable":38,"../util/root":87}],53:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(t("../Observable").Observable);n.ScalarObservable=i},{"../Observable":38}],54:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":49}],55:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":50}],56:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":52}],57:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":67}],58:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":46}],59:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},{"../OuterSubscriber":40,"../util/subscribeToResult":88}],60:[function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");n.concatAll=r},{"./mergeAll":68}],61:[function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");n.concatMap=r},{"./mergeMap":69}],62:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":43}],63:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":43}],64:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":43,"../util/EmptyError":77}],65:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":43,"../util/EmptyError":77}],66:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":43}],67:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return u.isScheduler(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var o=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=i},{"../Observable":38,"../observable/ArrayObservable":46,"../util/isScheduler":86,"./mergeAll":68}],68:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(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}(o.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":40,"../util/subscribeToResult":88}],69:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":40,"../util/subscribeToResult":88}],70:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(n,e));var r=Object.create(this,i.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var i=t("../observable/ConnectableObservable");n.multicast=r;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();n.MulticastOperator=o},{"../observable/ConnectableObservable":47}],71:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":37,"../Subscriber":43}],72:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":43}],73:[function(t,e,n){"use strict";function r(){return new s.Subject}function i(){return o.multicast.call(this,r).refCount()}var o=t("./multicast"),s=t("../Subject");n.share=i},{"../Subject":41,"./multicast":70}],74:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(i.root)},{"../util/root":87}],75:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(i.root)},{"../util/root":87}],76:[function(t,e,n){"use strict";var r=t("../util/root").root.Symbol;n.$$rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},{"../util/root":87}],77:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=i},{}],78:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=i},{}],79:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=i},{}],80:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],81:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],82:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],83:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],84:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],85:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],86:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],87:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],88:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var m=e[c.$$iterator]();;){var y=m.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var v=e[p.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g="You provided "+(a.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(g))}}return null}var i=t("./root"),o=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":36,"../Observable":38,"../symbol/iterator":74,"../symbol/observable":75,"./isArrayLike":82,"./isObject":84,"./isPromise":85,"./root":87}],89:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":39,"../Subscriber":43,"../symbol/rxSubscriber":76}],90:[function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=t("./errorObject");n.tryCatch=i},{"./errorObject":80}],91:[function(t,e,n){(function(t){var n,r,i,o,s,a,u,c,l,p,h,f,d,m,y,v;!function(n){function r(t,e){return function(n,r){return t[n]=e?e(n,r):r}}var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};n("object"==typeof e&&"object"==typeof e.exports?r(i,r(e.exports)):r(i))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};n=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]]);return n},o=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=function(t,e){return function(n,r){e(n,r,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})},c=function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},l=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},p=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},h=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},f=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},d=function(t){return this instanceof d?(this.v=t,this):new d(t)},m=function(t,e,n){function r(t){l[t]&&(c[t]=function(e){return new Promise(function(n,r){p.push([t,e,n,r])>1||i(t,e)})})}function i(t,e){try{o(l[t](e))}catch(t){u(p[0][3],t)}}function o(t){t.value instanceof d?Promise.resolve(t.value.v).then(s,a):u(p[0][2],t)}function s(t){i("next",t)}function a(t){i("throw",t)}function u(t,e){t(e),p.shift(),p.length&&i(p[0][0],p[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,l=n.apply(t,e||[]),p=[];return c={},r("next"),r("throw"),r("return"),c[Symbol.asyncIterator]=function(){return this},c},y=function(t){function e(e,i){t[e]&&(n[e]=function(n){return(r=!r)?{value:d(t[e](n)),done:"return"===e}:i?i(n):n})}var n,r;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n},v=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof p?p(t):t[Symbol.iterator]()},t("__extends",n),t("__assign",r),t("__rest",i),t("__decorate",o),t("__param",s),t("__metadata",a),t("__awaiter",u),t("__generator",c),t("__exportStar",l),t("__values",p),t("__read",h),t("__spread",f),t("__await",d),t("__asyncGenerator",m),t("__asyncDelegator",y),t("__asyncValues",v)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[23])(23)}); \ No newline at end of file +!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).main=t()}}(function(){return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var u="function"==typeof require&&require;if(!a&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){var n=e[s][1][t];return i(n||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s<r.length;s++)i(r[s]);return i}({1:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.mode=null,this.action={},this.statusList=[],this.actionPagesList=[],this.lang={},this.categoriesList=[],this.keywordsList=[],this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/actions\"' style='cursor: pointer'>Actions</a> > Modification")},t.prototype.prepareActions=function(){$j("#inner_content").remove()},t.prototype.ngOnInit=function(){var t=this;this.prepareActions(),this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.mode="create",t.http.get(t.coreUrl+"rest/initAction").subscribe(function(e){t.action=e.action,t.lang=e.lang,t.lang.pageTitle=t.lang.add+" "+t.lang.action,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)})):(t.mode="update",t.http.get(t.coreUrl+"rest/administration/actions/"+e.id).subscribe(function(e){t.lang=e.lang,t.action=e.action,t.lang.pageTitle=t.lang.modify_action+" : "+t.action.id,t.categoriesList=e.categoriesList,t.statusList=e.statusList,t.actionPagesList=e.action_pagesList,t.keywordsList=e.keywordsList,t.loading=!1,setTimeout(function(){$j("select").chosen({width:"100%",disable_search_threshold:10,search_contains:!0})},0)}))})},t.prototype.onSubmit=function(){var t=this;this.action.actionCategories=$j("#categorieslist").chosen().val(),this.action.id_status=$j("#status").chosen().val(),this.action.keyword=$j("#keyword").chosen().val(),this.action.action_page=$j("#action_page").chosen().val(),"create"==this.mode?this.http.post(this.coreUrl+"rest/actions",this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/actions/"+this.action.id,this.action).subscribe(function(e){t.router.navigate(["/administration/actions"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!0),$j("#"+e).trigger("chosen:updated")},t.prototype.unselectAll=function(t){var e=t.target.getAttribute("data-target");$j("#"+e+" option").prop("selected",!1),$j("#"+e).trigger("chosen:updated")},t}();u=r([o.Component({templateUrl:angularGlobals["action-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/action-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.ActionAdministrationComponent=u},{"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],2:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("../translate.component"),u=function(){function t(t){this.http=t,this.lang=a.LANG,this.actions=[],this.titles=[],this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Actions")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.updateBreadcrumb(angularGlobals.applicationName),$j("#inner_content").remove(),this.http.get(this.coreUrl+"rest/administration/actions").subscribe(function(e){t.actions=e.actions,t.titles=e.titles,setTimeout(function(){t.table=$j("#actionsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:4}],fnInitComplete:function(){$j("#actionsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(t){console.log(t),location.href="index.php"})},t.prototype.deleteAction=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/actions/"+t).subscribe(function(n){for(var r=e.actions,i=0;i<r.length;i++)r[i].id==t&&r.splice(i,1);e.table.row($j("#"+t)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["actions-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],u),n.ActionsAdministrationComponent=u},{"../translate.component":21,"@angular/common/http":28,"@angular/core":31}],3:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),s=t("./administration.component"),a=t("./users-administration.component"),u=t("./user-administration.component"),c=t("./statuses-administration.component"),l=t("./status-administration.component"),p=t("./actions-administration.component"),h=t("./action-administration.component"),d=t("./parameter-administration.component"),f=t("./parameters-administration.component"),m=t("./priorities-administration.component"),y=t("./priority-administration.component"),g=t("./reports-administration.component"),v=function(){function t(){}return t}();v=r([i.NgModule({imports:[o.RouterModule.forChild([{path:"administration",component:s.AdministrationComponent},{path:"administration/users",component:a.UsersAdministrationComponent},{path:"administration/users/new",component:u.UserAdministrationComponent},{path:"administration/users/:id",component:u.UserAdministrationComponent},{path:"administration/status",component:c.StatusesAdministrationComponent},{path:"administration/status/new",component:l.StatusAdministrationComponent},{path:"administration/status/:identifier",component:l.StatusAdministrationComponent},{path:"administration/parameters",component:f.ParametersAdministrationComponent},{path:"administration/parameters/new",component:d.ParameterAdministrationComponent},{path:"administration/parameters/:id",component:d.ParameterAdministrationComponent},{path:"administration/reports",component:g.ReportsAdministrationComponent},{path:"administration/priorities",component:m.PrioritiesAdministrationComponent},{path:"administration/priorities/new",component:y.PriorityAdministrationComponent},{path:"administration/priorities/:id",component:y.PriorityAdministrationComponent},{path:"administration/actions",component:p.ActionsAdministrationComponent},{path:"administration/actions/new",component:h.ActionAdministrationComponent},{path:"administration/actions/:id",component:h.ActionAdministrationComponent}])],exports:[o.RouterModule]})],v),n.AdministrationRoutingModule=v},{"./action-administration.component":1,"./actions-administration.component":2,"./administration.component":4,"./parameter-administration.component":6,"./parameters-administration.component":7,"./priorities-administration.component":8,"./priority-administration.component":9,"./reports-administration.component":10,"./status-administration.component":11,"./statuses-administration.component":12,"./user-administration.component":13,"./users-administration.component":14,"@angular/core":31,"@angular/router":38}],4:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e){this.http=t,this.router=e,this.applicationServices=[],this.modulesServices=[],this.loading=!1}return t.prototype.prepareAdministration=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Administration")},t.prototype.ngOnInit=function(){var t=this;this.prepareAdministration(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration").subscribe(function(e){t.applicationServices=e.application,t.modulesServices=e.modules,t.loading=!1})},t.prototype.goToSpecifiedAdministration=function(t){"true"==t.angular?this.router.navigate([t.servicepage]):window.location.assign(t.servicepage)},t}();u=r([o.Component({templateUrl:angularGlobals.administrationView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.Router])],u),n.AdministrationComponent=u},{"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],5:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/common"),s=t("@angular/forms"),a=t("@angular/common/http"),u=t("../app-material.module"),c=t("./administration-routing.module"),l=t("./administration.component"),p=t("./users-administration.component"),h=t("./user-administration.component"),d=t("./statuses-administration.component"),f=t("./status-administration.component"),m=t("./actions-administration.component"),y=t("./action-administration.component"),g=t("./parameters-administration.component"),v=t("./parameter-administration.component"),b=t("./priorities-administration.component"),_=t("./priority-administration.component"),w=t("./reports-administration.component"),C=function(){function t(){}return t}();C=r([i.NgModule({imports:[o.CommonModule,s.FormsModule,a.HttpClientModule,u.AppMaterialModule,c.AdministrationRoutingModule],declarations:[l.AdministrationComponent,p.UsersAdministrationComponent,h.UserAdministrationComponent,d.StatusesAdministrationComponent,f.StatusAdministrationComponent,m.ActionsAdministrationComponent,y.ActionAdministrationComponent,g.ParametersAdministrationComponent,v.ParameterAdministrationComponent,b.PrioritiesAdministrationComponent,_.PriorityAdministrationComponent,w.ReportsAdministrationComponent]})],C),n.AdministrationModule=C},{"../app-material.module":15,"./action-administration.component":1,"./actions-administration.component":2,"./administration-routing.module":3,"./administration.component":4,"./parameter-administration.component":6,"./parameters-administration.component":7,"./priorities-administration.component":8,"./priority-administration.component":9,"./reports-administration.component":10,"./status-administration.component":11,"./statuses-administration.component":12,"./user-administration.component":13,"./users-administration.component":14,"@angular/common":29,"@angular/common/http":28,"@angular/core":31,"@angular/forms":32}],6:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.creationMode=!0,this.parameter={},this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.http.get(t.coreUrl+"rest/administration/parameters/new").subscribe(function(e){t.lang=e.lang,t.type="string",t.pageTitle=t.lang.newParameter,t.loading=!1},function(){location.href="index.php"})):(t.creationMode=!1,t.http.get(t.coreUrl+"rest/administration/parameters/"+e.id).subscribe(function(e){t.parameter=e.parameter,t.lang=e.lang,t.type=e.type,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/parameters\"' style='cursor: pointer'>Paramètres</a> > Modification")},t.prototype.onSubmit=function(){var t=this;"date"==this.type?(this.parameter.param_value_date=$j("#paramValue").val(),this.parameter.param_value_int=null,this.parameter.param_value_string=null):"int"==this.type?(this.parameter.param_value_date=null,this.parameter.param_value_string=null):"string"==this.type&&(this.parameter.param_value_date=null,this.parameter.param_value_int=null),1==this.creationMode?this.http.post(this.coreUrl+"rest/parameters",this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)}):0==this.creationMode&&this.http.put(this.coreUrl+"rest/parameters/"+this.parameter.id,this.parameter).subscribe(function(e){t.router.navigate(["administration/parameters"]),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["parameter-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.ParameterAdministrationComponent=u},{"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],7:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.prepareParameter=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Paramètres"},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareParameter(),this.updateBreadcrumb(angularGlobals.applicationName),this.http.get(this.coreUrl+"rest/administration/parameters").subscribe(function(e){e.errors?($j("#resultInfo").removeClass().addClass("alert alert-danger alert-dismissible"),$j("#resultInfo").fadeTo(3e3,500).slideUp(500,function(){$j("#resultInfo").slideUp(500)})):(t.parametersList=e.parametersList,t.lang=e.lang,setTimeout(function(){t.table=$j("#paramsTable").DataTable({dom:'<"datatablesLeft"l><"datatablesRight"f><"datatablesCenter"p>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[0,"asc"]],columnDefs:[{orderable:!1,targets:3}],fnInitComplete:function(){$j("#paramsTable").show()},stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1)})},t.prototype.goUrl=function(){location.href="index.php?admin=parameters&page=control_param_technic"},t.prototype.deleteParameter=function(t){var e=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/parameters/"+t).subscribe(function(n){for(var r=0;r<e.parametersList.length;r++)e.parametersList[r].id==t&&e.parametersList.splice(r,1);e.table.row($j("#"+t)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=r([o.Component({templateUrl:angularGlobals["parameters-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/parameters-administration.component.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.ParametersAdministrationComponent=a},{"@angular/common/http":28,"@angular/core":31}],8:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("../translate.component"),u=function(){function t(t){this.http=t,this.lang=a.LANG,this.loading=!1,this.priorities=[]}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Priorités")},t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.updateBreadcrumb(angularGlobals.applicationName),this.loading=!0,this.http.get(this.coreUrl+"rest/priorities").subscribe(function(e){t.priorities=e.priorities,t.loading=!1},function(){location.href="index.php"})},t.prototype.deletePriority=function(t){var e=this;confirm("Voulez-vous vraiment supprimer cette priorité ?")&&this.http.delete(this.coreUrl+"rest/priorities/"+t).subscribe(function(t){e.priorities=t.priorities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["priorities-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],u),n.PrioritiesAdministrationComponent=u},{"../translate.component":21,"@angular/common/http":28,"@angular/core":31}],9:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=t("../translate.component"),c=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.lang=u.LANG,this.loading=!1,this.priority={working_days:!1}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/priorities\"' style='cursor: pointer'>Priorités</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.creationMode=!0,t.loading=!1):(t.creationMode=!1,t.id=e.id,t.http.get(t.coreUrl+"rest/priorities/"+t.id).subscribe(function(e){t.priority=e.priority,t.loading=!1},function(){location.href="index.php"}))})},t.prototype.onSubmit=function(){var t=this;this.creationMode?this.http.post(this.coreUrl+"rest/priorities",this.priority).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/priorities"])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/priorities/"+this.id,this.priority).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/priorities"])},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();c=r([o.Component({templateUrl:angularGlobals["priority-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],c),n.PriorityAdministrationComponent=c},{"../translate.component":21,"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],10:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("../translate.component"),u=function(){function t(t){this.http=t,this.lang=a.LANG,this.groups=[],this.reports=[],this.selectedGroup="",this.arrayArgsPut=[]}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Etats et edition")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.http.get(this.coreUrl+"rest/groups").subscribe(function(e){t.groups=e.groups})},t.prototype.loadReports=function(){var t=this;this.http.get(this.coreUrl+"rest/reports/groups/"+this.selectedGroup).subscribe(function(e){t.reports=e.reports},function(t){errorNotification(t.error.errors)})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/reports/groups/"+this.selectedGroup,this.reports).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(t.error.errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["reports-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],u),n.ReportsAdministrationComponent=u},{"../translate.component":21,"@angular/common/http":28,"@angular/core":31}],11:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n){this.http=t,this.route=e,this.router=n,this.pageTitle="",this.mode=null,this.status={id:null,label_status:null,can_be_searched:null,can_be_modified:null,is_folder_status:null,img_filename:null},this.lang="",this.statusImages="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.loading=!0,this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.route.params.subscribe(function(e){void 0===e.identifier?t.http.get(t.coreUrl+"rest/administration/status/new").subscribe(function(e){t.lang=e.lang,t.statusImages=e.statusImages,t.mode="create",t.pageTitle=t.lang.newStatus,t.updateBreadcrumb(angularGlobals.applicationName)}):(t.mode="update",t.statusIdentifier=e.identifier,t.getStatusInfos(t.statusIdentifier)),setTimeout(function(){$j(".help").tooltipster({theme:"tooltipster-maarch",interactive:!0})},0)}),this.loading=!1},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){var e="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > <a onclick='location.hash = \"/administration/status\"' style='cursor: pointer'>"+this.lang.admin_status+"</a> > ";"create"==this.mode?e+=this.lang.newItem:e+=this.lang.modification,$j("#ariane")[0].innerHTML=e},t.prototype.getStatusInfos=function(t){var e=this;this.http.get(this.coreUrl+"rest/administration/status/"+t).subscribe(function(t){e.status=t.status[0],"Y"==e.status.can_be_searched?e.status.can_be_searched=!0:e.status.can_be_searched=!1,"Y"==e.status.can_be_modified?e.status.can_be_modified=!0:e.status.can_be_modified=!1,"Y"==e.status.is_folder_status?e.status.is_folder_status=!0:e.status.is_folder_status=!1,e.lang=t.lang,e.statusImages=t.statusImages,e.pageTitle=e.lang.modify_status+" : "+e.status.id,e.updateBreadcrumb(angularGlobals.applicationName)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.selectImage=function(t){this.status.img_filename=t},t.prototype.submitStatus=function(){var t=this;"create"==this.mode?this.http.post(this.coreUrl+"rest/status",this.status).subscribe(function(){successNotification(t.lang.newStatusAdded+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))}):"update"==this.mode&&this.http.put(this.coreUrl+"rest/status/"+this.statusIdentifier,this.status).subscribe(function(){successNotification(t.lang.statusUpdated+" : "+t.status.id),t.router.navigate(["administration/status"])},function(t){errorNotification(JSON.parse(t._body).errors.join("<br>"))})},t}();u=r([o.Component({templateUrl:angularGlobals["status-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/status-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router])],u),n.StatusAdministrationComponent=u},{"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],12:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.lang="",this.resultInfo="",this.loading=!1}return t.prototype.ngOnInit=function(){var t=this;this.coreUrl=angularGlobals.coreUrl,this.prepareStatus(),this.loading=!0,this.http.get(this.coreUrl+"rest/administration/status").subscribe(function(e){t.statusList=e.statusList,t.lang=e.lang,t.nbStatus=Object.keys(t.statusList).length,setTimeout(function(){t.table=$j("#statusTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[2,"asc"]],columnDefs:[{orderable:!1,targets:[0,3]}],stateSave:!0}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.updateBreadcrumb(angularGlobals.applicationName),t.loading=!1},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.prepareStatus=function(){$j("#inner_content").remove()},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>"+this.lang.admin+"</a> > "+this.lang.admin_status},t.prototype.deleteStatus=function(t,e){var n=this;confirm(this.lang.deleteConfirm+" "+t+"?")&&this.http.delete(this.coreUrl+"rest/status/"+e).subscribe(function(){for(var e=n.statusList,r=0;r<e.length;r++)e[r].id==t&&e.splice(r,1);n.table.row($j("#"+t)).remove().draw(),successNotification(n.lang.delStatus+" : "+t),n.nbStatus=Object.keys(n.statusList).length},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();a=r([o.Component({templateUrl:angularGlobals["statuses-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.StatusesAdministrationComponent=a},{"@angular/common/http":28,"@angular/core":31}],13:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/router"),u=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.user={lang:{}},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.userAbsenceModel=[],this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularUserAdministrationComponent={componentAfterUpload:function(t){return i.processAfterUpload(t)}}}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > <a onclick='location.hash = \"/administration/users\"' style='cursor: pointer'>Utilisateurs</a>")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){void 0===e.id?(t.userCreation=!0,t.http.get(t.coreUrl+"rest/administration/users/new").subscribe(function(e){t.user=e,t.loading=!1},function(){location.href="index.php"})):(t.userCreation=!1,t.serialId=e.id,t.http.get(t.coreUrl+"rest/administration/users/"+t.serialId).subscribe(function(e){t.user=e,t.userId=e.user_id,t.loading=!1,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0)},function(){location.href="index.php"}))})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularUserAdministrationComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.resetPassword=function(){confirm("Voulez-vous vraiment réinitialiser le mot de passe de l'utilisateur ?")&&this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/password",{}).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addGroup=function(){var t=this,e=$j("#groupsSelect option:selected").index();if(e>0){var n={groupId:this.user.allGroups[e-1].group_id,role:$j("#groupRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/groups",n).subscribe(function(e){t.user.groups=e.groups,t.user.allGroups=e.allGroups,$j("#groupRole")[0].value="",$j("#addGroupModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateGroup=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id,t).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteGroup=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de ce groupe ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/groups/"+t.group_id).subscribe(function(t){e.user.groups=t.groups,e.user.allGroups=t.allGroups,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addEntity=function(){var t=this,e=$j("#entitiesSelect option:selected").index();if(e>0){var n={entityId:this.user.allEntities[e-1].entity_id,role:$j("#entityRole")[0].value};this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/entities",n).subscribe(function(e){t.user.entities=e.entities,t.user.allEntities=e.allEntities,$j("#entityRole")[0].value="",$j("#addEntityModal").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})}},t.prototype.updateEntity=function(t){this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id,t).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePrimaryEntity=function(t){var e=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id+"/primaryEntity",{}).subscribe(function(t){e.user.entities=t.entities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteEntity=function(t){var e=this;confirm("Voulez-vous vraiment retirer l'utilisateur de cette entité ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/entities/"+t.entity_id).subscribe(function(t){e.user.entities=t.entities,e.user.allEntities=t.allEntities,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+e,{label:this.selectedSignatureLabel}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.serialId+"/signatures/"+t).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&""!=$j("#absenceUser")[0].value&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.serialId+"/baskets/absence",this.userAbsenceModel).subscribe(function(e){t.user.status=e.user.status,t.userAbsenceModel=[],$j("#manageAbs").modal("hide"),successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deactivateAbsence=function(){var t=this;this.http.put(this.coreUrl+"rest/users/"+this.serialId+"/status",{status:"OK"}).subscribe(function(e){t.user.status=e.user.status,successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){var t=this;this.userCreation?this.http.post(this.coreUrl+"rest/users",this.user).subscribe(function(e){successNotification(e.success),t.router.navigate(["/administration/users/"+e.user.id])},function(t){errorNotification(JSON.parse(t._body).errors)}):this.http.put(this.coreUrl+"rest/users/"+this.serialId,this.user).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals["user-administrationView"],styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/user-administration.component.css"]}),i("design:paramtypes",[s.HttpClient,a.ActivatedRoute,a.Router,o.NgZone])],u),n.UserAdministrationComponent=u},{"@angular/common/http":28,"@angular/core":31,"@angular/router":38}],14:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=function(){function t(t){this.http=t,this.users=[],this.userDestRedirect={},this.userDestRedirectModels=[],this.lang={},this.resultInfo="",this.loading=!1}return t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > <a onclick='location.hash = \"/administration\"' style='cursor: pointer'>Administration</a> > Utilisateurs")},t.prototype.ngOnInit=function(){var t=this;this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/administration/users").subscribe(function(e){t.users=e.users,t.lang=e.lang,setTimeout(function(){t.table=$j("#usersTable").DataTable({dom:'<"datatablesLeft"p><"datatablesRight"f><"datatablesCenter"l>rt<"datatablesCenter"i><"clear">',lengthMenu:[10,25,50,75,100],oLanguage:{sLengthMenu:"<i class='fa fa-bars'></i> _MENU_",sZeroRecords:t.lang.noResult,sInfo:"_START_ - _END_ / _TOTAL_ "+t.lang.record,sSearch:"",oPaginate:{sFirst:"<<",sLast:">>",sNext:t.lang.next+" <i class='fa fa-caret-right'></i>",sPrevious:"<i class='fa fa-caret-left'></i> "+t.lang.previous},sInfoEmpty:t.lang.noRecord,sInfoFiltered:"(filtré de _MAX_ "+t.lang.record+")"},order:[[1,"asc"]],columnDefs:[{orderable:!1,targets:[3,5]}]}),$j(".dataTables_filter input").attr("placeholder",t.lang.search),$j("dataTables_filter input").addClass("form-control"),$j(".datatablesLeft").css({float:"left"}),$j(".datatablesCenter").css({"text-align":"center"}),$j(".datatablesRight").css({float:"right"})},0),t.loading=!1},function(){location.href="index.php"})},t.prototype.suspendUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="up",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})},0)},function(t){console.log(t),location.href="index.php"})):confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.suspendUserModal=function(t){var e=this;confirm(this.lang.suspendMsg+" ?")&&(t.enabled="N",t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?(t.enabled="Y",errorNotification(n.errors)):e.http.put(e.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(e){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide"),successNotification(e.success)},function(e){t.enabled="Y",errorNotification(JSON.parse(e._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t.prototype.activateUser=function(t){confirm(this.lang.authorizeMsg+" ?")&&(t.enabled="Y",this.http.put(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(t){successNotification(t.success)},function(e){t.enabled="N",errorNotification(JSON.parse(e._body).errors)}))},t.prototype.deleteUser=function(t){var e=this;"Y"==t.inDiffListDest?(t.mode="del",this.userDestRedirect=t,this.http.get(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id").subscribe(function(n){e.userDestRedirectModels=n.listModels,setTimeout(function(){$j(".redirectDest").typeahead({order:"asc",source:{ajax:{type:"GET",dataType:"json",url:e.coreUrl+"rest/users/autocompleter/exclude/"+t.user_id}}})})},function(t){errorNotification(JSON.parse(t._body).errors)})):confirm(this.lang.deleteMsg+" ?")&&this.http.delete(this.coreUrl+"rest/users/"+t.user_id,t).subscribe(function(n){for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteUserModal=function(t){var e=this;confirm(this.lang.deleteMsg+" ?")&&(t.redirectListModels=this.userDestRedirectModels,this.http.put(this.coreUrl+"rest/listModels/itemId/"+t.user_id+"/itemMode/dest/objectType/entity_id",t).subscribe(function(n){n.errors?errorNotification(n.errors):e.http.delete(e.coreUrl+"rest/users/"+t.user_id).subscribe(function(n){t.inDiffListDest="N",$j("#changeDiffListDest").modal("hide");for(var r=0;r<e.users.length;r++)e.users[r].user_id==t.user_id&&e.users.splice(r,1);e.table.row($j("#"+t.user_id)).remove().draw(),successNotification(n.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},function(t){errorNotification(JSON.parse(t._body).errors)}))},t}();a=r([o.Component({templateUrl:angularGlobals["users-administrationView"],styleUrls:["css/users-administration.component.css","../../node_modules/bootstrap/dist/css/bootstrap.min.css"]}),i("design:paramtypes",[s.HttpClient])],a),n.UsersAdministrationComponent=a},{"@angular/common/http":28,"@angular/core":31}],15:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/material"),s=function(){function t(){}return t}();s=r([i.NgModule({imports:[o.MdCheckboxModule,o.MdSelectModule],exports:[o.MdCheckboxModule,o.MdSelectModule]})],s),n.AppMaterialModule=s},{"@angular/core":31,"@angular/material":34}],16:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/router"),s=t("./profile.component"),a=t("./signature-book.component"),u=function(){function t(){}return t}();u=r([i.NgModule({imports:[o.RouterModule.forRoot([{path:"profile",component:s.ProfileComponent},{path:"groups/:groupId/baskets/:basketId/signatureBook/:resId",component:a.SignatureBookComponent},{path:"**",redirectTo:"",pathMatch:"full"}],{useHash:!0})],exports:[o.RouterModule]})],u),n.AppRoutingModule=u},{"./profile.component":19,"./signature-book.component":20,"@angular/core":31,"@angular/router":38}],17:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=function(){function t(){}return t}();o=r([i.Component({selector:"my-app",template:'<div id="resultInfo" class="fade" style="display:none;"></div><router-outlet></router-outlet>',styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css"]})],o),n.AppComponent=o},{"@angular/core":31}],18:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s};Object.defineProperty(n,"__esModule",{value:!0});var i=t("@angular/core"),o=t("@angular/platform-browser"),s=t("@angular/platform-browser/animations"),a=t("@angular/forms"),u=t("@angular/common/http"),c=t("./app.component"),l=t("./app-routing.module"),p=t("./administration/administration.module"),h=t("./profile.component"),d=t("./signature-book.component"),f=function(){function t(){}return t}();f=r([i.NgModule({imports:[o.BrowserModule,s.BrowserAnimationsModule,a.FormsModule,u.HttpClientModule,p.AdministrationModule,l.AppRoutingModule],declarations:[c.AppComponent,h.ProfileComponent,d.SignatureBookComponent,d.SafeUrlPipe],bootstrap:[c.AppComponent]})],f),n.AppModule=f},{"./administration/administration.module":5,"./app-routing.module":16,"./app.component":17,"./profile.component":19,"./signature-book.component":20,"@angular/common/http":28,"@angular/core":31,"@angular/forms":32,"@angular/platform-browser":37,"@angular/platform-browser/animations":36}],19:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("./translate.component"),u=function(){function t(t,e){var n=this;this.http=t,this.zone=e,this.lang=a.LANG,this.user={baskets:[]},this.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},this.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},this.mailSignatureModel={selected:0,htmlBody:"",title:""},this.userAbsenceModel=[],this.showPassword=!1,this.selectedSignature=-1,this.selectedSignatureLabel="",this.loading=!1,window.angularProfileComponent={componentAfterUpload:function(t){return n.processAfterUpload(t)}}}return t.prototype.prepareProfile=function(){$j("#inner_content").remove(),$j("#menunav").hide(),$j("#divList").remove(),$j("#magicContactsTable").remove(),$j("#manageBasketsOrderTable").remove(),$j("#controlParamTechnicTable").remove(),$j("#container").width("99%"),$j("#content h1")[0]&&$j("#content h1")[0]!=$j("my-app h1")[0]&&$j("#content h1")[0].remove(),tinymce.baseURL="../../node_modules/tinymce",tinymce.suffix=".min",tinymce.init({selector:"textarea#emailSignature",statusbar:!1,language:"fr_FR",language_url:"tools/tinymce/langs/fr_FR.js",height:"200",plugins:["textcolor"],external_plugins:{bdesk_photo:"../../apps/maarch_entreprise/tools/tinymce/bdesk_photo/plugin.min.js"},menubar:!1,toolbar:"undo | bold italic underline | alignleft aligncenter alignright | bdesk_photo | forecolor",theme_buttons1_add:"fontselect,fontsizeselect",theme_buttons2_add_before:"cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",theme_buttons2_add:"separator,insertdate,inserttime,preview,separator,forecolor,backcolor",theme_buttons3_add_before:"tablecontrols,separator",theme_buttons3_add:"separator,print,separator,ltr,rtl,separator,fullscreen,separator,insertlayer,moveforward,movebackward,absolut",theme_toolbar_align:"left",theme_advanced_toolbar_location:"top",theme_styles:"Header 1=header1;Header 2=header2;Header 3=header3;Table Row=tableRow1"})},t.prototype.updateBreadcrumb=function(t){$j("#ariane")[0]&&($j("#ariane")[0].innerHTML="<a href='index.php?reinit=true'>"+t+"</a> > Profil")},t.prototype.ngOnInit=function(){var t=this;this.prepareProfile(),this.updateBreadcrumb(angularGlobals.applicationName),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.http.get(this.coreUrl+"rest/users/profile").subscribe(function(e){t.user=e,setTimeout(function(){$j("#absenceUser").typeahead({order:"asc",display:"formattedUser",templateValue:"{{user_id}}",source:{ajax:{type:"GET",dataType:"json",url:t.coreUrl+"rest/users/autocompleter"}}})},0),t.loading=!1})},t.prototype.processAfterUpload=function(t){var e=this;this.zone.run(function(){return e.resfreshUpload(t)})},t.prototype.resfreshUpload=function(t){this.signatureModel.size<=2e6?(this.signatureModel.base64=t.replace(/^data:.*?;base64,/,""),this.signatureModel.base64ForJs=t):(this.signatureModel.name="",this.signatureModel.size=0,this.signatureModel.type="",this.signatureModel.base64="",this.signatureModel.base64ForJs="",errorNotification("Taille maximum de fichier dépassée (2 MB)"))},t.prototype.displayPassword=function(){this.showPassword=!this.showPassword},t.prototype.clickOnUploader=function(t){$j("#"+t).click()},t.prototype.uploadSignatureTrigger=function(t){if(t.target.files&&t.target.files[0]){var e=new FileReader;this.signatureModel.name=t.target.files[0].name,this.signatureModel.size=t.target.files[0].size,this.signatureModel.type=t.target.files[0].type,""==this.signatureModel.label&&(this.signatureModel.label=this.signatureModel.name),e.readAsDataURL(t.target.files[0]),e.onload=function(t){window.angularProfileComponent.componentAfterUpload(t.target.result)}}},t.prototype.displaySignatureEditionForm=function(t){this.selectedSignature=t,this.selectedSignatureLabel=this.user.signatures[t].signature_label},t.prototype.changeEmailSignature=function(){var t=$j("#emailSignaturesSelect").prop("selectedIndex");this.mailSignatureModel.selected=t,t>0?(tinymce.get("emailSignature").setContent(this.user.emailSignatures[t-1].html_body),this.mailSignatureModel.title=this.user.emailSignatures[t-1].title):(tinymce.get("emailSignature").setContent(""),this.mailSignatureModel.title="")},t.prototype.addBasketRedirection=function(){var t=$j("#selectBasketAbsenceUser option:selected").index();t>0&&(this.userAbsenceModel.push({basketId:this.user.baskets[t-1].basket_id,basketName:this.user.baskets[t-1].basket_name,virtual:this.user.baskets[t-1].is_virtual,basketOwner:this.user.baskets[t-1].basket_owner,newUser:$j("#absenceUser")[0].value,index:t-1}),this.user.baskets[t-1].disabled=!0,$j("#selectBasketAbsenceUser option:eq(0)").prop("selected",!0),$j("#absenceUser")[0].value="")},t.prototype.delBasketRedirection=function(t){this.user.baskets[this.userAbsenceModel[t].index].disabled=!1,this.userAbsenceModel.splice(t,1)},t.prototype.activateAbsence=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.user_id+"/baskets/absence",this.userAbsenceModel).subscribe(function(){t.userAbsenceModel=[],location.search="?display=true&page=logout&abs_mode"},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updatePassword=function(){var t=this;this.http.put(this.coreUrl+"rest/currentUser/password",this.passwordModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.showPassword=!1,t.passwordModel={currentPassword:"",newPassword:"",reNewPassword:""},successNotification(e.success))},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.submitEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent(),this.http.post(this.coreUrl+"rest/currentUser/emailSignature",this.mailSignatureModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})},t.prototype.updateEmailSignature=function(){var t=this;this.mailSignatureModel.htmlBody=tinymce.get("emailSignature").getContent();var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.put(this.coreUrl+"rest/currentUser/emailSignature/"+e,this.mailSignatureModel).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures[t.mailSignatureModel.selected-1].title=e.emailSignature.title,t.user.emailSignatures[t.mailSignatureModel.selected-1].html_body=e.emailSignature.html_body,successNotification(e.success))})},t.prototype.deleteEmailSignature=function(){var t=this;if(confirm("Voulez-vous vraiment supprimer la signature de mail ?")){var e=this.user.emailSignatures[this.mailSignatureModel.selected-1].id;this.http.delete(this.coreUrl+"rest/currentUser/emailSignature/"+e).subscribe(function(e){e.errors?errorNotification(e.errors):(t.user.emailSignatures=e.emailSignatures,t.mailSignatureModel={selected:0,htmlBody:"",title:""},tinymce.get("emailSignature").setContent(""),successNotification(e.success))})}},t.prototype.submitSignature=function(){var t=this;this.http.post(this.coreUrl+"rest/users/"+this.user.id+"/signatures",this.signatureModel).subscribe(function(e){t.user.signatures=e.signatures,t.signatureModel={base64:"",base64ForJs:"",name:"",type:"",size:0,label:""},successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.updateSignature=function(){var t=this,e=this.user.signatures[this.selectedSignature].id;this.http.put(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+e,{label:this.selectedSignatureLabel}).subscribe(function(e){t.user.signatures[t.selectedSignature].signature_label=e.signature.signature_label,t.selectedSignature=-1,t.selectedSignatureLabel="",successNotification(e.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.deleteSignature=function(t){var e=this;confirm("Voulez-vous vraiment supprimer la signature ?")&&this.http.delete(this.coreUrl+"rest/users/"+this.user.id+"/signatures/"+t).subscribe(function(t){e.user.signatures=t.signatures,successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t.prototype.onSubmit=function(){this.http.put(this.coreUrl+"rest/users/profile",this.user).subscribe(function(t){successNotification(t.success)},function(t){errorNotification(JSON.parse(t._body).errors)})},t}();u=r([o.Component({templateUrl:angularGlobals.profileView,styleUrls:["../../node_modules/bootstrap/dist/css/bootstrap.min.css","css/profile.component.css"]}),i("design:paramtypes",[s.HttpClient,o.NgZone])],u),n.ProfileComponent=u},{"./translate.component":21,"@angular/common/http":28,"@angular/core":31}],20:[function(t,e,n){"use strict";var r=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},i=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(n,"__esModule",{value:!0});var o=t("@angular/core"),s=t("@angular/common/http"),a=t("@angular/platform-browser"),u=t("@angular/router"),c=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t){return this.sanitizer.bypassSecurityTrustResourceUrl(t)},t}();c=r([o.Pipe({name:"safeUrl"}),i("design:paramtypes",[a.DomSanitizer])],c),n.SafeUrlPipe=c;var l=function(){function t(t,e,n,r){var i=this;this.http=t,this.route=e,this.router=n,this.zone=r,this.signatureBook={currentAction:{},consigne:"",documents:[],attachments:[],resList:[],resListIndex:0,lang:{}},this.rightSelectedThumbnail=0,this.leftSelectedThumbnail=0,this.rightViewerLink="",this.leftViewerLink="",this.headerTab=1,this.showTopRightPanel=!1,this.showTopLeftPanel=!1,this.showResLeftPanel=!0,this.showLeftPanel=!0,this.showRightPanel=!0,this.showAttachmentPanel=!1,this.showSignaturesPanel=!1,this.loading=!1,this.loadingSign=!1,this.leftContentWidth="44%",this.rightContentWidth="44%",this.notesViewerLink="",this.visaViewerLink="",this.histViewerLink="",this.linksViewerLink="",this.attachmentsViewerLink="",window.angularSignatureBookComponent={componentAfterAttach:function(t){return i.processAfterAttach(t)},componentAfterAction:function(){return i.processAfterAction()},componentAfterNotes:function(){return i.processAfterNotes()}}}return t.prototype.prepareSignatureBook=function(){$j("#inner_content").remove(),$j("#header").remove(),$j("#viewBasketsTitle").remove(),$j("#homePageWelcomeTitle").remove(),$j("#footer").remove(),$j("#container").width("99%")},t.prototype.ngOnInit=function(){var t=this;this.prepareSignatureBook(),this.coreUrl=angularGlobals.coreUrl,this.loading=!0,this.route.params.subscribe(function(e){t.resId=+e.resId,t.basketId=e.basketId,t.groupId=e.groupId,t.signatureBook.resList=[],lockDocument(t.resId),setInterval(function(){lockDocument(t.resId)},5e4),t.http.get(t.coreUrl+"rest/groups/"+t.groupId+"/baskets/"+t.basketId+"/signatureBook/"+t.resId).subscribe(function(e){if(e.error)return location.hash="",void(location.search="");t.signatureBook=e,t.headerTab=1,t.leftSelectedThumbnail=0,t.rightSelectedThumbnail=0,t.leftViewerLink="",t.rightViewerLink="",t.showLeftPanel=!0,t.showRightPanel=!0,t.showResLeftPanel=!0,t.showTopLeftPanel=!1,t.showTopRightPanel=!1,t.showAttachmentPanel=!1,t.notesViewerLink="index.php?display=true&module=notes&page=notes&identifier="+t.resId+"&origin=document&coll_id=letterbox_coll&load&size=full",t.visaViewerLink="index.php?display=true&page=show_visa_tab&module=visa&resId="+t.resId+"&collId=letterbox_coll&visaStep=true",t.histViewerLink="index.php?display=true&page=show_history_tab&resId="+t.resId+"&collId=letterbox_coll",t.linksViewerLink="index.php?display=true&page=show_links_tab&id="+t.resId,t.attachmentsViewerLink="index.php?display=true&module=attachments&page=frame_list_attachments&resId="+t.resId+"&noModification=true&template_selected=documents_list_attachments_simple&load&attach_type_exclude=converted_pdf,print_folder",t.leftContentWidth="44%",t.rightContentWidth="44%",t.signatureBook.documents[0]&&(t.leftViewerLink=t.signatureBook.documents[0].viewerLink,"outgoing"==t.signatureBook.documents[0].category_id&&(t.headerTab=3)),t.signatureBook.attachments[0]&&(t.rightViewerLink=t.signatureBook.attachments[0].viewerLink),t.displayPanel("RESLEFT"),t.loading=!1,setTimeout(function(){$j("#rightPanelContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),0==$j(".tooltipstered").length&&$j("#obsVersion").tooltipster({interactive:!0})},0)},function(e){errorNotification(JSON.parse(e._body).errors),setTimeout(function(){t.backToBasket()},2e3)})})},t.prototype.ngOnDestroy=function(){delete window.angularSignatureBookComponent},t.prototype.processAfterAttach=function(t){var e=this;this.zone.run(function(){return e.refreshAttachments(t)})},t.prototype.processAfterNotes=function(){var t=this;this.zone.run(function(){return t.refreshNotes()})},t.prototype.processAfterAction=function(){for(var t=this,e=-1,n=this.signatureBook.resList.length,r=0;r<n;r++)this.signatureBook.resList[r].res_id==this.resId&&(this.signatureBook.resList[r+1]?e=this.signatureBook.resList[r+1].res_id:r>0&&(e=this.signatureBook.resList[r-1].res_id));n>0&&(unlockDocument(this.resId),e>=0?($j("#send").removeAttr("disabled"),$j("#send").css("opacity","1"),this.zone.run(function(){return t.changeLocation(e,"action")})):this.zone.run(function(){return t.backToBasket()}))},t.prototype.changeSignatureBookLeftContent=function(t){this.headerTab=t,this.showTopLeftPanel=!1},t.prototype.changeRightViewer=function(t){this.showAttachmentPanel=!1,this.signatureBook.attachments[t]?this.rightViewerLink=this.signatureBook.attachments[t].viewerLink:this.rightViewerLink="",this.rightSelectedThumbnail=t},t.prototype.changeLeftViewer=function(t){this.leftViewerLink=this.signatureBook.documents[t].viewerLink,this.leftSelectedThumbnail=t},t.prototype.displayPanel=function(t){var e=this;"TOPRIGHT"==t?this.showTopRightPanel=!this.showTopRightPanel:"TOPLEFT"==t?this.showTopLeftPanel=!this.showTopLeftPanel:"LEFT"==t?(this.showLeftPanel=!this.showLeftPanel,this.showResLeftPanel=!1,this.showLeftPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#hideLeftContent").css("background","#CEE9F1")):(this.rightContentWidth="96%",$j("#hideLeftContent").css("background","none"))):"RESLEFT"==t?(this.showResLeftPanel=!this.showResLeftPanel,this.showResLeftPanel?(this.rightContentWidth="44%",this.leftContentWidth="44%",0!=this.signatureBook.resList.length&&null!=this.signatureBook.resList[0].allSigned||this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList/details").subscribe(function(t){e.signatureBook.resList=t.resList,e.signatureBook.resList.forEach(function(t,n){t.res_id==e.resId&&(e.signatureBook.resListIndex=n)}),setTimeout(function(){$j("#resListContent").niceScroll({touchbehavior:!1,cursorcolor:"#666",cursoropacitymax:.6,cursorwidth:4}),$j("#resListContent").scrollTop(0),$j("#resListContent").scrollTop($j(".resListContentFrameSelected").offset().top-42)},0)})):(this.rightContentWidth="48%",this.leftContentWidth="48%")):"MIDDLE"==t&&(this.showRightPanel=!this.showRightPanel,this.showResLeftPanel=!1,this.showRightPanel?(this.rightContentWidth="48%",this.leftContentWidth="48%",$j("#contentLeft").css("border-right","solid 1px")):(this.leftContentWidth="96%",$j("#contentLeft").css("border-right","none")))},t.prototype.displayAttachmentPanel=function(){this.showAttachmentPanel=!this.showAttachmentPanel,this.rightSelectedThumbnail=0,this.signatureBook.attachments[0]&&(this.rightViewerLink=this.signatureBook.attachments[0].viewerLink)},t.prototype.refreshAttachments=function(t){var e=this;"rightContent"==t?this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/incomingMailAttachments").subscribe(function(t){e.signatureBook.documents=t}):this.http.get(this.coreUrl+"rest/signatureBook/"+this.resId+"/attachments").subscribe(function(n){var r=0;if("add"==t){var i=!1;n.forEach(function(t,n){i||e.signatureBook.attachments[n]&&t.res_id==e.signatureBook.attachments[n].res_id||(r=n,i=!0)})}else if("edit"==t){var o=e.signatureBook.attachments[e.rightSelectedThumbnail].res_id;n.forEach(function(t,e){t.res_id==o&&(r=e)})}e.signatureBook.attachments=n,"add"==t||"edit"==t?e.changeRightViewer(r):"del"==t&&e.changeRightViewer(0)})},t.prototype.addAttachmentIframe=function(){showAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&docId="+this.resId)},t.prototype.editAttachmentIframe=function(t){if(t.canModify&&"SIGN"!=t.status){var e;0==t.res_id?e=t.res_id_version:0==t.res_id_version&&(e=t.res_id),modifyAttachmentsForm("index.php?display=true&module=attachments&page=attachments_content&id="+e+"&relation="+t.relation+"&docId="+this.resId,"98%","auto")}},t.prototype.delAttachment=function(t){var e=this;if(t.canDelete){if(this.signatureBook.attachments.length<=1)n=confirm("Attention, ceci est votre dernière pièce jointe pour ce courrier, voulez-vous vraiment la supprimer ?");else var n=confirm("Voulez-vous vraiment supprimer la pièce jointe ?");if(n){var r;0==t.res_id?r=t.res_id_version:0==t.res_id_version&&(r=t.res_id),this.http.get("index.php?display=true&module=attachments&page=del_attachment&id="+r+"&relation="+t.relation+"&rest=true").subscribe(function(){e.refreshAttachments("del")})}}},t.prototype.refreshNotes=function(){var t=this;this.http.get(this.coreUrl+"rest/res/"+this.resId+"/notes/count").subscribe(function(e){t.signatureBook.nbNotes=e})},t.prototype.signFile=function(t,e){var n=this;if(!this.loadingSign&&this.signatureBook.canSign){this.loadingSign=!0;var r="index.php?display=true&module=visa&page=sign_file&collId=letterbox_coll&resIdMaster="+this.resId+"&signatureId="+e.id;0==t.res_id?"outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isVersion&isOutgoing&id="+t.res_id_version:r+="&isVersion&id="+t.res_id_version:0==t.res_id_version&&("outgoing_mail"==t.attachment_type&&"outgoing"==this.signatureBook.documents[0].category_id?r+="&isOutgoing&id="+t.res_id:r+="&id="+t.res_id),this.http.get(r,e).subscribe(function(t){if(0==t.status){n.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+n.resId+"&id="+t.new_id+"&isVersion=false",n.signatureBook.attachments[n.rightSelectedThumbnail].viewerLink=n.rightViewerLink,n.signatureBook.attachments[n.rightSelectedThumbnail].status="SIGN",n.signatureBook.attachments[n.rightSelectedThumbnail].idToDl=t.new_id;var e=!0;n.signatureBook.attachments.forEach(function(t){t.sign&&"SIGN"!=t.status&&(e=!1)}),n.signatureBook.resList.length>0&&(n.signatureBook.resList[n.signatureBook.resListIndex].allSigned=e)}else alert(t.error);n.showSignaturesPanel=!1,n.loadingSign=!1})}},t.prototype.unsignFile=function(t){var e,n,r,i=this;0==t.res_id?(n=t.res_id_version,e="res_version_attachments",r="true"):0==t.res_id_version&&(n=t.res_id,e="res_attachments",r="false"),this.http.put(this.coreUrl+"rest/"+e+"/"+n+"/unsign",{}).subscribe(function(){i.rightViewerLink="index.php?display=true&module=attachments&page=view_attachment&res_id_master="+i.resId+"&id="+t.viewerNoSignId+"&isVersion="+r,i.signatureBook.attachments[i.rightSelectedThumbnail].viewerLink=i.rightViewerLink,i.signatureBook.attachments[i.rightSelectedThumbnail].status="A_TRA",i.signatureBook.attachments[i.rightSelectedThumbnail].idToDl=n,i.signatureBook.resList.length>0&&(i.signatureBook.resList[i.signatureBook.resListIndex].allSigned=!1)})},t.prototype.backToBasket=function(){unlockDocument(this.resId),location.hash="",location.reload()},t.prototype.backToDetails=function(){unlockDocument(this.resId),location.hash="",location.search="?page=details&dir=indexing_searching&id="+this.resId},t.prototype.changeLocation=function(t,e){var n=this;this.http.get(this.coreUrl+"rest/res/"+t+"/lock").subscribe(function(r){if(r.lock)"view"==e?alert("Courrier verrouillé par "+r.lockBy):"action"==e&&(alert("Courrier suivant verrouillé par "+r.lockBy),n.backToBasket());else{var i="/groups/"+n.groupId+"/baskets/"+n.basketId+"/signatureBook/"+t;n.router.navigate([i])}})},t.prototype.validForm=function(){var t=this;""!=$j("#signatureBookActions option:selected")[0].value?(unlockDocument(this.resId),0==this.signatureBook.resList.length?this.http.get(this.coreUrl+"rest/"+this.basketId+"/signatureBook/resList").subscribe(function(e){t.signatureBook.resList=e.resList,valid_action_form("empty","index.php?display=true&page=manage_action&module=core",t.signatureBook.currentAction.id,t.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])}):valid_action_form("empty","index.php?display=true&page=manage_action&module=core",this.signatureBook.currentAction.id,this.resId,"res_letterbox","null","letterbox_coll","page",!1,[$j("#signatureBookActions option:selected")[0].value])):alert("Aucune action choisie")},t}();l=r([o.Component({templateUrl:angularGlobals["signature-bookView"]}),i("design:paramtypes",[s.HttpClient,u.ActivatedRoute,u.Router,o.NgZone])],l),n.SignatureBookComponent=l},{"@angular/common/http":28,"@angular/core":31,"@angular/platform-browser":37,"@angular/router":38}],21:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("../lang/lang-en"),i=t("../lang/lang-fr"),o={};"en"==angularGlobals.lang?o=r.LANG_EN:"fr"==angularGlobals.lang&&(o=i.LANG_FR),n.LANG=o},{"../lang/lang-en":22,"../lang/lang-fr":23}],22:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_EN={id:"Login",maarchApplication:"Maarch App",add:"Add",back:"Back",cancel:"Cancel",desc:"Description",save:"Save",validate:"Validate",update:"Update",delete:"Delete",yes:"Yes",no:"No",chooseGroup:"Choose a group",chooseBasket:"Choose a basket",selectAll:"Select all",unselectAll:"Unselect all",admin:"Administration",system:"System",systemParameters:"System parameters",deleteMsg:"Do you really want to delete this element",clickOn:"Click on",to:"to",user:"user",firstname:"Firstname",lastname:"Lastname",email:"Email",emailSignatures:"Email signatures",initials:"Initials",fingerprint:"Digital fingerprint",color:"Color",label:"Label",processDelay:"Process delay",workingDays:"Working days",folders:"Folders",entities:"Entities",reports:"Reports",myProfile:"My profile",manageMyAbsences:"Manage my absences",manageMySignatures:"Manage my signatures",myGroups:"My Groups",myEntities:"My Entities",primaryEntity:"Primary entity",secondaryEntity:"Secondary entity",myInformations:"My Informations",phoneNumber:"Phone number",changePsw:"Change your password",currentPsw:"Current password",newPsw:"New password",renewPsw:"Enter the password again",sbSignatures:"Signature Book signatures",newSignature:"New signature",signatureLabel:"Signature label",updateSignature:"Update signature",deleteSignature:"Delete signature",toAddSignature:"to add a signature",toUpdateSignature:"to update a signature",activateMyAbs:"Activate my absence",autoLogoutAbsence:"You are going to be automaticaly disconnected after your redirections"}},{}],23:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.LANG_FR={id:"Identifiant",maarchApplication:"Application Maarch",add:"Ajouter",back:"Retour",cancel:"Annuler",desc:"Description",save:"Enregistrer",validate:"Valider",update:"Modifier",delete:"Supprimer",yes:"Oui",no:"Non",chooseGroup:"Choisissez un groupe",chooseBasket:"Choisissez une banette",selectAll:"Sélectionner tout",unselectAll:"Tout désélectionner",admin:"Administration",system:"Système",systemParameters:"paramètres système",deleteMsg:"Voulez-vous vraiment supprimer cet élément",clickOn:"Cliquez sur",to:"vers",user:"utilisateur",firstname:"Prénom",lastname:"Nom",email:"Email",emailSignatures:"Signatures de mail",initials:"Initiales",fingerprint:"Empreinte numérique",color:"Couleur",label:"Label",processDelay:"Délai de traitement",workingDays:"Jours travaillés",folders:"Dossiers",entities:"Entités",reports:"Etats et éditions",available:"disponible",display:"affichage",filteredFrom:"filtré sur un ensemble de",last:"dernier",next:"Suivant",noRecord:"Aucun élément",noResult:"Aucun résultat",outOf:"sur",page:"Page",previous:"Précecdent",record:"élément(s)",records:"résultats",recordsPerPage:"résultats par page",search:"Chercher",action:"Action",actionAdded:"Ajout d'une nouvelle action",actionHistory:"Tracer l'action",actionHistoryDesc:"Permet tracer cette action dans l'historique du document. Il est fortement recommandé de cocher cette option.",actionModified:"Modification de l'action",actionPage:"Page de résultat de l'action",actions:"Action(s)",associatedStatus:"Statut associé",chooseCategoryAssociation:"Choisissez une ou plusieurs catégories associée",chooseCategoryAssociationHelp:"Si aucune catégorie sélectionnée alors l'action est valable pour toute les catégories",doNotModifyUnlessExpert:"Ne pas modifier cette section à moins de savoir ce que vous faites. Un mauvais paramètrage peut entrainer des dysfonctionnements de l'application!",infosActions:"Vous devez choisir au moins un statut et / ou un script.",isFolderAction:"Action de dossier",isFolderActionDesc:"Permet d'utiliser cette action dans une bannette de dossier",keyword:"Mot clé",newAction:"Nouvelle action",activateMyAbs:"Activer mon absence",autoLogoutAbsence:"Vous allez être automatiquement déconnecté après avoir défini vos redirections de bannettes",changePsw:"Modifier votre mot de passe",currentPsw:"Mot de passe actuel",deleteSignature:"Supprimer la signature",manageMyAbsences:"Gérer mes absences",manageMySignatures:"Gérer mes signatures",myEntities:"Mes Entités",myGroups:"Mes Groupes",myInformations:"Mes Informations",myProfile:"Mon profil",newPsw:"Nouveau mot de passe",newSignature:"Nouvelle signature",phoneNumber:"Numéro de téléphone",primaryEntity:"Entité Primaire",renewPsw:"Retaper le mot de passe",sbSignatures:"Signatures de parapheur",secondaryEntity:"Entité Secondaire",signatureLabel:"Label de la signature",toAddSignature:"pour ajouter une signature",toUpdateSignature:"pour modifier la signature téléchargée",updateSignature:"Modifier la signature"}},{}],24:[function(t,e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r=t("@angular/platform-browser-dynamic"),i=t("@angular/core"),o=t("./app/app.module");i.enableProdMode(),r.platformBrowserDynamic().bootstrapModule(o.AppModule)},{"./app/app.module":18,"@angular/core":31,"@angular/platform-browser-dynamic":35}],25:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/animations")):i((r.ng=r.ng||{},r.ng.animations=r.ng.animations||{},r.ng.animations.browser=r.ng.animations.browser||{}),r.ng.animations)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t){switch(t.length){case 0:return new e.NoopAnimationPlayer;case 1:return t[0];default:return new e.ɵAnimationGroupPlayer(t)}}function i(t,n,r,i,o,s){void 0===o&&(o={}),void 0===s&&(s={});var a=[],u=[],c=-1,l=null;if(i.forEach(function(t){var r=t.offset,i=r==c,p=i&&l||{};Object.keys(t).forEach(function(r){var i=r,u=t[r];u==e.ɵPRE_STYLE?u=o[r]:u==e.AUTO_STYLE?u=s[r]:"offset"!=r&&(i=n.normalizePropertyName(r,a),u=n.normalizeStyleValue(r,i,t[r],a)),p[i]=u}),i||u.push(p),l=p,c=r}),a.length){throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "))}return u}function o(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&s(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&s(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&s(n,"destroy",t.totalTime))})}}function s(t,e,n){var r=a(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function a(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function u(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function c(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}function l(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:p(parseFloat(e[1]),e[2])}function p(t,e){switch(e){case"s":return t*vt;default:return t}}function h(t,e,n){return t.hasOwnProperty("duration")?t:d(t,e,n)}function d(t,e,n){var r,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o=0,s="";if("string"==typeof t){var a=t.match(i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=p(parseFloat(a[1]),a[2]);var u=a[3];null!=u&&(o=p(Math.floor(parseFloat(u)),a[4]));var c=a[5];c&&(s=c)}else r=t;if(!n){var l=!1,h=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(h,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:s}}function f(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function m(t){var e={};return Array.isArray(t)?t.forEach(function(t){return y(t,!1,e)}):y(t,!1,e),e}function y(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else f(t,n);return n}function g(t,e){t.style&&Object.keys(e).forEach(function(n){var r=x(n);t.style[r]=e[n]})}function v(t,e){t.style&&Object.keys(e).forEach(function(e){var n=x(e);t.style[n]=""})}function b(t){return Array.isArray(t)?1==t.length?t[0]:e.sequence(t):t}function _(t,e,n){var r=e.params||{};if("string"==typeof t){var i=t.toString().match(Et);i&&i.forEach(function(t){r.hasOwnProperty(t)||n.push("Unable to resolve the local animation param "+t+" in the given list of values")})}}function w(t,e,n){var r=t.toString(),i=r.replace(Et,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function C(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}function E(t,e){if(t.params){var n=t.params;e.params||(e.params={});var r=e.params;Object.keys(n).forEach(function(t){r.hasOwnProperty(t)||(r[t]=n[t])})}return e}function x(t){return t.replace(xt,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function S(t,e){return 0===t||0===e}function P(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function O(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return k(t,n,e)}):n.push(t),n}function k(t,e,n){":"==t[0]&&(t=T(t,n));var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=r[1],o=r[2],s=r[3];e.push(A(i,s));var a=i==Ht&&s==Ht;"<"!=o[0]||a||e.push(A(s,i))}function T(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}function A(t,e){return function(n,r){var i=t==Ht||t==n,o=e==Ht||e==r;return i||"boolean"!=typeof n||(i=n?"true"===t:"false"===t),o||"boolean"!=typeof r||(o=r?"true"===e:"false"===e),i&&o}}function M(t,e){return(new Kt).build(t,e)}function R(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==zt});return e&&(t=t.replace(qt,"")),t=t.replace(Wt,bt).replace(Gt,_t).replace(/@\*/g,wt).replace(/@\w+/g,function(t){return wt+"-"+t.substr(1)}).replace(/:animating/g,Ct),[t,e]}function I(t){return t?f(t):null}function D(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(N(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(N(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}function N(t){return!Array.isArray(t)&&"object"==typeof t}function j(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){h(t,e).duration;return new Bt(t,0,"")}var r=t;return r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})?new Ut(r):(n=n||h(r,e),new Bt(n.duration,n.delay,n.easing))}function L(t){return t?(t=f(t)).params&&(t.params=I(t.params)):t={},t}function F(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}function V(t,e,n,r,i,o,s,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===a&&(a=[]),(new Xt).buildKeyframes(t,e,n,r,i,o,s,a)}function B(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}function U(t,n){var r,i={};return t.forEach(function(t){"*"===t?(r=r||Object.keys(n)).forEach(function(t){i[t]=e.AUTO_STYLE}):y(t,!1,i)}),i}function H(t,e,n,r,i,o,s,a,u,c,l,p){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}function z(t,e,n){return t.some(function(t){return t(e,n)})}function q(t,e){return new ae(t,e)}function G(t,e){var n=[function(t,e){return!0}],r=new At([]),i=new Tt(n,r);return new se(t,i,e)}function W(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}function K(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}function $(t){switch(typeof t){case"boolean":return t?"1":"0";default:return null!=t?t.toString():null}}function Y(t){return t&&1===t.nodeType}function X(t){return"start"==t||"done"==t}function Q(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function J(t,e,n,r){var i=e.map(function(t){return Q(t)}),o=new Map;return n.forEach(function(e,n){var i={};e.forEach(function(e){var o=i[e]=t.computeStyle(n,e,r);o&&0!=o.length||(n[de]=he)}),o.set(n,i)}),e.forEach(function(t,e){return Q(t,i[e])}),o}function Z(t){var e,n=new Set(t),r=new Set;return e=function(t){return!t||!n.has(t.parentNode)&&(!!r.has(t.parentNode)||!!e(t.parentNode)&&(r.add(t),!0))}}function tt(t,e){if(t.classList)return t.classList.contains(e);var n=t[_e];return n&&n[e]}function et(t,e){if(t.classList)t.classList.add(e);else{var n=t[_e];n||(n=t[_e]={}),n[e]=!0}}function nt(t,e){if(t.classList)t.classList.remove(e);else{var n=t[_e];n&&delete n[e]}}function rt(){return"undefined"!=typeof document?document.body:null}function it(t,e,n){r(n).onDone(function(){return t.processLeaveNode(e)})}function ot(t,e){return window.getComputedStyle(t)[e]}function st(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate}var at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ut=function(t,e){return!1},ct=function(t,e){return!1},lt=function(t,e,n){return[]};if("undefined"!=typeof Element){if(ut=function(t,e){return t.contains(e)},Element.prototype.matches)ct=function(t,e){return t.matches(e)};else{var pt=Element.prototype,ht=pt.matchesSelector||pt.mozMatchesSelector||pt.msMatchesSelector||pt.oMatchesSelector||pt.webkitMatchesSelector;ht&&(ct=function(t,e){return ht.apply(t,[e])})}lt=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var dt=ct,ft=ut,mt=lt,yt=function(){function t(){}return t.prototype.matchesElement=function(t,e){return dt(t,e)},t.prototype.containsElement=function(t,e){return ft(t,e)},t.prototype.query=function(t,e,n){return mt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,n,r,i,o,s){return void 0===s&&(s=[]),new e.NoopAnimationPlayer},t}(),gt=function(){function t(){}return t}();gt.NOOP=new yt;var vt=1e3,bt=".ng-enter",_t=".ng-leave",wt=".ng-trigger",Ct=".ng-animating",Et=/\{\{\s*(.+?)\s*\}\}/g,xt=/-+([a-z0-9])/g,St={},Pt=function(){function t(){this.options=St}return t.prototype.visit=function(t,e){},Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params||null},enumerable:!0,configurable:!0}),t}(),Ot=function(t){function e(e,n,r){var i=t.call(this)||this;return i.name=e,i.states=n,i.transitions=r,i.queryCount=0,i.depCount=0,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitTrigger(this,e)},e}(Pt),kt=function(t){function e(e,n){var r=t.call(this)||this;return r.name=e,r.style=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitState(this,e)},e}(Pt),Tt=function(t){function e(e,n){var r=t.call(this)||this;return r.matchers=e,r.animation=n,r.queryCount=0,r.depCount=0,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitTransition(this,e)},e}(Pt),At=function(t){function e(e){var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitSequence(this,e)},e}(Pt),Mt=function(t){function e(e){var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitGroup(this,e)},e}(Pt),Rt=function(t){function e(e,n){var r=t.call(this)||this;return r.timings=e,r.style=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimate(this,e)},e}(Pt),It=function(t){function e(e,n,r){var i=t.call(this)||this;return i.styles=e,i.easing=n,i.offset=r,i.isEmptyStep=!1,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitStyle(this,e)},e}(Pt),Dt=function(t){function e(e){var n=t.call(this)||this;return n.styles=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitKeyframes(this,e)},e}(Pt),Nt=function(t){function e(e){var n=t.call(this)||this;return n.animation=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitReference(this,e)},e}(Pt),jt=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimateChild(this,e)},e}(Pt),Lt=function(t){function e(e){var n=t.call(this)||this;return n.animation=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitAnimateRef(this,e)},e}(Pt),Ft=function(t){function e(e,n,r,i,o){var s=t.call(this)||this;return s.selector=e,s.limit=n,s.optional=r,s.includeSelf=i,s.animation=o,s}return n(e,t),e.prototype.visit=function(t,e){return t.visitQuery(this,e)},e}(Pt),Vt=function(t){function e(e,n){var r=t.call(this)||this;return r.timings=e,r.animation=n,r}return n(e,t),e.prototype.visit=function(t,e){return t.visitStagger(this,e)},e}(Pt),Bt=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=null);var i=t.call(this)||this;return i.duration=e,i.delay=n,i.easing=r,i}return n(e,t),e.prototype.visit=function(t,e){return t.visitTiming(this,e)},e}(Pt),Ut=function(t){function e(e){var n=t.call(this,0,0,"")||this;return n.value=e,n}return n(e,t),e.prototype.visit=function(t,e){return t.visitTiming(this,e)},e}(Bt),Ht="*",zt=":self",qt=new RegExp("s*"+zt+"s*,?","g"),Gt=new RegExp(":leave","g"),Wt=new RegExp(":enter","g"),Kt=function(){function t(){}return t.prototype.build=function(t,e){var n=new $t(e);return this._resetContextStyleTimingState(n),P(this,b(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],s=[];t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,u=a.name;u.split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=u}else if(1==t.type){var c=n.visitTransition(t,e);r+=c.queryCount,i+=c.depCount,s.push(c)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")});var a=new Ot(t.name,o,s);return a.options=L(t.options),a.queryCount=r,a.depCount=i,a},t.prototype.visitState=function(t,e){return new kt(t.name,this.visitStyle(t.styles,e))},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=P(this,b(t.animation),e),r=O(t.expr,e.errors),i=new Tt(r,n);return i.options=L(t.options),i.queryCount=e.queryCount,i.depCount=e.depCount,i},t.prototype.visitSequence=function(t,e){var n=this,r=new At(t.steps.map(function(t){return P(n,t,e)}));return r.options=L(t.options),r},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=P(n,t,e);return i=Math.max(i,e.currentTime),o});e.currentTime=i;var s=new Mt(o);return s.options=L(t.options),s},t.prototype.visitAnimate=function(t,n){var r=j(t.timings,n.errors);n.currentAnimateTimings=r;var i,o=t.styles?t.styles:e.style({});if(5==o.type)i=this.visitKeyframes(o,n);else{var s=t.styles,a=!1;if(!s){a=!0;var u={};r.easing&&(u.easing=r.easing),s=e.style(u)}n.currentTime+=r.duration+r.delay;var c=this.visitStyle(s,n);c.isEmptyStep=a,i=c}return n.currentAnimateTimings=null,new Rt(r,i)},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,n){var r=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==e.AUTO_STYLE?r.push(t):n.errors.push("The provided style string value "+t+" is not allowed."):r.push(t)}):r.push(t.styles);var i=null;return r.forEach(function(t){if(N(t)){var e=t,n=e.easing;n&&(i=n,delete e.easing)}}),new It(r,i,t.offset)},t.prototype._validateStyleAst=function(t,e){var n=e.currentAnimateTimings,r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){var o=e.collectedStyles[e.currentQuerySelector],s=o[n],a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'+n+'" that exists between the times of "'+s.startTime+'ms" and "'+s.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+r+'ms"'),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&_(t[n],e.options,e.errors)})})},t.prototype.visitKeyframes=function(t,e){var n=this;if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),new Dt([]);var r=0,i=[],o=!1,s=!1,a=0,u=t.steps.map(function(t){var u=n._makeStyleAst(t,e),c=null!=u.offset?u.offset:D(u.styles),l=0;return null!=c&&(r++,l=u.offset=c),s=s||l<0||l>1,o=o||l<a,a=l,i.push(l),u});s&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),o&&e.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,l=0;r>0&&r<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(l=1/(c-1));var p=c-1,h=e.currentTime,d=e.currentAnimateTimings,f=d.duration;return u.forEach(function(t,r){var o=l>0?r==p?1:l*r:i[r],s=o*f;e.currentTime=h+d.delay+s,d.duration=s,n._validateStyleAst(t,e),t.offset=o}),new Dt(u)},t.prototype.visitReference=function(t,e){var n=P(this,b(t.animation),e),r=new Nt(n);return r.options=L(t.options),r},t.prototype.visitAnimateChild=function(t,e){e.depCount++;var n=new jt;return n.options=L(t.options),n},t.prototype.visitAnimateRef=function(t,e){var n=this.visitReference(t.animation,e),r=new Lt(n);return r.options=L(t.options),r},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=R(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,u(e.collectedStyles,e.currentQuerySelector,{});var a=P(this,b(t.animation),e);e.currentQuery=null,e.currentQuerySelector=n;var c=new Ft(o,r.limit||0,!!r.optional,s,a);return c.originalSelector=t.selector,c.options=L(t.options),c},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:h(t.timings,e.errors,!0),r=P(this,b(t.animation),e);return new Vt(n,r)},t}(),$t=function(){function t(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}return t}(),Yt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Xt=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a){void 0===a&&(a=[]),s=s||new Yt;var u=new Jt(t,e,s,a,[]);u.options=o,u.currentTimeline.setStyles([r],null,u.errors,o),n.visit(this,u);var c=u.timelines.filter(function(t){return t.containsAnimation()});if(c.length&&Object.keys(i).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([i],null,u.errors,o)}return c.length?c.map(function(t){return t.buildKeyframes()}):[F(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?l(n.duration):null,o=null!=n.delay?l(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),t.animation.visit(this,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){i.previousNode instanceof It&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Qt);var s=l(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return t.visit(n,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?l(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),s.visit(n,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype.visitTiming=function(t,e){return t instanceof Ut?h(e.params?w(t.value,e.params,e.errors):t.value.toString(),e.errors):{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this.visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;i instanceof Dt?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;o.forwardTime(n*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?l(i.delay):0;o&&(e.previousNode instanceof It||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qt);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),t.animation.visit(n,a),a.currentTimeline.applyStylesToKeyframe();var c=a.currentTimeline.currentTime;s=Math.max(s,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;t.animation.visit(this,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),Qt={},Jt=function(){function t(t,e,n,r,i,o){this._driver=t,this.element=e,this.subInstructions=n,this.errors=r,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new Zt(e,0),i.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=l(r.duration)),null!=r.delay&&(i.delay=l(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=w(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(this.options.params).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Qt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new te(t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){var a=1!=n;s.push.apply(s,this._driver.query(this.element,t,a))}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Zt=function(){function t(t,e,n){this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){n._backFill[t]=n._globalTimelineStyles[t]||e.AUTO_STYLE,n._currentKeyframe[t]=e.AUTO_STYLE}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,n,r,i){var o=this;n&&(this._previousKeyframe.easing=n);var s=i&&i.params||{},a=U(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var n=w(a[t],s,r);o._pendingStyles[t]=n,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:e.AUTO_STYLE),o._updateStyle(t,n)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var n=new Set,r=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(s,a){var u=y(s,!0);Object.keys(u).forEach(function(t){var i=u[t];i==e.ɵPRE_STYLE?n.add(t):i==e.AUTO_STYLE&&r.add(t)}),i||(u.offset=a/t.duration),o.push(u)});var s=n.size?C(n.values()):[],a=r.size?C(r.values()):[];if(i){var u=o[0],c=f(u);u.offset=0,c.offset=1,o=[u,c]}return F(this.element,o,s,a,this.duration,this.startTime,this.easing,!1)},t}(),te=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!1);var a=t.call(this,e,o.delay)||this;return a.element=e,a.keyframes=n,a.preStyleProps=r,a.postStyleProps=i,a._stretchStartingKeyframe=s,a.timings={duration:o.duration,delay:o.delay,easing:o.easing},a}return n(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=y(t[0],!1);u.offset=0,o.push(u);var c=y(t[0],!1);c.offset=B(a),o.push(c);for(var l=t.length-1,p=1;p<=l;p++){var h=y(t[p],!1),d=n+h.offset*r;h.offset=B(d/s),o.push(h)}r=s,n=0,i="",t=o}return F(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Zt),ee=function(){function t(t,e){this._driver=t;var n=[],r=M(e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}return t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?m(e):e,s=Array.isArray(n)?m(n):n,a=[];i=i||new Yt;var u=V(this._driver,t,this._animationAst,o,s,r,i,a);if(a.length){var c="animation building failed:\n"+a.join("\n");throw new Error(c)}return u},t}(),ne=function(){function t(){}return t}(),re=function(){function t(){}return t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n},t}(),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.normalizePropertyName=function(t,e){return x(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(oe[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(ne),oe=function(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")),se=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return z(this.ast.matchers,t,e)},t.prototype.build=function(t,e,n,r,i,o){var s=E(this.ast.options||{},i||{}),a=this._stateStyles["*"]||{},c=this._stateStyles[n]||a,l=this._stateStyles[r]||a,p=new Set,h=new Map,d=new Map,f="void"===r,m=[],y=V(t,e,this.ast.animation,c,l,s,o,m);if(m.length)return H(e,this._triggerName,n,r,f,c,l,[],[],h,d,m);y.forEach(function(t){var n=t.element,r=u(h,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=u(d,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&p.add(n)});var g=C(p.values());return H(e,this._triggerName,n,r,f,c,l,y,g,h,d)},t}(),ae=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=n.states[t.name]={};t.style.styles.forEach(function(t){"object"==typeof t&&y(t,!1,e)})}),W(this.states,"true","1"),W(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new se(t,e,n.states))}),this.fallbackTransition=G(t,this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t}(),ue=new Yt,ce=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=M(e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=i(this._driver,this._normalizer,r,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,n,i){var o=this;void 0===i&&(i={});var s,a=[],c=this._animations[t],l=new Map;if(c?(s=V(this._driver,n,c,{},{},i,ue,a)).forEach(function(t){var e=u(l,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),s=[]),a.length)throw new Error("Unable to create the animation due to the following errors: "+a.join("\n"));l.forEach(function(t,n){Object.keys(t).forEach(function(r){t[r]=o._driver.computeStyle(n,r,e.AUTO_STYLE)})});var p=r(s.map(function(t){var e=l.get(t.element);return o._buildPlayer(t,{},e)}));return this._playersById[t]=p,p.onDestroy(function(){return o.destroy(t)}),this.players.push(p),p},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=a(e,"","","");return o(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n){if("create"==n){var i=r[0]||{};return void this.create(t,e,i)}var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.register(t,r[0])},t}(),le=[],pe={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},he={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},de="__ng_removed",fe=function(){function t(t){var e=t&&t.hasOwnProperty("value"),n=e?t.value:t;if(this.value=$(n),e){var r=f(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),me=new fe("void"),ye=new fe("DELETED"),ge=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,et(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if(!X(n))throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var o=u(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);var a=u(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(et(t,"ng-trigger"),et(t,"ng-trigger-"+e),a[e]=null),function(){i._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),i._triggers[e]||delete a[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new be(this.id,e,t),a=this._engine.statesByElement.get(t);a||(et(t,"ng-trigger"),et(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var c=a[e],l=new fe(n);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[e]=l,c){if(c===ye)return s}else c=me;if("void"===l.value||c.value!==l.value){var p=u(this._engine.playersByElement,t,[]);p.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var h=o.matchTransition(c.value,l.value),d=!1;if(!h){if(!r)return;h=o.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:c,toState:l,player:s,isFallbackTransition:d}),d||(et(t,"ng-animate-queued"),s.onStart(function(){nt(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),p.push(s),s}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._destroyInnerNodes=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,wt,!0).forEach(function(t){if(n&&tt(t,r._hostClassName)){var i=r._engine.namespacesByHostElement.get(t);i&&i.removeNode(t,e,!0),r.removeNode(t,e,!0)}else r.clearElementCache(t)})},t.prototype.removeNode=function(t,e,n){var i=this,o=this._engine;!n&&t.childElementCount&&this._destroyInnerNodes(t,e,!0);var s=o.statesByElement.get(t);if(s){var a=[];if(Object.keys(s).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",!1);n&&a.push(n)}}),a.length)return o.markElementAsRemoved(this.id,t,!0,e),void r(a).onDone(function(){return o.processLeaveNode(t)})}var u=!1;if(o.totalAnimations){var c=o.players.length?o.playersByQueriedElement.get(t):[];if(c&&c.length)u=!0;else for(var l=t;l=l.parentNode;)if(o.statesByElement.get(l)){u=!0;break}}var p=this._elementListeners.get(t);if(p){var h=new Set;p.forEach(function(e){var n=e.name;if(!h.has(n)){h.add(n);var r=i._triggers[n].fallbackTransition,s=o.statesByElement.get(t)[n]||me,a=new fe("void"),u=new be(i.id,n,t);i._engine.totalQueuedPlayers++,i._queue.push({element:t,triggerName:n,transition:r,fromState:s,toState:a,player:u,isFallbackTransition:!0})}})}u?o.markElementAsRemoved(this.id,t,!1,e):(o.afterFlush(function(){return i.clearElementCache(t)}),o.destroyInnerAnimations(t),o._onRemovalComplete(t,e))},t.prototype.insertNode=function(t,e){et(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var s=r.element,u=e._elementListeners.get(s);u&&u.forEach(function(e){if(e.name==r.triggerName){var n=a(s,r.triggerName,r.fromState.value,r.toState.value);n._data=t,o(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._destroyInnerNodes(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),ve=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new ge(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.trigger=function(t,e,n,r){return!!Y(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Y(e)){var i=e[de];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),et(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),nt(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(Y(e)){var i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n,r):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[de]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Y(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,t.toState.options,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,wt,!0);n.forEach(function(t){var n=e.playersByElement.get(t);n&&n.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var r=e.statesByElement.get(t);r&&Object.keys(r).forEach(function(t){return r[t]=ye})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Ct,!0)).length&&n.forEach(function(t){var n=e.playersByQueriedElement.get(t);n&&n.forEach(function(t){return t.finish()})})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return r(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[de];if(n&&n.setForRemoval){if(t[de]=pe,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(o=0;o<i.length;o++)i[o]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++){var s=this.collectedLeaveElements[o];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var a=this._whenQuietFns;this._whenQuietFns=[],n.length?r(n).onDone(function(){a.forEach(function(t){return t()})}):a.forEach(function(t){return t()})}},t.prototype._flushAnimations=function(t,n){var i=this,o=new Yt,s=[],a=new Map,c=[],l=new Map,p=new Map,h=new Map,d=new Set;this.disabledNodes.forEach(function(t){for(var e=i.driver.query(t,".ng-animate-queued",!0),n=0;n<e.length;n++)d.add(e[n])});for(var f=rt(),m=this.collectedEnterElements.length?this.collectedEnterElements.filter(Z(this.collectedEnterElements)):[],y=0;y<m.length;y++)et(m[y],"ng-enter");for(var b=[],_=[],y=0;y<this.collectedLeaveElements.length;y++)(R=(S=this.collectedLeaveElements[y])[de])&&R.setForRemoval&&(et(S,"ng-leave"),b.push(S),R.hasAnimation||_.push(S));t.push(function(){m.forEach(function(t){return nt(t,"ng-enter")}),b.forEach(function(t){nt(t,"ng-leave"),i.processLeaveNode(t)})});for(var w=[],C=[],y=this._namespaceList.length-1;y>=0;y--)this._namespaceList[y].drainQueuedTransitions(n).forEach(function(t){var e=t.player;w.push(e);var n=t.element;if(f&&i.driver.containsElement(f,n)){var r=i._buildInstruction(t,o);if(r.errors&&r.errors.length)C.push(r);else{if(t.isFallbackTransition)return e.onStart(function(){return v(n,r.fromStyles)}),e.onDestroy(function(){return g(n,r.toStyles)}),void s.push(e);r.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),o.append(n,r.timelines);var a={instruction:r,player:e,element:n};c.push(a),r.queriedElements.forEach(function(t){return u(l,t,[]).push(e)}),r.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=p.get(e);r||p.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),r.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}}else e.destroy()});if(C.length){var E="Unable to process animations due to the following failed trigger transitions\n";throw C.forEach(function(t){E+="@"+t.triggerName+" has failed due to:\n",t.errors.forEach(function(t){E+="- "+t+"\n"})}),w.forEach(function(t){return t.destroy()}),new Error(E)}for(var x=[],y=0;y<m.length;y++){var S=m[y];o.has(S)||x.push(S)}var P=new Map,O=[];c.forEach(function(t){var e=t.element;o.has(e)&&(O.unshift(e),i._beforeAnimationBuild(t.player.namespaceId,t.instruction,P))}),s.forEach(function(t){var e=t.element;i._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){u(P,e,[]).push(t)})}),P.forEach(function(t){return t.forEach(function(t){return t.destroy()})});var k=p.size?J(this.driver,x,p,e.ɵPRE_STYLE):new Map,T=J(this.driver,_,h,e.AUTO_STYLE),A=[],M=[];c.forEach(function(t){var e=t.element,n=t.player,u=t.instruction;if(o.has(e)){if(d.has(e))return void s.push(n);var c=i._buildAnimation(n.namespaceId,u,P,a,k,T);n.setRealPlayer(c);for(var l=null,p=0;p<O.length;p++){var h=O[p];if(h===e)break;if(i.driver.containsElement(h,e)){l=h;break}}if(l){var f=i.playersByElement.get(l);f&&f.length&&(n.parentPlayer=r(f)),s.push(n)}else A.push(n)}else v(e,u.fromStyles),n.onDestroy(function(){return g(e,u.toStyles)}),M.push(n)}),M.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=r(e);t.setRealPlayer(n)}}),s.forEach(function(t){t.parentPlayer?t.parentPlayer.onDestroy(function(){return t.destroy()}):t.destroy()});for(y=0;y<b.length;y++){var R=(S=b[y])[de];if(nt(S,"ng-leave"),!R||!R.hasAnimation){var I=[];if(l.size){var D=l.get(S);D&&D.length&&I.push.apply(I,D);for(var N=this.driver.query(S,Ct,!0),j=0;j<N.length;j++){var L=l.get(N[j]);L&&L.length&&I.push.apply(I,L)}}I.length?it(this,S,I):this.processLeaveNode(S)}}return b.length=0,A.forEach(function(t){i.players.push(t),t.onDone(function(){t.destroy();var e=i.players.indexOf(t);i.players.splice(e,1)}),t.play()}),A},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[de];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var s=this.playersByQueriedElement.get(t);s&&(o=s)}else{var a=this.playersByElement.get(t);if(a){var u=!i||"void"==i;a.forEach(function(t){t.queued||(u||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r=this;v(e.element,e.fromStyles);var i=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:i;e.timelines.map(function(t){var i=t.element,c=i!==o,l=u(n,i,[]);r._getPreviousPlayers(i,c,s,a,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),l.push(t)})})},t.prototype._buildAnimation=function(t,n,o,s,a,c){var l=this,p=n.triggerName,h=n.element,d=[],f=new Set,m=new Set,y=n.timelines.map(function(n){var r=n.element;f.add(r);var u=r[de];if(u&&u.removedBeforeQueried)return new e.NoopAnimationPlayer;var y=r!==h,g=(o.get(r)||le).map(function(t){return t.getRealPlayer()}),v=a.get(r),b=c.get(r),_=i(l.driver,l._normalizer,r,n.keyframes,v,b),w=l._buildPlayer(n,_,g);if(n.subTimeline&&s&&m.add(r),y){var C=new be(t,p,r);C.setRealPlayer(w),d.push(C)}return w});d.forEach(function(t){u(l.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return K(l.playersByQueriedElement,t.element,t)})}),f.forEach(function(t){return et(t,"ng-animating")});var v=r(y);return v.onDestroy(function(){f.forEach(function(t){return nt(t,"ng-animating")}),g(h,n.toStyles)}),m.forEach(function(t){u(s,t,[]).push(v)}),v},t.prototype._buildPlayer=function(t,n,r){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,r):new e.NoopAnimationPlayer},t}(),be=function(){function t(t,n,r){this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new e.NoopAnimationPlayer,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(t.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return o(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},t.prototype.getRealPlayer=function(){return this._player},t.prototype._queueEvent=function(t,e){u(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t}(),_e="$$classes",we=function(){function t(t,e){var n=this;this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new ve(t,e),this._timelineEngine=new ce(t,e),this._transitionEngine.onRemovalComplete=function(t,e){n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=M(i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=q(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.process=function(t,e,n,r){switch(n.charAt(0)){case".":return".disabled"==n&&this._transitionEngine.markElementAsDisabled(e,!!r),!1;case"@":var i=c(n),o=i[0],s=i[1],a=r;return this._timelineEngine.command(o,e,s,a),!1;default:return this._transitionEngine.trigger(t,e,n,r)}},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=c(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,e,a,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),Ce=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,S(this._duration,this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return y(t,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,s=1;s<e.length;s++)!function(){var t=e[s];i.forEach(function(e){t[e]=ot(o.element,e)})}()}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this._player.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._resetDomPlayerState(),this._onFinish(),this._destroyed=!0,this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this._player.currentTime=t*this.time},t.prototype.getPosition=function(){return this._player.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:ot(t.element,n))}),this.currentSnapshot=e},t}(),Ee=function(){function t(){}return t.prototype.matchesElement=function(t,e){return dt(t,e)},t.prototype.containsElement=function(t,e){return ft(t,e)},t.prototype.query=function(t,e,n){return mt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var a=o.filter(function(t){return t instanceof Ce});return new Ce(t,e,s,a)},t}();t.AnimationDriver=gt,t.ɵAnimation=ee,t.ɵAnimationStyleNormalizer=ne,t.ɵNoopAnimationStyleNormalizer=re,t.ɵWebAnimationsStyleNormalizer=ie,t.ɵNoopAnimationDriver=yt,t.ɵAnimationEngine=we,t.ɵWebAnimationsDriver=Ee,t.ɵsupportsWebAnimations=st,t.ɵWebAnimationsPlayer=Ce,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/animations":26}],26:[function(t,e,n){!function(t,r){r("object"==typeof n&&void 0!==e?n:(t.ng=t.ng||{},t.ng.animations=t.ng.animations||{}))}(this,function(t){"use strict";function e(t,e){return{type:7,name:t,definitions:e,options:{}}}function n(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function r(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function i(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function o(t){return{type:6,styles:t,offset:null}}function s(t,e){return{type:0,name:t,styles:e}}function a(t){return{type:5,steps:t}}function u(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function c(t,e){return void 0===e&&(e=null),{type:8,animation:t,options:e}}function l(t){return void 0===t&&(t=null),{type:9,options:t}}function p(t,e){return void 0===e&&(e=null),{type:10,animation:t,options:e}}function h(t,e,n){return void 0===n&&(n=null),{type:11,selector:t,animation:e,options:n}}function d(t,e){return{type:12,timings:t,animation:e}}function f(t){Promise.resolve(null).then(t)}var m=function(){function t(){}return t.prototype.build=function(t){},t}(),y=function(){function t(){}return t.prototype.create=function(t,e){},t}(),g=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this.triggerMicrotask(),this._onStart()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;f(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t}(),v=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0;var n=0,r=0,i=0,o=this._players.length;0==o?f(function(){return e._onFinish()}):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=o&&e._onFinish()}),t.onDestroy(function(){++r>=o&&e._onDestroy()}),t.onStart(function(){++i>=o&&e._onStart()})}),this.totalTime=this._players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this._players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t}();t.AnimationBuilder=m,t.AnimationFactory=y,t.AUTO_STYLE="*",t.animate=n,t.animateChild=l,t.animation=c,t.group=r,t.keyframes=a,t.query=h,t.sequence=i,t.stagger=d,t.state=s,t.style=o,t.transition=u,t.trigger=e,t.useAnimation=p,t.NoopAnimationPlayer=g,t.ɵAnimationGroupPlayer=v,t.ɵPRE_STYLE="!",Object.defineProperty(t,"__esModule",{value:!0})})},{}],27:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/operator/finally"),t("rxjs/operator/catch"),t("rxjs/operator/do"),t("rxjs/operator/map"),t("rxjs/operator/filter"),t("rxjs/operator/share"),t("rxjs/operator/first"),t("rxjs/operator/switchMap"),t("rxjs/operator/startWith"),t("rxjs/operator/debounceTime"),t("rxjs/operator/auditTime"),t("rxjs/operator/takeUntil"),t("@angular/common"),t("rxjs/Subject"),t("@angular/platform-browser"),t("rxjs/observable/merge"),t("rxjs/BehaviorSubject")):i((r.ng=r.ng||{},r.ng.cdk=r.ng.cdk||{}),r.ng.core,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.common,r.Rx,r.ng.platformBrowser,r.Rx.Observable,r.Rx)}(this,function(t,e,n,r,i,o,s,a,u,c,l,p,h,d,f,m,y,g,v){"use strict";function b(t,e){function n(){this.constructor=t}q(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function _(t){return null!=t&&""+t!="false"}function w(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function C(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}function E(t){return S(t)&&"hidden"==t.type}function x(t){return P(t)&&t.hasAttribute("href")}function S(t){return"input"==t.nodeName.toLowerCase()}function P(t){return"a"==t.nodeName.toLowerCase()}function O(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function k(t){if(!O(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function T(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}function A(t){return!E(t)&&(C(t)||x(t)||t.hasAttribute("contenteditable")||O(t))}function M(t){return t.ownerDocument.defaultView||window}function R(t,e,n){return t||new xt(e,n)}function I(){if(St)return St;if("object"!=typeof document||!document)return St=new Set(Ot);var t=document.createElement("input");return St=new Set(Ot.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function D(t){return 0===t.buttons}function N(t,e){return t||new Dt(e)}function j(t,e){return void 0===e&&(e=0),isNaN(parseFloat(t))||isNaN(Number(t))?e:Number(t)}function L(t){return new Error('cdk-table: Could not find column with id "'+t+'".')}function F(){throw Error("Must provide a portal to attach")}function V(){throw Error("Host already has a portal attached")}function B(){throw Error("This PortalHost has already been disposed")}function U(){throw Error("Attempting to attach an unknown Portal type. BasePortalHost accepts eithera ComponentPortal or a TemplatePortal.")}function H(){throw Error("Attempting to attach a portal to a null PortalHost")}function z(){throw Error("Attempting to detach a portal that is not attached to a host")}var q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},G="undefined"!=typeof Intl&&Intl.v8BreakIterator,W=function(){function t(){this.isBrowser="object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!G)&&!!CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[]};var K=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return w(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e=M(t).frameElement;if(e){var n=e&&e.nodeName.toLowerCase();if(-1===k(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}var r=t.nodeName.toLowerCase(),i=k(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&(!(this._platform.WEBKIT&&this._platform.IOS&&!T(t))&&t.tabIndex>=0)},t.prototype.isFocusable=function(t){return A(t)&&!this.isDisabled(t)&&this.isVisible(t)},t}();K.decorators=[{type:e.Injectable}],K.ctorParameters=function(){return[{type:W}]};var $=function(){function t(t){this._context=t}return t.from=function(e){return new t(e)},t.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return this._context=t.call.apply(t,[this._context].concat(e)),this},t.prototype.subscribe=function(t){return this._context.subscribe(t)},t.prototype.result=function(){return this._context},t}(),Y=function(){function t(){}return t}(),X=function(){function t(){}return t}(),Q=function(){function t(){}return t}(),J=function(){function t(){}return t}(),Z=function(){function t(){}return t}(),tt=function(){function t(){}return t}(),et=function(){function t(){}return t}(),nt=function(){function t(){}return t}(),rt=function(){function t(){}return t}(),it=function(){function t(){}return t}(),ot=function(){function t(){}return t}(),st=function(){function t(){}return t}(),at=n._finally,ut=r._catch,ct=i._do,lt=o.map,pt=s.filter,ht=a.share,dt=u.first,ft=c.switchMap,mt=l.startWith,yt=p.debounceTime,gt=h.auditTime,vt=d.takeUntil,bt=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._platform=e,this._checker=n,this._ngZone=r,this._enabled=!0,i||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._platform.isBrowser&&(this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){return t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){return t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))}))},t.prototype.focusInitialElementWhenReady=function(){var t=this;this._executeOnStable(function(){return t.focusInitialElement()})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;this._executeOnStable(function(){return t.focusFirstTabbableElement()})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;this._executeOnStable(function(){return t.focusLastTabbableElement()})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdk-focus-"+t+"]"),n=0;n<e.length;n++)e[n].hasAttribute("cdk-focus-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdk-focus-region-"+t+"' instead.",e[n]);return"start"==t?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial]");t?t.focus():this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");t&&t.focus()},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");t&&t.focus()},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=0;n<e.length;n++){var r=e[n].nodeType===Node.ELEMENT_NODE?this._getFirstTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var e=t.children||t.childNodes,n=e.length-1;n>=0;n--){var r=e[n].nodeType===Node.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}return null},t.prototype._createAnchor=function(){var t=document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():dt.call(this._ngZone.onStable).subscribe(t)},t}(),_t=function(){function t(t,e,n){this._checker=t,this._platform=e,this._ngZone=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new bt(t,this._platform,this._checker,this._ngZone,e)},t}();_t.decorators=[{type:e.Injectable}],_t.ctorParameters=function(){return[{type:K},{type:W},{type:e.NgZone}]};var wt=function(){function t(t,e){this._elementRef=t,this._focusTrapFactory=e,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return!this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=!_(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy()},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors()},t}();wt.decorators=[{type:e.Directive,args:[{selector:"cdk-focus-trap"}]}],wt.ctorParameters=function(){return[{type:e.ElementRef},{type:_t}]},wt.propDecorators={disabled:[{type:e.Input}]};var Ct=function(){function t(t,e){this._elementRef=t,this._focusTrapFactory=e,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=_(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy()},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors()},t}();Ct.decorators=[{type:e.Directive,args:[{selector:"[cdkTrapFocus]",exportAs:"cdkTrapFocus"}]}],Ct.ctorParameters=function(){return[{type:e.ElementRef},{type:_t}]},Ct.propDecorators={enabled:[{type:e.Input,args:["cdkTrapFocus"]}]};var Et=new e.InjectionToken("liveAnnouncerElement"),xt=function(){function t(t,e){e.isBrowser&&(this._liveElement=t||this._createLiveElement())}return t.prototype.announce=function(t,e){var n=this;void 0===e&&(e="polite"),this._liveElement.textContent="",this._liveElement.setAttribute("aria-live",e),setTimeout(function(){return n._liveElement.textContent=t},100)},t.prototype._removeLiveElement=function(){this._liveElement&&this._liveElement.parentNode&&this._liveElement.parentNode.removeChild(this._liveElement)},t.prototype._createLiveElement=function(){var t=document.createElement("div");return t.classList.add("cdk-visually-hidden"),t.setAttribute("aria-atomic","true"),t.setAttribute("aria-live","polite"),document.body.appendChild(t),t},t}();xt.decorators=[{type:e.Injectable}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Et]}]},{type:W}]};var St,Pt={provide:xt,deps:[[new e.Optional,new e.SkipSelf,xt],[new e.Optional,new e.Inject(Et)],W],useFactory:R},Ot=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"],kt=function(){function t(){}return t}();kt.decorators=[{type:e.NgModule,args:[{providers:[W]}]}],kt.ctorParameters=function(){return[]};var Tt=function(){function t(t){this._items=t,this._activeItemIndex=-1,this._tabOut=new m.Subject,this._wrap=!1}return t.prototype.withWrap=function(){return this._wrap=!0,this},t.prototype.setActiveItem=function(t){this._activeItemIndex=t,this._activeItem=this._items.toArray()[t]},t.prototype.onKeydown=function(t){switch(t.keyCode){case 40:this.setNextItemActive();break;case 38:this.setPreviousItemActive();break;case 9:return void this._tabOut.next();default:return}t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItemIndex=function(t){this._activeItemIndex=t},Object.defineProperty(t.prototype,"tabOut",{get:function(){return this._tabOut.asObservable()},enumerable:!0,configurable:!0}),t.prototype._setActiveItemByDelta=function(t,e){void 0===e&&(e=this._items.toArray()),this._wrap?this._setActiveInWrapMode(t,e):this._setActiveInDefaultMode(t,e)},t.prototype._setActiveInWrapMode=function(t,e){this._activeItemIndex=(this._activeItemIndex+t+e.length)%e.length,e[this._activeItemIndex].disabled?this._setActiveInWrapMode(t,e):this.setActiveItem(this._activeItemIndex)},t.prototype._setActiveInDefaultMode=function(t,e){this._setActiveItemByIndex(this._activeItemIndex+t,t,e)},t.prototype._setActiveItemByIndex=function(t,e,n){if(void 0===n&&(n=this._items.toArray()),n[t]){for(;n[t].disabled;)if(t+=e,!n[t])return;this.setActiveItem(t)}},t}(),At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.setActiveItem=function(e){var n=this;Promise.resolve().then(function(){n.activeItem&&n.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(n,e),n.activeItem&&n.activeItem.setActiveStyles()})},e}(Tt),Mt=function(t){function e(e){return t.call(this,e)||this}return b(e,t),e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus()},e}(Tt),Rt=function(){function t(){}return t}();Rt.decorators=[{type:e.NgModule,args:[{imports:[f.CommonModule,kt],declarations:[Ct,wt],exports:[Ct,wt],providers:[K,_t,Pt]}]}],Rt.ctorParameters=function(){return[]};var It=new e.InjectionToken("md-dir-doc"),Dt=function(){function t(t){if(this.value="ltr",this.change=new e.EventEmitter,t){var n=t.body?t.body.dir:null,r=t.documentElement?t.documentElement.dir:null;this.value=n||r||"ltr"}}return t}();Dt.decorators=[{type:e.Injectable}],Dt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[It]}]}]};var Nt={provide:Dt,deps:[[new e.Optional,new e.SkipSelf,Dt],[new e.Optional,y.DOCUMENT]],useFactory:N},jt=function(){function t(){this._dir="ltr",this._isInitialized=!1,this.change=new e.EventEmitter}return Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir},set:function(t){var e=this._dir;this._dir=t,e!==this._dir&&this._isInitialized&&this.change.emit()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.dir},set:function(t){this.dir=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._isInitialized=!0},t}();jt.decorators=[{type:e.Directive,args:[{selector:"[dir]",exportAs:"$implicit",providers:[{provide:Dt,useExisting:jt}]}]}],jt.ctorParameters=function(){return[]},jt.propDecorators={change:[{type:e.Output,args:["dirChange"]}],dir:[{type:e.HostBinding,args:["attr.dir"]},{type:e.Input,args:["dir"]}]};var Lt=function(){function t(){}return t}();Lt.decorators=[{type:e.NgModule,args:[{exports:[jt],declarations:[jt],providers:[{provide:It,useExisting:y.DOCUMENT},Dt]}]}],Lt.ctorParameters=function(){return[]};var Ft="<ng-container cdkCellOutlet></ng-container>",Vt=function(){function t(t,e){this.template=t,this._differs=e,this.columnsChange=new m.Subject,this.viewInitialized=!1}return t.prototype.ngAfterViewInit=function(){this.viewInitialized=!0},t.prototype.ngOnChanges=function(t){!this._columnsDiffer&&t.columns.currentValue&&(this._columnsDiffer=this._differs.find(t.columns.currentValue).create())},t.prototype.ngDoCheck=function(){this.viewInitialized&&this._columnsDiffer&&this.columns&&this._columnsDiffer.diff(this.columns)&&this.columnsChange.next()},t}(),Bt=function(t){function e(e,n){return t.call(this,e,n)||this}return b(e,t),e}(Vt);Bt.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderRowDef]",inputs:["columns: cdkHeaderRowDef"]}]}],Bt.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]};var Ut=function(t){function e(e,n){return t.call(this,e,n)||this}return b(e,t),e}(Vt);Ut.decorators=[{type:e.Directive,args:[{selector:"[cdkRowDef]",inputs:["columns: cdkRowDefColumns"]}]}],Ut.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.IterableDiffers}]};var Ht=function(){function t(e){this._viewContainer=e,t.mostRecentCellOutlet=this}return t}();Ht.decorators=[{type:e.Directive,args:[{selector:"[cdkCellOutlet]"}]}],Ht.ctorParameters=function(){return[{type:e.ViewContainerRef}]};var zt=function(){function t(){}return t}();zt.decorators=[{type:e.Component,args:[{selector:"cdk-header-row",template:Ft,host:{class:"cdk-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],zt.ctorParameters=function(){return[]};var qt=function(){function t(){}return t}();qt.decorators=[{type:e.Component,args:[{selector:"cdk-row",template:Ft,host:{class:"cdk-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],qt.ctorParameters=function(){return[]};var Gt=function(){function t(t){this.template=t}return t}();Gt.decorators=[{type:e.Directive,args:[{selector:"[cdkCellDef]"}]}],Gt.ctorParameters=function(){return[{type:e.TemplateRef}]};var Wt=function(){function t(t){this.template=t}return t}();Wt.decorators=[{type:e.Directive,args:[{selector:"[cdkHeaderCellDef]"}]}],Wt.ctorParameters=function(){return[{type:e.TemplateRef}]};var Kt=function(){function t(){}return t}();Kt.decorators=[{type:e.Directive,args:[{selector:"[cdkColumnDef]"}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={name:[{type:e.Input,args:["cdkColumnDef"]}],cell:[{type:e.ContentChild,args:[Gt]}],headerCell:[{type:e.ContentChild,args:[Wt]}]};var $t=function(){function t(t,e,n){this.columnDef=t,this.elementRef=e,this.renderer=n,this.renderer.addClass(e.nativeElement,"cdk-column-"+t.name)}return t}();$t.decorators=[{type:e.Directive,args:[{selector:"cdk-header-cell",host:{class:"cdk-header-cell",role:"columnheader"}}]}],$t.ctorParameters=function(){return[{type:Kt},{type:e.ElementRef},{type:e.Renderer2}]};var Yt=function(){function t(t,e,n){this.columnDef=t,this.elementRef=e,this.renderer=n,this.renderer.addClass(e.nativeElement,"cdk-column-"+t.name)}return t}();Yt.decorators=[{type:e.Directive,args:[{selector:"cdk-cell",host:{class:"cdk-cell",role:"gridcell"}}]}],Yt.ctorParameters=function(){return[{type:Kt},{type:e.ElementRef},{type:e.Renderer2}]};var Xt=function(){function t(t){this.viewContainer=t}return t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[rowPlaceholder]"}]}],Xt.ctorParameters=function(){return[{type:e.ViewContainerRef}]};var Qt=function(){function t(t){this.viewContainer=t}return t}();Qt.decorators=[{type:e.Directive,args:[{selector:"[headerRowPlaceholder]"}]}],Qt.ctorParameters=function(){return[{type:e.ViewContainerRef}]};var Jt="\n <ng-container headerRowPlaceholder></ng-container>\n <ng-container rowPlaceholder></ng-container>",Zt=function(){function t(t,e,n,r,i){this._differs=t,this._changeDetectorRef=e,this._onDestroy=new m.Subject,this._isViewInitialized=!1,this._data=[],this._columnDefinitionsByName=new Map,this.viewChange=new v.BehaviorSubject({start:0,end:Number.MAX_VALUE}),i||r.setAttribute(n.nativeElement,"role","grid")}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete(),this.dataSource&&this.dataSource.disconnect(this)},t.prototype.ngOnInit=function(){},t.prototype.ngAfterContentInit=function(){var t=this;this._columnDefinitions.forEach(function(e){t._columnDefinitionsByName.set(e.name,e)});var e=this._rowDefinitions.map(function(t){return t.columnsChange});d.takeUntil.call(g.merge.apply(void 0,e),this._onDestroy).subscribe(function(){t._rowPlaceholder.viewContainer.clear(),t._dataDiffer.diff([]),t._renderRowChanges()}),d.takeUntil.call(this._headerDefinition.columnsChange,this._onDestroy).subscribe(function(){t._headerRowPlaceholder.viewContainer.clear(),t._renderHeaderRow()})},t.prototype.ngAfterViewInit=function(){this._dataDiffer=this._differs.find([]).create(this._trackByFn),this._isViewInitialized=!0},t.prototype.ngDoCheck=function(){this._isViewInitialized&&this.dataSource&&!this._renderChangeSubscription&&(this._renderHeaderRow(),this.dataSource&&!this._renderChangeSubscription&&this._observeRenderChanges())},t.prototype._switchDataSource=function(t){this._data=[],this._dataSource&&this.dataSource.disconnect(this),this._dataSource=t,this._isViewInitialized&&(this._renderChangeSubscription&&this._renderChangeSubscription.unsubscribe(),this._dataSource?this._observeRenderChanges():this._rowPlaceholder.viewContainer.clear())},t.prototype._observeRenderChanges=function(){var t=this;this._renderChangeSubscription=d.takeUntil.call(this.dataSource.connect(this),this._onDestroy).subscribe(function(e){t._data=e,t._renderRowChanges()})},t.prototype._renderHeaderRow=function(){var t=this._getHeaderCellTemplatesForRow(this._headerDefinition);t.length&&(this._headerRowPlaceholder.viewContainer.createEmbeddedView(this._headerDefinition.template,{cells:t}),t.forEach(function(t){Ht.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,{})}),this._changeDetectorRef.markForCheck())},t.prototype._renderRowChanges=function(){var t=this,e=this._dataDiffer.diff(this._data);if(e){var n=this._rowPlaceholder.viewContainer;e.forEachOperation(function(e,r,i){if(null==e.previousIndex)t._insertRow(t._data[i],i);else if(null==i)n.remove(r);else{var o=n.get(r);n.move(o,i)}}),this._updateRowContext()}},t.prototype._insertRow=function(t,e){var n=this._rowDefinitions.first,r={$implicit:t};this._rowPlaceholder.viewContainer.createEmbeddedView(n.template,r,e),(t?this._getCellTemplatesForRow(n):[]).forEach(function(t){Ht.mostRecentCellOutlet._viewContainer.createEmbeddedView(t.template,r)}),this._changeDetectorRef.markForCheck()},t.prototype._updateRowContext=function(){for(var t=this._rowPlaceholder.viewContainer,e=0,n=t.length;e<n;e++){var r=t.get(e);r.context.index=e,r.context.count=n,r.context.first=0===e,r.context.last=e===n-1,r.context.even=e%2==0,r.context.odd=e%2!=0}},t.prototype._getHeaderCellTemplatesForRow=function(t){var e=this;return t.columns?t.columns.map(function(t){var n=e._columnDefinitionsByName.get(t);if(!n)throw L(t);return n.headerCell}):[]},t.prototype._getCellTemplatesForRow=function(t){var e=this;return t.columns?t.columns.map(function(t){var n=e._columnDefinitionsByName.get(t);if(!n)throw L(t);return n.cell}):[]},t}();Zt.decorators=[{type:e.Component,args:[{selector:"cdk-table",template:Jt,host:{class:"cdk-table"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Zt.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.ChangeDetectorRef},{type:e.ElementRef},{type:e.Renderer2},{type:void 0,decorators:[{type:e.Attribute,args:["role"]}]}]},Zt.propDecorators={trackBy:[{type:e.Input}],dataSource:[{type:e.Input}],_rowPlaceholder:[{type:e.ViewChild,args:[Xt]}],_headerRowPlaceholder:[{type:e.ViewChild,args:[Qt]}],_columnDefinitions:[{type:e.ContentChildren,args:[Kt]}],_headerDefinition:[{type:e.ContentChild,args:[Bt]}],_rowDefinitions:[{type:e.ContentChildren,args:[Ut]}]};var te=function(){function t(){}return t.prototype.connect=function(t){},t.prototype.disconnect=function(t){},t}(),ee=[Zt,Ut,Gt,Ht,Wt,Kt,Yt,qt,$t,zt,Bt,Xt,Qt],ne=function(){function t(){}return t}();ne.decorators=[{type:e.NgModule,args:[{imports:[f.CommonModule],exports:[ee],declarations:[ee]}]}],ne.ctorParameters=function(){return[]};var re=function(){function t(){}return t.prototype.attach=function(t){return null==t&&H(),t.hasAttached()&&V(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?z():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),ie=function(t){function e(e,n,r){var i=t.call(this)||this;return i.component=e,i.viewContainerRef=n,i.injector=r,i}return b(e,t),e}(re),oe=function(t){function e(e,n){var r=t.call(this)||this;return r.locals=new Map,r.templateRef=e,r.viewContainerRef=n,r}return b(e,t),Object.defineProperty(e.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),e.prototype.attach=function(e,n){return this.locals=null==n?new Map:n,t.prototype.attach.call(this,e)},e.prototype.detach=function(){return this.locals=new Map,t.prototype.detach.call(this)},e}(re),se=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||F(),this.hasAttached()&&V(),this._isDisposed&&B(),t instanceof ie?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof oe?(this._attachedPortal=t,this.attachTemplatePortal(t)):void U()},t.prototype.attachComponentPortal=function(t){},t.prototype.attachTemplatePortal=function(t){},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),ae=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._hostDomElement=e,o._componentFactoryResolver=n,o._appRef=r,o._defaultInjector=i,o}return b(e,t),e.prototype.attachComponentPortal=function(t){var e,n=this,r=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(r,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return e.destroy()})):(e=r.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this._hostDomElement.appendChild(this._getComponentRootNode(e)),e},e.prototype.attachTemplatePortal=function(t){var e=this,n=t.viewContainerRef,r=n.createEmbeddedView(t.templateRef);return r.detectChanges(),r.rootNodes.forEach(function(t){return e._hostDomElement.appendChild(t)}),this.setDisposeFn(function(){var t=n.indexOf(r);-1!==t&&n.remove(t)}),new Map},e.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this._hostDomElement.parentNode&&this._hostDomElement.parentNode.removeChild(this._hostDomElement)},e.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},e}(se),ue=function(t){function e(e,n){return t.call(this,e,n)||this}return b(e,t),e}(oe);ue.decorators=[{type:e.Directive,args:[{selector:"[cdk-portal], [cdkPortal], [portal]",exportAs:"cdkPortal"}]}],ue.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]};var ce=function(t){function e(e,n){var r=t.call(this)||this;return r._componentFactoryResolver=e,r._viewContainerRef=n,r._portal=null,r}return b(e,t),Object.defineProperty(e.prototype,"_deprecatedPortal",{get:function(){return this.portal},set:function(t){this.portal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"portal",{get:function(){return this._portal},set:function(e){this.hasAttached()&&t.prototype.detach.call(this),e&&t.prototype.attach.call(this,e),this._portal=e},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._portal=null},e.prototype.attachComponentPortal=function(e){e.setAttachedHost(this);var n=null!=e.viewContainerRef?e.viewContainerRef:this._viewContainerRef,r=this._componentFactoryResolver.resolveComponentFactory(e.component),i=n.createComponent(r,n.length,e.injector||n.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return i.destroy()}),this._portal=e,i},e.prototype.attachTemplatePortal=function(e){var n=this;return e.setAttachedHost(this),this._viewContainerRef.createEmbeddedView(e.templateRef),t.prototype.setDisposeFn.call(this,function(){return n._viewContainerRef.clear()}),this._portal=e,new Map},e}(se);ce.decorators=[{type:e.Directive,args:[{selector:"[cdkPortalHost], [portalHost]",inputs:["portal: cdkPortalHost"]}]}],ce.ctorParameters=function(){return[{type:e.ComponentFactoryResolver},{type:e.ViewContainerRef}]},ce.propDecorators={_deprecatedPortal:[{type:e.Input,args:["portalHost"]}]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{exports:[ue,ce],declarations:[ue,ce]}]}],le.ctorParameters=function(){return[]};var pe=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t}();pe.decorators=[{type:e.Injectable}],pe.ctorParameters=function(){return[]};var he=function(){function t(t,n){this._mutationObserverFactory=t,this._elementRef=n,this.event=new e.EventEmitter,this._debouncer=new m.Subject}return t.prototype.ngAfterContentInit=function(){var t=this;this.debounce>0?$.from(this._debouncer).call(yt,this.debounce).subscribe(function(e){return t.event.emit(e)}):this._debouncer.subscribe(function(e){return t.event.emit(e)}),this._observer=this._mutationObserverFactory.create(function(e){t._debouncer.next(e)}),this._observer&&this._observer.observe(this._elementRef.nativeElement,{characterData:!0,childList:!0,subtree:!0})},t.prototype.ngOnDestroy=function(){this._observer&&(this._observer.disconnect(),this._debouncer.complete())},t}();he.decorators=[{type:e.Directive,args:[{selector:"[cdkObserveContent]"}]}],he.ctorParameters=function(){return[{type:pe},{type:e.ElementRef}]},he.propDecorators={event:[{type:e.Output,args:["cdkObserveContent"]}],debounce:[{type:e.Input}]};var de=function(){function t(){}return t}();de.decorators=[{type:e.NgModule,args:[{exports:[he],declarations:[he],providers:[pe]}]}],de.ctorParameters=function(){return[]},t.A11yModule=Rt,t.LIVE_ANNOUNCER_ELEMENT_TOKEN=Et,t.LiveAnnouncer=xt,t.LIVE_ANNOUNCER_PROVIDER_FACTORY=R,t.LIVE_ANNOUNCER_PROVIDER=Pt,t.isFakeMousedownFromScreenReader=D,t.FocusTrap=bt,t.FocusTrapFactory=_t,t.FocusTrapDeprecatedDirective=wt,t.FocusTrapDirective=Ct,t.InteractivityChecker=K,t.ListKeyManager=Tt,t.ActiveDescendantKeyManager=At,t.FocusKeyManager=Mt,t.Directionality=Dt,t.DIRECTIONALITY_PROVIDER_FACTORY=N,t.DIRECTIONALITY_PROVIDER=Nt,t.DIR_DOCUMENT=It,t.Dir=jt,t.BidiModule=Lt,t.coerceBooleanProperty=_,t.coerceNumberProperty=j,t.CdkTableModule=ne,t.DataSource=te,t.getTableUnknownColumnError=L,t.RowPlaceholder=Xt,t.HeaderRowPlaceholder=Qt,t.CDK_TABLE_TEMPLATE=Jt,t.CdkTable=Zt,t.CdkCellDef=Gt,t.CdkHeaderCellDef=Wt,t.CdkColumnDef=Kt,t.CdkHeaderCell=$t,t.CdkCell=Yt,t.CDK_ROW_TEMPLATE=Ft,t.BaseRowDef=Vt,t.CdkHeaderRowDef=Bt,t.CdkRowDef=Ut,t.CdkCellOutlet=Ht,t.CdkHeaderRow=zt,t.CdkRow=qt,t.PlatformModule=kt,t.Platform=W,t.getSupportedInputTypes=I,t.Portal=re,t.ComponentPortal=ie,t.TemplatePortal=oe,t.BasePortalHost=se,t.DomPortalHost=ae,t.TemplatePortalDirective=ue,t.PortalHostDirective=ce,t.PortalModule=le,t.RxChain=$,t.FinallyBrand=Y,t.CatchBrand=X,t.DoBrand=Q,t.MapBrand=J,t.FilterBrand=Z,t.ShareBrand=tt,t.FirstBrand=et,t.SwitchMapBrand=nt,t.StartWithBrand=rt,t.DebounceTimeBrand=it,t.AuditTimeBrand=ot,t.TakeUntilBrand=st,t.finallyOperator=at,t.catchOperator=ut,t.doOperator=ct,t.map=lt,t.filter=pt,t.share=ht,t.first=dt,t.switchMap=ft,t.startWith=mt,t.debounceTime=yt,t.auditTime=gt,t.takeUntil=vt,t.MdMutationObserverFactory=pe,t.ObserveContent=he,t.ObserveContentModule=de,t.UP_ARROW=38,t.DOWN_ARROW=40,t.RIGHT_ARROW=39,t.LEFT_ARROW=37,t.PAGE_UP=33,t.PAGE_DOWN=34,t.HOME=36,t.END=35,t.ENTER=13,t.SPACE=32,t.TAB=9,t.ESCAPE=27,t.BACKSPACE=8,t.DELETE=46,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":29,"@angular/core":31,"@angular/platform-browser":37,"rxjs/BehaviorSubject":39,"rxjs/Subject":46,"rxjs/observable/merge":65,"rxjs/operator/auditTime":68,"rxjs/operator/catch":69,"rxjs/operator/debounceTime":73,"rxjs/operator/do":74,"rxjs/operator/filter":76,"rxjs/operator/finally":77,"rxjs/operator/first":78,"rxjs/operator/map":80,"rxjs/operator/share":87,"rxjs/operator/startWith":88,"rxjs/operator/switchMap":89,"rxjs/operator/takeUntil":90}],28:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("tslib"),t("@angular/core"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/filter"),t("rxjs/operator/map"),t("@angular/common"),t("rxjs/Observable")):i((r.ng=r.ng||{},r.ng.commmon=r.ng.commmon||{},r.ng.commmon.http=r.ng.commmon.http||{}),r.tslib_1,r.ng.core,r.rxjs_observable_of,r.rxjs_operator_concatMap,r.rxjs_operator_filter,r.rxjs_operator_map,r._angular_common,r.Rx)}(this,function(t,e,n,r,i,o,s,a,u){"use strict";function c(t,e){var n=new Map;return t.length>0&&t.split("&").forEach(function(t){var r=t.indexOf("="),i=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=i[0],s=i[1],a=n.get(o)||[];a.push(s),n.set(o,a)}),n}function l(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 p(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function h(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function d(t){return"undefined"!=typeof Blob&&t instanceof Blob}function f(t){return"undefined"!=typeof FormData&&t instanceof FormData}function m(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}function y(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function g(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new M(t,e)},t):t}function v(){return"object"==typeof window?window:{}}var b=function(){function t(){}return t.prototype.handle=function(t){},t}(),_=function(){function t(){}return t.prototype.handle=function(t){},t}(),w=function(){function t(){}return t.prototype.encodeKey=function(t){return l(t)},t.prototype.encodeValue=function(t){return l(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}(),C=function(){function t(t){void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new w,this.map=t.fromString?c(t.fromString,this.encoder):null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}(),E=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===i.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),x=function(){function t(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();var i;if(p(this.method)||r?(this.body=n||null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new E),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var s=e.indexOf("?"),a=-1===s?"?":s<e.length-1?"&":"";this.urlWithParams=e+a+o}}else this.params=new C,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:h(this.body)||d(this.body)||f(this.body)||"string"==typeof this.body?this.body:this.body instanceof C?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:f(this.body)?null:d(this.body)?this.body.type||null:h(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof C?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(c=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},c)),new t(n,r,o,{params:c,headers:u,reportProgress:a,responseType:i,withCredentials:s})},t}(),S={};S.Sent=0,S.UploadProgress=1,S.ResponseHeader=2,S.DownloadProgress=3,S.Response=4,S.User=5,S[S.Sent]="Sent",S[S.UploadProgress]="UploadProgress",S[S.ResponseHeader]="ResponseHeader",S[S.DownloadProgress]="DownloadProgress",S[S.Response]="Response",S[S.User]="User";var P=function(){function t(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new E,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}return t}(),O=function(t){function n(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=S.ResponseHeader,n}return e.__extends(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(P),k=function(t){function n(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=S.Response,n.body=e.body||null,n}return e.__extends(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(P),T=function(t){function n(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return e.__extends(n,t),n}(P),A=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var a=this;void 0===n&&(n={});var u;u=t instanceof x?t:new x(t,e,n.body||null,{headers:n.headers,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials});var c=i.concatMap.call(r.of(u),function(t){return a.handler.handle(t)});if(t instanceof x||"events"===n.observe)return c;var l=o.filter.call(c,function(t){return t instanceof k});switch(n.observe||"body"){case"body":switch(u.responseType){case"arraybuffer":return s.map.call(l,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return s.map.call(l,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return s.map.call(l,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return s.map.call(l,function(t){return t.body})}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new C).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,m(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,m(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,m(n,e))},t}();A.decorators=[{type:n.Injectable}],A.ctorParameters=function(){return[{type:b}]};var M=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),R=new n.InjectionToken("HTTP_INTERCEPTORS"),I=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}();I.decorators=[{type:n.Injectable}],I.ctorParameters=function(){return[]};var D=0,N=function(){function t(){}return t}(),j=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+D++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new u.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var s=null,a=!1,u=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],u||(s=t,a=!0)};var c=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},l=function(t){u||(c(),a?(n.next(new k({body:s,status:200,statusText:"OK",url:i})),n.complete()):n.error(new T({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")})))},p=function(t){u||(c(),n.error(new T({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",l),o.addEventListener("error",p),e.document.body.appendChild(o),n.next({type:S.Sent}),function(){u=!0,o.removeEventListener("load",l),o.removeEventListener("error",p),c()}})},t}();j.decorators=[{type:n.Injectable}],j.ctorParameters=function(){return[{type:N},{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]}]};var L=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t}();L.decorators=[{type:n.Injectable}],L.ctorParameters=function(){return[{type:j}]};var F=/^\)\]\}',?\n/,V=function(){function t(){}return t.prototype.build=function(){},t}(),B=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();B.decorators=[{type:n.Injectable}],B.ctorParameters=function(){return[]};var U=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new u.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}t.responseType&&(r.responseType=t.responseType.toLowerCase());var o=t.serializeBody(),s=null,a=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new E(r.getAllResponseHeaders()),o=y(r)||t.url;return s=new O({headers:i,status:e,statusText:n,url:o})},u=function(){var e=a(),i=e.headers,o=e.status,s=e.statusText,u=e.url,c=null;204!==o&&"string"==typeof(c=void 0===r.response?r.responseText:r.response)&&(c=c.replace(F,"")),0===o&&(o=c?200:0);var l=o>=200&&o<300;if(l&&"string"==typeof c&&"json"===t.responseType)try{c=JSON.parse(c)}catch(t){l=!1,c={error:t,text:c}}l?(n.next(new k({body:c,headers:i,status:o,statusText:s,url:u||void 0})),n.complete()):n.error(new T({error:c,headers:i,status:o,statusText:s,url:u||void 0}))},c=function(t){var e=new T({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},l=!1,p=function(e){l||(n.next(a()),l=!0);var i={type:S.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},h=function(t){var e={type:S.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",p),null!==o&&r.upload&&r.upload.addEventListener("progress",h)),r.send(o),n.next({type:S.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",p),null!==o&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}();U.decorators=[{type:n.Injectable}],U.ctorParameters=function(){return[{type:V}]};var H=new n.InjectionToken("XSRF_COOKIE_NAME"),z=new n.InjectionToken("XSRF_HEADER_NAME"),q=function(){function t(){}return t.prototype.getToken=function(){},t}(),G=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=a.ɵparseCookieValue(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}();G.decorators=[{type:n.Injectable}],G.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[a.DOCUMENT]}]},{type:void 0,decorators:[{type:n.Inject,args:[n.PLATFORM_ID]}]},{type:void 0,decorators:[{type:n.Inject,args:[H]}]}]};var W=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}();W.decorators=[{type:n.Injectable}],W.ctorParameters=function(){return[{type:q},{type:void 0,decorators:[{type:n.Inject,args:[z]}]}]};var K=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:W,useClass:I}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:H,useValue:e.cookieName}:[],e.headerName?{provide:z,useValue:e.headerName}:[]]}},t}();K.decorators=[{type:n.NgModule,args:[{providers:[W,{provide:R,useExisting:W,multi:!0},{provide:q,useClass:G},{provide:H,useValue:"XSRF-TOKEN"},{provide:z,useValue:"X-XSRF-TOKEN"}]}]}],K.ctorParameters=function(){return[]};var $=function(){function t(){}return t}();$.decorators=[{type:n.NgModule,args:[{imports:[K.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[A,{provide:b,useFactory:g,deps:[_,[new n.Optional,new n.Inject(R)]]},U,{provide:_,useExisting:U},B,{provide:V,useExisting:B}]}]}],$.ctorParameters=function(){return[]};var Y=function(){function t(){}return t}();Y.decorators=[{type:n.NgModule,args:[{providers:[j,{provide:N,useFactory:v},{provide:R,useClass:L,multi:!0}]}]}],Y.ctorParameters=function(){return[]},t.HttpBackend=_,t.HttpHandler=b,t.HttpClient=A,t.HttpHeaders=E,t.HTTP_INTERCEPTORS=R,t.JsonpClientBackend=j,t.JsonpInterceptor=L,t.HttpClientJsonpModule=Y,t.HttpClientModule=$,t.HttpClientXsrfModule=K,t.ɵinterceptingHandler=g,t.HttpParams=C,t.HttpUrlEncodingCodec=w,t.HttpRequest=x,t.HttpErrorResponse=T,t.HttpEventType=S,t.HttpHeaderResponse=O,t.HttpResponse=k,t.HttpResponseBase=P,t.HttpXhrBackend=U,t.XhrFactory=V,t.HttpXsrfTokenExtractor=q,t.ɵa=I,t.ɵb=N,t.ɵc=v,t.ɵd=B,t.ɵg=G,t.ɵh=W,t.ɵe=H,t.ɵf=z,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":29,"@angular/core":31,"rxjs/Observable":42,"rxjs/observable/of":66,"rxjs/operator/concatMap":72,"rxjs/operator/filter":76,"rxjs/operator/map":80,tslib:112}],29:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.common=r.ng.common||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}I(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function i(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?z.One:z.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?z.One:z.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?z.One:z.Other;case"ar":return 0===n?z.Zero:1===n?z.One:2===n?z.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?z.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?z.Many:z.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?z.One:z.Other;case"be":return n%10==1&&n%100!=11?z.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?z.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?z.Many:z.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?z.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?z.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?z.Few:0!==n&&n%1e6==0?z.Many:z.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?z.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?z.Few:z.Other;case"cs":case"sk":return 1===i&&0===o?z.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?z.Few:0!==o?z.Many:z.Other;case"cy":return 0===n?z.Zero:1===n?z.One:2===n?z.Two:3===n?z.Few:6===n?z.Many:z.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?z.One:z.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?z.One:0===o&&i%100==2||s%100==2?z.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?z.Few:z.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?z.One:z.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?z.One:z.Other;case"ga":return 1===n?z.One:2===n?z.Two:n===Math.floor(n)&&n>=3&&n<=6?z.Few:n===Math.floor(n)&&n>=7&&n<=10?z.Many:z.Other;case"gd":return 1===n||11===n?z.One:2===n||12===n?z.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?z.Few:z.Other;case"gv":return 0===o&&i%10==1?z.One:0===o&&i%10==2?z.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?z.Many:z.Other:z.Few;case"he":return 1===i&&0===o?z.One:2===i&&0===o?z.Two:0!==o||n>=0&&n<=10||n%10!=0?z.Other:z.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?z.One:z.Other;case"ksh":return 0===n?z.Zero:1===n?z.One:z.Other;case"kw":case"naq":case"se":case"smn":return 1===n?z.One:2===n?z.Two:z.Other;case"lag":return 0===n?z.Zero:0!==i&&1!==i||0===n?z.Other:z.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?z.Few:0!==s?z.Many:z.Other:z.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?z.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?z.One:z.Other;case"mk":return 0===o&&i%10==1||s%10==1?z.One:z.Other;case"mt":return 1===n?z.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?z.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?z.Many:z.Other;case"pl":return 1===i&&0===o?z.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?z.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?z.Many:z.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?z.One:z.Other;case"ro":return 1===i&&0===o?z.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?z.Few:z.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?z.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?z.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?z.Many:z.Other;case"shi":return 0===i||1===n?z.One:n===Math.floor(n)&&n>=2&&n<=10?z.Few:z.Other;case"si":return 0===n||1===n||0===i&&1===s?z.One:z.Other;case"sl":return 0===o&&i%100==1?z.One:0===o&&i%100==2?z.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?z.Few:z.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?z.One:z.Other;default:return z.Other}}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t){return t.name||typeof t}function c(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function l(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function p(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function h(t){return function(e,n){return t(e,n).split(" ")[0]}}function d(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=d(t,n,e);return r?r.substring(3):""}}function m(t,e){return t.hour12=e,t}function y(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function g(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function v(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function b(t){return function(e,n){return d(e,n,t)}}function _(t,e,n){var r=gt[t];if(r)return r(e,n);var i=t,o=bt.get(i);if(!o){o=[];var s=void 0;yt.exec(t);for(var a=t;a;)(s=yt.exec(a))?a=(o=o.concat(s.slice(1))).pop():(o.push(a),a=null);bt.set(i,o)}return o.reduce(function(t,r){var i=vt[r];return t+(i?i(e,n):w(r))},"")}function w(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function C(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&x(n)?+n:n))throw c(t,n);var a=void 0,u=void 0,l=void 0;if(r!==ft.Currency&&(a=1,u=0,l=3),i){var p=i.match(wt);if(null===p)throw new Error(i+" is not a valid digit info for number pipes");null!=p[1]&&(a=E(p[1])),null!=p[3]&&(u=E(p[3])),null!=p[5]&&(l=E(p[5]))}return mt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:s})}function E(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function x(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function P(t){return t instanceof Date&&!isNaN(t.valueOf())}function O(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=k(t[9]+t[10]),r=k(t[9]+t[11])),i.call(e,k(t[1]),k(t[2])-1,k(t[3]));var s=k(t[4]||"0")-n,a=k(t[5]||"0")-r,u=k(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function k(t){return parseInt(t,10)}function T(t){return t===Nt}function A(t){return t===jt}function M(t){return t===Lt}function R(t){return t===Ft}var I=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},D=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),j=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),L=new e.InjectionToken("appBaseHref"),F=function(){function t(n){var r=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var o=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(i(o)),this._platformStrategy.onPopState(function(t){r._subject.emit({url:r.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,i(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t}();F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:j}]};var V=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return n(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=F.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(j);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:D},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[L]}]}]};var B=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return n(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 F.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+F.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+F.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(j);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:D},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[L]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),H=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return n(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case z.Zero:return"zero";case z.One:return"one";case z.Two:return"two";case z.Few:return"few";case z.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 z={};z.Zero=0,z.One=1,z.Two=2,z.Few=3,z.Many=4,z.Other=5,z[z.Zero]="Zero",z[z.One]="One",z[z.Two]="Two",z[z.Few]="Few",z[z.Many]="Many",z[z.Other]="Other";var q=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();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 G=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();G.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],G.ctorParameters=function(){return[{type:e.ViewContainerRef}]},G.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var W=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),K=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+u(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new W(null,e.ngForOf,-1,-1),i),s=new $(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{o=e._viewContainer.get(r);e._viewContainer.move(o,i);s=new $(t,o);n.push(s)}});for(r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();K.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],K.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},K.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}(),Y=K,X=function(){function t(t,e){this._viewContainer=t,this._context=new Q,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();X.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],X.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},X.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var Q=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),J=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Z=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,++this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}},t}();Z.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Z.ctorParameters=function(){return[]},Z.propDecorators={ngSwitch:[{type:e.Input}]};var tt=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new J(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]},tt.propDecorators={ngSwitchCase:[{type:e.Input}]};var et=function(){function t(t,e,n){n._addDefault(new J(t,e))}return t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],et.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Z,decorators:[{type:e.Host}]}]};var nt=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}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],nt.ctorParameters=function(){return[{type:U}]},nt.propDecorators={ngPlural:[{type:e.Input}]};var rt=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new J(n,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:nt,decorators:[{type:e.Host}]}]};var it=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();it.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],it.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},it.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(t){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 st=[q,G,K,X,ot,it,Z,tt,et,nt,rt],at=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}(),ut=new(function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),ct=new at,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(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return ut;if(e.ɵisObservable(n))return ct;throw c(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();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 c(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 c(t,e);return e.split(/\b/g).map(function(t){return l(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var dt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.toUpperCase()},t}();dt.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],dt.ctorParameters=function(){return[]};var ft={};ft.Decimal=0,ft.Percent=1,ft.Currency=2,ft[ft.Decimal]="Decimal",ft[ft.Percent]="Percent",ft[ft.Currency]="Currency";var mt=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:ft[n].toLowerCase()};return n==ft.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,gt={yMMMdjms:b(v([y("year",1),g("month",3),y("day",1),y("hour",1),y("minute",1),y("second",1)])),yMdjm:b(v([y("year",1),y("month",1),y("day",1),y("hour",1),y("minute",1)])),yMMMMEEEEd:b(v([y("year",1),g("month",4),g("weekday",4),y("day",1)])),yMMMMd:b(v([y("year",1),g("month",4),y("day",1)])),yMMMd:b(v([y("year",1),g("month",3),y("day",1)])),yMd:b(v([y("year",1),y("month",1),y("day",1)])),jms:b(v([y("hour",1),y("second",1),y("minute",1)])),jm:b(v([y("hour",1),y("minute",1)]))},vt={yyyy:b(y("year",4)),yy:b(y("year",2)),y:b(y("year",1)),MMMM:b(g("month",4)),MMM:b(g("month",3)),MM:b(y("month",2)),M:b(y("month",1)),LLLL:b(g("month",4)),L:b(g("month",1)),dd:b(y("day",2)),d:b(y("day",1)),HH:p(h(b(m(y("hour",2),!1)))),H:h(b(m(y("hour",1),!1))),hh:p(h(b(m(y("hour",2),!0)))),h:h(b(m(y("hour",1),!0))),jj:b(y("hour",2)),j:b(y("hour",1)),mm:p(b(y("minute",2))),m:b(y("minute",1)),ss:p(b(y("second",2))),s:b(y("second",1)),sss:b(y("second",3)),EEEE:b(g("weekday",4)),EEE:b(g("weekday",3)),EE:b(g("weekday",2)),E:b(g("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(b(m(y("hour",1),!0))),Z:f("short"),z:f("long"),ww:b({}),w:b({}),G:b(g("era",1)),GG:b(g("era",2)),GGG:b(g("era",3)),GGGG:b(g("era",4))},bt=new Map,_t=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return C(t,this._locale,e,ft.Decimal,n)},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,n){return C(t,this._locale,e,ft.Percent,n)},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 xt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),C(t,this._locale,e,ft.Currency,i,n,r)},t}();xt.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),P(e))r=e;else if(x(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!P(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(St)))throw c(t,e);r=O(u)}return _t.format(r,this._locale,t._ALIASES[n]||n)},t}();Pt._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Pt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Ot=/#/g,kt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw c(t,n);return n[o(e,Object.keys(n),this._localization)].replace(Ot,e.toString())},t}();kt.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],kt.ctorParameters=function(){return[{type:U}]};var Tt=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw c(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Tt.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Tt.ctorParameters=function(){return[]};var At=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();At.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],At.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw c(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=[lt,dt,pt,At,Mt,Ct,Et,ht,xt,Pt,kt,Tt],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[st,Rt],exports:[st,Rt],providers:[{provide:U,useClass:H}]}]}],It.ctorParameters=function(){return[]};var Dt=new e.InjectionToken("DocumentToken"),Nt="browser",jt="server",Lt="browserWorkerApp",Ft="browserWorkerUi",Vt=new e.Version("4.3.0");t.NgLocaleLocalization=H,t.NgLocalization=U,t.ɵparseCookieValue=a,t.CommonModule=It,t.NgClass=q,t.NgFor=Y,t.NgForOf=K,t.NgForOfContext=W,t.NgIf=X,t.NgIfContext=Q,t.NgPlural=nt,t.NgPluralCase=rt,t.NgStyle=it,t.NgSwitch=Z,t.NgSwitchCase=tt,t.NgSwitchDefault=et,t.NgTemplateOutlet=ot,t.NgComponentOutlet=G,t.DOCUMENT=Dt,t.AsyncPipe=lt,t.DatePipe=Pt,t.I18nPluralPipe=kt,t.I18nSelectPipe=Tt,t.JsonPipe=At,t.LowerCasePipe=pt,t.CurrencyPipe=xt,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Mt,t.UpperCasePipe=dt,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=jt,t.ɵPLATFORM_WORKER_APP_ID=Lt,t.ɵPLATFORM_WORKER_UI_ID=Ft,t.isPlatformBrowser=T,t.isPlatformServer=A,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=D,t.LOCATION_INITIALIZED=N,t.LocationStrategy=j,t.APP_BASE_HREF=L,t.HashLocationStrategy=V,t.PathLocationStrategy=B,t.Location=F,t.ɵa=st,t.ɵb=Rt,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":31}],30:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core")):i((r.ng=r.ng||{},r.ng.compiler=r.ng.compiler||{}),r.ng.core)}(this,function(t,e){"use strict";function n(t,e){function n(){this.constructor=t}ni(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function r(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function i(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"===i(t)[1]}function s(t){return"ng-content"===i(t)[1]}function a(t){return"ng-template"===i(t)[1]}function u(t){return null===t?null:i(t)[0]}function c(t,e){return t?":"+t+":"+e:e}function l(t){return Pi[t.toLowerCase()]||Oi}function p(t){return t.replace(Ii,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function h(t,e){return f(t,":",e)}function d(t,e){return f(t,".",e)}function f(t,e,n){var r=t.indexOf(e);return-1==r?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function m(t,e,n){return Array.isArray(t)?e.visitArray(t,n):C(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function y(t){return null!==t&&void 0!==t}function g(t){return void 0===t?null:t}function v(t,e){var n=Error(t);return n[ji]=!0,e&&(n[Li]=e),n}function b(t){return t[ji]}function _(t){return t[Li]||[]}function w(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function C(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===Fi}function E(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function x(t){return t.replace(/\W/g,"_")}function S(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof wi)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+Qi++,n.__anonymousType=r):r=x(r),r}function P(t){var n=t.reference;return n instanceof wi?n.filePath:"./"+e.ɵstringify(n)}function O(t,e){return"View_"+S({reference:t})+"_"+e}function k(t){return"RenderType_"+S({reference:t})}function T(t){return"HostView_"+S({reference:t})}function A(t){return S({reference:t})+"NgFactory"}function M(t){return null!=t.value?x(t.value):S(t.identifier)}function R(t){return null!=t.identifier?t.identifier.reference:t.value}function I(t,n,r){var i=Ti.parse(n.selector)[0].getMatchingElementTemplate();return eo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new to({encapsulation:e.ViewEncapsulation.None,template:i,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null}),exportAs:null,changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}},entryComponents:[],componentFactory:null})}function D(t){return t||[]}function N(t){return t.reduce(function(t,e){var n=Array.isArray(e)?N(e):e;return t.concat(n)},[])}function j(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function L(t,e,n){var r;return r=n.isInline?e.type.reference instanceof wi?e.type.reference.filePath+"."+e.type.reference.name+".html":S(t)+"/"+S(e.type)+".html":n.templateUrl,j(r)}function F(t,e){var n=t.moduleUrl.split(/\/\\/g);return j("css/"+e+n[n.length-1]+".ngstyle.js")}function V(t){return j(S(t.type)+"/module.ngfactory.js")}function B(t,e){return j(S(t)+"/"+S(e.type)+".ngfactory.js")}function U(t,e,n){function r(t){e.visit&&e.visit(t,n)||t.visit(e,n)}function i(t){t.forEach(r)}t.visit({visitBinary:function(t){r(t.left),r(t.right)},visitChain:function(t){i(t.expressions)},visitConditional:function(t){r(t.condition),r(t.trueExp),r(t.falseExp)},visitFunctionCall:function(t){t.target&&r(t.target),i(t.args)},visitImplicitReceiver:function(t){},visitInterpolation:function(t){i(t.expressions)},visitKeyedRead:function(t){r(t.obj),r(t.key)},visitKeyedWrite:function(t){r(t.obj),r(t.key),r(t.obj)},visitLiteralArray:function(t){i(t.expressions)},visitLiteralMap:function(t){},visitLiteralPrimitive:function(t){},visitMethodCall:function(t){r(t.receiver),i(t.args)},visitPipe:function(t){r(t.exp),i(t.args)},visitPrefixNot:function(t){r(t.expression)},visitNonNullAssert:function(t){r(t.expression)},visitPropertyRead:function(t){r(t.receiver)},visitPropertyWrite:function(t){r(t.receiver),r(t.value)},visitQuote:function(t){},visitSafeMethodCall:function(t){r(t.receiver),i(t.args)},visitSafePropertyRead:function(t){r(t.receiver)}})}function H(t){return t>=Vo&&t<=qo||t==ys}function z(t){return ts<=t&&t<=es}function q(t){return t>=as&&t<=fs||t>=ns&&t<=os}function G(t){return t>=as&&t<=cs||t>=ns&&t<=is||z(t)}function W(){return function(t){return t}}function K(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function $(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],i=n[1];vs.forEach(function(t){if(t.test(r)||t.test(i))throw new Error("['"+r+"', '"+i+"'] contains unusable interpolation symbol.")})}}function Y(t,e){return new xs(t,ws.Character,e,String.fromCharCode(e))}function X(t,e){return new xs(t,ws.Identifier,0,e)}function Q(t,e){return new xs(t,ws.Keyword,0,e)}function J(t,e){return new xs(t,ws.Operator,0,e)}function Z(t,e){return new xs(t,ws.String,0,e)}function tt(t,e){return new xs(t,ws.Number,e,"")}function et(t,e){return new xs(t,ws.Error,0,e)}function nt(t){return as<=t&&t<=fs||ns<=t&&t<=os||t==ss||t==Wo}function rt(t){if(0==t.length)return!1;var e=new Ps(t);if(!nt(e.peek))return!1;for(e.advance();e.peek!==Fo;){if(!it(e.peek))return!1;e.advance()}return!0}function it(t){return q(t)||z(t)||t==ss||t==Wo}function ot(t){return t==us||t==rs}function st(t){return t==Yo||t==$o}function at(t){return t===Ko||t===Go||t===gs}function ut(t){switch(t){case ls:return Bo;case cs:return Ho;case ps:return zo;case hs:return Vo;case ds:return Uo;default:return t}}function ct(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function lt(t){var e=w(t.start)+"([\\s\\S]*?)"+w(t.end);return new RegExp(e,"g")}function pt(t,e){var n=P(e),r=null!=n?"in "+t+" "+S(e)+" in "+n:"in "+t+" "+S(e),i=new Is("",r);return new Ds(new Rs(i,-1,-1,-1),new Rs(i,-1,-1,-1))}function ht(t,e,n){void 0===n&&(n=null);var r=[],i=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=i(t);e&&r.push(e)}),r}function dt(t){var e=t.sourceSpan.start.offset,n=t.sourceSpan.end.offset;return t instanceof Hs&&(t.endSourceSpan?n=t.endSourceSpan.end.offset:t.children&&t.children.length&&(n=dt(t.children[t.children.length-1]).end)),{start:e,end:n}}function ft(t,e){var r=[];return ht(new(function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return n(i,t),i.prototype.visit=function(t,n){var i=dt(t);if(!(i.start<=e&&e<i.end))return!0;r.push(t)},i}(qs)),t),new Ls(r,e)}function mt(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=_s),new Qs(new Is(t,e),n,r,i).tokenize()}function yt(t){return'Unexpected character "'+(t===Fo?"EOF":String.fromCharCode(t))+'"'}function gt(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function vt(t){return!H(t)||t===Fo}function bt(t){return H(t)||t===Zo||t===Xo||t===Ko||t===Go||t===Jo}function _t(t){return(t<as||fs<t)&&(t<ns||os<t)&&(t<ts||t>es)}function wt(t){return t==Qo||t==Fo||!G(t)}function Ct(t){return t==Qo||t==Fo||!q(t)}function Et(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==ms&&!r}function xt(t){return t===Jo||q(t)}function St(t,e){return Pt(t)==Pt(e)}function Pt(t){return t>=as&&t<=fs?t-as+ns:t}function Ot(t){for(var e=[],n=void 0,r=0;r<t.length;r++){var i=t[r];n&&n.type==Gs.TEXT&&i.type==Gs.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,e.push(n))}return e}function kt(t,e){return t.length>0&&t[t.length-1]===e}function Tt(t){return t.id||Rt(Mt(t.nodes).join("")+"["+t.meaning+"]")}function At(t){if(t.id)return t.id;var e=new ia;return Nt(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}function Mt(t){return t.map(function(t){return t.visit(ra,null)})}function Rt(t){var e=E(t),n=qt(e,oa.Big),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],d=h[0],f=h[1],m=h[2],y=h[3],g=h[4],v=0;v<80;v++){i[v]=v<16?n[p+v]:Ht(i[v-3]^i[v-8]^i[v-14]^i[v-16],1);var b=It(v,a,u,c),_=b[0],w=b[1],C=[Ht(s,5),_,l,w,i[v]].reduce(Ft);l=(x=[c,u,Ht(a,30),s,C])[0],c=x[1],u=x[2],a=x[3],s=x[4]}s=(S=[Ft(s,d),Ft(a,f),Ft(u,m),Ft(c,y),Ft(l,g)])[0],a=S[1],u=S[2],c=S[3],l=S[4]}return Yt(Kt([s,a,u,c,l]));var x,S}function It(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Dt(t){var e=E(t),n=[jt(e,0),jt(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Nt(t,e){var n=Dt(t),r=n[0],i=n[1];if(e){var o=Dt(e),s=o[0],a=o[1];r=(u=Bt(zt([r,i],1),[s,a]))[0],i=u[1]}return Xt(Kt([2147483647&r,i]));var u}function jt(t,e){var n,r=[2654435769,2654435769],i=r[0],o=r[1],s=t.length;for(n=0;n+12<=s;n+=12)i=(a=Lt([i=Ft(i,Wt(t,n,oa.Little)),o=Ft(o,Wt(t,n+4,oa.Little)),e=Ft(e,Wt(t,n+8,oa.Little))]))[0],o=a[1],e=a[2];return i=Ft(i,Wt(t,n,oa.Little)),o=Ft(o,Wt(t,n+4,oa.Little)),e=Ft(e,s),e=Ft(e,Wt(t,n+8,oa.Little)<<8),Lt([i,o,e])[2];var a}function Lt(t){var e=t[0],n=t[1],r=t[2];return e=Ut(e,n),e=Ut(e,r),e^=r>>>13,n=Ut(n,r),n=Ut(n,e),n^=e<<8,r=Ut(r,e),r=Ut(r,n),r^=n>>>13,e=Ut(e,n),e=Ut(e,r),e^=r>>>12,n=Ut(n,r),n=Ut(n,e),n^=e<<16,r=Ut(r,e),r=Ut(r,n),r^=n>>>5,e=Ut(e,n),e=Ut(e,r),e^=r>>>3,n=Ut(n,r),n=Ut(n,e),n^=e<<10,r=Ut(r,e),r=Ut(r,n),r^=n>>>15,[e,n,r]}function Ft(t,e){return Vt(t,e)[1]}function Vt(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Bt(t,e){var n=t[0],r=t[1],i=e[0],o=Vt(r,e[1]),s=o[0],a=o[1];return[Ft(Ft(n,i),s),a]}function Ut(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Ht(t,e){return t<<e|t>>>32-e}function zt(t,e){var n=t[0],r=t[1];return[n<<e|r>>>32-e,r<<e|n>>>32-e]}function qt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Wt(t,4*r,e);return n}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,n){var r=0;if(n===oa.Big)for(i=0;i<4;i++)r+=Gt(t,e+i)<<24-8*i;else for(var i=0;i<4;i++)r+=Gt(t,e+i)<<8*i;return r}function Kt(t){return t.reduce(function(t,e){return t+$t(e)},"")}function $t(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Yt(t){for(var e="",n=0;n<t.length;n++){var r=Gt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function Xt(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Qt(e,Jt(Gt(t,r),n)),n=Jt(256,n);return e.split("").reverse().join("")}function Qt(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i<r||o;i++){var s=o+ +(t[i]||0)+ +(e[i]||0);s>=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function Jt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Qt(n,r)),r=Qt(r,r);return n}function Zt(t){var e=new va(ga,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}function te(t){return t.split(ba)[2]}function ee(t,e,n,r){return new Oa(n,r).extract(t,e)}function ne(t,e,n,r,i){return new Oa(r,i).merge(t,e,n)}function re(t){return!!(t instanceof zs&&t.value&&t.value.startsWith("i18n"))}function ie(t){return!!(t instanceof zs&&t.value&&"/i18n"===t.value)}function oe(t){return t.attrs.find(function(t){return t.name===wa})||null}function se(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(xa),n=t.indexOf(Ea),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],s=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:s[0],description:s[1],id:o}}function ae(t){return ka}function ue(t){return t.map(function(t){return t.visit(Ra)}).join("")}function ce(t){return Fa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function le(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function pe(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 he(t){return At(t)}function de(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function fe(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function me(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new Ka;case"xtb":return new Xa;case"xliff2":case"xlf2":return new za;case"xliff":case"xlf":default:return new Va}}function ye(t){return{identifier:{reference:t}}}function ge(t,e){return ye(t.resolveExternalReference(e))}function ve(t){var e=new uu;return new su(ht(e,t),e.isExpanded,e.errors)}function be(t,e){var n=t.cases.map(function(t){-1!=ou.indexOf(t.value)||t.value.match(/^=\d+$/)||e.push(new au(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+ou.join(", ")));var n=ve(t.expression);return e.push.apply(e,n.errors),new Hs("ng-template",[new Us("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Us("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Hs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function _e(t,e){var n=t.cases.map(function(t){var n=ve(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Hs("ng-template",[new Us("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Hs("ng-template",[new Us("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Us("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Hs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function we(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Ce(t,e){var n=e.eager,r=e.providers;return new mi(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function Ee(t,e,n){var r=new Map;return t.forEach(function(t){xe([{token:{identifier:t.type},useClass:t.type}],t.isComponent?yi.Component:yi.Directive,!0,e,n,r)}),t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent})).forEach(function(t){xe(t.providers,yi.PublicService,!1,e,n,r),xe(t.viewProviders,yi.PrivateService,!1,e,n,r)}),r}function xe(t,e,n,r,i,o){t.forEach(function(t){var s=o.get(R(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&i.push(new cu("Mixing multi and non multi provider is not possible for token "+M(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new mi(t.token,!!t.multi,n||u,[t],e,a,r),o.set(R(t.token),s)}})}function Se(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return Oe(n,{meta:t,queryId:e++})}),n}function Pe(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return Oe(r,{meta:t,queryId:n++})})}),r}function Oe(t,e){e.meta.selectors.forEach(function(n){var r=t.get(R(n));r||(r=[],t.set(R(n),r)),r.push(e)})}function ke(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(gu);return null===e||"package"==e[1]||"asset"==e[1]}function Te(t,e,n){var r=[],i=n.replace(yu,"").replace(mu,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return ke(o)?(r.push(t.resolve(e,o)),""):n[0]});return new fu(i,r)}function Ae(t){return"@"==t[0]}function Me(t,n,r,i){var o=[];return Ti.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});o.push.apply(o,a.map(function(e){return t.securityContext(e,r,i)}))}),0===o.length?[e.SecurityContext.NONE]:Array.from(new Set(o)).sort()}function Re(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Cu?e=t.value:s==Su?n=t.value:s==xu?r=t.value:t.name==Tu?i=!0:t.name==Au&&t.value.length>0&&(o=t.value)}),e=Ie(e);var a=t.name.toLowerCase(),u=Mu.OTHER;return s(a)?u=Mu.NG_CONTENT:a==Ou?u=Mu.STYLE:a==ku?u=Mu.SCRIPT:a==Eu&&r==Pu&&(u=Mu.STYLESHEET),new Ru(u,e,n,i,o)}function Ie(t){return null===t||0===t.length?"*":t}function De(t){return function(e){return-1===t.indexOf(e.msg)||(Fu[e.msg]=(Fu[e.msg]||0)+1,Fu[e.msg]<=1)}}function Ne(t){return t.trim().split(/\s+/g)}function je(t,e){var n=new Ti,r=i(t)[1];n.setElement(r);for(var o=0;o<e.length;o++){var s=e[o][0],a=i(s)[1],u=e[o][1];n.addAttribute(a,u),s.toLowerCase()==Nu&&Ne(u).forEach(function(t){return n.addClassName(t)})}return n}function Le(t){return t instanceof Fs&&0==t.value.trim().length}function Fe(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 Io&&(t=t.ast),t instanceof ho}function Be(t,e,n){if(a(t.name))return!0;var r=i(t.name)[1];return!(r.toLowerCase()!==Du||!e||r.toLowerCase()!==Du)&&(n(Lu,t.sourceSpan),!0)}function Ue(){return new Qu}function He(){return new Qu(".")}function ze(t){var e=Ge(t);return e&&e[Zu.Scheme]||""}function qe(t,e,n,r,i,o,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=i&&a.push(i),null!=o&&a.push("?"+o),null!=s&&a.push("#"+s),a.join("")}function Ge(t){return t.match(Ju)}function We(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function Ke(t){var e=t[Zu.Path];return e=null==e?"":We(e),t[Zu.Path]=e,qe(t[Zu.Scheme],t[Zu.UserInfo],t[Zu.Domain],t[Zu.Port],e,t[Zu.QueryData],t[Zu.Fragment])}function $e(t,e){var n=Ge(encodeURI(e)),r=Ge(t);if(null!=n[Zu.Scheme])return Ke(n);n[Zu.Scheme]=r[Zu.Scheme];for(var i=Zu.Scheme;i<=Zu.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Zu.Path][0])return Ke(n);var o=r[Zu.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[Zu.Path],n[Zu.Path]=o,Ke(n)}function Ye(t){return t instanceof e.Directive}function Xe(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function Qe(t,e){void 0===e&&(e=!1);var n=tn(t,e);return n[0]+".ngfactory"+n[1]}function Je(t){return t.replace(ic,".")}function Ze(t){return ic.test(t)}function tn(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function en(t){return t.replace(rc,"")+".ngsummary.json"}function nn(t,e){void 0===e&&(e=!1);var n=tn(Je(t),e);return n[0]+".ngsummary"+n[1]}function rn(t){return t.replace(oc,".")}function on(t){return t+"NgSummary"}function sn(t){return t.replace(sc,"")}function an(t,e,n){return t.hasLifecycleHook(n,cn(e))}function un(t,e){return uc.filter(function(n){return an(t,n,e)})}function cn(t){switch(t){case ac.OnInit:return"ngOnInit";case ac.OnDestroy:return"ngOnDestroy";case ac.DoCheck:return"ngDoCheck";case ac.OnChanges:return"ngOnChanges";case ac.AfterContentInit:return"ngAfterContentInit";case ac.AfterContentChecked:return"ngAfterContentChecked";case ac.AfterViewInit:return"ngAfterViewInit";case ac.AfterViewChecked:return"ngAfterViewChecked"}}function ln(t){return t instanceof e.NgModule}function pn(t){return t instanceof e.Pipe}function hn(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=e.resolveForwardRef(t[r]);Array.isArray(i)?hn(i,n):n.push(i)}return n}function dn(t){return t?Array.from(new Set(t)):[]}function fn(t){return dn(hn(t))}function mn(t){return t instanceof wi||t instanceof e.Type}function yn(t,e){m(t,new mc,e)}function gn(t){return t instanceof wi?t.name+" in "+t.filePath:e.ɵstringify(t)}function vn(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function bn(t){var e=new yl;return e.visitAllStatements(t,null),e.varNames}function _n(t,e){if(!e)return t;var n=new gl(e);return t.visitStatement(n,null)}function wn(t,e){if(!e)return t;var n=new gl(e);return t.visitExpression(n,null)}function Cn(t,e,n){return new Tc(t,e,n)}function En(t,e,n){return void 0===e&&(e=null),new Fc(t,null,e,n)}function xn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?Sn(En(t,e,null),n):null}function Sn(t,e){return void 0===e&&(e=null),null!=t?new _c(t,e):null}function Pn(t,e,n){return new Yc(t,e,n)}function On(t,e){return void 0===e&&(e=null),new Qc(t.map(function(t){return new Xc(t.key,t.value,t.quoted)}),e,null)}function kn(t,e){return new Uc(t,e)}function Tn(t,e){return new Hc(t,e)}function An(t,e,n,r){return new Gc(t,e,n,r)}function Mn(t,e,n){return new Lc(t,e,n)}function Rn(t,e,n){return void 0===n&&(n=null),m(e,new vl(t),n)}function In(t,e){var n=0;e.eager||(n|=4096),e.providerType===yi.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==ac.OnDestroy&&e.providerType!==yi.Directive&&e.providerType!==yi.Component||(n|=Fn(t))});var r=e.multiProvider?Dn(t,n,e.providers):Nn(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:jn(t,e.token)}}function Dn(t,e,n){function r(e,n){return n.map(function(n,r){var s="p"+e+"_"+r;return o.push(new qc(s,Ec)),i.push(Ln(t,n)),Cn(s)})}var i=[],o=[],s=n.map(function(e,n){var i;if(e.useClass){o=r(n,e.deps||e.useClass.diDeps);i=t.importExpr(e.useClass.reference).instantiate(o)}else if(e.useFactory){var o=r(n,e.deps||e.useFactory.diDeps);i=t.importExpr(e.useFactory.reference).callFn(o)}else i=e.useExisting?(o=r(n,[{token:e.useExisting}]))[0]:Rn(t,e.useValue);return i});return{providerExpr:An(o,[new sl(Pn(s))],xc),flags:1024|e,depsExpr:Pn(i)}}function Nn(t,e,n,r){var i,o;return n===yi.Directive||n===yi.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=Zc,e|=2048,o=[{token:r.useExisting}]):(i=Rn(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:Pn(o.map(function(e){return Ln(t,e)}))}}function jn(t,e){return e.identifier?t.importExpr(e.identifier.reference):Mn(e.value)}function Ln(t,e){var n=e.isValue?Rn(t,e.value):jn(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:Pn([Mn(r),n])}function Fn(t){var e=0;switch(t){case ac.AfterContentChecked:e=2097152;break;case ac.AfterContentInit:e=1048576;break;case ac.AfterViewChecked:e=8388608;break;case ac.AfterViewInit:e=4194304;break;case ac.DoCheck:e=262144;break;case ac.OnChanges:e=524288;break;case ac.OnDestroy:e=131072;break;case ac.OnInit:e=65536}return e}function Vn(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=ge(t,iu.ComponentFactoryResolver),s={diDeps:[{isValue:!0,value:Pn(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:ge(t,iu.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(iu.CodegenComponentFactoryResolver)},a=Nn(e,n,yi.PrivateService,{token:o,multi:!1,useClass:s});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:jn(e,o)}}function Bn(t){var e="";t=E(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),i=t.charCodeAt(n++),o=t.charCodeAt(n++);e+=Hn(r>>2),e+=Hn((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":Hn((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":Hn(63&o)}return e}function Un(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=Hn(n)}while(t>0);return e}function Hn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return El[t]}function zn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(xl,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]});return n||!Sl.test(r)?"'"+r+"'":r}function qn(t){for(var e="",n=0;n<t;n++)e+=Pl;return e}function Gn(t){var e=new Il,n=Al.createRoot();return(Array.isArray(t)?t:[t]).forEach(function(t){if(t instanceof nl)t.visitStatement(e,n);else if(t instanceof Oc)t.visitExpression(e,n);else{if(!(t instanceof gc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Wn(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];Dl[i.toLowerCase()]=t}}function Kn(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 $n(t){return t.replace(sp,"")}function Yn(t){var e=t.match(ap);return e?e[0]:""}function Xn(t,e){var n=Qn(t),r=0;return n.escapedString.replace(up,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+hp)&&(s=n.blocks[r++],a=a.substring(hp.length+1),u="{");var c=e(new dp(o,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Qn(t){for(var e=t.split(cp),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==pp&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(hp),o=[]),n.push(a)),a==lp&&i++}return o.length>0&&(r.push(o.join("")),n.push(hp)),new fp(n.join(""),r)}function Jn(t){var e="styles";return t&&(e+="_"+S(t.type)),e}function Zn(t,e,n,r){t||(t=new xp);var i=tr({createLiteralArrayConverter:function(t){return function(t){return Pn(t)}},createLiteralMapConverter:function(t){return function(e){return On(t.map(function(t,n){return{key:t.key,value:e[n],quoted:t.quoted}}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),o=new Ep(t,e,r),s=[];cr(i.visit(o,wp.Statement),s),or(o.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=hr(s[a]);c&&(u=pr(r),s[a]=u.set(c.cast(Ec).notIdentical(Mn(!1))).toDeclStmt(null,[el.Final]))}return new bp(s,u)}function tr(t,e){return nr(t,e)}function er(t,e,n,r){t||(t=new xp);var i=lr(r),o=[],s=new Ep(t,e,r),a=n.visit(s,wp.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)o.push(ir(r,u));return o.push(i.set(a).toDeclStmt(null,[el.Final])),new _p(o,i)}function nr(t,e){var n=new Cp(t);return e.visit(n)}function rr(t,e){return"tmp_"+t+"_"+e}function ir(t,e){return new rl(rr(t,e),Zc)}function or(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(ir(e,r))}function sr(t,e){if(t!==wp.Statement)throw new Error("Expected a statement, but saw "+e)}function ar(t,e){if(t!==wp.Expression)throw new Error("Expected an expression, but saw "+e)}function ur(t,e){return t===wp.Statement?e.toStmt():e}function cr(t,e){Array.isArray(t)?t.forEach(function(t){return cr(t,e)}):e.push(t)}function lr(t){return Cn("currVal_"+t)}function pr(t){return Cn("pd_"+t)}function hr(t){return t instanceof ol?t.expr:t instanceof sl?t.value:null}function dr(t){var e=t[t.length-1];return e instanceof hi?e.hasViewContainer:e instanceof pi?o(e.name)&&e.children.length?dr(e.children):e.hasViewContainer:e instanceof gi}function fr(t,e){switch(t.type){case vi.Attribute:return Pn([Mn(1),Mn(t.name),Mn(t.securityContext)]);case vi.Property:return Pn([Mn(8),Mn(t.name),Mn(t.securityContext)]);case vi.Animation:return Pn([Mn(8|(e&&e.directive.isComponent?32:16)),Mn("@"+t.name),Mn(t.securityContext)]);case vi.Class:return Pn([Mn(2),Mn(t.name),Zc]);case vi.Style:return Pn([Mn(4),Mn(t.name),Mn(t.unit)])}}function mr(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],i=e[n];e[n]=null!=i?yr(n,i,r):r})}),Pn(Object.keys(e).sort().map(function(t){return Pn([Mn(t),Mn(e[t])])}))}function yr(t,e,n){return t==Pp||t==Op?e+" "+n:n}function gr(t,e){return e.length>10?Rp.callFn([Mp,Mn(t),Mn(1),Pn(e)]):Rp.callFn([Mp,Mn(t),Mn(0)].concat(e))}function vr(t,e,n){return En(iu.unwrapValue).callFn([Mp,Mn(t),Mn(e),n])}function br(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n=new Set,r=new Set,i=void 0;t instanceof pi?(br(t.children,e),t.children.forEach(function(t){var i=e.get(t);i.staticQueryIds.forEach(function(t){return n.add(t)}),i.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches):t instanceof hi&&(br(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return r.add(t)})}),i=t.queryMatches),i&&i.forEach(function(t){return n.add(t.queryId)}),r.forEach(function(t){return n.delete(t)}),e.set(t,{staticQueryIds:n,dynamicQueryIds:r})}),e}function _r(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function wr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Cr(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function Er(t,e){if(void 0===e&&(e=""),!t.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+t.genFileUrl);return(new Rl).emitStatements(j(t.srcFileUrl),t.genFileUrl,t.stmts,e)}function xr(t,e,n,r,i){var o=new Fp(n,e),s=new Vp(t,n);r.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var a=0;a<o.symbols.length;a++){var u=o.symbols[a];if(e.isLibraryFile(u.filePath)){var c=e.resolveSummary(u);if(!c){var l=n.resolveSymbol(u);l&&(c={symbol:l.symbol,metadata:l.metadata})}c&&(c.type&&s.addLibType(c.type),o.addOrMergeSummary(c))}}i.forEach(function(t){var n=t.summary,r=t.metadata;if(s.addSourceType(n,r),o.addOrMergeSummary({symbol:n.type.reference,metadata:null,type:n}),n.summaryKind===Ji.NgModule){var i=n;i.exportedDirectives.concat(i.exportedPipes).forEach(function(t){var n=t.reference;if(e.isLibraryFile(n.filePath)){var r=e.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}});var p=o.serialize(),h=p.json,d=p.exportAs;return s.serialize(d),{json:h,exportAs:d}}function Sr(t,e){return new Bp(t).deserialize(e)}function Pr(t,e){return Or(t,e,Zc)}function Or(t,e,n){var r=on(e.name);t.statements.push(An([],[new sl(n)],new wc(Ec)).toDeclStmt(r,[el.Final,el.Exported]))}function kr(t,e){t.statements.push(En(e).toStmt())}function Tr(t,e,n,r){e.dependencies.forEach(function(e){e.setValue(t.getStaticSymbol(Ar(e.moduleUrl,n,r),e.name))})}function Ar(t,e,n){return t+(e?".shim":"")+".ngstyle"+n}function Mr(t,e,n){var r=Nr(t,e,n);return Ir(t,r.ngModules,r.symbolsMissingModule,n)}function Rr(t,e,n){var r=Mr(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length)throw v(r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."}).join("\n"));return r}function Ir(t,e,n,r){var i=new Map;e.forEach(function(t){return i.set(t.type.reference,t)});var o=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),o.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),o.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],i=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:i})}),{ngModuleByPipeOrDirective:o,files:p,ngModules:e,symbolsMissingModule:n}}function Dr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),i=n.metadata;i&&"error"!=i.__symbolic&&r.push(n.symbol)})}),r}function Nr(t,e,n){var r=new Map,i=[],o=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var i=n.getNgModuleMetadata(t,!1);return i&&(r.set(i.type.reference,i),i.declaredDirectives.forEach(function(t){return o.add(t.reference)}),i.declaredPipes.forEach(function(t){return o.add(t.reference)}),i.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!i};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||i.push(t)});var a=i.filter(function(t){return!o.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function jr(t){return t&&"ignore"==t.__symbolic}function Lr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":return(t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Fr(t){return"Error encountered resolving symbol values statically. "+Lr(t)}function Vr(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var i=e(t[r],r);jr(i)||(zp.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)}),n}function Br(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Ur(t,e,n,r){var i=new Error(t);return i.fileName=e,i.line=n,i.column=r,i}function Hr(t){return t.startsWith("___")?t.substr(1):t}function zr(t,n){var r=n.translations||"",i=He(),o=new Ci,s=new Zp(t,o),a=new Jp(t,o,s),u=new $p(s,a),c=new e.ɵConsole,l=new nu(new Za,r,n.i18nFormat,n.missingTranslation,c),p=new ao({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:!1!==n.enableLegacyTemplate,missingTranslation:n.missingTranslation}),h=new tc({get:function(e){return t.loadResource(e)}},i,l,p),d=new Ts(new Es),f=new Ul,m=new Hu(p,u,d,f,l,c,[]),y=new fc(p,new cc(u),new nc(u),new lc(u),s,f,h,c,o,u),g=new Tp(p,u,f);return{compiler:new Up(p,t,u,y,m,new gp(i),g,new wl(u),new Rl,s,n.locale||null,n.i18nFormat||null,n.enableSummariesForJit||null,a),reflector:u}}function qr(t){var e=new th(null,null,null,new Map);(new nh).visitAllStatements(t,e);var n={};return e.exports.forEach(function(t){n[t]=e.vars.get(t)}),n}function Gr(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),s=0;s<t.length;s++)o.vars.set(t[s],e[s]);var a=i.visitAllStatements(n,o);return a?a.value:null}function Wr(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new th(e,this,t.name,e.vars);return Gr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new th(e,this,t.name,e.vars);return Gr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=new th(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Gr(i,o,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return o.prototype=Object.create(s.prototype,r),o}function Kr(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return Gr(t,i,e,n,r)}}function $r(t,n,r){var i=n.toSource()+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(o.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function Yr(t,e){var n=new oh,r=Al.createRoot();return n.visitAllStatements(e,r),n.createReturnStmt(r),$r(t,r,n.getArgs())}function Xr(t){if(!t.isComponent)throw new Error("Could not compile '"+S(t.type)+"' because it is not a component.")}function Qr(t,e){return void 0===e&&(e=[]),t().forEach(function(t){"function"==typeof t?Qr(t,e):e.push(t)}),e}function Jr(){return{statements:[],genFilePath:"",importExpr:function(t){return En({name:S(t),moduleName:null,runtime:t})}}}function Zr(t){return{useJit:ti(t.map(function(t){return t.useJit})),defaultEncapsulation:ti(t.map(function(t){return t.defaultEncapsulation})),providers:ei(t.map(function(t){return t.providers})),missingTranslation:ti(t.map(function(t){return t.missingTranslation})),enableLegacyTemplate:ti(t.map(function(t){return t.enableLegacyTemplate}))}}function ti(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function ei(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var ni=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ri=new e.Version("4.3.0"),ii=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),oi=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),si=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),ai=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===vi.Animation},enumerable:!0,configurable:!0}),t}(),ui=function(){function t(t,e,n,r,i){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=i}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),ci=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),li=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),pi=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,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}(),hi=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,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}(),di=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),fi=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),mi=function(){function t(t,e,n,r,i,o,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),yi={};yi.PublicService=0,yi.PrivateService=1,yi.Component=2,yi.Directive=3,yi.Builtin=4,yi[yi.PublicService]="PublicService",yi[yi.PrivateService]="PrivateService",yi[yi.Component]="Component",yi[yi.Directive]="Directive",yi[yi.Builtin]="Builtin";var gi=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),vi={};vi.Property=0,vi.Attribute=1,vi.Class=2,vi.Style=3,vi.Animation=4,vi[vi.Property]="Property",vi[vi.Attribute]="Attribute",vi[vi.Class]="Class",vi[vi.Style]="Style",vi[vi.Animation]="Animation";var bi=function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}(),_i=function(t){function e(){return t.call(this)||this}return n(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){function n(e){e&&e.length&&i.push(r(o,e,t))}var i=[],o=this;return e(n),[].concat.apply([],i)},e}(bi),wi=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),Ci=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new wi(t,e,n),this.cache.set(r,i)),i},t}(),Ei={};Ei.RAW_TEXT=0,Ei.ESCAPABLE_RAW_TEXT=1,Ei.PARSABLE_DATA=2,Ei[Ei.RAW_TEXT]="RAW_TEXT",Ei[Ei.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ei[Ei.PARSABLE_DATA]="PARSABLE_DATA";var xi={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:"‌"},Si=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,s=void 0===o?Ei.PARSABLE_DATA:o,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),Pi={base:new Si({isVoid:!0}),meta:new Si({isVoid:!0}),area:new Si({isVoid:!0}),embed:new Si({isVoid:!0}),link:new Si({isVoid:!0}),img:new Si({isVoid:!0}),input:new Si({isVoid:!0}),param:new Si({isVoid:!0}),hr:new Si({isVoid:!0}),br:new Si({isVoid:!0}),source:new Si({isVoid:!0}),track:new Si({isVoid:!0}),wbr:new Si({isVoid:!0}),p:new Si({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 Si({closedByChildren:["tbody","tfoot"]}),tbody:new Si({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new Si({closedByChildren:["tbody"],closedByParent:!0}),tr:new Si({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new Si({closedByChildren:["td","th"],closedByParent:!0}),th:new Si({closedByChildren:["td","th"],closedByParent:!0}),col:new Si({requiredParents:["colgroup"],isVoid:!0}),svg:new Si({implicitNamespacePrefix:"svg"}),math:new Si({implicitNamespacePrefix:"math"}),li:new Si({closedByChildren:["li"],closedByParent:!0}),dt:new Si({closedByChildren:["dt","dd"]}),dd:new Si({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new Si({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new Si({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new Si({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new Si({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new Si({closedByChildren:["optgroup"],closedByParent:!0}),option:new Si({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new Si({ignoreFirstLf:!0}),listing:new Si({ignoreFirstLf:!0}),style:new Si({contentType:Ei.RAW_TEXT}),script:new Si({contentType:Ei.RAW_TEXT}),title:new Si({contentType:Ei.ESCAPABLE_RAW_TEXT}),textarea:new Si({contentType:Ei.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},Oi=new Si,ki=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Ti=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,s=o,a=!1;for(ki.lastIndex=0;n=ki.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new t}}return i(r,o),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2)n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"");return l(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),Ai=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new Mi(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,i=t.element,o=t.classNames,s=t.attrs,a=new Ri(t,e,n);if(i&&((u=0===s.length&&0===o.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i)),o)for(l=0;l<o.length;l++){var u=0===s.length&&l===o.length-1,c=o[l];u?this._addTerminal(r._classMap,c,a):r=this._addPartial(r._classPartialMap,c)}if(s)for(var l=0;l<s.length;l+=2){var u=l===s.length-2,p=s[l],h=s[l+1];if(u){var d=r._attrValueMap,f=d.get(p);f||(f=new Map,d.set(p,f)),this._addTerminal(f,h,a)}else{var m=r._attrValuePartialMap,y=m.get(p);y||(y=new Map,m.set(p,y)),r=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,i=t.classNames,o=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,i)for(s=0;s<i.length;s++){var a=i[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(o)for(s=0;s<o.length;s+=2){var u=o[s],c=o[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e)||[],o=t.get("*");if(o&&(i=i.concat(o)),0===i.length)return!1;for(var s=!1,a=0;a<i.length;a++)s=i[a].finalize(n,r)||s;return s},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var i=t.get(e);return!!i&&i.match(n,r)},t}(),Mi=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),Ri=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;return!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!Ai.createNotMatcher(this.notSelectors).match(t,null)),!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),Ii=/-+([a-z0-9])/g,Di=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return m(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(i){r[i]=m(t[i],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Ni={assertSync:function(t){if(e.ɵisPromise(t))throw new Error("Illegal state: value cannot be a promise");return t},then:function(t,n){return e.ɵisPromise(t)?t.then(n):n(t)},all:function(t){return t.some(e.ɵisPromise)?Promise.all(t):t}},ji="ngSyntaxError",Li="ngParseErrors",Fi=Object.getPrototypeOf({}),Vi=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,Bi=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Ui=function(){function t(){}return t}(),Hi=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return n(e,t),e}(Ui),zi=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return n(e,t),e}(Ui),qi=function(){function t(){}return t}(),Gi=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e}(qi),Wi=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return n(e,t),e}(qi),Ki=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return n(e,t),e}(qi),$i=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return n(e,t),e}(qi),Yi=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return n(e,t),e}($i),Xi=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return n(e,t),e}($i),Qi=0,Ji={};Ji.Pipe=0,Ji.Directive=1,Ji.NgModule=2,Ji.Injectable=3,Ji[Ji.Pipe]="Pipe",Ji[Ji.Directive]="Directive",Ji[Ji.NgModule]="NgModule",Ji[Ji.Injectable]="Injectable";var Zi=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=D(r),this.styleUrls=D(i)}return t}(),to=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.styles,o=t.styleUrls,s=t.externalStylesheets,a=t.animations,u=t.ngContentSelectors,c=t.interpolation,l=t.isInline;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.styles=D(i),this.styleUrls=D(o),this.externalStylesheets=D(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}(),eo=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,d=t.viewProviders,f=t.queries,m=t.viewQueries,y=t.entryComponents,g=t.template,v=t.componentViewType,b=t.rendererType,_=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=D(h),this.viewProviders=D(d),this.queries=D(f),this.viewQueries=D(m),this.entryComponents=D(y),this.template=g,this.componentViewType=v,this.rendererType=b,this.componentFactory=_}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.host,p=e.providers,d=e.viewProviders,f=e.queries,m=e.viewQueries,y=e.entryComponents,g=e.template,v=e.componentViewType,b=e.rendererType,_=e.componentFactory,w={},C={},E={};null!=l&&Object.keys(l).forEach(function(t){var e=l[t],n=t.match(Vi);null===n?E[t]=e:null!=n[1]?C[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var x={};null!=u&&u.forEach(function(t){var e=h(t,[t,t]);x[e[0]]=e[1]});var S={};return null!=c&&c.forEach(function(t){var e=h(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:x,outputs:S,hostListeners:w,hostProperties:C,hostAttributes:E,providers:p,viewProviders:d,queries:f,viewQueries:m,entryComponents:y,template:g,componentViewType:v,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:Ji.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}(),no=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:Ji.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),ro=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,s=t.exportedPipes,a=t.entryComponents,u=t.bootstrapComponents,c=t.importedModules,l=t.exportedModules,p=t.schemas,h=t.transitiveModule,d=t.id;this.type=e||null,this.declaredDirectives=D(r),this.exportedDirectives=D(i),this.declaredPipes=D(o),this.exportedPipes=D(s),this.providers=D(n),this.entryComponents=D(a),this.bootstrapComponents=D(u),this.importedModules=D(c),this.exportedModules=D(l),this.schemas=D(p),this.id=d||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:Ji.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),io=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}(),oo=function(){function t(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a}return t}(),so=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.hasLifecycleHook=function(t,e){},t.prototype.componentModuleUrl=function(t,e){},t.prototype.resolveExternalReference=function(t){},t}(),ao=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,i=void 0===r?e.ViewEncapsulation.Emulated:r,o=n.useJit,s=void 0===o||o,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=i,this.useJit=!!s,this.missingTranslation=a||null,this.enableLegacyTemplate=!1!==u}return t}(),uo=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),co=function(){function t(t,e){this.start=t,this.end=e}return t}(),lo=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}(),po=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}(lo),ho=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(lo),fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(lo),mo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(lo),yo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(lo),go=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(lo),vo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(lo),bo=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(lo),_o=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(lo),wo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(lo),Co=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(lo),Eo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(lo),xo=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(lo),So=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(lo),Po=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(lo),Oo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(lo),ko=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(lo),To=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(lo),Ao=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(lo),Mo=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(lo),Ro=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(lo),Io=function(t){function e(e,n,r,i){var o=t.call(this,new co(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return n(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}(lo),Do=function(){function t(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}return t}(),No=function(){function t(){}return t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t}(),jo=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitNonNullAssert=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),Lo=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new Po(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Eo(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new go(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new vo(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new bo(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new Ao(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new Mo(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Ro(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new xo(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new So(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Oo(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new ko(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new To(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new yo(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Co(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new _o(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new wo(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new mo(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new po(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),Fo=0,Vo=9,Bo=10,Uo=11,Ho=12,zo=13,qo=32,Go=34,Wo=36,Ko=39,$o=43,Yo=45,Xo=47,Qo=59,Jo=61,Zo=62,ts=48,es=57,ns=65,rs=69,is=70,os=90,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,ds=118,fs=122,ms=123,ys=160,gs=96,vs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],bs=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?($("interpolation",e),new t(e[0],e[1])):_s},t}(),_s=new bs("{{","}}"),ws={};ws.Character=0,ws.Identifier=1,ws.Keyword=2,ws.String=3,ws.Operator=4,ws.Number=5,ws.Error=6,ws[ws.Character]="Character",ws[ws.Identifier]="Identifier",ws[ws.Keyword]="Keyword",ws[ws.String]="String",ws[ws.Operator]="Operator",ws[ws.Number]="Number",ws[ws.Error]="Error";var Cs=["var","let","as","null","undefined","true","false","if","else","this"],Es=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ps(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();Es.decorators=[{type:W}],Es.ctorParameters=function(){return[]};var xs=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==ws.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==ws.Number},t.prototype.isString=function(){return this.type==ws.String},t.prototype.isOperator=function(t){return this.type==ws.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==ws.Identifier},t.prototype.isKeyword=function(){return this.type==ws.Keyword},t.prototype.isKeywordLet=function(){return this.type==ws.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==ws.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==ws.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==ws.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==ws.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==ws.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==ws.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==ws.Error},t.prototype.toNumber=function(){return this.type==ws.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case ws.Character:case ws.Identifier:case ws.Keyword:case ws.Operator:case ws.String:case ws.Error:return this.strValue;case ws.Number:return this.numValue.toString();default:return null}},t}(),Ss=new xs(-1,ws.Character,0,""),Ps=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?Fo:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=qo;){if(++r>=e){n=Fo;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(nt(n))return this.scanIdentifier();if(z(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),z(this.peek)?this.scanNumber(i):Y(i,46);case 40:case 41:case ms:case 125:case 91:case 93:case 44:case 58:case Qo:return this.scanCharacter(i,n);case Ko:case Go:return this.scanString();case 35:case $o:case Yo:case 42:case Xo:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Zo:return this.scanComplexOperator(i,String.fromCharCode(n),Jo,"=");case 33:case Jo:return this.scanComplexOperator(i,String.fromCharCode(n),Jo,"=",Jo,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case ys:for(;H(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),Y(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),J(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),J(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();it(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Cs.indexOf(e)>-1?Q(t,e):X(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(z(this.peek));else if(46==this.peek)e=!1;else{if(!ot(this.peek))break;if(this.advance(),st(this.peek)&&this.advance(),!z(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index);return tt(t,e?ct(n):parseFloat(n))},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=ut(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Fo)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),Z(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return et(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Os=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),ks=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),Ts=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=_s),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),i=this._lexer.tokenize(this._stripComments(t)),o=new As(t,e,i,r.length,!0,this.errors,t.length-r.length).parseChain();return new Io(o,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=_s);var r=this._parseBindingAst(t,e,n);return new Io(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=_s);var r=this._parseBindingAst(t,e,n),i=Ms.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new Io(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new uo(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var i=this._stripComments(t),o=this._lexer.tokenize(i);return new As(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!rt(r))return null;var i=t.substring(n+1);return new po(new co(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new As(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=_s);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o<r.expressions.length;++o){var s=r.expressions[o],a=this._stripComments(s),u=this._lexer.tokenize(a),c=new As(t,e,u,a.length,!1,this.errors,r.offsets[o]+(s.length-a.length)).parseChain();i.push(c)}return new Io(new Po(new co(0,null==t?0:t.length),r.strings,i),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=_s);var r=lt(n),i=t.split(r);if(i.length<=1)return null;for(var o=[],s=[],a=[],u=0,c=0;c<i.length;c++){var l=i[c];c%2==0?(o.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Os(o,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Io(new Eo(new co(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),i=t.charCodeAt(n+1);if(r===Xo&&i==Xo&&null==e)return n;e===r?e=null:null==e&&at(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=lt(n),i=t.split(r);i.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i<e;i++)r+=i%2==0?t[i]:""+n.start+t[i]+n.end;return r.length},t}();Ts.decorators=[{type:W}],Ts.ctorParameters=function(){return[{type:Es}]};var As=function(){function t(t,e,n,r,i,o,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=i,this.errors=o,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]:Ss},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 co(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(Qo))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(Qo););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new ho(this.span(e)):1==t.length?t[0]:new mo(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(58);)n.push(this.parseExpression());t=new Co(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(t,i);this.error("Conditional expression "+o+" requires all 3 expressions"),r=new ho(this.span(t))}return new yo(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new Oo(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 Oo(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new Oo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Oo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Oo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==ws.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Oo(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==ws.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new Oo(this.span(t),e,new Eo(new co(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new ko(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new wo(this.span(t.span.start),t,e,n)}else t=new _o(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Ro(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new To(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Eo(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Eo(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Eo(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Eo(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new fo(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new xo(this.span(t),n)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new fo(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Eo(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Eo(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new ho(this.span(t))):(this.error("Unexpected token "+this.next),new ho(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new So(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new Mo(o,t,r,i):new Ao(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new ho(this.span(n))):new bo(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new ho(this.span(n));var s=this.parseConditional();return new vo(this.span(n),t,r,s)}return new go(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,i=this.peekKeywordLet();i&&this.advance();var o=this.expectTemplateBindingKey(),s=o;i||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(58);var a=null,u=null;if(i)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){h=this.inputIndex;this.advance(),a=o,s=this.expectTemplateBindingKey(),i=!0}else if(this.next!==Ss&&!this.peekKeywordLet()){var c=this.inputIndex,l=this.parsePipe(),p=this.input.substring(c-this.offset,this.inputIndex-this.offset);u=new Io(l,p,this.location,this.errors)}if(t.push(new Do(this.span(r),s,i,a,u)),this.peekKeywordAs()&&!i){var h=this.inputIndex;this.advance();var d=this.expectTemplateBindingKey();t.push(new Do(this.span(h),d,!0,s,null))}this.optionalCharacter(Qo)||this.optionalCharacter(44)}return new ks(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new uo(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(Qo)&&(this.rparensExpected<=0||!t.isCharacter(41))&&(this.rbracesExpected<=0||!t.isCharacter(125))&&(this.rbracketsExpected<=0||!t.isCharacter(93));)this.next.isError()&&this.errors.push(new uo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ms=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes")},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),Rs=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&e<0;)if(i--,e++,(u=n.charCodeAt(i))==Bo){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(Bo));s=a>0?i-a:i}else s--;for(;i<r&&e>0;){var u=n.charCodeAt(i);i++,e--,u==Bo?(o++,s=0):s++}return new t(this.file,i,o,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o<t&&r>0&&(r--,o++,"\n"!=n[r]||++s!=e););for(o=0,s=0;o<t&&i<n.length-1&&(i++,o++,"\n"!=n[i]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},t}(),Is=function(){function t(t,e){this.content=t,this.url=e}return t}(),Ds=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Ns={};Ns.WARNING=0,Ns.ERROR=1,Ns[Ns.WARNING]="WARNING",Ns[Ns.ERROR]="ERROR";var js=function(){function t(t,e,n){void 0===n&&(n=Ns.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.contextualMessage=function(){var t=this.span.start.getContext(100,3);return t?' ("'+t.before+"["+Ns[this.level]+" ->]"+t.after+'")':""},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return""+this.msg+this.contextualMessage()+": "+this.span.start+t},t}(),Ls=function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}return Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()},t}(),Fs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Vs=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),Bs=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Us=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Hs=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),zs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),qs=function(){function t(){}return t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){function n(e){e&&r.push(ht(i,e,t))}var r=[],i=this;return e(n),[].concat.apply([],r)},t}(),Gs={};Gs.TAG_OPEN_START=0,Gs.TAG_OPEN_END=1,Gs.TAG_OPEN_END_VOID=2,Gs.TAG_CLOSE=3,Gs.TEXT=4,Gs.ESCAPABLE_RAW_TEXT=5,Gs.RAW_TEXT=6,Gs.COMMENT_START=7,Gs.COMMENT_END=8,Gs.CDATA_START=9,Gs.CDATA_END=10,Gs.ATTR_NAME=11,Gs.ATTR_VALUE=12,Gs.DOC_TYPE=13,Gs.EXPANSION_FORM_START=14,Gs.EXPANSION_CASE_VALUE=15,Gs.EXPANSION_CASE_EXP_START=16,Gs.EXPANSION_CASE_EXP_END=17,Gs.EXPANSION_FORM_END=18,Gs.EOF=19,Gs[Gs.TAG_OPEN_START]="TAG_OPEN_START",Gs[Gs.TAG_OPEN_END]="TAG_OPEN_END",Gs[Gs.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Gs[Gs.TAG_CLOSE]="TAG_CLOSE",Gs[Gs.TEXT]="TEXT",Gs[Gs.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Gs[Gs.RAW_TEXT]="RAW_TEXT",Gs[Gs.COMMENT_START]="COMMENT_START",Gs[Gs.COMMENT_END]="COMMENT_END",Gs[Gs.CDATA_START]="CDATA_START",Gs[Gs.CDATA_END]="CDATA_END",Gs[Gs.ATTR_NAME]="ATTR_NAME",Gs[Gs.ATTR_VALUE]="ATTR_VALUE",Gs[Gs.DOC_TYPE]="DOC_TYPE",Gs[Gs.EXPANSION_FORM_START]="EXPANSION_FORM_START",Gs[Gs.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Gs[Gs.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Gs[Gs.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Gs[Gs.EXPANSION_FORM_END]="EXPANSION_FORM_END",Gs[Gs.EOF]="EOF";var Ws=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Ks=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return n(e,t),e}(js),$s=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Ys=/\r\n?/g,Xs=function(){function t(t){this.error=t}return t}(),Qs=function(){function t(t,e,n,r){void 0===r&&(r=_s),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Ys,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Fo;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Yo)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Xo)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Xs))throw t;this.errors.push(t.error)}}return this._beginToken(Gs.EOF),this._endToken([]),new $s(Ot(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(Et(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(xt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new Rs(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 Ds(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Ws(this._currentTokenType,t,new Ds(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Ks(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Xs(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(yt(Fo),this._getSpan());this._peek===Bo?(this._line++,this._column=0):this._peek!==Bo&&this._peek!==zo&&this._column++,this._index++,this._peek=this._index>=this._length?Fo:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Fo:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!St(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(yt(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(yt(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(yt(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&38===this._peek)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(Ct),this._peek!=Qo)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=xi[n];if(!r)throw this._createError(gt(n),this._getSpan(t));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(wt),this._peek!=Qo)throw this._createError(yt(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(gt(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,i=this._getLocation();this._beginToken(t?Gs.ESCAPABLE_RAW_TEXT:Gs.RAW_TEXT,i);for(var o=[];;){if(r=this._getLocation(),this._attemptCharCode(e)&&n())break;for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Gs.COMMENT_START,t),this._requireCharCode(Yo),this._endToken([]);var n=this._consumeRawText(!1,Yo,function(){return e._attemptStr("->")});this._beginToken(Gs.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Gs.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(Gs.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Gs.DOC_TYPE,t),this._attemptUntilChar(Zo),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;58!==this._peek&&!_t(this._peek);)this._advance();var n;return 58===this._peek?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(bt,this._index===n?1:0),[e,this._input.substring(n,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!q(this._peek))throw this._createError(yt(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(vt);this._peek!==Xo&&this._peek!==Zo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(vt),this._attemptCharCode(Jo)&&(this._attemptCharCodeUntilFn(vt),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(vt);this._consumeTagOpenEnd()}catch(e){if(e instanceof Xs)return this._restorePosition(r),this._beginToken(Gs.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===Ei.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===Ei.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Xo)&&(n._attemptCharCodeUntilFn(vt),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(vt),n._attemptCharCode(Zo)))});this._beginToken(Gs.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Gs.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Gs.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Gs.ATTR_VALUE);var t;if(this._peek===Ko||this._peek===Go){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(bt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Xo)?Gs.TAG_OPEN_END_VOID:Gs.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Zo),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Gs.TAG_CLOSE,t),this._attemptCharCodeUntilFn(vt);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(vt),this._requireCharCode(Zo),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Gs.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Gs.EXPANSION_FORM_START),this._beginToken(Gs.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(vt),this._beginToken(Gs.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(vt)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Gs.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(vt),this._beginToken(Gs.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(vt),this._expansionCaseStack.push(Gs.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Gs.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(vt),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Gs.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Gs.TEXT,t);var e=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(60===this._peek||this._peek===Fo)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(Et(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Gs.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Gs.EXPANSION_FORM_START},t}(),Js=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return n(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(js),Zs=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),ta=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_s);var i=mt(t,e,this.getTagDefinition,n,r),o=new ea(i.tokens,this.getTagDefinition).build();return new Zs(o.rootNodes,i.errors.concat(o.errors))},t}(),ea=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!==Gs.EOF;)this._peek.type===Gs.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Gs.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Gs.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Gs.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Gs.TEXT||this._peek.type===Gs.RAW_TEXT||this._peek.type===Gs.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Gs.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Zs(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Gs.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Gs.RAW_TEXT);this._advanceIf(Gs.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new zs(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Gs.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===Gs.EXPANSION_FORM_END){var o=new Ds(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Vs(e.parts[0],n.parts[0],r,o,e.sourceSpan)),this._advance()}else this._errors.push(Js.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Gs.EXPANSION_CASE_EXP_START)return this._errors.push(Js.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new Ws(Gs.EOF,[],i.sourceSpan));var o=new t(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new Ds(e.sourceSpan.start,i.sourceSpan.end),a=new Ds(n.sourceSpan.start,i.sourceSpan.end);return new Bs(e.parts[0],o.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Gs.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Gs.EXPANSION_FORM_START&&this._peek.type!==Gs.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Gs.EXPANSION_CASE_EXP_END){if(!kt(n,Gs.EXPANSION_CASE_EXP_START))return this._errors.push(Js.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Gs.EXPANSION_FORM_END){if(!kt(n,Gs.EXPANSION_FORM_START))return this._errors.push(Js.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Gs.EOF)return this._errors.push(Js.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Fs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Gs.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===Gs.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==u(i)||s.isVoid||this._errors.push(Js.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Gs.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,c=new Ds(t.sourceSpan.start,a),l=new Hs(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new Hs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,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(Js.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(Js.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e=c(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===Gs.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Us(e,r,new Ds(t.sourceSpan.start,n),i)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if(!o(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=u(n.name)),c(t,e)},t}(),na=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),ra=new na,ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(na),oa={};oa.Little=0,oa.Big=1,oa[oa.Little]="Little",oa[oa.Big]="Big";var sa=function(){function t(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}return t}(),aa=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),ua=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),ca=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),la=function(){function t(t,e,n,r,i,o,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),pa=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),ha=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),da=function(){function t(){}return t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new ua(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new ca(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new la(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new pa(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new ha(t.value,t.name,t.sourceSpan)},t}(),fa=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),ma={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"},ya=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var i=t.toUpperCase(),o=ma[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=ma[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":"></"+t+">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),ga=new Ts(new Es),va=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Vs,this._icuDepth=0,this._placeholderRegistry=new ya,this._placeholderToContent={},this._placeholderToMessage={};var i=ht(this,t,{});return new sa(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=ht(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=l(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[s]="</"+t.name+">"),new la(t.name,r,o,s,n,i,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var i={},o=new ca(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new ua(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,o}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new ha(o,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new aa(t,e);for(var r=[],i=new ua(r,e),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=te(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new aa(n.strings[u],e)),r.push(new pa(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new aa(n.strings[h],e)),i},t}(),ba=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g,_a=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(js),wa="i18n",Ca=/^i18n:?/,Ea="|",xa="@@",Sa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),Pa={};Pa.Extract=0,Pa.Merge=1,Pa[Pa.Extract]="Extract",Pa[Pa.Merge]="Merge";var Oa=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(Pa.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Sa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(Pa.Merge,n),this._translations=e;var r=new Hs("wrapper",[],t,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Zs(r.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=ht(this,t.expression,e);if(this._mode===Pa.Merge)return new Bs(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=ht(this,t.cases,e);return this._mode===Pa.Merge&&(t=new Vs(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=re(t);if(n&&this._isInTranslatableSection)this._reportError(t,"Could not start a block inside a translatable section");else{var r=ie(t);if(!r||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return ht(this,this._translateMessage(t,i))}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(Ca,"").trim(),this._openTranslatableSection(t))}else this._reportError(t,"Trying to close an unopened block")}},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=oe(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==Pa.Extract&&ht(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==Pa.Extract){var h=a||l;h&&this._openTranslatableSection(t),ht(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===Pa.Merge&&(s||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Pa.Merge){var d=this._translateAttributes(t);return new Hs(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){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=Zt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(0==t.length||1==t.length&&t[0]instanceof Us&&!t[0].value)return null;var n=se(e),r=n.meaning,i=n.description,o=n.id,s=this._createI18nMessage(t,r,i,o);return this._messages.push(s),s},t.prototype._translateMessage=function(t,e){if(e&&this._mode===Pa.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith("i18n-")&&(r[t.name.slice("i18n-".length)]=se(t.value))});var i=[];return n.forEach(function(n){if(n.name!==wa&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.meaning,a=o.description,u=o.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)i.push(new Us(n.name,"",n.sourceSpan));else if(l[0]instanceof Fs){var p=l[0].value;i.push(new Us(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else i.push(n)}),i},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof zs?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof aa)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),ka=new(function(){function t(){this.closedByParent=!1,this.contentType=Ei.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}()),Ta=function(t){function e(){return t.call(this,ae)||this}return n(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(ta),Aa=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),Ma=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return n(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(fa),Ra=new(function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}()),Ia=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ce(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Da=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Na=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=ce(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),ja=function(){function t(t){this.value=ce(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),La=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return n(e,t),e}(ja),Fa=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]],Va=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new Ba,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Na("context-group",{purpose:"location"});n.children.push(new La(10),new Na("context",{"context-type":"sourcefile"},[new ja(t.filePath)]),new La(10),new Na("context",{"context-type":"linenumber"},[new ja(""+t.startLine)]),new La(8)),e.push(new La(8),n)});var i=new Na("trans-unit",{id:t.id,datatype:"html"});(o=i.children).push.apply(o,[new La(8),new Na("source",{},n.serialize(t.nodes)),new La(8),new Na("target")].concat(e)),t.description&&i.children.push(new La(8),new Na("note",{priority:"1",from:"description"},[new ja(t.description)])),t.meaning&&i.children.push(new La(8),new Na("note",{priority:"1",from:"meaning"},[new ja(t.meaning)])),i.children.push(new La(6)),r.push(new La(6),i);var o});var i=new Na("body",{},r.concat([new La(4)])),o=new Na("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new La(4),i,new La(2)]),s=new Na("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new La(2),o,new La]);return ue([new Ia({version:"1.0",encoding:"UTF-8"}),new La,s,new La])},e.prototype.load=function(t,e){var n=(new Ua).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ha;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,u=n.errors;o.push.apply(o,u),s[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return Tt(t)},e}(Aa),Ba=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ja(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ja("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ja(e+" {")].concat(t.cases[e].visit(n),[new ja("} ")]))}),r.push(new ja("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=le(t.tag),r=new Na("x",{id:t.startName,ctype:n});if(t.isVoid)return[r];var i=new Na("x",{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Na("x",{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Na("x",{id:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ua=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Ta).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ht(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<trans-unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"file":var a=t.attrs.find(function(t){return"target-language"===t.name});a&&(this._locale=a.value),ht(this,t.children,null);break;default:ht(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),Ha=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ta).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ht(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new pa("",n.value,t.sourceSpan);this._addError(t,'<x> misses the "id" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ht(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new qa,r=[];t.forEach(function(t){var e=new Na("unit",{id:t.id}),i=new Na("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new La(8),new Na("note",{category:"description"},[new ja(t.description)])),t.meaning&&i.children.push(new La(8),new Na("note",{category:"meaning"},[new ja(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new La(8),new Na("note",{category:"location"},[new ja(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new La(6)),e.children.push(new La(6),i);var o=new Na("segment");o.children.push(new La(8),new Na("source",{},n.serialize(t.nodes)),new La(6)),e.children.push(new La(6),o,new La(4)),r.push(new La(4),e)});var i=new Na("file",{original:"ng.template",id:"ngi18n"},r.concat([new La(2)])),o=new Na("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new La(2),i,new La]);return ue([new Ia({version:"1.0",encoding:"UTF-8"}),new La,o,new La])},e.prototype.load=function(t,e){var n=(new Ga).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Wa;if(Object.keys(i).forEach(function(t){var n=a.convert(i[t],e),r=n.i18nNodes,u=n.errors;o.push.apply(o,u),s[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return At(t)},e}(Aa),qa=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ja(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ja("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ja(e+" {")].concat(t.cases[e].visit(n),[new ja("} ")]))}),r.push(new ja("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=pe(t.tag);if(t.isVoid)return[new Na("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var i=new Na("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:"</"+t.tag+">"}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new ja("")),[i]},t.prototype.visitPlaceholder=function(t,e){return[new Na("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Na("ph",{id:(this._nextPlaceholderId++).toString()})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ga=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Ta).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(ht(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=s;break;case"xliff":var a=t.attrs.find(function(t){return"trgLang"===t.name});a&&(this._locale=a.value);var u=t.attrs.find(function(t){return"version"===t.name});if(u){var c=u.value;"2.0"!==c?this._addError(t,"The XLIFF file version "+c+" is not compatible with XLIFF 2.0 serializer"):ht(this,t.children,null)}break;default:ht(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),Wa=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ta).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],ht(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new pa("",r.value,t.sourceSpan)];this._addError(t,'<ph> misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var s=i.value,a=o.value,u=[];return u.concat.apply(u,[new pa("",s,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new pa("",a,t.sourceSpan)]))}this._addError(t,'<ph> misses the "equivEnd" attribute')}else this._addError(t,'<ph> misses the "equivStart" attribute');break;default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],ht(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),Ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){var n=new Ya,r=new $a,i=new Na("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Na("source",{},[new ja(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new La(2),new Na("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new La),ue([new Ia({version:"1.0",encoding:"UTF-8"}),new La,new Da("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new La,n.addDefaultExamples(i),new La])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return he(t)},e.prototype.createNameMapper=function(t){return new Ma(t,de)},e}(Aa),$a=function(){function t(){}return t.prototype.visitText=function(t,e){return[new ja(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new ja("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new ja(e+" {")].concat(t.cases[e].visit(n),[new ja("} ")]))}),r.push(new ja("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Na("ex",{},[new ja("<"+t.tag+">")]),r=new Na("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Na("ex",{},[new ja("</"+t.tag+">")]),o=new Na("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Na("ph",{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Na("ph",{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Ya=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new ja(t.attrs.name||"...");t.children=[new Na("ex",{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),Xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Qa).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Ja;if(Object.keys(i).forEach(function(t){fe(s,t,function(){var n=a.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},e.prototype.digest=function(t){return he(t)},e.prototype.createNameMapper=function(t){return new Ma(t,de)},e}(Aa),Qa=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Ta).parse(t,e,!1);return this._errors=n.errors,ht(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":++this._bundleDepth>1&&this._addError(t,"<translationbundle> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),ht(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(o,s);this._msgIdToHtml[i]=a}}else this._addError(t,'<translation> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),Ja=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ta).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:ht(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new aa(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return ht(this,t.cases).forEach(function(e){n[e.value]=new ua(e.nodes,t.sourceSpan)}),new ca(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:ht(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new pa("",n.value,t.sourceSpan);this._addError(t,'<ph> misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),Za=function(t){function e(){return t.call(this,l)||this}return n(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=_s),t.prototype.parse.call(this,e,n,r,i)},e}(ta);Za.decorators=[{type:W}],Za.ctorParameters=function(){return[]};var tu=function(){function t(t,n,r,i,o,s){void 0===t&&(t={}),void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=i,this._i18nToHtml=new eu(t,n,r,i,o,s)}return t.load=function(e,n,r,i,o){var s=r.load(e,n),a=s.locale;return new t(s.i18nNodesByMsgId,a,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),eu=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new Za).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,i=this._digest(t),o=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(i))n=this._i18nNodesByMsgId[i],this._mapper=function(t){return o?o.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+i+'"'+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 "'+i+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new _a(t.sourceSpan,e))},t}(),nu=function(){function t(t,n,r,i,o){if(void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=me(r);this._translationBundle=tu.load(n,"i18n",s,i,o)}else this._translationBundle=new tu({},null,Tt,void 0,i,o)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=_s);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new Zs(i.rootNodes,i.errors):ne(i.rootNodes,this._translationBundle,r,[],{})},t}(),ru="@angular/core",iu=function(){function t(){}return t}();iu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:ru,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},iu.ElementRef={name:"ElementRef",moduleName:ru,runtime:e.ElementRef},iu.NgModuleRef={name:"NgModuleRef",moduleName:ru,runtime:e.NgModuleRef},iu.ViewContainerRef={name:"ViewContainerRef",moduleName:ru,runtime:e.ViewContainerRef},iu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:ru,runtime:e.ChangeDetectorRef},iu.QueryList={name:"QueryList",moduleName:ru,runtime:e.QueryList},iu.TemplateRef={name:"TemplateRef",moduleName:ru,runtime:e.TemplateRef},iu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:ru,runtime:e.ɵCodegenComponentFactoryResolver},iu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:ru,runtime:e.ComponentFactoryResolver},iu.ComponentFactory={name:"ComponentFactory",moduleName:ru,runtime:e.ComponentFactory},iu.ComponentRef={name:"ComponentRef",moduleName:ru,runtime:e.ComponentRef},iu.NgModuleFactory={name:"NgModuleFactory",moduleName:ru,runtime:e.NgModuleFactory},iu.createModuleFactory={name:"ɵcmf",moduleName:ru,runtime:e.ɵcmf},iu.moduleDef={name:"ɵmod",moduleName:ru,runtime:e.ɵmod},iu.moduleProviderDef={name:"ɵmpd",moduleName:ru,runtime:e.ɵmpd},iu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:ru,runtime:e.ɵregisterModuleFactory},iu.Injector={name:"Injector",moduleName:ru,runtime:e.Injector},iu.ViewEncapsulation={name:"ViewEncapsulation",moduleName:ru,runtime:e.ViewEncapsulation},iu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:ru,runtime:e.ChangeDetectionStrategy},iu.SecurityContext={name:"SecurityContext",moduleName:ru,runtime:e.SecurityContext},iu.LOCALE_ID={name:"LOCALE_ID",moduleName:ru,runtime:e.LOCALE_ID},iu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:ru,runtime:e.TRANSLATIONS_FORMAT},iu.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:ru,runtime:e.ɵinlineInterpolate},iu.interpolate={name:"ɵinterpolate",moduleName:ru,runtime:e.ɵinterpolate},iu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:ru,runtime:e.ɵEMPTY_ARRAY},iu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:ru,runtime:e.ɵEMPTY_MAP},iu.Renderer={name:"Renderer",moduleName:ru,runtime:e.Renderer},iu.viewDef={name:"ɵvid",moduleName:ru,runtime:e.ɵvid},iu.elementDef={name:"ɵeld",moduleName:ru,runtime:e.ɵeld},iu.anchorDef={name:"ɵand",moduleName:ru,runtime:e.ɵand},iu.textDef={name:"ɵted",moduleName:ru,runtime:e.ɵted},iu.directiveDef={name:"ɵdid",moduleName:ru,runtime:e.ɵdid},iu.providerDef={name:"ɵprd",moduleName:ru,runtime:e.ɵprd},iu.queryDef={name:"ɵqud",moduleName:ru,runtime:e.ɵqud},iu.pureArrayDef={name:"ɵpad",moduleName:ru,runtime:e.ɵpad},iu.pureObjectDef={name:"ɵpod",moduleName:ru,runtime:e.ɵpod},iu.purePipeDef={name:"ɵppd",moduleName:ru,runtime:e.ɵppd},iu.pipeDef={name:"ɵpid",moduleName:ru,runtime:e.ɵpid},iu.nodeValue={name:"ɵnov",moduleName:ru,runtime:e.ɵnov},iu.ngContentDef={name:"ɵncd",moduleName:ru,runtime:e.ɵncd},iu.unwrapValue={name:"ɵunv",moduleName:ru,runtime:e.ɵunv},iu.createRendererType2={name:"ɵcrt",moduleName:ru,runtime:e.ɵcrt},iu.RendererType2={name:"RendererType2",moduleName:ru,runtime:null},iu.ViewDefinition={name:"ɵViewDefinition",moduleName:ru,runtime:null},iu.createComponentFactory={name:"ɵccf",moduleName:ru,runtime:e.ɵccf};var ou=["zero","one","two","few","many","other"],su=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),au=function(t){function e(e,n){return t.call(this,e,n)||this}return n(e,t),e}(js),uu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Hs(t.name,t.attrs,ht(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?be(t,this.errors):_e(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),cu=function(t){function e(e,n){return t.call(this,n,e)||this}return n(e,t),e}(js),lu=function(){function t(t,e){var n=this;this.reflector=t,this.component=e,this.errors=[],this.viewQueries=Se(e),this.viewProviders=new Map,e.viewProviders.forEach(function(t){null==n.viewProviders.get(R(t.token))&&n.viewProviders.set(R(t.token),!0)})}return t}(),pu=function(){function t(t,e,n,r,i,o,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},i.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=Ee(l,u,t.errors),this._contentQueries=Pe(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=ge(this.viewContext.reflector,iu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}o.forEach(function(t){var e=t.value||ge(c.viewContext.reflector,iu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(iu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){(t.eager||c._queriedTokens.get(R(t.token)))&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){var t=[],e=[];return this._transformedProviders.forEach(function(n){n.eager?e.push(n):t.push(n)}),t.concat(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,i=R(r),o=n.get(i);o||(o=[],n.set(i,o)),o.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,i=0;null!==r;)(e=r._contentQueries.get(R(t)))&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(R(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(R(e));if(!i||(t===yi.Directive||t===yi.PublicService)&&i.providerType===yi.PrivateService||(t===yi.PrivateService||t===yi.PublicService)&&i.providerType===yi.Builtin)return null;var o=this._transformedProviders.get(R(e));if(o)return o;if(null!=this._seenProviders.get(R(e)))return this.viewContext.errors.push(new cu("Cannot instantiate cyclic dependency! "+M(e),this._sourceSpan)),null;this._seenProviders.set(R(e),!0);var s=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=r._getDependency(i.providerType,{token:t.useExisting},n);null!=a.token?o=a.token:(o=null,e=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return r._getDependency(i.providerType,t,n)})}return we(t,{useExisting:o,useValue:e,deps:s})});return o=Ce(i,{eager:n,providers:s}),this._transformedProviders.set(R(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===yi.Directive||t===yi.Component){if(R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.Renderer)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ElementRef)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ChangeDetectorRef)||R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.TemplateRef))return e;R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(R(e.token)===this.viewContext.reflector.resolveExternalReference(iu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(i=!1),o=r._getLocalDependency(yi.PublicService,e,i)}o||(o=!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?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new cu("No provider for "+M(e.token),this._sourceSpan)),o},t}(),hu=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){xe([{token:{identifier:t},useClass:t}],yi.PublicService,!0,r,i._errors,i._allProviders)}),xe(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),yi.PublicService,!1,r,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(R(t));if(!r)return null;var i=this._transformedProviders.get(R(t));if(i)return i;if(null!=this._seenProviders.get(R(t)))return this._errors.push(new cu("Cannot instantiate cyclic dependency! "+M(t),r.sourceSpan)),null;this._seenProviders.set(R(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,s=void 0;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?o=a.token:(o=null,i=a.value)}else if(t.useFactory)s=(u=t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)});else if(t.useClass){var u=t.deps||t.useClass.diDeps;s=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return we(t,{useExisting:o,useValue:i,deps:s})});return i=Ce(r,{eager:e,providers:o}),this._transformedProviders.set(R(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(R(t.token)===this.reflector.resolveExternalReference(iu.Injector)||R(t.token)===this.reflector.resolveExternalReference(iu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new cu("No provider for "+M(t.token),n))),i},t}(),du=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),fu=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),mu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,yu=/\/\*.+?\*\//g,gu=/^([^:/?#]+):/,vu={};vu.DEFAULT=0,vu.LITERAL_ATTR=1,vu.ANIMATION=2,vu[vu.DEFAULT]="DEFAULT",vu[vu.LITERAL_ATTR]="LITERAL_ATTR",vu[vu.ANIMATION]="ANIMATION";var bu=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===vu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===vu.ANIMATION},enumerable:!0,configurable:!0}),t}(),_u=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,i,o){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?o.push(new li(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,i):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,i))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,i=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(t,e,i);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),o.warnings.forEach(function(t){r._reportError(t,n,Ns.WARNING)}),o.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,i){Ae(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Ns.ERROR),this._parseAnimation(t,e,n,r,i)):i.push(new bu(t,this._exprParser.wrapLiteralPrimitive(e,""),vu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,i,o){var s=!1;t.startsWith("animate-")?(s=!0,t=t.substring("animate-".length)):Ae(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,i,o):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,i,o)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,i){var o=this.parseInterpolation(e,n);return!!o&&(this._parsePropertyAst(t,o,n,r,i),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,i){r.push([t,e.source]),i.push(new bu(t,e,vu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,i){var o=this._parseBinding(e||"null",!1,n);r.push([t,o.source]),i.push(new bu(t,o,vu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var i=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,n),this._checkPipes(i,n),i}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new ai(n.name,vi.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r=null,i=void 0,o=null,s=n.name.split("."),a=void 0;if(s.length>1)if("attr"==s[0]){o=s[1],this._validatePropertyOrAttributeName(o,n.sourceSpan,!0),a=Me(this._schemaRegistry,t,o,!0);var u=o.indexOf(":");u>-1&&(o=c(o.substring(0,u),o.substring(u+1))),i=vi.Attribute}else"class"==s[0]?(o=s[1],i=vi.Class,a=[e.SecurityContext.NONE]):"style"==s[0]&&(r=s.length>2?s[2]:null,o=s[1],i=vi.Style,a=[e.SecurityContext.STYLE]);return null===o&&(o=this._schemaRegistry.getMappedPropName(n.name),a=Me(this._schemaRegistry,t,o,!1),i=vi.Property,this._validatePropertyOrAttributeName(o,n.sourceSpan,!1)),new ai(o,i,a[0],n.expression,r,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Ae(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=d(t,[t,""]),o=i[0],s=i[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new ui(o,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=h(t,[null,t]),s=o[0],a=o[1],u=this._parseAction(e,n);r.push([t,u.source]),i.push(new ui(a,s,null,u,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof ho?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ns.ERROR),this._targetErrors.push(new js(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var i=r[n];this._reportError(i.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new wu;t.visit(r),r.pipes.forEach(function(t,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new Ds(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Ns.ERROR)},t}(),wu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return n(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(jo),Cu="select",Eu="link",xu="rel",Su="href",Pu="stylesheet",Ou="style",ku="script",Tu="ngNonBindable",Au="ngProjectAs",Mu={};Mu.NG_CONTENT=0,Mu.STYLE=1,Mu.STYLESHEET=2,Mu.SCRIPT=3,Mu.OTHER=4,Mu[Mu.NG_CONTENT]="NG_CONTENT",Mu[Mu.STYLE]="STYLE",Mu[Mu.STYLESHEET]="STYLESHEET",Mu[Mu.SCRIPT]="SCRIPT",Mu[Mu.OTHER]="OTHER";var Ru=function(){function t(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return t}(),Iu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Du="template",Nu="class",ju=Ti.parse("*")[0],Lu="The <template> element is deprecated. Use <ng-template> instead",Fu={},Vu=new e.InjectionToken("TemplateTransforms"),Bu=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return n(e,t),e}(js),Uu=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),Hu=function(){function t(t,e,n,r,i,o,s){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return t.prototype.parse=function(t,e,n,r,i,o){var s=this.tryParse(t,e,n,r,i,o),a=s.errors.filter(function(t){return t.level===Ns.WARNING}).filter(De(["The template attribute is deprecated. Use an ng-template element instead.",Lu])),u=s.errors.filter(function(t){return t.level===Ns.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0)throw v("Template parse errors:\n"+u.join("\n"),u);return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t))),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,i,o){var s,a=t.errors,u=[];if(t.rootNodes.length>0){var c=Fe(n),l=Fe(i),p=new lu(this._reflector,e),h=void 0;e.template&&e.template.interpolation&&(h={start:e.template.interpolation[0],end:e.template.interpolation[1]});var d=new _u(this._exprParser,h,this._schemaRegistry,l,a),f=new zu(this._reflector,this._config,p,c,d,this._schemaRegistry,o,a);s=ht(f,t.rootNodes,Ku),a.push.apply(a,p.errors),u.push.apply(u,d.getUsedPipes())}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,a),a.length>0?new Uu(s,u,a):(this.transforms&&this.transforms.forEach(function(t){s=r(t,s)}),new Uu(s,u,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=ve(t.rootNodes);n.push.apply(n,r.errors),t=new Zs(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return bs.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Bu('Reference "#'+r+'" is defined several times',t.sourceSpan,Ns.ERROR);e.push(i)}})})},t}();Hu.decorators=[{type:W}],Hu.ctorParameters=function(){return[{type:ao},{type:so},{type:Ts},{type:du},{type:nu},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Vu]}]}]};var zu=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new Ai,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Ti.parse(t.selector);u.selectorMatcher.addSelectables(n,t),u.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(ju),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new oi(r,n,t.sourceSpan):new ii(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new si(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,i=t.name,o=Re(t);if(o.type===Mu.SCRIPT||o.type===Mu.STYLE)return null;if(o.type===Mu.STYLESHEET&&ke(o.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],d=[],f=!1,m=[],y=Be(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Ns.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,s,a,l,u,c),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,Ns.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var g=null!=e;g&&(f&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),f=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,d)),i||g||(m.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var g=je(i,s),v=this._parseDirectives(this.selectorMatcher,g),b=v.directives,_=v.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,b,a,u,t.sourceSpan,w,C),x=this._createElementPropertyAsts(t.name,a,C),S=e.isTemplateElement||f,P=new pu(this.providerViewContext,e.providerContext,S,E,m,w,y,r,t.sourceSpan),O=ht(o.nonBindable?$u:this,t.children,Wu.create(y,E,y?e.providerContext:P));P.afterElement();var k,T=null!=o.projectAs?Ti.parse(o.projectAs)[0]:g,A=e.findNgContentIndex(T);if(o.type===Mu.NG_CONTENT)t.children&&!t.children.every(Le)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),k=new gi(this.ngContentCount++,f?null:A,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,x,t.sourceSpan),k=new hi(m,l,w,c,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,O,f?null:A,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(E,t.sourceSpan);var M=f?null:e.findNgContentIndex(T);k=new pi(i,m,x,l,w,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,O,f?null:M,t.sourceSpan,t.endSourceSpan||null)}if(f){var R=this.contentQueryStartId,I=je(Du,h),D=this._parseDirectives(this.selectorMatcher,I).directives,N=new Set,j=this._createDirectiveAsts(!0,t.name,D,p,[],t.sourceSpan,[],N),L=this._createElementPropertyAsts(t.name,p,N);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var F=new pu(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],!0,R,t.sourceSpan);F.afterElement(),k=new hi([],[],[],d,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[k],A,t.sourceSpan)}return k},t.prototype._parseAttr=function(t,e,n,r,i,o,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(Iu),p=!1;if(null!==l)if(p=!0,null!=l[1])this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r);else if(l[2])if(t){h=l[7];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[3]){var h=l[7];this._parseReference(h,u,c,o)}else l[4]?this._bindingParser.parseEvent(l[7],u,c,n,i):l[5]?(this._bindingParser.parsePropertyBinding(l[7],u,!1,c,n,r),this._parseAssignmentEvent(l[7],u,c,n,i)):l[6]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[8]?(this._bindingParser.parsePropertyBinding(l[8],u,!1,c,n,r),this._parseAssignmentEvent(l[8],u,c,n,i)):l[9]?this._bindingParser.parsePropertyBinding(l[9],u,!1,c,n,r):l[10]&&this._bindingParser.parseEvent(l[10],u,c,n,i);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new li(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Gu(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Ds(o.start,o.end,"Directive "+S(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var d=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),i.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new ci(e.name,ye(t.type.reference),e.sourceSpan)),c.add(e.name))});var f=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new fi(t,p,h,d,f,n)});return i.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=ge(u.reflector,iu.TemplateRef)),s.push(new ci(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],s=i.get(o);s&&(r.add(s.name),Ve(s.expression)||n.push(new di(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return S(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===vi.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module.\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!Ve(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Ns.ERROR),this._targetErrors.push(new js(e,t,n))},t}(),qu=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=Re(t);if(n.type===Mu.SCRIPT||n.type===Mu.STYLE||n.type===Mu.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=je(t.name,r),o=e.findNgContentIndex(i),s=ht(this,t.children,Ku);return new pi(t.name,ht(this,t.attrs),[],[],[],[],[],!1,[],s,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new si(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(ju);return new ii(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Gu=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Wu=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var i=new Ai,o=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++)"*"===a[u]?o=u:i.addSelectables(Ti.parse(a[u]),u);return new t(e,i,o,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Ku=new Wu(!0,new Ai,null,null),$u=new qu,Yu=function(){function t(){}return t.prototype.get=function(t){return""},t}(),Xu={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Qu=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=$e(t,n));var r=Ge(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Zu.Scheme]){var o=r[Zu.Path];return i=i.replace(/\/+$/,""),o=o.replace(/^\/+/,""),i+"/"+o}return n},t}();Qu.decorators=[{type:W}],Qu.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Ju=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Zu={};Zu.Scheme=1,Zu.UserInfo=2,Zu.Domain=3,Zu.Port=4,Zu.Path=5,Zu.QueryData=6,Zu.Fragment=7,Zu[Zu.Scheme]="Scheme",Zu[Zu.UserInfo]="UserInfo",Zu[Zu.Domain]="Domain",Zu[Zu.Port]="Port",Zu[Zu.Path]="Path",Zu[Zu.QueryData]="QueryData",Zu[Zu.Fragment]="Fragment";var tc=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)})}},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n=this;if(y(t.template)){if(y(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")}else{if(!y(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")}return Ni.then(this.normalizeTemplateOnly(t),function(t){return n.normalizeExternalStylesheets(t)})},t.prototype.normalizeTemplateOnly=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),Ni.then(e,function(e){return r.normalizeLoadedTemplate(t,e,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var i=!!t.template,o=bs.fromArray(t.interpolation),s=this._htmlParser.parse(n,L({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:i,templateUrl:r}),!0,o);if(s.errors.length>0)throw v("Template parse errors:\n"+s.errors.join("\n"));var a=this.normalizeStylesheet(new Zi({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),u=new ec;ht(u,s.rootNodes);var c=this.normalizeStylesheet(new Zi({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:r})),l=t.encapsulation;null==l&&(l=this._config.defaultEncapsulation);var p=a.styles.concat(c.styles),h=a.styleUrls.concat(c.styleUrls);return l===e.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(l=e.ViewEncapsulation.None),new to({encapsulation:l,template:n,templateUrl:r,styles:p,styleUrls:h,ngContentSelectors:u.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:i,externalStylesheets:[]})},t.prototype.normalizeExternalStylesheets=function(t){return Ni.then(this._loadMissingExternalStylesheets(t.styleUrls),function(e){return new to({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Ni.then(Ni.all(t.filter(function(t){return!e.has(t)}).map(function(t){return Ni.then(n._fetch(t),function(r){var i=n.normalizeStylesheet(new Zi({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter(ke).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i=Te(e._urlResolver,n,t);return r.push.apply(r,i.styleUrls),i.style});return new Zi({styles:i,styleUrls:r,moduleUrl:n})},t}();tc.decorators=[{type:W}],tc.ctorParameters=function(){return[{type:Yu},{type:Qu},{type:Za},{type:ao}]};var ec=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=Re(t);switch(n.type){case Mu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Mu.STYLE:var r="";t.children.forEach(function(t){t instanceof Fs&&(r+=t.value)}),this.styles.push(r);break;case Mu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,ht(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){ht(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){ht(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),nc=function(){function t(t){this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Ye)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=Xe(r,Ye);if(i){var o=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(i,o,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var i=[],o=[],s={},a={};return Object.keys(n).forEach(function(t){var r=Xe(n[t],function(t){return t instanceof e.Input});r&&(r.bindingPropertyName?i.push(t+": "+r.bindingPropertyName):i.push(t));var u=Xe(n[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?o.push(t+": "+u.bindingPropertyName):o.push(t)),n[t].filter(function(t){return t&&t instanceof e.HostBinding}).forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t}),n[t].filter(function(t){return t&&t instanceof e.HostListener}).forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=Xe(n[t],function(t){return t instanceof e.Query});c&&(a[t]=c)}),this._merge(t,i,o,s,a,r)},t.prototype._extractPublicName=function(t){return h(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var i=t[r],o=this._extractPublicName(i);e.has(o)||(e.add(o),n.push(i))}return n.reverse()},t.prototype._merge=function(t,n,r,i,o,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),u=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),c=t.host?Object.assign({},t.host,i):i,l=t.queries?Object.assign({},t.queries,o):o;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();nc.decorators=[{type:W}],nc.ctorParameters=function(){return[{type:so}]};var rc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,ic=/\.ngfactory\.|\.ngsummary\./,oc=/\.ngsummary\./,sc=/NgSummary$/,ac={};ac.OnInit=0,ac.OnDestroy=1,ac.DoCheck=2,ac.OnChanges=3,ac.AfterContentInit=4,ac.AfterContentChecked=5,ac.AfterViewInit=6,ac.AfterViewChecked=7,ac[ac.OnInit]="OnInit",ac[ac.OnDestroy]="OnDestroy",ac[ac.DoCheck]="DoCheck",ac[ac.OnChanges]="OnChanges",ac[ac.AfterContentInit]="AfterContentInit",ac[ac.AfterContentChecked]="AfterContentChecked",ac[ac.AfterViewInit]="AfterViewInit",ac[ac.AfterViewChecked]="AfterViewChecked";var uc=[ac.OnInit,ac.OnDestroy,ac.DoCheck,ac.OnChanges,ac.AfterContentInit,ac.AfterContentChecked,ac.AfterViewInit,ac.AfterViewChecked],cc=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(ln)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=Xe(this._reflector.annotations(t),ln);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();cc.decorators=[{type:W}],cc.ctorParameters=function(){return[{type:so}]};var lc=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(pn)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var i=Xe(r,pn);if(i)return i}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();lc.decorators=[{type:W}],lc.ctorParameters=function(){return[{type:so}]};var pc=function(){function t(){}return t.prototype.isLibraryFile=function(t){},t.prototype.getLibraryFileName=function(t){},t.prototype.resolveSummary=function(t){},t.prototype.getSymbolsOf=function(t){},t.prototype.getImportAs=function(t){},t.prototype.addSummary=function(t){},t}(),hc=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();hc.decorators=[{type:W}],hc.ctorParameters=function(){return[]};var dc=new e.InjectionToken("ErrorCollector"),fc=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this._config=t,this._ngModuleResolver=e,this._directiveResolver=n,this._pipeResolver=r,this._summaryResolver=i,this._schemaRegistry=o,this._directiveNormalizer=s,this._console=a,this._staticSymbolCache=u,this._reflector=c,this._errorCollector=l,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.getReflector=function(){return this._reflector},t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,i=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return i.setDelegate=function(t){r=t,i.prototype=t.prototype},i.overriddenName=n,i},t.prototype.getGeneratedClass=function(t,e){return t instanceof wi?this._staticSymbolCache.get(Qe(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,O(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,T(t))},t.prototype.getHostComponentType=function(t){var e=S({reference:t})+"_Host";if(t instanceof wi)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof wi?this._staticSymbolCache.get(Qe(t.filePath),k(t)):{}},t.prototype.getComponentFactory=function(t,n,r,i){if(n instanceof wi)return this._staticSymbolCache.get(Qe(n.filePath),A(n));var o=this.getHostComponentViewClass(n);return e.ɵccf(t,n,o,r,i,[])},t.prototype.initComponentFactory=function(t,e){t instanceof wi||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n||null)}return n&&n.summaryKind===e?n:null},t.prototype.loadDirectiveMetadata=function(t,n,r){var i=this;if(this._directiveCache.has(n))return null;n=e.resolveForwardRef(n);var o=this.getNonNormalizedDirectiveMetadata(n),s=o.annotation,a=o.metadata,u=function(t){var e=new eo({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&&i.initComponentFactory(a.componentFactory,t.ngContentSelectors),i._directiveCache.set(n,e),i._summaryCache.set(n,e.toSummary()),null};if(a.isComponent){var c=a.template,l=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:this._reflector.componentModuleUrl(n,s),encapsulation:c.encapsulation,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,animations:c.animations,interpolation:c.interpolation});return e.ɵisPromise(l)&&r?(this._reportError(vn(n),n),null):Ni.then(l,u)}return u(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(!(t=e.resolveForwardRef(t)))return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var i=this._directiveResolver.resolve(t,!1);if(!i)return null;var o=void 0;if(i instanceof e.Component){K("styles",i.styles),K("styleUrls",i.styleUrls),$("interpolation",i.interpolation);var s=i.animations;o=new to({encapsulation:g(i.encapsulation),template:g(i.template),templateUrl:g(i.templateUrl),styles:i.styles||[],styleUrls:i.styleUrls||[],animations:s||[],interpolation:g(i.interpolation),isInline:!!i.template,externalStylesheets:[],ngContentSelectors:[]})}var a=null,u=[],c=[],l=i.selector;i instanceof e.Component?(a=i.changeDetection,i.viewProviders&&(u=this._getProvidersMetadata(i.viewProviders,c,'viewProviders for "'+gn(t)+'"',[],t)),i.entryComponents&&(c=fn(i.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(v("Directive "+gn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=i.providers&&(p=this._getProvidersMetadata(i.providers,c,'providers for "'+gn(t)+'"',[],t));var h=[],d=[];null!=i.queries&&(h=this._getQueriesMetadata(i.queries,!1,t),d=this._getQueriesMetadata(i.queries,!0,t));var f=eo.create({isHost:!1,selector:l,exportAs:g(i.exportAs),isComponent:!!o,type:this._getTypeMetadata(t),template:o,changeDetection:a,inputs:i.inputs||[],outputs:i.outputs||[],host:i.host||{},providers:p||[],viewProviders:u||[],queries:h||[],viewQueries:d||[],entryComponents:c,componentViewType:o?this.getComponentViewClass(t):null,rendererType:o?this.getRendererType(t):null,componentFactory:null});return o&&(f.componentFactory=this.getComponentFactory(l,t,f.inputs,f.outputs)),r={metadata:f,annotation:i},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(v("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+gn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Ji.Directive);return e||this._reportError(v("Illegal state: Could not load the summary for directive "+gn(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,Ji.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,Ji.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,Ji.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Ji.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);(e=n?n.toSummary():null)&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,n);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],d=[],f=[];o.imports&&fn(o.imports).forEach(function(e){var n=void 0;if(mn(e))n=e;else if(e&&e.ngModule){var i=e;n=i.ngModule,i.providers&&p.push.apply(p,r._getProvidersMetadata(i.providers,h,"provider for the NgModule '"+gn(n)+"'",[],e))}if(n){if(!r._checkSelfImport(t,n)){var o=r.getNgModuleSummary(n);o?c.push(o):r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+gn(e)+"' imported by the module '"+gn(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(v("Unexpected value '"+gn(e)+"' imported by the module '"+gn(t)+"'"),t)}),o.exports&&fn(o.exports).forEach(function(e){if(mn(e)){var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))}else r._reportError(v("Unexpected value '"+gn(e)+"' exported by the module '"+gn(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(c,l);o.declarations&&fn(o.declarations).forEach(function(e){if(mn(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))m.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(v("Unexpected "+r._getTypeDescriptor(e)+" '"+gn(e)+"' declared by the module '"+gn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}}else r._reportError(v("Unexpected value '"+gn(e)+"' declared by the module '"+gn(t)+"'"),t)});var y=[],g=[];return a.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(v("Can't export "+r._getTypeDescriptor(e.reference)+" "+gn(e.reference)+" from "+gn(t)+" as it was neither declared nor imported!"),t);g.push(e),m.addExportedPipe(e)}}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+gn(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,fn(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&fn(o.bootstrap).forEach(function(e){mn(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(v("Unexpected value '"+gn(e)+"' used in the bootstrap property of module '"+gn(t)+"'"),t)}),h.push.apply(h,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&f.push.apply(f,fn(o.schemas)),i=new ro({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:f,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:m,id:o.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(v("'"+gn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this.isDirective(t)?"directive":this.isPipe(t)?"pipe":this.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(v("Type "+gn(t)+" is part of the declarations of 2 modules: "+gn(n)+" and "+gn(e)+"! Please consider moving "+gn(t)+" to a higher module that imports "+gn(n)+" and "+gn(e)+". You can also create a new NgModule that exports and includes "+gn(t)+" then import that NgModule in "+gn(n)+" and "+gn(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new io,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var i=R(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=t.module.reference;!e.has(i)&&o.has(s)||(o.add(s),e.add(i),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Ji.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Ji.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r=this._getIdentifierMetadata(t);return{reference:r.reference,diDeps:this._getDependenciesMetadata(r.reference,e,n),lifecycleHooks:un(this._reflector,r.reference)}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(v("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+gn(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Ji.Pipe);return e||this._reportError(v("Illegal state: Could not load the summary for pipe "+gn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new no({type:this._getTypeMetadata(t),name:n.name,pure:!!n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var i=this;void 0===r&&(r=!0);var o=!1,s=(n||this._reflector.parameters(t)||[]).map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:mn(t)&&null==c&&(c=t)}):c=t,null==c?(o=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:i._getTokenMetadata(c)}});if(o){var a=s.map(function(t){return t?gn(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+gn(t)+": ("+a+").";r?this._reportError(v(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v5.x")}return s},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=e.resolveForwardRef(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,i,o){var s=this;return void 0===i&&(i=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,i);else{var c=void 0;if((a=e.resolveForwardRef(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new oo(a.provide,a);else{if(!mn(a)){if(void 0===a)return void s._reportError(v("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n<u?t.push(""+gn(e)):n==u?t.push("?"+gn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");return void s._reportError(v("Invalid "+(r||"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),o)}c=new oo(a,{useClass:a})}c.token===s._reflector.resolveExternalReference(iu.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,o)):i.push(s.getProviderMetadata(c))}}),i},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(v("Invalid provider for "+gn(t.provide)+". useClass cannot be "+t.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],i=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(yn(t.useValue,i),i.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(v("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Ji.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw v(t.name+" cannot be used as an entry component.");return null},t.prototype.getProviderMetadata=function(t){var e=void 0,n=null,r=null,i=this._getTokenMetadata(t.token);return t.useClass?(e=(n=this._getInjectableMetadata(t.useClass,t.dependencies)).diDeps,t.token===t.useClass&&(i={identifier:n})):t.useFactory&&(e=(r=this._getFactoryMetadata(t.useFactory,t.dependencies)).diDeps),{token:i,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):void 0,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,i=[];return Object.keys(t).forEach(function(o){var s=t[o];s.isViewQuery===e&&i.push(r._getQueryMetadata(s,o,n))}),i},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,i=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return i._getTokenMetadata(t)}):t.selector?r=[this._getTokenMetadata(t.selector)]:(this._reportError(v("Can't construct a query for the property \""+e+'" of "'+gn(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();fc.decorators=[{type:W}],fc.ctorParameters=function(){return[{type:ao},{type:cc},{type:nc},{type:lc},{type:pc},{type:du},{type:tc},{type:e.ɵConsole},{type:Ci,decorators:[{type:e.Optional}]},{type:so},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[dc]}]}]};var mc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Di),yc={};yc.Const=0,yc[yc.Const]="Const";var gc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),vc={};vc.Dynamic=0,vc.Bool=1,vc.String=2,vc.Int=3,vc.Number=4,vc.Function=5,vc.Inferred=6,vc[vc.Dynamic]="Dynamic",vc[vc.Bool]="Bool",vc[vc.String]="String",vc[vc.Int]="Int",vc[vc.Number]="Number",vc[vc.Function]="Function",vc[vc.Inferred]="Inferred";var bc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(gc),_c=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(gc),wc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(gc),Cc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e||null,r}return n(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(gc),Ec=new bc(vc.Dynamic),xc=new bc(vc.Inferred),Sc=new bc(vc.Bool),Pc=(new bc(vc.Int),new bc(vc.Number),new bc(vc.String),new bc(vc.Function),{});Pc.Equals=0,Pc.NotEquals=1,Pc.Identical=2,Pc.NotIdentical=3,Pc.Minus=4,Pc.Plus=5,Pc.Divide=6,Pc.Multiply=7,Pc.Modulo=8,Pc.And=9,Pc.Or=10,Pc.Lower=11,Pc.LowerEquals=12,Pc.Bigger=13,Pc.BiggerEquals=14,Pc[Pc.Equals]="Equals",Pc[Pc.NotEquals]="NotEquals",Pc[Pc.Identical]="Identical",Pc[Pc.NotIdentical]="NotIdentical",Pc[Pc.Minus]="Minus",Pc[Pc.Plus]="Plus",Pc[Pc.Divide]="Divide",Pc[Pc.Multiply]="Multiply",Pc[Pc.Modulo]="Modulo",Pc[Pc.And]="And",Pc[Pc.Or]="Or",Pc[Pc.Lower]="Lower",Pc[Pc.LowerEquals]="LowerEquals",Pc[Pc.Bigger]="Bigger",Pc[Pc.BiggerEquals]="BiggerEquals";var Oc=function(){function t(t,e){this.type=t||null,this.sourceSpan=e||null}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new Kc(this,t,null,e)},t.prototype.key=function(t,e,n){return new $c(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new Dc(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new Nc(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return new jc(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new Bc(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Wc(Pc.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Wc(Pc.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Wc(Pc.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Wc(Pc.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Wc(Pc.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Wc(Pc.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Wc(Pc.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Wc(Pc.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Wc(Pc.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Wc(Pc.And,this,t,null,e)},t.prototype.or=function(t,e){return new Wc(Pc.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Wc(Pc.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Wc(Pc.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Wc(Pc.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Wc(Pc.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(tl,t)},t.prototype.cast=function(t,e){return new zc(this,t,e)},t.prototype.toStmt=function(){return new ol(this,null)},t}(),kc={};kc.This=0,kc.Super=1,kc.CatchError=2,kc.CatchStack=3,kc[kc.This]="This",kc[kc.Super]="Super",kc[kc.CatchError]="CatchError",kc[kc.CatchStack]="CatchStack";var Tc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return"string"==typeof e?(i.name=e,i.builtin=null):(i.name=null,i.builtin=e),i}return n(e,t),e.prototype.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 Ac(this.name,t,null,this.sourceSpan)},e}(Oc),Ac=function(t){function e(e,n,r,i){var o=t.call(this,r||n.type,i)||this;return o.name=e,o.value=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return new rl(this.name,this.value,t,e,this.sourceSpan)},e}(Oc),Mc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.index=n,s.value=r,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(Oc),Rc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||r.type,o)||this;return s.receiver=e,s.name=n,s.value=r,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(Oc),Ic={};Ic.ConcatArray=0,Ic.SubscribeObservable=1,Ic.Bind=2,Ic[Ic.ConcatArray]="ConcatArray",Ic[Ic.SubscribeObservable]="SubscribeObservable",Ic[Ic.Bind]="Bind";var Dc=function(t){function e(e,n,r,i,o){var s=t.call(this,i,o)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(Oc),Nc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.fn=e,o.args=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(Oc),jc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.classExpr=e,o.args=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(Oc),Lc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(Oc),Fc=function(t){function e(e,n,r,i){void 0===r&&(r=null);var o=t.call(this,n,i)||this;return o.value=e,o.typeParams=r,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(Oc),Vc=function(){function t(t,e,n){this.moduleName=t,this.name=e,this.runtime=n}return t}(),Bc=function(t){function e(e,n,r,i,o){void 0===r&&(r=null);var s=t.call(this,i||n.type,o)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(Oc),Uc=function(t){function e(e,n){var r=t.call(this,Sc,n)||this;return r.condition=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(Oc),Hc=function(t){function e(e,n){var r=t.call(this,e.type,n)||this;return r.condition=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitAssertNotNullExpr(this,e)},e}(Oc),zc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.value=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(Oc),qc=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),Gc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.params=e,o.statements=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new il(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(Oc),Wc=function(t){function e(e,n,r,i,o){var s=t.call(this,i||n.type,o)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(Oc),Kc=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.name=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new Rc(this.receiver,this.name,t,null,this.sourceSpan)},e}(Oc),$c=function(t){function e(e,n,r,i){var o=t.call(this,r,i)||this;return o.receiver=e,o.index=n,o}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new Mc(this.receiver,this.index,t,null,this.sourceSpan)},e}(Oc),Yc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(Oc),Xc=function(){function t(t,e,n){this.key=t,this.value=e,this.quoted=n}return t}(),Qc=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.entries=e,i.valueType=null,n&&(i.valueType=n.valueType),i}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(Oc),Jc=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return n(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(Oc),Zc=(new Tc(kc.This,null,null),new Tc(kc.Super,null,null),new Tc(kc.CatchError,null,null),new Tc(kc.CatchStack,null,null),new Lc(null,null,null)),tl=new Lc(null,xc,null),el={};el.Final=0,el.Private=1,el.Exported=2,el[el.Final]="Final",el[el.Private]="Private",el[el.Exported]="Exported";var nl=function(){function t(t,e){this.modifiers=t||[],this.sourceSpan=e||null}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return-1!==this.modifiers.indexOf(t)},t}(),rl=function(t){function e(e,n,r,i,o){void 0===i&&(i=null);var s=t.call(this,i,o)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(nl),il=function(t){function e(e,n,r,i,o,s){void 0===o&&(o=null);var a=t.call(this,o,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=i||null,a}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(nl),ol=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(nl),sl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(nl),al=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}(),ul=function(t){function e(e,n,r,i,o){void 0===o&&(o=null);var s=t.call(this,i,o)||this;return s.name=e,s.params=n,s.body=r,s}return n(e,t),e}(al),cl=function(t){function e(e,n,r,i){void 0===i&&(i=null);var o=t.call(this,r,i)||this;return o.name=e,o.body=n,o}return n(e,t),e}(al),ll=function(t){function e(e,n,r,i,o,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=i,c.constructorMethod=o,c.methods=s,c}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(nl),pl=function(t){function e(e,n,r,i){void 0===r&&(r=[]);var o=t.call(this,null,i)||this;return o.condition=e,o.trueCase=n,o.falseCase=r,o}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(nl),hl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.comment=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitCommentStmt(this,e)},e}(nl),dl=function(t){function e(e,n,r){var i=t.call(this,null,r)||this;return i.bodyStmts=e,i.catchStmts=n,i}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(nl),fl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return n(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(nl),ml=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new Ac(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new Mc(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 Rc(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new Dc(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new Nc(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 jc(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 Bc(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 Uc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitAssertNotNullExpr=function(t,e){return this.transformExpr(new Hc(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new zc(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new Gc(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Wc(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 Kc(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new $c(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 Yc(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Xc(t.key,t.value.visitExpression(n,e),t.quoted)}),i=new Cc(t.valueType,null);return this.transformExpr(new Qc(r,i,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Jc(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new rl(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new il(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 ol(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new sl(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),i=t.getters.map(function(t){return new cl(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),o=t.constructorMethod&&new ul(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 ul(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new ll(t.name,r,t.fields,i,o,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new pl(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 dl(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new fl(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),yl=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return n(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return t.name&&this.varNames.add(t.name),null},e}(function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}()),gl=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return n(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||((t=this._clone(t)).sourceSpan=this.sourceSpan),t},e}(ml),vl=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return Pn(t.map(function(t){return m(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new Xc(e,m(t[e],n,null),i.has(e)))}),new Qc(r,e)},t.prototype.visitPrimitive=function(t,e){return Mn(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Oc?t:this.ctx.importExpr(t)},t}(),bl=function(){function t(t){this.ngModuleFactoryVar=t}return t}(),_l=Cn("_l"),wl=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r=pt("NgModule",e.type),i=e.transitiveModule.entryComponents,o=e.bootstrapComponents,s=new hu(this.reflector,e,n,r),a=[Vn(this.reflector,t,0,i)].concat(s.parse().map(function(e){return In(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return En(iu.moduleProviderDef).callFn([Mn(r),i,e,n])}),u=En(iu.moduleDef).callFn([Pn(a)]),c=An([new qc(_l.name)],[new sl(u)],xc),l=S(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,En(iu.createModuleFactory).callFn([t.importExpr(e.type.reference),Pn(o.map(function(e){return t.importExpr(e.reference)})),c])),e.id){var p=En(iu.RegisterModuleFactoryFn).callFn([Mn(e.id),Cn(l)]).toStmt();t.statements.push(p)}return new bl(l)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,Zc)},t.prototype._createNgModuleFactory=function(t,e,n){var r=Cn(S({reference:e})+"NgFactory").set(n).toDeclStmt(xn(iu.NgModuleFactory,[Sn(t.importExpr(e))],[yc.Const]),[el.Final,el.Exported]);t.statements.push(r)},t}();wl.decorators=[{type:W}],wl.ctorParameters=function(){return[{type:so}]};var Cl=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(i,o){e.set(i,o),n.push(i),r.push(t.sourcesContent.get(i)||null)});var i="",o=0,s=0,a=0,u=0;return this.lines.forEach(function(t){o=0,i+=t.map(function(t){var n=Un(t.col0-o);return o=t.col0,null!=t.sourceUrl&&(n+=Un(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=Un(t.sourceLine0-a),a=t.sourceLine0,n+=Un(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},t.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+Bn(JSON.stringify(this,null,0)):""},t}(),El="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",xl=/'|\\|\n|\r|\$/g,Sl=/^[$A-Z_][0-9A-Z_$]*$/i,Pl=" ",Ol=Cn("error",null,null),kl=Cn("stack",null,null),Tl=function(){function t(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}return t}(),Al=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Tl(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*Pl.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Tl(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?qn(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new Cl(e),i=!1,o=function(){i||(r.addSource(t," ").addMapping(0,t,0,0),i=!0)},s=0;s<n;s++)r.addLine(),o();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*Pl.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?i=!0:o();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},t.prototype.setPreambleLineCount=function(t){return this._preambleLineCount=t},t.prototype.spanOf=function(t,e){var n=this._lines[t-this._preambleLineCount];if(n)for(var r=e-n.indent,i=0;i<n.parts.length;i++){var o=n.parts[i];if(o.length>r)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),Ml=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case kc.Super:n="super";break;case kc.This:n="this";break;case kc.CatchError:n=Ol.name;break;case kc.CatchStack:n=kl.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,zn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Pc.Equals:n="==";break;case Pc.Identical:n="===";break;case Pc.NotEquals:n="!=";break;case Pc.NotIdentical:n="!==";break;case Pc.And:n="&&";break;case Pc.Or:n="||";break;case Pc.Plus:n="+";break;case Pc.Minus:n="-";break;case Pc.Divide:n="/";break;case Pc.Multiply:n="*";break;case Pc.Modulo:n="%";break;case Pc.Lower:n="<";break;case Pc.LowerEquals:n="<=";break;case Pc.Bigger:n=">";break;case Pc.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,zn(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o<e.length;o++)o>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Rl=function(){function t(){}return t.prototype.emitStatementsAndContext=function(t,e,n,r,i){void 0===r&&(r=""),void 0===i&&(i=!0);var o=new Il,s=Al.createRoot();o.visitAllStatements(n,s);var a=r?r.split("\n"):[];o.reexports.forEach(function(t,e){var n=t.map(function(t){return t.name+" as "+t.as}).join(",");a.push("export {"+n+"} from '"+e+"';")}),o.importsWithPrefixes.forEach(function(t,e){a.push("import * as "+t+" from '"+e+"';")});var u=i?s.toSourceMapGenerator(t,e,a.length).toJsComment():"",c=a.concat([s.toSource(),u]);return u&&c.push(""),s.setPreambleLineCount(a.length),{sourceText:c.join("\n"),context:s}},t.prototype.emitStatements=function(t,e,n,r){return void 0===r&&(r=""),this.emitStatementsAndContext(t,e,n,r).sourceText},t}(),Il=function(t){function e(){var e=t.call(this,!1)||this;return e.typeExpression=0,e.importsWithPrefixes=new Map,e.reexports=new Map,e}return n(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=xc?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitAssertNotNullExpr=function(e,n){var r=t.prototype.visitAssertNotNullExpr.call(this,e,n);return n.print(e,"!"),r},e.prototype.visitDeclareVarStmt=function(t,e){if(t.hasModifier(el.Exported)&&t.value instanceof Fc&&!t.type){var n=t.value.value,r=n.name,i=n.moduleName;if(i){var o=this.reexports.get(i);return o||(o=[],this.reexports.set(i,o)),o.push({name:r,as:t.name}),null}}return t.hasModifier(el.Exported)&&e.print(t,"export "),t.hasModifier(el.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),t.hasModifier(el.Exported)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(el.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(el.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(el.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return t.hasModifier(el.Exported)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Ol.name+") {"),e.incIndent();var n=[kl.set(Ol.prop("stack",null)).toDeclStmt(null,[el.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case vc.Bool:n="boolean";break;case vc.Dynamic:n="any";break;case vc.Function:n="Function";break;case vc.Number:case vc.Int:n="number";break;case vc.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ic.ConcatArray:e="concat";break;case Ic.SubscribeObservable:e="subscribe";break;case Ic.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(o){var s=this.importsWithPrefixes.get(o);null==s&&(s="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,s)),n.print(null,s+".")}n.print(null,i),this.typeExpression>0&&(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))},e.prototype._printColonType=function(t,e,n){t!==xc&&(e.print(null,":"),this.visitType(t,e,n))},e}(Ml),Dl={};Wn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Wn(e.SecurityContext.STYLE,["*|style"]),Wn(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"]),Wn(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 Nl="boolean",jl="number",Ll="string",Fl="object",Vl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Bl={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ul=function(t){function r(){var e=t.call(this)||this;return e._schema={},Vl.forEach(function(t){var n={},r=t.split("|"),i=r[0],o=r[1].split(","),s=i.split("^"),a=s[0],u=s[1];a.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var c=u&&e._schema[u.toLowerCase()];c&&Object.keys(c).forEach(function(t){n[t]=c[t]}),o.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Nl;break;case"#":n[t.substring(1)]=jl;break;case"%":n[t.substring(1)]=Fl;break;default:n[t]=Ll}})}),e}return n(r,t),r.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[n]},r.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if(o(t)||s(t))return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},r.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var i=Dl[t+"|"+n];return i||((i=Dl["*|"+n])||e.SecurityContext.NONE)},r.prototype.getMappedPropName=function(t){return Bl[t]||t},r.prototype.getDefaultComponentElementName=function(){return"ng-component"},r.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=...\nIf '"+t+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},r.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},r.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},r.prototype.normalizeAnimationStyleProperty=function(t){return p(t)},r.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",i=n.toString().trim(),o=null;if(Kn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(o="Please provide a CSS unit value for "+e+":"+n)}return{error:o,value:i+r}},r}(du);Ul.decorators=[{type:W}],Ul.ctorParameters=function(){return[]};var Hl=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=Yn(t);return t=$n(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(ql,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(Gl,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),(t=t+"\n"+r).trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(Wl.lastIndex=0;null!==(e=Wl.exec(t));)n+=e[0].replace(e[2],"").replace(e[1],e[4])+"\n\n";return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,Xl,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Ql,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),i=[],o=0;o<r.length;o++){var s=r[o].trim();if(!s)break;i.push(n(Jl,s,t[3]))}return i.join(",")}return Jl+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Kl)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Kl,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return tp.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Xn(t,function(t){var i=t.selector,o=t.content;return"@"!=t.selector[0]?i=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(o=r._scopeSelectors(t.content,e,n)),new dp(i,o)})},t.prototype._scopeSelector=function(t,e,n,r){var i=this;return t.split(",").map(function(t){return t.trim().split(ep)}).map(function(t){var o=t[0],s=t.slice(1);return[function(t){return i._selectorNeedsScoping(t,e)?r?i._applyStrictSelectorScope(t,e,n):i._applySelectorScope(t,e,n):t}(o)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){return!this._makeScopeMatcher(e).test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+np,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(rp.lastIndex=0,rp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Zl,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,i){return e+r+n+i})}).replace(rp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){for(var r,i=this,o=/\[is=([^\]]*)\]/g,s="["+(e=e.replace(o,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]}))+"]",a=function(t){var r=t.trim();if(!r)return"";if(t.indexOf(Jl)>-1)r=i._applySimpleSelectorScope(t,e,n);else{var o=t.replace(rp,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},u=new zl(t),c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=(t=u.content()).indexOf(Jl);null!==(r=p.exec(t));){var d=r[1],f=t.slice(l,r.index).trim();c+=(l>=h?a(f):f)+" "+d+" ",l=p.lastIndex}return c+=a(t.substring(l)),u.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(op,$l).replace(ip,Kl)},t}(),zl=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),ql=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Gl=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Wl=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Kl="-shadowcsshost",$l="-shadowcsscontext",Yl=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Xl=new RegExp("("+Kl+Yl,"gim"),Ql=new RegExp("("+$l+Yl,"gim"),Jl=Kl+"-no-combinator",Zl=/-shadowcsshost-no-combinator([^\s]*)/,tp=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],ep=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,np="([>\\s~+[.,{:][\\s\\S]*)?$",rp=/-shadowcsshost/gim,ip=/:host/gim,op=/:host-context/gim,sp=/\/\*\s*[\s\S]*?\*\//g,ap=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,up=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,cp=/([{}])/g,lp="{",pp="}",hp="%BLOCK%",dp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),fp=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),mp=function(){function t(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}return t}(),yp=function(){function t(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}return t}(),gp=function(){function t(t){this._urlResolver=t,this._shadowCss=new Hl}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Zi({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:P(e.type)}),!0)},t.prototype.compileStyles=function(t,e,n){return this._compileStyles(t,e,n,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===e.ViewEncapsulation.Emulated},t.prototype._compileStyles=function(t,e,n,r){var i=this,o=this.needsStyleShim(e),s=n.styles.map(function(t){return Mn(i._shimIfNeeded(t,o))}),a=[];n.styleUrls.forEach(function(e){var n=s.length;s.push(null),a.push(new mp(Jn(null),e,function(e){return s[n]=t.importExpr(e)}))});var u=Jn(r?e:null),c=Cn(u).set(Pn(s,new wc(Ec,[yc.Const]))).toDeclStmt(null,r?[el.Final]:[el.Final,el.Exported]);return t.statements.push(c),new yp(t,u,a,o,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();gp.decorators=[{type:W}],gp.ctorParameters=function(){return[{type:Qu}]};var vp=function(){function t(){}return t}();vp.event=Cn("$event");var bp=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),_p=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),wp={};wp.Statement=0,wp.Expression=1,wp[wp.Statement]="Statement",wp[wp.Expression]="Expression";var Cp=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return n(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new Sp(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new Sp(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new Sp(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(Lo),Ep=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=Pc.Plus;break;case"-":n=Pc.Minus;break;case"*":n=Pc.Multiply;break;case"/":n=Pc.Divide;break;case"%":n=Pc.Modulo;break;case"&&":n=Pc.And;break;case"||":n=Pc.Or;break;case"==":n=Pc.Equals;break;case"!=":n=Pc.NotEquals;break;case"===":n=Pc.Identical;break;case"!==":n=Pc.NotIdentical;break;case"<":n=Pc.Lower;break;case">":n=Pc.Bigger;break;case"<=":n=Pc.LowerEquals;break;case">=":n=Pc.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return ur(e,new Wc(n,this._visit(t.left,wp.Expression),this._visit(t.right,wp.Expression)))},t.prototype.visitChain=function(t,e){return sr(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return ur(e,this._visit(t.condition,wp.Expression).conditional(this._visit(t.trueExp,wp.Expression),this._visit(t.falseExp,wp.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,wp.Expression);return n=t instanceof Sp?t.converter(r):this._visit(t.target,wp.Expression).callFn(r),ur(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return ar(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){ar(e,t);for(var n=[Mn(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(Mn(t.strings[r])),n.push(this._visit(t.expressions[r],wp.Expression));return n.push(Mn(t.strings[t.strings.length-1])),t.expressions.length<=9?En(iu.inlineInterpolate).callFn(n):En(iu.interpolate).callFn([n[0],Pn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):ur(e,this._visit(t.obj,wp.Expression).key(this._visit(t.key,wp.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this._visit(t.obj,wp.Expression),r=this._visit(t.key,wp.Expression),i=this._visit(t.value,wp.Expression);return ur(e,n.key(r).set(i))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return ur(e,Mn(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,wp.Expression),i=null,o=this._visit(t.receiver,wp.Expression);if(o===this._implicitReceiver){var s=this._getLocal(t.name);s&&(i=s.callFn(r))}return null==i&&(i=o.callMethod(t.name,r)),ur(e,i)},t.prototype.visitPrefixNot=function(t,e){return ur(e,kn(this._visit(t.expression,wp.Expression)))},t.prototype.visitNonNullAssert=function(t,e){return ur(e,Tn(this._visit(t.expression,wp.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,i=this._visit(t.receiver,wp.Expression);return i===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=i.prop(t.name)),ur(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this._visit(t.receiver,wp.Expression);if(n===this._implicitReceiver&&this._getLocal(t.name))throw new Error("Cannot assign to a reference or variable!");return ur(e,n.prop(t.name).set(this._visit(t.value,wp.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n._visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!\n Statement: "+t.uninterpretedExpression+" located at "+t.location)},t.prototype._visit=function(t,e){var n=this._resultMap.get(t);return n||(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r=this._visit(e.receiver,wp.Expression),i=void 0;this.needsTemporary(e.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(e.receiver,i));var o=r.isBlank();e instanceof Mo?this._nodeMap.set(e,new Ao(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new go(e.span,e.receiver,e.name));var s=this._visit(t,wp.Expression);return this._nodeMap.delete(e),i&&this.releaseTemporary(i),ur(n,o.conditional(Mn(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitNonNullAssert:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitNonNullAssert:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Tc(rr(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=rr(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),xp=function(){function t(){}return t.prototype.getLocal=function(t){return t===vp.event.name?vp.event:null},t}(),Sp=function(t){function e(e,n,r){var i=t.call(this,e,null,n)||this;return i.args=n,i.converter=r,i}return n(e,t),e}(Ro),Pp="class",Op="style",kp=function(){function t(t,e){this.viewClassVar=t,this.rendererTypeVar=e}return t}(),Tp=function(){function t(t,e,n){this._config=t,this._reflector=e,this._schemaRegistry=n}return t.prototype.compileComponent=function(t,e,n,r,i){var o=this,s=0,a=br(n),u=void 0;if(!e.isHost){var c=e.template,l=[];c.animations&&c.animations.length&&l.push(new Xc("animation",Rn(t,c.animations),!0));var p=Cn(k(e.type.reference));u=p.name,t.statements.push(p.set(En(iu.createRendererType2).callFn([new Qc([new Xc("encapsulation",Mn(c.encapsulation),!1),new Xc("styles",r,!1),new Xc("data",new Qc(l),!1)])])).toDeclStmt(xn(iu.RendererType2),[el.Final,el.Exported]))}var h=function(n){var r=s++;return new jp(o._reflector,t,n,e,r,i,a,h)},d=h(null);return d.visitAll([],n),(f=t.statements).push.apply(f,d.build()),new kp(d.viewName,u);var f},t}();Tp.decorators=[{type:W}],Tp.ctorParameters=function(){return[{type:ao},{type:so},{type:du}]};var Ap=Cn("_l"),Mp=Cn("_v"),Rp=Cn("_ck"),Ip=Cn("_co"),Dp=Cn("en"),Np=Cn("ad"),jp=function(){function t(t,e,n,r,i,o,s,a){this.reflector=t,this.outputCtx=e,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=o,this.staticQueryIds=s,this.viewBuilderFactory=a,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?Ec:Sn(e.importExpr(this.component.type.reference))}return Object.defineProperty(t.prototype,"viewName",{get:function(){return O(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 i=_r(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var r=e+1,o=t.first?0:1,s=134217728|Cr(i,r,t.first);n.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:En(iu.queryDef).callFn([Mn(s),Mn(r),new Qc([new Xc(t.propertyName,Mn(o),!1)])])}})})}r(this,e),this.parent&&(0===e.length||dr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:En(iu.anchorDef).callFn([Mn(0),Zc,Zc,Mn(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,i=n.updateDirectivesStmts,o=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(i),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new il(this.viewName,[new qc(Ap.name)],[new sl(En(iu.viewDef).callFn([Mn(u),Pn(o),a,s]))],xn(iu.ViewDefinition),0===this.embeddedViewIndex?[el.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&bn(t).has(Ip.name)&&n.push(Ip.set(Mp.prop("component")).toDeclStmt(this.compType)),e=An([new qc(Rp.name,xc),new qc(Mp.name,xc)],n.concat(t),xc)}else e=Zc;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:En(iu.ngContentDef).callFn([Mn(t.ngContentIndex),Mn(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:En(iu.textDef).callFn([Mn(t.ngContentIndex),Pn([Mn(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:Ip,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:En(iu.textDef).callFn([Mn(t.ngContentIndex),Pn(i.strings.map(function(t){return Mn(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,s=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:En(iu.anchorDef).callFn([Mn(o),s,Mn(t.ngContentIndex),Mn(c),n._createElementHandleEventFn(r,a),Cn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,i=this.nodes.length;this.nodes.push(null);var s=o(t.name)?null:t.name,a=this._visitElementOrTemplate(i,t),u=a.flags,c=a.usedEvents,l=a.queryMatchesExpr,p=a.hostBindings,h=a.hostEvents,d=[],f=[],m=[];if(s){var y=t.inputs.map(function(t){return{context:Ip,inputAst:t,dirAst:null}}).concat(p);y.length&&(f=y.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:i,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),d=y.map(function(t){return fr(t.inputAst,t.dirAst)})),m=c.map(function(t){var e=t[0],n=t[1];return Pn([Mn(e),Mn(n)])})}r(this,t.children);var g=this.nodes.length-i-1,v=t.directives.find(function(t){return t.directive.isComponent}),b=Zc,_=Zc;v&&(_=this.outputCtx.importExpr(v.directive.componentViewType),b=this.outputCtx.importExpr(v.directive.rendererType)),this.nodes[i]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|u,nodeDef:En(iu.elementDef).callFn([Mn(u),l,Mn(t.ngContentIndex),Mn(g),Mn(s),s?mr(t):Zc,d.length?Pn(d):Zc,m.length?Pn(m):Zc,n._createElementHandleEventFn(i,h),_,b]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,i=0;n.hasViewContainer&&(i|=16777216);var o=new Map;n.outputs.forEach(function(t){var n=wr(t,null),r=n.name,i=n.target;o.set(e.ɵelementEventFullName(i,r),[i,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=wr(n,t),i=r.name,s=r.target;o.set(e.ɵelementEventFullName(s,i),[s,i])})});var s=[],a=[];this._visitComponentFactoryResolverProvider(n.directives),n.providers.forEach(function(e,i){var u=void 0,c=void 0;if(n.directives.forEach(function(t,n){t.directive.type.reference===R(e.token)&&(u=t,c=n)}),u){var l=r._visitDirective(e,u,c,t,n.references,n.queryMatches,o,r.staticQueryIds.get(n)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(e,n.queryMatches)});var u=[];return n.queryMatches.forEach(function(t){var e=void 0;R(t.value)===r.reflector.resolveExternalReference(iu.ElementRef)?e=0:R(t.value)===r.reflector.resolveExternalReference(iu.ViewContainerRef)?e=3:R(t.value)===r.reflector.resolveExternalReference(iu.TemplateRef)&&(e=2),null!=e&&u.push(Pn([Mn(t.queryId),Mn(e)]))}),n.references.forEach(function(e){var n=void 0;e.value?R(e.value)===r.reflector.resolveExternalReference(iu.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,u.push(Pn([Mn(e.name),Mn(n)])))}),n.outputs.forEach(function(t){a.push({context:Ip,eventAst:t,dirAst:null})}),{flags:i,usedEvents:Array.from(o.values()),queryMatchesExpr:u.length?Pn(u):Zc,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Cr(a,r,t.first),o=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:En(iu.queryDef).callFn([Mn(i),Mn(r),new Qc([new Xc(t.propertyName,Mn(o),!1)])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,o),h=p.flags,d=p.queryMatchExprs,f=p.providerExpr,m=p.depsExpr;i.forEach(function(e){e.value&&R(e.value)===R(t.token)&&(u.refNodeIndices[e.name]=c,d.push(Pn([Mn(e.name),Mn(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=Pn([Mn(e),Mn(t.directiveName)]);return new Xc(t.directiveName,n,!1)}),g=[],v=e.directive;Object.keys(v.outputs).forEach(function(t){var e=v.outputs[t];s.has(e)&&g.push(new Xc(t,Mn(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:Ip,value:t.value})}));var _=En(iu.nodeValue).callFn([Mp,Mn(c)]),w=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:En(iu.directiveDef).callFn([Mn(h),d.length?Pn(d):Zc,Mn(l),f,m,y.length?new Qc(y):Zc,g.length?new Qc(g):Zc]),updateDirectives:b,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=Vn(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,s=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:s,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:En(iu.providerDef).callFn([Mn(t.flags),t.queryMatchExprs.length?Pn(t.queryMatchExprs):Zc,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){R(e.value)===R(t.token)&&n.push(Pn([Mn(e.queryId),Mn(4)]))});var r=In(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,s=r.flags,a=r.tokenExpr;return{flags:0|s,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:a,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==vp.event.name)return vp.event;for(var e=Mp,n=this;n;n=n.parent,e=e.prop("parent").cast(Ec)){var r=n.refNodeIndices[t];if(null!=r)return En(iu.nodeValue).callFn([e,Mn(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=En(iu.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:En(iu.pureArrayDef).callFn([Mn(e)])}}),function(t){return gr(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=En(iu.EMPTY_MAP);return function(){return n}}var r=On(e.map(function(t,e){return Object.assign({},t,{value:Mn(e)})})),i=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:En(iu.pureObjectDef).callFn([r])}}),function(t){return gr(i,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:En(iu.purePipeDef).callFn([Mn(n)])}});for(var o=Mp,s=this;s.parent;)s=s.parent,o=o.prop("parent").cast(Ec);var a=s.purePipeNodeIndices[e],u=En(iu.nodeValue).callFn([o,Mn(a)]);return function(e){return vr(t.nodeIndex,t.bindingIndex,gr(i,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=En(iu.nodeValue).callFn([Mp,Mn(c)]);return function(e){return vr(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===ac.OnDestroy&&(i|=Fn(t))});var o=e.type.diDeps.map(function(t){return Ln(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:En(iu.pipeDef).callFn([Mn(i),n.outputCtx.importExpr(e.type.reference),Pn(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:tr({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,i,o){var s=[],a=i.map(function(t){var r=t.sourceSpan,i=t.context,o=t.value,a=""+n++,u=er(i===Ip?e:null,i,o,a),c=u.stmts,l=u.currValExpr;return s.push.apply(s,c.map(function(t){return _n(t,r)})),wn(l,r)});return(i.length||o)&&s.push(_n(gr(t,a).toStmt(),r)),s}var e=this,n=0,r=[],i=[],o=this.nodes.map(function(e,n){var o=e(),s=o.nodeDef,a=o.nodeFlags,u=o.updateDirectives,c=o.updateRenderer,l=o.sourceSpan;return c&&r.push.apply(r,t(n,l,c,!1)),u&&i.push.apply(i,t(n,l,u,(327680&a)>0)),wn(3&a?new Jc([Ap.callFn([]).callFn([]),s]):s,l)});return{updateRendererStmts:r,updateDirectivesStmts:i,nodeDefExprs:o}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,i=[],o=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+o++,c=Zn(n===Ip?r:null,n,s.handler,u),l=c.stmts,p=c.allowDefault,h=l;p&&h.push(Np.set(p.and(Np)).toStmt());var d=wr(s,a),f=d.target,m=d.name,y=e.ɵelementEventFullName(f,m);i.push(_n(new pl(Mn(y).identical(Dp),h),s.sourceSpan))});var s;if(i.length>0){var a=[Np.set(Mn(!0)).toDeclStmt(Sc)];!this.component.isHost&&bn(i).has(Ip.name)&&a.push(Ip.set(Mp.prop("component")).toDeclStmt(this.compType)),s=An([new qc(Mp.name,xc),new qc(Dp.name,xc),new qc(vp.event.name,xc)],a.concat(i,[new sl(Np)]),xc)}else s=Zc;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),Lp=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t}(),Fp=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return n(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;if(e&&"class"===e.__symbolic){var n={};Object.keys(e).forEach(function(t){"decorators"!==t&&(n[t]=e[t])}),e=n}var r=this.processedSummaryBySymbol.get(t.symbol);r||(r=this.processValue({symbol:t.symbol}),this.processedSummaries.push(r),this.processedSummaryBySymbol.set(t.symbol,r)),null==r.metadata&&null!=e&&(r.metadata=this.processValue(e)),null==r.type&&null!=t.type&&(r.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;return t.summaryResolver.isLibraryFile(n.filePath)&&(i=n.name+"_"+r,e.push({symbol:n,exportAs:i})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t){return m(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof wi){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Di),Vp=function(){function t(t,e){this.outputCtx=t,this.symbolResolver=e,this.data=new Map}return t.prototype.addSourceType=function(t,e){this.data.set(t.type.reference,{summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.set(t.type.reference,{summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){var e=this,n=new Set;Array.from(this.data.values()).forEach(function(t){var r=t.summary,i=t.metadata,o=t.isLibrary;if(r.summaryKind===Ji.NgModule&&(n.add(r.type.reference),r.modules.forEach(function(t){n.add(t.reference)})),!o){on(r.type.reference.name);Or(e.outputCtx,r.type.reference,e.serializeSummaryWithDeps(r,i))}}),t.forEach(function(t){var r=t.symbol;if(n.has(r)){var i=on(t.exportAs);e.outputCtx.statements.push(Cn(i).set(e.serializeSummaryRef(r)).toDeclStmt(null,[el.Exported]))}})},t.prototype.serializeSummaryWithDeps=function(t,e){var n=this,r=[this.serializeSummary(t)],i=[];if(e instanceof ro)r.push.apply(r,e.declaredDirectives.concat(e.declaredPipes).map(function(t){return t.reference}).concat(e.transitiveModule.modules.map(function(t){return t.reference}).filter(function(t){return t!==e.type.reference})).map(function(t){return n.serializeSummaryRef(t)})),i=e.providers;else if(t.summaryKind===Ji.Directive){var o=t;i=o.providers.concat(o.viewProviders)}return r.push.apply(r,i.filter(function(t){return!!t.useClass}).map(function(t){return n.serializeSummary({summaryKind:Ji.Injectable,type:t.useClass})})),Pn(r)},t.prototype.serializeSummaryRef=function(t){var e=this.symbolResolver.getStaticSymbol(nn(t.filePath),on(t.name));return this.outputCtx.importExpr(e)},t.prototype.serializeSummary=function(t){var e=this.outputCtx;return m(t,new(function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return Pn(t.map(function(t){return m(t,n,e)}))},t.prototype.visitStringMap=function(t,e){var n=this;return new Qc(Object.keys(t).map(function(r){return new Xc(r,m(t[r],n,e),!1)}))},t.prototype.visitPrimitive=function(t,e){return Mn(t)},t.prototype.visitOther=function(t,n){if(t instanceof wi)return e.importExpr(t);throw new Error("Illegal State: Encountered value "+t)},t}()),null)},t}(),Bp=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return n(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];return this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})}),{summaries:m(n.summaries,this,null),importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],i=e.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Di),Up=function(){function t(t,e,n,r,i,o,s,a,u,c,l,p,h,d){this._config=t,this._host=e,this._reflector=n,this._metadataResolver=r,this._templateParser=i,this._styleCompiler=o,this._viewCompiler=s,this._ngModuleCompiler=a,this._outputEmitter=u,this._summaryResolver=c,this._localeId=l,this._translationFormat=p,this._enableSummariesForJit=h,this._symbolResolver=d}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.analyzeModulesSync=function(t){var e=this,n=Rr(Dr(this._symbolResolver,t,this._host),this._host,this._metadataResolver);return n.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)}),n},t.prototype.analyzeModulesAsync=function(t){var e=this,n=Rr(Dr(this._symbolResolver,t,this._host),this._host,this._metadataResolver);return Promise.all(n.ngModules.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){return n})},t.prototype.emitAllStubs=function(t){var e=this;return N(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!1)}))},t.prototype.emitPartialStubs=function(t){var e=this;return N(t.files.map(function(t){return e._compileStubFile(t.srcUrl,t.directives,t.pipes,t.ngModules,!0)}))},t.prototype.emitAllImpls=function(t){var e=this,n=t.ngModuleByPipeOrDirective;return N(t.files.map(function(t){return e._compileImplFile(t.srcUrl,n,t.directives,t.pipes,t.ngModules,t.injectables)}))},t.prototype._compileStubFile=function(t,e,n,r,i){var o=this,s=tn(t,!0)[1],a=[],u=this._createOutputContext(Qe(t,!0)),c=this._createOutputContext(nn(t,!0));r.forEach(function(t){o._ngModuleCompiler.createStub(u,t),Pr(c,t)});var l=!1,p=!1;return e.forEach(function(t){var e=o._metadataResolver.getDirectiveMetadata(t);l=!0,e.isComponent&&(e.template.externalStylesheets.forEach(function(t){var n=o._createOutputContext(Ar(t.moduleUrl,o._styleCompiler.needsStyleShim(e),s));kr(n,iu.ComponentFactory),a.push(o._codegenSourceModule(t.moduleUrl,n))}),p=!0)}),(p||!i)&&u.statements.length<=0&&kr(u,iu.ComponentFactory),(l||!i||n&&n.length>0)&&c.statements.length<=0&&kr(c,iu.ComponentFactory),a.push(this._codegenSourceModule(t,u)),this._enableSummariesForJit&&a.push(this._codegenSourceModule(t,c)),a},t.prototype._compileImplFile=function(t,e,n,r,i,o){var s=this,a=tn(t,!0)[1],u=[],c=this._createOutputContext(Qe(t,!0));if(u.push.apply(u,this._createSummary(t,n,r,i,o,c)),i.forEach(function(t){return s._compileModule(c,t)}),n.forEach(function(t){var n=s._metadataResolver.getDirectiveMetadata(t);if(n.isComponent){var r=e.get(t);if(!r)throw new Error("Internal Error: cannot determine the module for component "+S(n.type)+"!");var i=s._styleCompiler.compileComponent(c,n);n.template.externalStylesheets.forEach(function(t){u.push(s._codegenStyles(t.moduleUrl,n,t,a))});s._compileComponent(c,n,r,r.transitiveModule.directives,i,a);s._compileComponentFactory(c,n,r,a)}}),c.statements.length>0){var l=this._codegenSourceModule(t,c);u.unshift(l)}return u},t.prototype._createSummary=function(t,e,n,r,i,o){var s=this,a=this._symbolResolver.getSymbolsOf(t).map(function(t){return s._symbolResolver.resolveSymbol(t)}),u=r.map(function(t){return{summary:s._metadataResolver.getNgModuleSummary(t),metadata:s._metadataResolver.getNgModuleMetadata(t)}}).concat(e.map(function(t){return{summary:s._metadataResolver.getDirectiveSummary(t),metadata:s._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:s._metadataResolver.getPipeSummary(t),metadata:s._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:s._metadataResolver.getInjectableSummary(t),metadata:s._metadataResolver.getInjectableSummary(t).type}})),c=this._createOutputContext(nn(t,!0)),l=xr(c,this._summaryResolver,this._symbolResolver,a,u),p=l.json;l.exportAs.forEach(function(t){o.statements.push(Cn(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[el.Exported]))});var h=new Lp(t,en(t),p);return this._enableSummariesForJit?[h,this._codegenSourceModule(t,c)]:[h]},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(e),r=[];this._localeId&&r.push({token:ge(this._reflector,iu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:ge(this._reflector,iu.TRANSLATIONS_FORMAT),useValue:this._translationFormat}),this._ngModuleCompiler.compile(t,n,r)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentType(e.type.reference),o=I(i,e,this._metadataResolver.getHostComponentViewClass(i)),s=this._compileComponent(t,o,n,[e.type],null,r).viewClassVar,a=A(e.type.reference),u=[];for(var c in e.inputs){p=e.inputs[c];u.push(new Xc(c,Mn(p),!1))}var l=[];for(var c in e.outputs){var p=e.outputs[c];l.push(new Xc(c,Mn(p),!1))}t.statements.push(Cn(a).set(En(iu.createComponentFactory).callFn([Mn(e.selector),t.importExpr(e.type.reference),Cn(s),new Qc(u),new Qc(l),Pn(e.template.ngContentSelectors.map(function(t){return Mn(t)}))])).toDeclStmt(xn(iu.ComponentFactory,[Sn(t.importExpr(e.type.reference))],[yc.Const]),[el.Final,el.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var s=this,a=r.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=n.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(e,e.template.template,a,u,n.schemas,L(n.type,e,e.template)),l=c.template,p=c.pipes,h=i?Cn(i.stylesVar):Pn([]),d=this._viewCompiler.compileComponent(t,e,l,h,p);return i&&Tr(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),d},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r){if(void 0===r&&(r=null),!(n instanceof wi))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var i=e._symbolResolver.getTypeArity(n)||0,o=e._symbolResolver.getImportAs(n)||n,s=o.filePath,a=o.name,u=o.members,c=e._symbolResolver.fileNameToModuleName(s,t),l=c===e._symbolResolver.fileNameToModuleName(t,t)?null:c,p=r||[],h=i-p.length,d=p.concat(new Array(h).fill(Ec));return u.reduce(function(t,e){return t.prop(e)},En(new Vc(l,a,null),d))}}},t.prototype._codegenStyles=function(t,e,n,r){var i=this._createOutputContext(Ar(n.moduleUrl,this._styleCompiler.needsStyleShim(e),r)),o=this._styleCompiler.compileStyles(i,e,n);return Tr(this._symbolResolver,o,this._styleCompiler.needsStyleShim(e),r),this._codegenSourceModule(t,i)},t.prototype._codegenSourceModule=function(t,e){return new Lp(t,e.genFilePath,e.statements)},t}(),Hp="@angular/core",zp=/^\$.*\$$/,qp={__symbolic:"ignore"},Gp="useValue",Wp="provide",Kp=new Set([Gp,"useFactory","data"]),$p=function(){function t(t,n,r,i,o){void 0===r&&(r=[]),void 0===i&&(i=[]);var s=this;this.summaryResolver=t,this.symbolResolver=n,this.errorRecorder=o,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.annotationNames=new Map,this.initializeConversionMap(),r.forEach(function(t){return s._registerDecoratorOrConstructor(s.getStaticSymbol(t.filePath,t.name),t.ctor)}),i.forEach(function(t){return s._registerFunction(s.getStaticSymbol(t.filePath,t.name),t.fn)}),this.annotationForParentClassWithSummaryKind.set(Ji.Directive,[e.Directive,e.Component]),this.annotationForParentClassWithSummaryKind.set(Ji.Pipe,[e.Pipe]),this.annotationForParentClassWithSummaryKind.set(Ji.NgModule,[e.NgModule]),this.annotationForParentClassWithSummaryKind.set(Ji.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.componentModuleUrl=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveExternalReference=function(t){var e=this.getStaticSymbol(t.moduleName,t.name),n=this.findDeclaration(t.moduleName,t.name);return e!=n&&this.symbolResolver.recordImportAs(n,e),n},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.tryFindDeclaration=function(t,e){var n=this;return this.symbolResolver.ignoreErrorsFor(function(){return n.findDeclaration(t,e)})},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof wi?this.findSymbolDeclaration(e.metadata):t},t.prototype.annotations=function(t){var e=this,n=this.annotationCache.get(t);if(!n){n=[];var r=this.getTypeMetadata(t),i=this.findParentType(t,r);if(i){var o=this.annotations(i);n.push.apply(n,o)}var s=[];if(r.decorators&&(s=this.simplify(t,r.decorators),n.push.apply(n,s)),i&&!this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(i.filePath)){var a=this.summaryResolver.resolveSummary(i);if(a&&a.type){var u=this.annotationForParentClassWithSummaryKind.get(a.type.summaryKind);u.some(function(t){return s.some(function(e){return e instanceof t})})||this.reportError(v("Class "+t.name+" in "+t.filePath+" extends from a "+Ji[a.type.summaryKind]+" in another compilation unit without duplicating the decorator. Please add a "+u.map(function(t){return e.annotationNames.get(t)}).join(" or ")+" decorator to the class."),t)}}this.annotationCache.set(t,n.filter(function(t){return!!t}))}return n},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);n={};var i=this.findParentType(t,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(t){n[t]=o[t]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),o=[];n[r]&&o.push.apply(o,n[r]),n[r]=o,i&&i.decorators&&o.push.apply(o,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){var e=this;if(!(t instanceof wi))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var n=this.parameterCache.get(t);if(!n){var r=this.getTypeMetadata(t),i=this.findParentType(t,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(t){return"constructor"==t.__symbolic}),u=a.parameters||[],c=this.simplify(t,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=e.trySimplify(t,r);s&&o.push(s);var a=c?c[i]:null;a&&o.push.apply(o,a),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(t,n)}return n}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);e={};var r=this.findParentType(t,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(t){e[t]=i[t]})}var o=n.members||{};Object.keys(o).forEach(function(t){var n=o[t].some(function(t){return"method"==t.__symbolic});e[t]=e[t]||n}),this.methodCache.set(t,e)}return e},t.prototype.findParentType=function(t,e){var n=this.trySimplify(t,e.extends);if(n instanceof wi)return n},t.prototype.hasLifecycleHook=function(t,e){t instanceof wi||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Hp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Hp,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Hp,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Hp,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Hp,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Hp,"state"),e.state),this._registerFunction(this.findDeclaration(Hp,"transition"),e.transition),this._registerFunction(this.findDeclaration(Hp,"style"),e.style),this._registerFunction(this.findDeclaration(Hp,"animate"),e.animate),this._registerFunction(this.findDeclaration(Hp,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Hp,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Hp,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r,a){function u(t){var e=i.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function c(e,i,u){if(i&&"function"==i.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var c=i.value;if(c&&(0!=r||"error"!=c.__symbolic)){var p=i.parameters,h=i.defaults;u=u.map(function(e){return n(t,e,r+1,a)}).map(function(t){return jr(t)?void 0:t}),h&&h.length>u.length&&u.push.apply(u,h.slice(u.length).map(function(t){return l(t)}));for(var d=Yp.build(),f=0;f<p.length;f++)d.define(p[f],u[f]);var m,y=o;try{o=d.done(),m=n(e,c,r+1,a)}finally{o=y}return m}}finally{s.delete(e)}}return 0===r?qp:l({__symbolic:"error",message:"Function call not supported",context:e})}function l(e){if(Br(e))return e;if(e instanceof Array){for(var s=[],p=0,h=e;p<h.length;p++){var d=h[p];if(d&&"spread"===d.__symbolic){var f=l(d.expression);if(Array.isArray(f)){for(var m=0,y=f;m<y.length;m++){var g=y[m];s.push(g)}continue}}var v=l(d);jr(v)||s.push(v)}return s}if(e instanceof wi)return e===i.injectionToken||e===i.opaqueToken||i.conversionMap.has(e)||a>0?e:(T=u(b=e))?n(b,T,r+1,a):b;if(e){if(e.__symbolic){var b=void 0;switch(e.__symbolic){case"binop":var _=l(e.left);if(jr(_))return _;var w=l(e.right);if(jr(w))return w;switch(e.operator){case"&&":return _&&w;case"||":return _||w;case"|":return _|w;case"^":return _^w;case"&":return _&w;case"==":return _==w;case"!=":return _!=w;case"===":return _===w;case"!==":return _!==w;case"<":return _<w;case">":return _>w;case"<=":return _<=w;case">=":return _>=w;case"<<":return _<<w;case">>":return _>>w;case"+":return _+w;case"-":return _-w;case"*":return _*w;case"/":return _/w;case"%":return _%w}return null;case"if":return l(l(e.condition)?e.thenExpression:e.elseExpression);case"pre":var C=l(e.operand);if(jr(C))return C;switch(e.operator){case"+":return C;case"-":return-C;case"!":return!C;case"~":return~C}return null;case"index":var E=l(e.expression),x=l(e.index);return E&&Br(x)?E[x]:null;case"select":var S=e.member,P=t,O=l(e.expression);if(O instanceof wi){var k=O.members.concat(S),T=u(P=i.getStaticSymbol(O.filePath,O.name,k));return T?n(P,T,r+1,a):P}return O&&Br(S)?n(P,O[S],r+1,a):null;case"reference":var A=e.name,M=o.resolve(A);if(M!=Yp.missing)return M;break;case"class":case"function":return t;case"new":case"call":if((b=n(t,e.expression,r+1,0))instanceof wi){if(b===i.injectionToken||b===i.opaqueToken)return t;var R=e.arguments||[],I=i.conversionMap.get(b);if(I){var D=R.map(function(e){return n(t,e,r+1,a)}).map(function(t){return jr(t)?void 0:t});return I(t,D)}return c(b,u(b),R)}return qp;case"error":var N=Fr(e);return e.line?(N=N+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",i.reportError(Ur(N,t.filePath,e.line,e.character),t)):i.reportError(new Error(N),t),qp;case"ignore":return e}return null}return Vr(e,function(o,s){if(Kp.has(s)){if(s===Gp&&Wp in e){var u=l(e.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return l(o)}return n(t,o,r,a+1)}return l(o)})}return qp}try{return l(e)}catch(e){var p=t.members.length?"."+t.members.join("."):"",h=e.message+", resolving symbol "+t.name+p+" in "+t.filePath;if(e.fileName)throw Ur(h,e.fileName,e.line,e.column);throw v(h)}}var r=this,i=this,o=Yp.empty,s=new Map,a=this.errorRecorder?function(t,e){try{return n(t,e,0,0)}catch(e){r.reportError(e,t)}}(t,e):n(t,e,0,0);if(!jr(a))return a},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Yp=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Xp(e):t.empty}}},t}();Yp.missing={},Yp.empty={resolve:function(t){return Yp.missing}};var Xp=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return n(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Yp.missing},e}(Yp),Qp=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Jp=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e||((e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t)))},t.prototype.getImportAs=function(t){if(t.members.length){r=this.getStaticSymbol(t.filePath,t.name);return(i=this.getImportAs(r))?this.getStaticSymbol(i.filePath,i.name,t.members):null}var e=rn(t.filePath);if(e!==t.filePath){var n=sn(t.name),r=this.getStaticSymbol(e,n,t.members),i=this.getImportAs(r);return i?this.getStaticSymbol(nn(i.filePath),on(i.name),r.members):null}var o=this.summaryResolver.getImportAs(t);return o||(o=this.importAs.get(t)),o},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(Ze(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof wi;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.fileNameToModuleName=function(t,e){return this.knownFileNameToModuleNames.get(t)||this.host.fileNameToModuleName(t,e)},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n<r.length;n++){var i=r[n];this.resolvedSymbols.delete(i),this.importAs.delete(i),this.symbolResourcePaths.delete(i)}}},t.prototype.ignoreErrorsFor=function(t){var e=this.errorRecorder;this.errorRecorder=function(){};try{return t()}finally{this.errorRecorder=e}},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof wi)return new Qp(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o<e.length&&i;o++)i=i[e[o]];return new Qp(t,i)}return r.statics&&1===e.length?new Qp(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Qp(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.importAs&&this.knownFileNameToModuleNames.set(t,r.importAs),r.metadata){var i=new Set(Object.keys(r.metadata).map(Hr)),o=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Hr(s),c=e.getStaticSymbol(t,u),l=o.hasOwnProperty(s)&&o[s];if(l){var p=e.resolveModule(l,t);p?e.symbolResourcePaths.set(c,p):e.reportError(new Error("Couldn't resolve original symbol for "+l+" from "+t))}n.push(e.createResolvedSymbol(c,t,i,a))})}if(r.exports)for(var s=this,a=0,u=r.exports;a<u.length;a++)!function(r){if(r.export)r.export.forEach(function(i){var o,s=o=Hr(o="string"==typeof i?i:i.as);"string"!=typeof i&&(s=Hr(i.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,o);n.push(e.createExport(c,u))}});else{var i=s.resolveModule(r.from,t);i&&s.getSymbolsOf(i).forEach(function(r){var i=e.getStaticSymbol(t,r.name);n.push(e.createExport(i,r))})}}(u[a]);n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)}),this.symbolFromFile.set(t,n.map(function(t){return t.symbol}))}},t.prototype.createResolvedSymbol=function(t,e,r,i){if(this.summaryResolver.isLibraryFile(t.filePath)&&i&&"class"===i.__symbolic){var o={__symbolic:"class",arity:i.arity};return new Qp(t,o)}var s=this,a=m(i,new(function(i){function o(){return null!==i&&i.apply(this,arguments)||this}return n(o,i),o.prototype.visitStringMap=function(n,o){var a=n.__symbolic;if("function"===a){var u=o.length;o.push.apply(o,n.parameters||[]);var c=i.prototype.visitStringMap.call(this,n,o);return o.length=u,c}if("reference"!==a)return i.prototype.visitStringMap.call(this,n,o);var l=n.module,p=n.name?Hr(n.name):n.name;if(!p)return null;var h=void 0;return l?(h=s.resolveModule(l,t.filePath),h?s.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):o.indexOf(p)>=0?{__symbolic:"reference",name:p}:r.has(p)?s.getStaticSymbol(e,p):void 0},o}(Di)),[]);return a instanceof wi?this.createExport(t,a):new Qp(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 Qp(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:3,module:t,metadata:{}}),3!=e.version){var i=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected 3";this.reportError(new Error(i))}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n containingFile\n } ":""))),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,void 0,e)}return null},t}(),Zp=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Je(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=en(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var i=Sr(this.staticSymbolCache,r),o=i.summaries,s=i.importAs;o.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(Qe(t),n.importAs))})}}},t}(),th=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r,this.exports=[]}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),eh=function(){function t(t){this.value=t}return t}(),nh=function(){function t(){}return t.prototype.debugAst=function(t){return Gn(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case kc.Super:return e.instance.__proto__;case kc.This:return e.instance;case kc.CatchError:n=rh;break;case kc.CatchStack:n=ih;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),i=t.value.visitExpression(this,e);return n[r]=i,i},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),i=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case Ic.ConcatArray:n=r.concat.apply(r,i);break;case Ic.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Ic.Bind:n=r.bind.apply(r,i);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,i);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;return r instanceof Tc&&r.builtin===kc.Super?(e.instance.constructor.prototype.constructor.apply(e.instance,n),null):t.fn.visitExpression(this,e).apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new eh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Wr(t,e,this);return e.vars.set(t.name,n),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e)?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(rh,r),n.vars.set(ih,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.runtime},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){return Kr(t.params.map(function(t){return t.name}),t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,Kr(n,t.statements,e,this)),t.hasModifier(el.Exported)&&e.exports.push(t.name),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},i=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case Pc.Equals:return r()==i();case Pc.Identical:return r()===i();case Pc.NotEquals:return r()!=i();case Pc.NotIdentical:return r()!==i();case Pc.And:return r()&&i();case Pc.Or:return r()||i();case Pc.Plus:return r()+i();case Pc.Minus:return r()-i();case Pc.Divide:return r()/i();case Pc.Multiply:return r()*i();case Pc.Modulo:return r()%i();case Pc.Lower:return r()<i();case Pc.LowerEquals:return r()<=i();case Pc.Bigger:return r()>i();case Pc.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n].visitStatement(this,e);if(r instanceof eh)return r}return null},t}(),rh="error",ih="stack",oh=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e._evalExportedVars=[],e}return n(e,t),e.prototype.createReturnStmt=function(t){new sl(new Qc(this._evalExportedVars.map(function(t){return new Xc(t,Cn(t),!1)}))).visitStatement(this,t)},e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.runtime,r=this._evalArgValues.indexOf(n);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(n);var i=S({reference:t.value.runtime})||"val";this._evalArgNames.push("jit_"+i+r)}return e.print(t,this._evalArgNames[r]),null},e.prototype.visitDeclareVarStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareVarStmt.call(this,e,n)},e.prototype.visitDeclareFunctionStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareFunctionStmt.call(this,e,n)},e.prototype.visitDeclareClassStmt=function(e,n){return e.hasModifier(el.Exported)&&this._evalExportedVars.push(e.name),t.prototype.visitDeclareClassStmt.call(this,e,n)},e}(function(t){function e(){return t.call(this,!1)||this}return n(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===kc.This)n.print(e,"self");else{if(e.builtin===kc.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof Tc&&r.builtin===kc.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+Ol.name+") {"),e.incIndent();var n=[kl.set(Ol.prop("stack")).toDeclStmt(null,[el.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case Ic.ConcatArray:e="concat";break;case Ic.SubscribeObservable:e="subscribe";break;case Ic.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Ml)),sh=function(){function t(t,e,n,r,i,o,s,a,u){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._summaryResolver=s,this._compilerConfig=a,this._console=u,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 Ni.assertSync(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return Ni.assertSync(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){var e=this;this.clearCache(),Qr(t).forEach(function(t){e._summaryResolver.addSummary({symbol:t.type.reference,metadata:null,type:t})})},t.prototype.hasAotSummary=function(t){return!!this._summaryResolver.resolveSummary(t)},t.prototype._filterJitIdentifiers=function(t){var e=this;return t.map(function(t){return t.reference}).filter(function(t){return!e.hasAotSummary(t)})},t.prototype._compileModuleAndComponents=function(t,e){var n=this;return Ni.then(this._loadModules(t,e),function(){return n._compileComponents(t,null),n._compileModule(t)})},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this;return Ni.then(this._loadModules(t,n),function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)})},t.prototype._loadModules=function(t,e){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(t);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach(function(t){var i=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(i.declaredDirectives).forEach(function(t){var o=n._metadataResolver.loadDirectiveMetadata(i.type.reference,t,e);o&&r.push(o)}),n._filterJitIdentifiers(i.declaredPipes).forEach(function(t){return n._metadataResolver.getOrLoadPipeMetadata(t)})}),Ni.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var i=this._metadataResolver.getNgModuleMetadata(t),o=[this._metadataResolver.getProviderMetadata(new oo(e.Compiler,{useFactory:function(){return new uh(n,i.type.reference)}}))],s=Jr(),a=this._ngModuleCompiler.compile(s,i,o);r=this._compilerConfig.useJit?Yr(V(i),s.statements)[a.ngModuleFactoryVar]:qr(s.statements)[a.ngModuleFactoryVar],this._compiledNgModuleCache.set(i.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),i=new Map,o=new Set,s=this._filterJitIdentifiers(r.transitiveModule.modules);s.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(r.declaredDirectives).forEach(function(t){i.set(t,r);var s=n._metadataResolver.getDirectiveMetadata(t);if(s.isComponent&&(o.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);o.add(a),e.push(s.componentFactory)}})}),s.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t);n._filterJitIdentifiers(e.declaredDirectives).forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t);e.isComponent&&e.entryComponents.forEach(function(t){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){if(!n.hasAotSummary(t.componentType.reference)){var e=i.get(t.componentType);o.add(n._createCompiledHostTemplate(t.componentType,e))}})}),o.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t),this._compiledTemplateCache.get(t)&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var i=this._metadataResolver.getDirectiveMetadata(t);Xr(i);var o=i.componentFactory,s=I(this._metadataResolver.getHostComponentType(t),i,e.ɵgetComponentViewDefinitionFactory(o));r=new ah(!0,i.type,s,n,[i.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Xr(t),n=new ah(!1,t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,i=Jr(),o=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach(function(t){var i=e._styleCompiler.compileStyles(Jr(),n,t);r.set(t.moduleUrl,i)}),this._resolveStylesCompileResult(o,r);var s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,L(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(i,n,l,Cn(o.stylesVar),p),d=(s=this._compilerConfig.useJit?Yr(B(t.ngModule.type,t.compMeta),i.statements):qr(i.statements))[h.viewClassVar],f=s[h.rendererTypeVar];t.compiled(d,f)}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var i=e.get(t.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,e);t.setValue(o)})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Yr(F(t.meta,this._sharedStylesheetCount++),t.outputCtx.statements)[t.stylesVar]:qr(t.outputCtx.statements)[t.stylesVar]},t}();sh.decorators=[{type:W}],sh.ctorParameters=function(){return[{type:e.Injector},{type:fc},{type:Hu},{type:gp},{type:Tp},{type:wl},{type:pc},{type:ao},{type:e.ɵConsole}]};var ah=function(){function t(t,e,n,r,i){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),uh=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}(),ch=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var i=ee(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return i.errors.length?i.errors:((o=this._messages).push.apply(o,i.messages),[]);var o},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new lh;this._messages.forEach(function(e){var r=t.digest(e);n.hasOwnProperty(r)?(i=n[r].sources).push.apply(i,e.sources):n[r]=e;var i});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),s=n[i],a=o?r.convert(s.nodes,o):s.nodes,u=new sa(a,{},{},s.meaning,s.description,i);return u.sources=s.sources,e&&u.sources.forEach(function(t){return t.filePath=e(t.filePath)}),u});return t.write(i,this._locale)},t}(),lh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new la(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new pa(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new ha(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(da),ph=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=Rr(Dr(this.staticSymbolResolver,t,this.host),this.host,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var i=r.template.template,o=bs.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.srcUrl,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var i=new Za,o=He(),s=new Ci,a=new Zp(n,s),u=new Jp(n,s,a),c=new $p(a,u),l=new ao({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new tc({get:function(t){return n.loadResource(t)}},o,i,l),h=new Ul,d=new fc(l,new cc(c),new nc(c),new lc(c),a,h,p,new e.ɵConsole,s,c),f=new ch(i,[],{},r);return{extractor:new t(n,u,f,d),staticReflector:c}},t}(),hh=function(){function t(){this.reflectionCapabilities=new e.ɵReflectionCapabilities}return t.prototype.componentModuleUrl=function(t,n){var r=n.moduleId;if("string"==typeof r)return ze(r)?r:"package:"+r;if(null!==r&&void 0!==r)throw v('moduleId should be a string in "'+e.ɵstringify(t)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return"./"+e.ɵstringify(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.resolveExternalReference=function(t){return t.runtime},t}(),dh={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},fh=new e.InjectionToken("HtmlParser"),mh=[{provide:so,useValue:new hh},{provide:Yu,useValue:dh},hc,{provide:pc,useExisting:hc},e.ɵConsole,Es,Ts,{provide:fh,useClass:Za},{provide:nu,useFactory:function(t,n,r,i,o){var s=(n=n||"")?i.missingTranslation:e.MissingTranslationStrategy.Ignore;return new nu(t,n,r,s,o)},deps:[fh,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[ao],[e.ɵConsole]]},{provide:Za,useExisting:nu},Hu,tc,fc,Xu,gp,Tp,wl,{provide:ao,useValue:new ao},sh,{provide:e.Compiler,useExisting:sh},Ul,{provide:du,useExisting:Ul},Qu,nc,lc,cc],yh=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Zr(this._defaultOptions.concat(t));return e.ReflectiveInjector.resolveAndCreate([mh,{provide:ao,useFactory:function(){return new ao({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]).get(e.Compiler)},t}();yh.decorators=[{type:W}],yh.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var gh=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:yh}]);t.VERSION=ri,t.TEMPLATE_TRANSFORMS=Vu,t.CompilerConfig=ao,t.JitCompiler=sh,t.DirectiveResolver=nc,t.PipeResolver=lc,t.NgModuleResolver=cc,t.DEFAULT_INTERPOLATION_CONFIG=_s,t.InterpolationConfig=bs,t.NgModuleCompiler=wl,t.AssertNotNull=Hc,t.BinaryOperator=Pc,t.BinaryOperatorExpr=Wc,t.BuiltinMethod=Ic,t.BuiltinVar=kc,t.CastExpr=zc,t.ClassStmt=ll,t.CommaExpr=Jc,t.CommentStmt=hl,t.ConditionalExpr=Bc,t.DeclareFunctionStmt=il,t.DeclareVarStmt=rl,t.ExpressionStatement=ol,t.ExternalExpr=Fc,t.ExternalReference=Vc,t.FunctionExpr=Gc,t.IfStmt=pl,t.InstantiateExpr=jc,t.InvokeFunctionExpr=Nc,t.InvokeMethodExpr=Dc,t.LiteralArrayExpr=Yc,t.LiteralExpr=Lc,t.LiteralMapExpr=Qc,t.NotExpr=Uc,t.ReadKeyExpr=$c,t.ReadPropExpr=Kc,t.ReadVarExpr=Tc,t.ReturnStatement=sl,t.ThrowStmt=fl,t.TryCatchStmt=dl,t.WriteKeyExpr=Mc,t.WritePropExpr=Rc,t.WriteVarExpr=Ac,t.StmtModifier=el,t.Statement=nl,t.EmitterVisitorContext=Al,t.ViewCompiler=Tp,t.getParseErrors=_,t.isSyntaxError=b,t.syntaxError=v,t.TextAst=ii,t.BoundTextAst=oi,t.AttrAst=si,t.BoundElementPropertyAst=ai,t.BoundEventAst=ui,t.ReferenceAst=ci,t.VariableAst=li,t.ElementAst=pi,t.EmbeddedTemplateAst=hi,t.BoundDirectivePropertyAst=di,t.DirectiveAst=fi,t.ProviderAst=mi,t.ProviderAstType=yi,t.NgContentAst=gi,t.PropertyBindingType=vi,t.NullTemplateVisitor=bi,t.RecursiveTemplateAstVisitor=_i,t.templateVisitAll=r,t.CompileAnimationEntryMetadata=Bi,t.CompileAnimationStateMetadata=Ui,t.CompileAnimationStateDeclarationMetadata=Hi,t.CompileAnimationStateTransitionMetadata=zi,t.CompileAnimationMetadata=qi,t.CompileAnimationKeyframesSequenceMetadata=Gi,t.CompileAnimationStyleMetadata=Wi,t.CompileAnimationAnimateMetadata=Ki,t.CompileAnimationWithStepsMetadata=$i,t.CompileAnimationSequenceMetadata=Yi,t.CompileAnimationGroupMetadata=Xi,t.identifierName=S,t.identifierModuleUrl=P,t.viewClassName=O,t.rendererTypeName=k,t.hostViewClassName=T,t.componentFactoryName=A,t.CompileSummaryKind=Ji,t.tokenName=M,t.tokenReference=R,t.CompileStylesheetMetadata=Zi,t.CompileTemplateMetadata=to,t.CompileDirectiveMetadata=eo,t.createHostComponentMeta=I,t.CompilePipeMetadata=no,t.CompileNgModuleMetadata=ro,t.TransitiveCompileNgModuleMetadata=io,t.ProviderMeta=oo,t.flatten=N,t.sourceUrl=j,t.templateSourceUrl=L,t.sharedStylesheetJitUrl=F,t.ngModuleJitUrl=V,t.templateJitUrl=B,t.createAotCompiler=zr,t.AotCompiler=Up,t.analyzeNgModules=Mr,t.analyzeAndValidateNgModules=Rr,t.extractProgramSymbols=Dr,t.GeneratedFile=Lp,t.toTypeScript=Er,t.StaticReflector=$p,t.StaticSymbol=wi,t.StaticSymbolCache=Ci,t.ResolvedStaticSymbol=Qp,t.StaticSymbolResolver=Jp,t.unescapeIdentifier=Hr,t.AotSummaryResolver=Zp,t.AstPath=Ls,t.SummaryResolver=pc,t.JitSummaryResolver=hc,t.COMPILER_PROVIDERS=mh,t.JitCompilerFactory=yh,t.platformCoreDynamic=gh,t.JitReflector=hh,t.CompileReflector=so,t.createUrlResolverWithoutPackagePrefix=Ue,t.createOfflineCompileUrlResolver=He,t.DEFAULT_PACKAGE_URL_PROVIDER=Xu,t.UrlResolver=Qu,t.getUrlScheme=ze,t.ResourceLoader=Yu,t.ElementSchemaRegistry=du,t.Extractor=ph,t.I18NHtmlParser=nu,t.MessageBundle=ch,t.Serializer=Aa,t.Xliff=Va,t.Xliff2=za,t.Xmb=Ka,t.Xtb=Xa,t.DirectiveNormalizer=tc,t.ParserError=uo,t.ParseSpan=co,t.AST=lo,t.Quote=po,t.EmptyExpr=ho,t.ImplicitReceiver=fo,t.Chain=mo,t.Conditional=yo,t.PropertyRead=go,t.PropertyWrite=vo,t.SafePropertyRead=bo,t.KeyedRead=_o,t.KeyedWrite=wo,t.BindingPipe=Co,t.LiteralPrimitive=Eo,t.LiteralArray=xo,t.LiteralMap=So,t.Interpolation=Po,t.Binary=Oo,t.PrefixNot=ko,t.NonNullAssert=To,t.MethodCall=Ao,t.SafeMethodCall=Mo,t.FunctionCall=Ro,t.ASTWithSource=Io,t.TemplateBinding=Do,t.NullAstVisitor=No,t.RecursiveAstVisitor=jo,t.AstTransformer=Lo,t.visitAstChildren=U,t.TokenType=ws,t.Lexer=Es,t.Token=xs,t.EOF=Ss,t.isIdentifier=rt,t.isQuote=at,t.SplitInterpolation=Os,t.TemplateBindingParseResult=ks,t.Parser=Ts,t._ParseAST=As,t.ERROR_COLLECTOR_TOKEN=dc,t.CompileMetadataResolver=fc,t.Text=Fs,t.Expansion=Vs,t.ExpansionCase=Bs,t.Attribute=Us,t.Element=Hs,t.Comment=zs,t.visitAll=ht,t.RecursiveVisitor=qs,t.findNode=ft,t.ParseTreeResult=Zs,t.TreeError=Js,t.HtmlParser=Za,t.HtmlTagDefinition=Si,t.getHtmlTagDefinition=l,t.TagContentType=Ei,t.splitNsName=i,t.isNgContainer=o,t.isNgContent=s,t.isNgTemplate=a,t.getNsPrefix=u,t.mergeNsAndName=c,t.NAMED_ENTITIES=xi,t.debugOutputAstAsTypeScript=Gn,t.TypeScriptEmitter=Rl,t.ParseLocation=Rs,t.ParseSourceFile=Is,t.ParseSourceSpan=Ds,t.ParseErrorLevel=Ns,t.ParseError=js,t.typeSourceSpan=pt,t.DomElementSchemaRegistry=Ul,t.CssSelector=Ti,t.SelectorMatcher=Ai,t.SelectorListContext=Mi,t.SelectorContext=Ri,t.StylesCompileDependency=mp,t.CompiledStylesheet=yp,t.StyleCompiler=gp,t.TemplateParseError=Bu,t.TemplateParseResult=Uu,t.TemplateParser=Hu,t.splitClasses=Ne,t.createElementCssSelector=je,t.removeSummaryDuplicates=Fe,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":31}],31:[function(t,e,n){(function(r){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("rxjs/Observable"),t("rxjs/observable/merge"),t("rxjs/operator/share"),t("rxjs/Subject")):i((r.ng=r.ng||{},r.ng.core=r.ng.core||{}),r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx)}(this,function(t,e,n,i,o){"use strict";function s(t,e){function n(){this.constructor=t}Oi(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(){if(!Di){var t=Ii.Symbol;if(t&&t.iterator)Di=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Di=r)}}return Di}function u(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function c(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function l(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function p(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function h(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+l(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+l(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+l(i));for(var o=[],s=0,a=n.length-1;s<a;s++){var u=[];o.push(u);var c=n[s];if(Array.isArray(c))for(var h=0;h<c.length;h++)u.push(p(c[h]));else"function"==typeof c?u.push(p(c)):u.push(c)}return ji.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+l(t)+"'")}function d(t){var e=h(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+l(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=h(t[r],r));this&&this.annotations instanceof Array&&ji.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+Ni++),e}function f(t,e,n,r){function i(t){if(!ji||!ji.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=ji.getOwnMetadata("annotations",t)||[];return n.push(e),ji.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=d,r&&r(s),s}var o=m(e);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function m(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function y(t,e,n){function r(){function t(t,e,n){for(var r=ji.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),ji.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=o,t}var i=m(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function g(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=ji.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),ji.defineMetadata("propMetadata",r,t.constructor)}}var i=m(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t){return null==t||t===qi.Default}function b(t){return t.__forward_ref__=b,t.toString=function(){return l(this())},t}function _(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===b?t():t}function w(t){return t[go]}function C(t){return t[vo]}function E(t){return t[bo]||x}function x(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function S(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[vo]=e,r}function P(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function O(t){return t.length>1?" ("+P(t.slice().reverse()).map(function(t){return l(t.token)}).join(" -> ")+")":""}function k(t,e,n,r){var i=[e],o=n(i),s=r?S(o,r):Error(o);return s.addKey=T,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[vo]=r,s}function T(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function A(t,e){return k(t,e,function(t){return"No provider for "+l(t[0].token)+"!"+O(t)})}function M(t,e){return k(t,e,function(t){return"Cannot instantiate cyclic dependency!"+O(t)})}function R(t,e,n,r){return k(t,r,function(t){var n=l(t[0].token);return e.message+": Error during instantiation of "+n+"!"+O(t)+"."},e)}function I(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function D(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(l).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+l(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+l(t)+"' is decorated with Injectable.")}function N(t){return Error("Index "+t+" is out-of-bounds.")}function j(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function L(t){return"function"==typeof t}function F(t){return t?t.map(function(t){var e=t.type.annotationCls,n=t.args?t.args:[];return new(e.bind.apply(e,[void 0].concat(n)))}):[]}function V(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function B(t){var e,n;if(t.useClass){var r=_(t.useClass);e=Oo.factory(r),n=W(r)}else t.useExisting?(e=function(t){return t},n=[ko.fromKey(wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=G(t.useFactory,t.deps)):(e=function(){return t.useValue},n=To);return new Mo(e,n)}function U(t){return new Ao(wo.get(t.provide),[B(t)],t.multi||!1)}function H(t){var e=z(q(t,[]).map(U),new Map);return Array.from(e.values())}function z(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw j(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Ao(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function q(t,e){return t.forEach(function(t){if(t instanceof Eo)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 I(t);q(t,e)}}),e}function G(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return K(t,e,n)})}return W(t)}function W(t){var e=Oo.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw D(t,e);return e.map(function(n){return K(t,n,e)})}function K(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof so?$(e.token,i,null):$(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Eo?r=a:a instanceof so?r=a.token:a instanceof ao?i=!0:a instanceof co||a instanceof lo?o=a:a instanceof Ti&&(r=a)}if(null!=(r=_(r)))return $(r,i,o);throw D(t,n)}function $(t,e,n){return new ko(wo.get(t),e,n)}function Y(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function X(t){return!!t&&"function"==typeof t.then}function Q(t){return!!t&&"function"==typeof t.subscribe}function J(){return""+Z()+Z()+Z()}function Z(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function tt(){throw new Error("Runtime compiler is not loaded")}function et(t){var e=Error("No component factory found for "+l(t)+". Did you add it to @NgModule.entryComponents?");return e[Qo]=t,e}function nt(){var t=Ii.wtf;return!(!t||!(ts=t.trace))&&(es=ts.events,!0)}function rt(t,e){return void 0===e&&(e=null),es.createScope(t,e)}function it(t,e){return ts.leaveScope(t,e),e}function ot(t,e){return ts.beginTimeRange(t,e)}function st(t){ts.endTimeRange(t)}function at(t,e){return null}function ut(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function ct(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return lt(t),e.invokeTask(r,i,o,s)}finally{pt(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return lt(t),e.invoke(r,i,o,s,a)}finally{pt(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,ut(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.onError.emit(i),!1}})}function lt(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function pt(t){t._nesting--,ut(t)}function ht(t){ys=t}function dt(){if(vs)throw new Error("Cannot enable prod mode after platform setup.");gs=!1}function ft(){return vs=!0,gs}function mt(t){if(ms&&!ms.destroyed&&!ms.injector.get(bs,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ms=t.get(ws);var e=t.get(Bo,null);return e&&e.forEach(function(t){return t()}),ms}function yt(t,e,n){void 0===n&&(n=[]);var r=new Ti("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=bt();return i&&!i.injector.get(bs,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):mt(Io.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),gt(r)}}function gt(t){var e=bt();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 vt(){ms&&!ms.destroyed&&ms.destroy()}function bt(){return ms&&!ms.destroyed?ms:null}function _t(t,e){try{var n=e();return X(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function wt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function Ct(t,e){var n=Ds.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);Ds.set(t,e)}function Et(t){var e=Ds.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function xt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?xt(e):e;return t.concat(n)},[])}function St(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function Pt(t){return t.map(function(t){return t.nativeElement})}function Ot(t,e,n){t.childNodes.forEach(function(t){t instanceof Ws&&(e(t)&&n.push(t),Ot(t,e,n))})}function kt(t,e,n){t instanceof Ws&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ws&&kt(t,e,n)})}function Tt(t){return Ks.get(t)||null}function At(t){Ks.set(t.nativeNode,t)}function Mt(t){Ks.delete(t.nativeNode)}function Rt(t,e){var n=It(t),r=It(e);if(n&&r)return Dt(t,e,Rt);var i=t&&("object"==typeof t||"function"==typeof t),o=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!o)||c(t,e)}function It(t){return!!jt(t)&&(Array.isArray(t)||!(t instanceof Map)&&a()in t)}function Dt(t,e,n){for(var r=t[a()](),i=e[a()]();;){var o=r.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!n(o.value,s.value))return!1}}function Nt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[a()](),i=void 0;!(i=r.next()).done;)e(i.value)}function jt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Lt(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Ft(t){return t.name||typeof t}function Vt(){return Oo}function Bt(){return ca}function Ut(){return la}function Ht(t){return t||"en-US"}function zt(t,e){return t.nodes[e]}function qt(t,e){return t.nodes[e]}function Gt(t,e){return t.nodes[e]}function Wt(t,e){return t.nodes[e]}function Kt(t,e){return t.nodes[e]}function $t(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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 ?"),Xt(i,t)}function Yt(t,e){return t instanceof Error||(t=new Error(t.toString())),Qt(t,e),t}function Xt(t,e){var n=new Error(t);return Qt(n,e),n}function Qt(t,e){t[go]=e,t[bo]=e.logError.bind(e)}function Jt(t){return!!w(t)}function Zt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function te(t){var e=Ca.get(t);return e||(e=l(t)+"_"+Ca.size,Ca.set(t,e)),e}function ee(t,e,n,r){if(r instanceof $s){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof $s&&(o=o.wrapped),t.oldValues[i]=new $s(o)}return r}function ne(t){return{id:Ea,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function re(t){if(t&&t.id===Ea){var e=null!=t.encapsulation&&t.encapsulation!==no.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Sa++:xa}return t&&t.id===xa&&(t=null),t||null}function ie(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&c(i[e.bindingIndex+n],r))}function oe(t,e,n,r){return!!ie(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function se(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!Rt(i,r))throw $t(_a.createDebugContext(t,e.index),i,r,0!=(1&t.state))}function ae(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function ue(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function ce(t,e,n,r){return ae(33554432&t.def.nodes[e].flags?qt(t,e).componentView:t),_a.handleEvent(t,e,n,r)}function le(t){return t.parent?qt(t.parent,t.parentNodeDef.index):null}function pe(t){return t.parent?t.parentNodeDef.parent:null}function he(t,e){switch(201347067&e.flags){case 1:return qt(t,e.index).renderElement;case 2:return zt(t,e.index).renderText}}function de(t,e){return t?t+":"+e:e}function fe(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function me(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ye(t){return 1<<t%32}function ge(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=ye(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ve(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:te(e)}})}function be(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===no.Native?qt(t,n.renderParent.index).renderElement:void 0:e}function _e(t){var e=Pa.get(t);return e||((e=t(function(){return wa})).factory=t,Pa.set(t,e)),e}function we(t){var e=[];return Ce(t,0,void 0,void 0,e),e}function Ce(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(he(t,t.def.lastRenderRootNode))),Ee(t,e,0,t.def.nodes.length-1,n,r,i)}function Ee(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&Se(t,u,e,i,o,s),a+=u.childCount}}function xe(t,e,n,r,i,o){for(var s=t;s&&!fe(s);)s=s.parent;for(var a=s.parent,u=pe(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&Se(a,h,n,r,i,o),p+=h.childCount}if(!a.parent){var d=t.root.projectableNodes[e];if(d)for(p=0;p<d.length;p++)Pe(t,d[p],n,r,i,o)}}function Se(t,e,n,r,i,o){if(8&e.flags)xe(t,e.ngContent.index,n,r,i,o);else{var s=he(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags?(16&e.bindingFlags&&Pe(t,s,n,r,i,o),32&e.bindingFlags&&Pe(qt(t,e.index).componentView,s,n,r,i,o)):Pe(t,s,n,r,i,o),16777216&e.flags)for(var a=qt(t,e.index).viewContainer._embeddedViews,u=0;u<a.length;u++)Ce(a[u],n,r,i,o);1&e.flags&&!e.element.name&&Ee(t,n,e.index+1,e.index+e.childCount,r,i,o)}}function Pe(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function Oe(t){if(":"===t[0]){var e=t.match(Oa);return[e[1],e[2]]}return["",t]}function ke(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function Te(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+Me(e[r+1]);return n+e[2*t]}function Ae(t,e,n,r,i,o,s,a,u,c,l,p,h,d,f,m,y,g,v,b){switch(t){case 1:return e+Me(n)+r;case 2:return e+Me(n)+r+Me(i)+o;case 3:return e+Me(n)+r+Me(i)+o+Me(s)+a;case 4:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c;case 5:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p;case 6:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+d;case 7:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+d+Me(f)+m;case 8:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+d+Me(f)+m+Me(y)+g;case 9:return e+Me(n)+r+Me(i)+o+Me(s)+a+Me(u)+c+Me(l)+p+Me(h)+d+Me(f)+m+Me(y)+g+Me(v)+b;default:throw new Error("Does not support more than 9 expressions")}}function Me(t){return null!=t?t.toString():""}function Re(t,e,n,r,i,o){t|=1;var s=ge(e),a=s.matchedQueries,u=s.references;return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?_e(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||wa},provider:null,text:null,query:null,ngContent:null}}function Ie(t,e,n,r,i,o,s,a,u,c,l){void 0===o&&(o=[]),u||(u=wa);var p=ge(e),h=p.matchedQueries,d=p.references,f=p.matchedQueryIds,m=null,y=null;i&&(m=(I=Oe(i))[0],y=I[1]),s=s||[];for(var g=new Array(s.length),v=0;v<s.length;v++){var b=s[v],_=b[0],w=b[1],C=b[2],E=Oe(w),x=E[0],S=E[1],P=void 0,O=void 0;switch(15&_){case 4:O=C;break;case 1:case 8:P=C}g[v]={flags:_,ns:x,name:S,nonMinifiedName:S,securityContext:P,suffix:O}}a=a||[];for(var k=new Array(a.length),v=0;v<a.length;v++){var T=a[v],A=T[0],M=T[1];k[v]={type:0,target:A,eventName:M,propName:null}}var R=(o=o||[]).map(function(t){var e=t[0],n=t[1],r=Oe(e);return[r[0],r[1],n]});return l=re(l),c&&(t|=33554432),t|=1,{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:h,matchedQueryIds:f,references:d,ngContentIndex:n,childCount:r,bindings:g,bindingFlags:ke(g),outputs:k,element:{ns:m,name:y,attrs:R,template:null,componentProvider:null,componentView:c||null,componentRendererType:l,publicProviders:null,allProviders:null,handleEvent:u||wa},provider:null,text:null,query:null,ngContent:null};var I}function De(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=be(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=i.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function Ne(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=je(t,n.index,de(o.target,o.eventName)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}}function je(t,e,n){return function(r){try{return ce(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Le(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length,d=!1;return h>0&&Ve(t,e,0,n)&&(d=!0),h>1&&Ve(t,e,1,r)&&(d=!0),h>2&&Ve(t,e,2,i)&&(d=!0),h>3&&Ve(t,e,3,o)&&(d=!0),h>4&&Ve(t,e,4,s)&&(d=!0),h>5&&Ve(t,e,5,a)&&(d=!0),h>6&&Ve(t,e,6,u)&&(d=!0),h>7&&Ve(t,e,7,c)&&(d=!0),h>8&&Ve(t,e,8,l)&&(d=!0),h>9&&Ve(t,e,9,p)&&(d=!0),d}function Fe(t,e,n){for(var r=!1,i=0;i<n.length;i++)Ve(t,e,i,n[i])&&(r=!0);return r}function Ve(t,e,n,r){if(!oe(t,e,n,r))return!1;var i=e.bindings[n],o=qt(t,e.index),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:Be(t,i,s,i.ns,a,r);break;case 2:Ue(t,s,a,r);break;case 4:He(t,i,s,a,r);break;case 8:ze(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function Be(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}function Ue(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}function He(t,e,n,r,i){var o=t.root.sanitizer.sanitize(ga.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}function ze(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}function qe(t,e,n,r){return{index:-1,deps:ve(r),flags:t,token:e,value:n}}function Ge(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[te(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function We(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];n[r]=4096&i.flags?Aa:$e(t,i)}}function Ke(t,e,n){if(void 0===n&&(n=yo.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case Ma:case Ra:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return o===Aa&&(o=t._providers[i.index]=$e(t,i)),o}return t._parent.get(e.token,n)}function $e(t,e){var n;switch(201347067&e.flags){case 512:n=Ye(t,e.value,e.deps);break;case 1024:n=Xe(t,e.value,e.deps);break;case 2048:n=Ke(t,e.deps[0]);break;case 256:n=e.value}return n}function Ye(t,e,n){var r,i=n.length;switch(i){case 0:r=new e;break;case 1:r=new e(Ke(t,n[0]));break;case 2:r=new e(Ke(t,n[0]),Ke(t,n[1]));break;case 3:r=new e(Ke(t,n[0]),Ke(t,n[1]),Ke(t,n[2]));break;default:for(var o=new Array(i),s=0;s<i;s++)o[s]=Ke(t,n[s]);r=new(e.bind.apply(e,[void 0].concat(o)))}return r}function Xe(t,e,n){var r,i=n.length;switch(i){case 0:r=e();break;case 1:r=e(Ke(t,n[0]));break;case 2:r=e(Ke(t,n[0]),Ke(t,n[1]));break;case 3:r=e(Ke(t,n[0]),Ke(t,n[1]),Ke(t,n[2]));break;default:for(var o=Array(i),s=0;s<i;s++)o[s]=Ke(t,n[s]);r=e.apply(void 0,o)}return r}function Qe(t,e){for(var n=t._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==Aa&&i.ngOnDestroy()}}function Je(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,an(i,n,r),Ze(e,r),_a.dirtyParentQueries(r),on(e,n>0?i[n-1]:null,r)}function Ze(t,e){var n=le(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),tn(e.parent.def,e.parentNodeDef)}}function tn(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function en(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,un(n,e),_a.dirtyParentQueries(r),sn(r),r}function nn(t){if(16&t.state){var e=le(t);if(e){var n=e.template._projectedViews;n&&(un(n,n.indexOf(t)),_a.dirtyParentQueries(t))}}}function rn(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return un(r,e),null==n&&(n=r.length),an(r,n,i),_a.dirtyParentQueries(i),sn(i),on(t,n>0?r[n-1]:null,i),i}function on(t,e,n){var r=e?he(e,e.def.lastRenderRootNode):t.renderElement;Ce(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function sn(t){Ce(t,3,null,null,void 0)}function an(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function un(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function cn(t,e,n,r,i,o){return new Da(t,e,n,r,i,o)}function ln(t){return t.viewDefFactory}function pn(t,e,n){return new ja(t,e,n)}function hn(t){return new La(t)}function dn(t,e){return new Fa(t,e)}function fn(t,e){return new Va(t,e)}function mn(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=qt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return zt(t,n.index).renderText;if(20240&n.flags)return Gt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function yn(t){return new Ba(t.renderer)}function gn(t,e,n,r){return new Ua(t,e,n,r)}function vn(t,e,n,r,i,o,s){var a=[];if(o)for(var u in o){var c=o[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 d in s)h.push({type:1,propName:d,target:null,eventName:s[d]});return t|=16384,wn(t,e,n,r,r,i,a,h)}function bn(t,e,n){return t|=16,wn(t,null,0,e,e,n)}function _n(t,e,n,r,i){return wn(t,e,0,n,r,i)}function wn(t,e,n,r,i,o,s,a){var u=ge(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=ve(o);return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:-1,childCount:n,bindings:s,bindingFlags:ke(s),outputs:a,element:null,provider:{token:r,value:i,deps:h},text:null,query:null,ngContent:null}}function Cn(t,e){return 4096&e.flags?Ya:kn(t,e)}function En(t,e){for(var n=t;n.parent&&!fe(n);)n=n.parent;return Tn(n.parent,pe(n),!0,e.provider.value,e.provider.deps)}function xn(t,e){var n=(32768&e.flags)>0,r=Tn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(Sn(t,e.parent.index,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function Sn(t,e,n){return function(r){try{return ce(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Pn(t,e,n,r,i,o,s,a,u,c,l,p){var h=Gt(t,e.index),d=h.instance,f=!1,m=void 0,y=e.bindings.length;return y>0&&ie(t,e,0,n)&&(f=!0,m=In(t,h,e,0,n,m)),y>1&&ie(t,e,1,r)&&(f=!0,m=In(t,h,e,1,r,m)),y>2&&ie(t,e,2,i)&&(f=!0,m=In(t,h,e,2,i,m)),y>3&&ie(t,e,3,o)&&(f=!0,m=In(t,h,e,3,o,m)),y>4&&ie(t,e,4,s)&&(f=!0,m=In(t,h,e,4,s,m)),y>5&&ie(t,e,5,a)&&(f=!0,m=In(t,h,e,5,a,m)),y>6&&ie(t,e,6,u)&&(f=!0,m=In(t,h,e,6,u,m)),y>7&&ie(t,e,7,c)&&(f=!0,m=In(t,h,e,7,c,m)),y>8&&ie(t,e,8,l)&&(f=!0,m=In(t,h,e,8,l,m)),y>9&&ie(t,e,9,p)&&(f=!0,m=In(t,h,e,9,p,m)),m&&d.ngOnChanges(m),2&t.state&&65536&e.flags&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}function On(t,e,n){for(var r=Gt(t,e.index),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)ie(t,e,a,n[a])&&(o=!0,s=In(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),2&t.state&&65536&e.flags&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}function kn(t,e){var n,r=(8192&e.flags)>0,i=e.provider;switch(201347067&e.flags){case 512:n=Tn(t,e.parent,r,i.value,i.deps);break;case 1024:n=An(t,e.parent,r,i.value,i.deps);break;case 2048:n=Mn(t,e.parent,r,i.deps[0]);break;case 256:n=i.value}return n}function Tn(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=new r;break;case 1:o=new r(Mn(t,e,n,i[0]));break;case 2:o=new r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]));break;case 3:o=new r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]),Mn(t,e,n,i[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=Mn(t,e,n,i[u]);o=new(r.bind.apply(r,[void 0].concat(a)))}return o}function An(t,e,n,r,i){var o,s=i.length;switch(s){case 0:o=r();break;case 1:o=r(Mn(t,e,n,i[0]));break;case 2:o=r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]));break;case 3:o=r(Mn(t,e,n,i[0]),Mn(t,e,n,i[1]),Mn(t,e,n,i[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=Mn(t,e,n,i[u]);o=r.apply(void 0,a)}return o}function Mn(t,e,n,r,i){if(void 0===i&&(i=yo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===Ka&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Ha:return yn(a=Rn(t,e,n));case za:var a=Rn(t,e,n);return a.renderer;case qa:return new Rs(qt(t,e.index).renderElement);case Ga:return qt(t,e.index).viewContainer;case Wa:if(e.element.template)return qt(t,e.index).template;break;case Ka:return hn(Rn(t,e,n));case $a:return fn(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Gt(t,u.index);return c.instance===Ya&&(c.instance=kn(t,u)),c.instance}}n=fe(t),e=pe(t),t=t.parent}var l=o.root.injector.get(r.token,Xa);return l!==Xa||i===Xa?l:o.root.ngModule.injector.get(r.token,i)}function Rn(t,e,n){var r;if(n)r=qt(t,e.index).componentView;else for(r=t;r.parent&&!fe(r);)r=r.parent;return r}function In(t,e,n,r,i,o){if(32768&n.flags){var s=qt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r].name;if(e.instance[a]=i,524288&n.flags){o=o||{};var u=t.oldValues[n.bindingIndex+r];u instanceof $s&&(u=u.wrapped),o[n.bindings[r].nonMinifiedName]=new Xs(u,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function Dn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var i=n[r],o=i.parent;for(!o&&i.flags&e&&jn(t,r,i.flags&e),0==(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.index+o.childCount;)o.directChildFlags&e&&Nn(t,o,e),o=o.parent}}function Nn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var i=t.def.nodes[r];i.flags&n&&jn(t,r,i.flags&n),r+=i.childCount}}function jn(t,e,n){var r=Gt(t,e).instance;r!==Ya&&(_a.setCurrentNode(t,e),1048576&n&&r.ngAfterContentInit(),2097152&n&&r.ngAfterContentChecked(),4194304&n&&r.ngAfterViewInit(),8388608&n&&r.ngAfterViewChecked(),131072&n&&r.ngOnDestroy())}function Ln(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}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:ye(e),bindings:r},ngContent:null}}function Fn(){return new Ns}function Vn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&me(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,i=0;i<=r;i++)67108864&(o=t.def.nodes[i]).flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&Kt(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.index)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}if(134217728&t.def.nodeFlags)for(i=0;i<t.def.nodes.length;i++){var o=t.def.nodes[i];134217728&o.flags&&536870912&o.flags&&Kt(t,i).setDirty(),i+=o.childCount}}function Bn(t,e){var n=Kt(t,e.index);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Un(t,o.index,o.index+o.childCount,e.query,[]),r=Gt(t,e.parent.index).instance}else 134217728&e.flags&&(i=Un(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function Un(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(Hn(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=qt(t,o);if(16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=le(p);h&&h===u&&Un(p,0,p.def.nodes.length-1,r,i)}var d=u.template._projectedViews;if(d)for(l=0;l<d.length;l++){var f=d[l];Un(f,0,f.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function Hn(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=qt(t,e.index).renderElement;break;case 0:r=new Rs(qt(t,e.index).renderElement);break;case 2:r=qt(t,e.index).template;break;case 3:r=qt(t,e.index).viewContainer;break;case 4:r=Gt(t,e.index).instance}return r}}function zn(t,e){return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:e}}}function qn(t,e,n){var r=be(t,e,n);r&&xe(t,n.ngContent.index,1,r,null,void 0)}function Gn(t){return $n(128,new Array(t+1))}function Wn(t){return $n(32,new Array(t))}function Kn(t){for(var e=Object.keys(t),n=e.length,r=new Array(n),i=0;i<n;i++){var o=e[i];r[t[o]]=o}return $n(64,r)}function $n(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var i=e[r];n[r]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:n,bindingFlags:ke(n),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Yn(t,e){return{value:void 0}}function Xn(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&oe(t,e,0,n)&&(d=!0),f>1&&oe(t,e,1,r)&&(d=!0),f>2&&oe(t,e,2,i)&&(d=!0),f>3&&oe(t,e,3,o)&&(d=!0),f>4&&oe(t,e,4,s)&&(d=!0),f>5&&oe(t,e,5,a)&&(d=!0),f>6&&oe(t,e,6,u)&&(d=!0),f>7&&oe(t,e,7,c)&&(d=!0),f>8&&oe(t,e,8,l)&&(d=!0),f>9&&oe(t,e,9,p)&&(d=!0),d){var m=Wt(t,e.index),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),f>0&&(y[0]=n),f>1&&(y[1]=r),f>2&&(y[2]=i),f>3&&(y[3]=o),f>4&&(y[4]=s),f>5&&(y[5]=a),f>6&&(y[6]=u),f>7&&(y[7]=c),f>8&&(y[8]=l),f>9&&(y[9]=p);break;case 64:y={},f>0&&(y[h[0].name]=n),f>1&&(y[h[1].name]=r),f>2&&(y[h[2].name]=i),f>3&&(y[h[3].name]=o),f>4&&(y[h[4].name]=s),f>5&&(y[h[5].name]=a),f>6&&(y[h[6].name]=u),f>7&&(y[h[7].name]=c),f>8&&(y[h[8].name]=l),f>9&&(y[h[9].name]=p);break;case 128:var g=n;switch(f){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,i);break;case 4:y=g.transform(r,i,o);break;case 5:y=g.transform(r,i,o,s);break;case 6:y=g.transform(r,i,o,s,a);break;case 7:y=g.transform(r,i,o,s,a,u);break;case 8:y=g.transform(r,i,o,s,a,u,c);break;case 9:y=g.transform(r,i,o,s,a,u,c,l);break;case 10:y=g.transform(r,i,o,s,a,u,c,l,p)}}m.value=y}return d}function Qn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)oe(t,e,o,n[o])&&(i=!0);if(i){var s=Wt(t,e.index),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return i}function Jn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[r]};return{index:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ke(n),outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Zn(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=be(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function tr(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&oe(t,e,0,n)&&(h=!0),f>1&&oe(t,e,1,r)&&(h=!0),f>2&&oe(t,e,2,i)&&(h=!0),f>3&&oe(t,e,3,o)&&(h=!0),f>4&&oe(t,e,4,s)&&(h=!0),f>5&&oe(t,e,5,a)&&(h=!0),f>6&&oe(t,e,6,u)&&(h=!0),f>7&&oe(t,e,7,c)&&(h=!0),f>8&&oe(t,e,8,l)&&(h=!0),f>9&&oe(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;f>0&&(m+=nr(n,d[0])),f>1&&(m+=nr(r,d[1])),f>2&&(m+=nr(i,d[2])),f>3&&(m+=nr(o,d[3])),f>4&&(m+=nr(s,d[4])),f>5&&(m+=nr(a,d[5])),f>6&&(m+=nr(u,d[6])),f>7&&(m+=nr(c,d[7])),f>8&&(m+=nr(l,d[8])),f>9&&(m+=nr(p,d[9]));var y=zt(t,e.index).renderText;t.renderer.setValue(y,m)}return h}function er(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)oe(t,e,o,n[o])&&(i=!0);if(i){for(var s="",o=0;o<n.length;o++)s+=nr(n[o],r[o]);s=e.text.prefix+s;var a=zt(t,e.index).renderText;t.renderer.setValue(a,s)}return i}function nr(t,e){return(null!=t?t.toString():"")+e.suffix}function rr(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,d=0;d<e.length;d++){for(;c&&d>c.index+c.childCount;)(b=c.parent)&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),c=b;var f=e[d];f.index=d,f.parent=c,f.bindingIndex=i,f.outputIndex=o;var m=void 0;if(m=c&&1&c.flags&&!c.element.name?c.renderParent:c,f.renderParent=m,f.element){var y=f.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,l=!1,p=!1}if(ir(c,f,e.length),s|=f.flags,u|=f.matchedQueryIds,f.element&&f.element.template&&(u|=f.element.template.nodeMatchedQueries),c?(c.childFlags|=f.flags,c.directChildFlags|=f.flags,c.childMatchedQueries|=f.matchedQueryIds,f.element&&f.element.template&&(c.childMatchedQueries|=f.element.template.nodeMatchedQueries)):a|=f.flags,i+=f.bindings.length,o+=f.outputs.length,!m&&3&f.flags&&(h=f),20224&f.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!=(8192&f.flags),v=0!=(32768&f.flags);!g||v?c.element.publicProviders[te(f.provider.token)]=f:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[te(f.provider.token)]=f),v&&(c.element.componentProvider=f)}f.childCount&&(c=f)}for(;c;){var b=c.parent;b&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),c=b}var _=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||wa,updateRenderer:r||wa,handleEvent:_||wa,bindingCount:i,outputCount:o,lastRenderRootNode:h}}function ir(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:n-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 or(t,e,n,r){var i=ur(t.root,t.renderer,t,e,n);return cr(i,t.component,r),lr(i),i}function sr(t,e,n){var r=ur(t,t.renderer,null,null,e);return cr(r,n,n),lr(r),r}function ar(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,ur(t.root,i,t,e.element.componentProvider,n)}function ur(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function cr(t,e,n){t.component=e,t.context=n}function lr(t){var e;if(fe(t)){var n=t.parentNodeDef;e=qt(t.parent,n.parent.index).renderElement}for(var r=t.def,i=t.nodes,o=0;o<r.nodes.length;o++){var s=r.nodes[o];_a.setCurrentNode(t,o);var a=void 0;switch(201347067&s.flags){case 1:var u=De(t,e,s),c=void 0;if(33554432&s.flags){var l=_e(s.element.componentView);c=_a.createComponentView(t,s,l,u)}Ne(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?dn(t,s):void 0},16777216&s.flags&&(a.viewContainer=pn(t,s,a));break;case 2:a=Zn(t,e,s);break;case 512:case 1024:case 2048:case 256:a={instance:p=Cn(t,s)};break;case 16:a={instance:p=En(t,s)};break;case 16384:var p=xn(t,s);a={instance:p},32768&s.flags&&cr(qt(t,s.parent.index).componentView,p,p);break;case 32:case 64:case 128:a=Yn(t,s);break;case 67108864:case 134217728:a=Fn();break;case 8:qn(t,e,s),a=void 0}i[o]=a}Er(t,Qa.CreateViewNodes),Or(t,201326592,268435456,0)}function pr(t){fr(t),_a.updateDirectives(t,1),xr(t,Qa.CheckNoChanges),_a.updateRenderer(t,1),Er(t,Qa.CheckNoChanges),t.state&=-97}function hr(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,fr(t),_a.updateDirectives(t,0),xr(t,Qa.CheckAndUpdate),Or(t,67108864,536870912,0),Dn(t,2097152|(2&t.state?1048576:0)),_a.updateRenderer(t,0),Er(t,Qa.CheckAndUpdate),Or(t,134217728,536870912,0),Dn(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function dr(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?mr(t,e,r,i,o,s,a,u,c,l,p,h):yr(t,e,r)}function fr(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=qt(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,ue(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function mr(t,e,n,r,i,o,s,a,u,c,l,p){var h=!1;switch(201347067&e.flags){case 1:h=Le(t,e,n,r,i,o,s,a,u,c,l,p);break;case 2:h=tr(t,e,n,r,i,o,s,a,u,c,l,p);break;case 16384:h=Pn(t,e,n,r,i,o,s,a,u,c,l,p);break;case 32:case 64:case 128:h=Xn(t,e,n,r,i,o,s,a,u,c,l,p)}return h}function yr(t,e,n){var r=!1;switch(201347067&e.flags){case 1:r=Fe(t,e,n);break;case 2:r=er(t,e,n);break;case 16384:r=On(t,e,n);break;case 32:case 64:case 128:r=Qn(t,e,n)}if(r)for(var i=e.bindings.length,o=e.bindingIndex,s=t.oldValues,a=0;a<i;a++)s[o+a]=n[a];return r}function gr(t,e,n,r,i,o,s,a,u,c,l,p,h){return 0===n?vr(t,e,r,i,o,s,a,u,c,l,p,h):br(t,e,r),!1}function vr(t,e,n,r,i,o,s,a,u,c,l,p){var h=e.bindings.length;h>0&&se(t,e,0,n),h>1&&se(t,e,1,r),h>2&&se(t,e,2,i),h>3&&se(t,e,3,o),h>4&&se(t,e,4,s),h>5&&se(t,e,5,a),h>6&&se(t,e,6,u),h>7&&se(t,e,7,c),h>8&&se(t,e,8,l),h>9&&se(t,e,9,p)}function br(t,e,n){for(var r=0;r<n.length;r++)se(t,e,r,n[r])}function _r(t,e){if(Kt(t,e.index).dirty)throw $t(_a.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function wr(t){if(!(128&t.state)){if(xr(t,Qa.Destroy),Er(t,Qa.Destroy),Dn(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();nn(t),t.renderer.destroyNode&&Cr(t),fe(t)&&t.renderer.destroy(),t.state|=128}}function Cr(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(qt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(zt(t,n).renderText)}}function Er(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?Sr(qt(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function xr(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=qt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)Sr(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function Sr(t,e){var n=t.state;switch(e){case Qa.CheckNoChanges:0==(128&n)&&(12==(12&n)?pr(t):64&n&&Pr(t,Qa.CheckNoChangesProjectedViews));break;case Qa.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?pr(t):64&n&&Pr(t,e));break;case Qa.CheckAndUpdate:0==(128&n)&&(12==(12&n)?hr(t):64&n&&Pr(t,Qa.CheckAndUpdateProjectedViews));break;case Qa.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?hr(t):64&n&&Pr(t,e));break;case Qa.Destroy:wr(t);break;case Qa.CreateViewNodes:lr(t)}}function Pr(t,e){xr(t,e),Er(t,e)}function Or(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(_a.setCurrentNode(t,s.index),r){case 0:Bn(t,s);break;case 1:_r(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function kr(){if(!Ja){Ja=!0;var t=ft()?Ar():Tr();_a.setCurrentNode=t.setCurrentNode,_a.createRootView=t.createRootView,_a.createEmbeddedView=t.createEmbeddedView,_a.createComponentView=t.createComponentView,_a.createNgModuleRef=t.createNgModuleRef,_a.overrideProvider=t.overrideProvider,_a.clearProviderOverrides=t.clearProviderOverrides,_a.checkAndUpdateView=t.checkAndUpdateView,_a.checkNoChangesView=t.checkNoChangesView,_a.destroyView=t.destroyView,_a.resolveDep=Mn,_a.createDebugContext=t.createDebugContext,_a.handleEvent=t.handleEvent,_a.updateDirectives=t.updateDirectives,_a.updateRenderer=t.updateRenderer,_a.dirtyParentQueries=Vn}}function Tr(){return{setCurrentNode:function(){},createRootView:Mr,createEmbeddedView:or,createComponentView:ar,createNgModuleRef:gn,overrideProvider:wa,clearProviderOverrides:wa,checkAndUpdateView:hr,checkNoChangesView:pr,destroyView:wr,createDebugContext:function(t,e){return new ou(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Ur:Hr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Ur:Hr,t)}}}function Ar(){return{setCurrentNode:Wr,createRootView:Rr,createEmbeddedView:Dr,createComponentView:Nr,createNgModuleRef:jr,overrideProvider:Lr,clearProviderOverrides:Fr,checkAndUpdateView:zr,checkNoChangesView:qr,destroyView:Gr,createDebugContext:function(t,e){return new ou(t,e)},handleEvent:Kr,updateDirectives:$r,updateRenderer:Yr}}function Mr(t,e,n,r,i,o){return sr(Ir(t,i,i.injector.get(Ts),e,n),r,o)}function Rr(t,e,n,r,i,o){var s=i.injector.get(Ts),a=Ir(t,i,new su(s),e,n),u=Vr(r);return si(tu.create,sr,null,[a,u,o])}function Ir(t,e,n,r,i){var o=e.injector.get(va),s=e.injector.get(_o);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function Dr(t,e,n,r){var i=Vr(n);return si(tu.create,or,null,[t,e,i,r])}function Nr(t,e,n,r){var i=Vr(n);return si(tu.create,ar,null,[t,e,i,r])}function jr(t,e,n,r){return gn(t,e,n,Br(r))}function Lr(t){Za.set(t.token,t)}function Fr(){Za.clear()}function Vr(t){if(0===Za.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&Za.has(i.provider.token)&&(e.push(n.index),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return wa});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){r.flags|=4096;var i=r.provider,o=Za.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=ve(o.deps),i.value=o.value)}}}(t,e[n]);return t}function Br(t){return 0!==Za.size&&function(t){return t.providers.some(function(t){return!!(3840&t.flags)&&Za.has(t.token)})}(t)?(t=t.factory(function(){return wa}),function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];n.flags|=4096;var r=Za.get(n.token);r&&(n.flags=-3841&n.flags|r.flags,n.deps=ve(r.deps),n.value=r.value)}}(t),t):t}function Ur(t,e,n,r,i,o,s,a,u,c,l,p,h){var d=t.def.nodes[e];return dr(t,d,n,r,i,o,s,a,u,c,l,p,h),224&d.flags?Wt(t,e).value:void 0}function Hr(t,e,n,r,i,o,s,a,u,c,l,p,h){var d=t.def.nodes[e];return gr(t,d,n,r,i,o,s,a,u,c,l,p,h),224&d.flags?Wt(t,e).value:void 0}function zr(t){return si(tu.detectChanges,hr,null,[t])}function qr(t){return si(tu.checkNoChanges,pr,null,[t])}function Gr(t){return si(tu.destroy,wr,null,[t])}function Wr(t,e){nu=t,ru=e}function Kr(t,e,n,r){return Wr(t,e),si(tu.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function $r(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Xr(t,s,r,i):Qr(t,s,r,i),16384&s.flags&&Wr(t,ei(t,n)),224&s.flags?Wt(t,s.index).value:void 0}if(128&t.state)throw Zt(tu[eu]);return Wr(t,ei(t,0)),t.def.updateDirectives(n,t)}function Yr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Xr(t,s,r,i):Qr(t,s,r,i),3&s.flags&&Wr(t,ni(t,n)),224&s.flags?Wt(t,s.index).value:void 0}if(128&t.state)throw Zt(tu[eu]);return Wr(t,ni(t,0)),t.def.updateRenderer(n,t)}function Xr(t,e,n,r){if(dr.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[Jr(a.nonMinifiedName)]=ti(u))}var c=e.parent,l=qt(t,c.index).renderElement;if(c.element.name)for(var p in o)null!=(u=o[p])?t.renderer.setAttribute(l,p,u):t.renderer.removeAttribute(l,p);else t.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function Qr(t,e,n,r){gr.apply(void 0,[t,e,n].concat(r))}function Jr(t){return"ng-reflect-"+(t=Zr(t.replace(/[$@]/g,"_")))}function Zr(t){return t.replace(iu,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function ti(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function ei(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ni(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ri(t,e){for(var n=-1,r=0;r<=e;r++)3&t.nodes[r].flags&&n++;return n}function ii(t){for(;t&&!fe(t);)t=t.parent;return t.parent?qt(t.parent,pe(t).index):null}function oi(t,e,n){for(var r in e.references)n[r]=Hn(t,e,e.references[r])}function si(t,e,n,r){var i=eu,o=nu,s=ru;try{eu=t;var a=e.apply(n,r);return nu=o,ru=s,eu=i,a}catch(t){if(Jt(t)||!nu)throw t;throw Yt(t,ai())}}function ai(){return nu?new ou(nu,ru):null}function ui(t){return kr(),_a.overrideProvider(t)}function ci(){return kr(),_a.clearProviderOverrides()}function li(t,e,n){return new uu(t,e,n)}function pi(t,e){return{type:7,name:t,definitions:e,options:{}}}function hi(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function di(t,e){return void 0===e&&(e=null),{type:3,steps:t,options:e}}function fi(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function mi(t){return{type:6,styles:t,offset:null}}function yi(t,e){return{type:0,name:t,styles:e}}function gi(t){return{type:5,steps:t}}function vi(t,e,n){return void 0===n&&(n=null),{type:1,expr:t,animation:e,options:n}}function bi(t,e){return pi(t,e)}function _i(t,e){return hi(t,e)}function wi(t){return di(t)}function Ci(t){return fi(t)}function Ei(t){return mi(t)}function xi(t,e){return yi(t,e)}function Si(t){return gi(t)}function Pi(t,e){return vi(t,e)}var Oi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},ki=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Ti=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(ki),Ai="undefined"!=typeof window&&window,Mi="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ri=void 0!==r&&r,Ii=Ai||Ri||Mi,Di=null,Ni=0,ji=Ii.Reflect,Li=new Ti("AnalyzeForEntryComponents"),Fi=y("Attribute",function(t){return{attributeName:t}}),Vi=function(){function t(){}return t}(),Bi=g("ContentChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},Vi),Ui=g("ContentChild",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},Vi),Hi=g("ViewChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},Vi),zi=g("ViewChild",function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},Vi),qi={};qi.OnPush=0,qi.Default=1,qi[qi.OnPush]="OnPush",qi[qi.Default]="Default";var Gi={};Gi.CheckOnce=0,Gi.Checked=1,Gi.CheckAlways=2,Gi.Detached=3,Gi.Errored=4,Gi.Destroyed=5,Gi[Gi.CheckOnce]="CheckOnce",Gi[Gi.Checked]="Checked",Gi[Gi.CheckAlways]="CheckAlways",Gi[Gi.Detached]="Detached",Gi[Gi.Errored]="Errored",Gi[Gi.Destroyed]="Destroyed";var Wi=f("Directive",function(t){return void 0===t&&(t={}),t}),Ki=f("Component",function(t){return void 0===t&&(t={}),Object.assign({changeDetection:qi.Default},t)},Wi),$i=f("Pipe",function(t){return Object.assign({pure:!0},t)}),Yi=g("Input",function(t){return{bindingPropertyName:t}}),Xi=g("Output",function(t){return{bindingPropertyName:t}}),Qi=g("HostBinding",function(t){return{hostPropertyName:t}}),Ji=g("HostListener",function(t,e){return{eventName:t,args:e}}),Zi={name:"custom-elements"},to={name:"no-errors-schema"},eo=f("NgModule",function(t){return t}),no={};no.Emulated=0,no.Native=1,no.None=2,no[no.Emulated]="Emulated",no[no.Native]="Native",no[no.None]="None";var ro=function(){function t(t){void 0===t&&(t={}),this.templateUrl=t.templateUrl,this.template=t.template,this.styleUrls=t.styleUrls,this.styles=t.styles,this.encapsulation=t.encapsulation,this.animations=t.animations,this.interpolation=t.interpolation}return t}(),io=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}(),oo=new io("4.3.0"),so=y("Inject",function(t){return{token:t}}),ao=y("Optional"),uo=f("Injectable"),co=y("Self"),lo=y("SkipSelf"),po=y("Host"),ho=new Object,fo=ho,mo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=ho),e===ho)throw new Error("No provider for "+l(t)+"!");return e},t}(),yo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();yo.THROW_IF_NOT_FOUND=ho,yo.NULL=new mo;var go="ngDebugContext",vo="ngOriginalError",bo="ngErrorLogger",_o=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=E(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?w(t)?w(t):this._findContext(C(t)):null},t.prototype._findOriginalError=function(t){for(var e=C(t);e&&C(e);)e=C(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 l(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Co.get(_(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Co.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Co=new(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}()),Eo=Function,xo=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,So=function(){function t(t){this._reflect=t||Ii.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(xo.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&F(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){o=this._reflect.getOwnMetadata("parameters",t);if((i=this._reflect.getOwnMetadata("design:paramtypes",t))||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!L(t))return[];var e=V(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?F(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!L(t))return[];var e=V(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=F(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!L(t))return{};var e=V(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Eo&&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:"./"+l(t)},t.prototype.resourceUri=function(t){return"./"+l(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Po=function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}(),Oo=new Po(new So),ko=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),To=[],Ao=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),Mo=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),Ro=new Object,Io=function(){function t(){}return t.resolve=function(t){return H(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Do(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),Do=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Ro}return t.prototype.get=function(t,e){return void 0===e&&(e=fo),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=Io.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Io.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw 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),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var o;try{o=i.apply(void 0,n)}catch(e){throw R(this,e,e.stack,t.key)}return o},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:fo)},t.prototype._getByKey=function(t,e,n){return t===No?this:e instanceof co?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Ro&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Ro},t.prototype._throwOrNull=function(t,e){if(e!==fo)return e;throw A(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Ro?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof lo?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Ro)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(providers: ["+Y(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),No=wo.get(yo),jo=new Ti("Application Initializer"),Lo=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();X(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();Lo.decorators=[{type:uo}],Lo.ctorParameters=function(){return[{type:Array,decorators:[{type:so,args:[jo]},{type:ao}]}]};var Fo=new Ti("AppId"),Vo={provide:Fo,useFactory:J,deps:[]},Bo=new Ti("Platform Initializer"),Uo=new Ti("Platform ID"),Ho=new Ti("appBootstrapListener"),zo=new Ti("Application Packages Root URL"),qo=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();qo.decorators=[{type:uo}],qo.ctorParameters=function(){return[]};var Go=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),Wo=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw tt()},t.prototype.compileModuleAsync=function(t){throw tt()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw tt()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw tt()},t.prototype.getNgContentSelectors=function(t){throw tt()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();Wo.decorators=[{type:uo}],Wo.ctorParameters=function(){return[]};var Ko=new Ti("compilerOptions"),$o=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Yo=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Xo=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Qo="ngComponent",Jo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw et(t)},t}(),Zo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Zo.NULL=new Jo;var ts,es,ns=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw et(t);return new rs(e,this._ngModule)},t}(),rs=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return s(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Xo),is=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),os=function(){function t(){}return t.prototype.moduleType=function(){},t.prototype.create=function(t){},t}(),ss=nt(),as=ss?rt:function(t,e){return at},us=ss?it:function(t,e){return e},cs=ss?ot:function(t,e){return null},ls=ss?st:function(t){return null},ps=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return s(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(o.Subject),hs=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ps(!1),this.onMicrotaskEmpty=new ps(!1),this.onStable=new ps(!1),this.onError=new ps(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),ct(r)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this._inner.run(t)},t.prototype.runGuarded=function(t){return this._inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}(),ds=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(){hs.assertNotInAngularZone(),u(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()?u(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();ds.decorators=[{type:uo}],ds.ctorParameters=function(){return[{type:hs}]};var fs=function(){function t(){this._applications=new Map,ys.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),ys.findTestabilityInTree(this,t,e)},t}();fs.decorators=[{type:uo}],fs.ctorParameters=function(){return[]};var ms,ys=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),gs=!0,vs=!1,bs=new Ti("AllowMultipleToken"),_s=function(){function t(t,e){this.name=t,this.token=e}return t}(),ws=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Cs=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return s(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new hs({enableLongStackTrace:ft()})),e.run(function(){var r=Io.resolveAndCreate([{provide:hs,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(_o,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return wt(n._modules,i)}),e.onError.subscribe({next:function(t){o.handleError(t)}}),_t(o,function(){var t=i.injector.get(Lo);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get($o).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Es);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+l(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}(ws);Cs.decorators=[{type:uo}],Cs.ctorParameters=function(){return[{type:yo}]};var Es=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),xs=function(t){function r(r,o,s,a,c,l){var p=t.call(this)||this;p._zone=r,p._console=o,p._injector=s,p._exceptionHandler=a,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=ft(),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()})}),d=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){hs.assertNotInAngularZone(),u(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){hs.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,i.share.call(d)),p}return s(r,t),r.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},r.prototype.detachView=function(t){var e=t;wt(this._views,e),e.detachFromAppRef()},r.prototype.bootstrap=function(t,e){var n=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 Xo?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var i=r instanceof rs?null:this._injector.get(is),o=e||r.selector,s=r.create(yo.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(ds,null);return a&&s.injector.get(fs).registerApplication(s.location.nativeElement,a),this._loadComponent(s),ft()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},r.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(Ho,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},r.prototype._unloadComponent=function(t){this.detachView(t.hostView),wt(this._rootComponents,t)},r.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=r._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._exceptionHandler.handleError(t)}finally{this._runningTick=!1,us(t)}},r.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(r.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),r}(Es);xs._tickScope=as("ApplicationRef#tick()"),xs.decorators=[{type:uo}],xs.ctorParameters=function(){return[{type:hs},{type:qo},{type:yo},{type:_o},{type:Zo},{type:Lo}]};var Ss=function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return t}(),Ps=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}(),Os=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,i,o,s){},t}(),ks=(new Ti("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),Ts=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t.prototype.begin=function(){},t.prototype.end=function(){},t.prototype.whenRenderingDone=function(){},t}(),As={};As.Important=1,As.DashCase=2,As[As.Important]="Important",As[As.DashCase]="DashCase";var Ms=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),Rs=function(){function t(t){this.nativeElement=t}return t}(),Is=function(){function t(){}return t.prototype.load=function(t){},t}(),Ds=new Map,Ns=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new ps}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[a()]=function(){return this._results[a()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=xt(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}(),js=function(){function t(){}return t}(),Ls={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Fs=function(){function t(t,e){this._compiler=t,this._config=e||Ls}return t.prototype.load=function(t){return this._compiler instanceof Wo?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split("#"),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(t){return t[i]}).then(function(t){return St(t,r,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),n=e[0],r=e[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+i]}).then(function(t){return St(t,n,r)})},t}();Fs.decorators=[{type:uo}],Fs.ctorParameters=function(){return[{type:Wo},{type:js,decorators:[{type:ao}]}]};var Vs=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),Bs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,i){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),Us=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}(),Hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(Us),zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(Hs),qs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Gs=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ws?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}(),Ws=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return s(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return Ot(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return kt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Gs),Ks=new Map,$s=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ys=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof $s?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),Xs=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Qs=function(){function t(){}return t.prototype.supports=function(t){return It(t)},t.prototype.create=function(t,e){return new Zs(e||t)},t}(),Js=function(t,e){return e},Zs=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||Js}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Lt(n,r,i)?e:n,s=Lt(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}i[o.previousIndex]=c-u}}s!==a&&t(o,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=[]),!It(t))throw new Error("Error trying to diff '"+l(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var a=0;a<this._length;a++)r=t[a],i=this._trackByFn(a,r),null!==o&&c(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),c(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,Nt(t,function(t){i=e._trackByFn(n,t),null!==o&&c(o.trackById,i)?(s&&(o=e._verifyReinsertion(o,t,i,n)),c(o.item,t)||e._addIdentityChange(o,t)):(o=e._mismatch(o,t,i,n),s=!0),o=o._next,n++}),this._length=n;return this._truncate(o),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(c(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(c(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new ta(e,n),i,r),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new na),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new na),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),ta=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?l(this.item):l(this.item)+"["+l(this.previousIndex)+"->"+l(this.currentIndex)+"]"},t}(),ea=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&c(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),na=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new ea,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+l(this.map)+")"},t}(),ra=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||jt(t)},t.prototype.create=function(t){return new ia},t}(),ia=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||jt(t)))throw new Error("Error trying to diff '"+l(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new oa(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){c(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),oa=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}(),sa=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lo,new ao]]}},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 '"+Ft(t)+"'")},t}(),aa=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new lo,new ao]]}},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}(),ua=[new ra],ca=new sa([new Qs]),la=new aa(ua),pa=yt(null,"core",[{provide:Uo,useValue:"unknown"},Cs,{provide:ws,useExisting:Cs},{provide:Po,useFactory:Vt,deps:[]},fs,qo]),ha=new Ti("LocaleId"),da=new Ti("Translations"),fa=new Ti("TranslationsFormat"),ma={};ma.Error=0,ma.Warning=1,ma.Ignore=2,ma[ma.Error]="Error",ma[ma.Warning]="Warning",ma[ma.Ignore]="Ignore";var ya=function(){function t(t){}return t}();ya.decorators=[{type:eo,args:[{providers:[xs,{provide:Es,useExisting:xs},Lo,Wo,Vo,{provide:sa,useFactory:Bt},{provide:aa,useFactory:Ut},{provide:ha,useFactory:Ht,deps:[[new so(ha),new ao,new lo]]}]}]}],ya.ctorParameters=function(){return[{type:Es}]};var ga={};ga.NONE=0,ga.HTML=1,ga.STYLE=2,ga.SCRIPT=3,ga.URL=4,ga.RESOURCE_URL=5,ga[ga.NONE]="NONE",ga[ga.HTML]="HTML",ga[ga.STYLE]="STYLE",ga[ga.SCRIPT]="SCRIPT",ga[ga.URL]="URL",ga[ga.RESOURCE_URL]="RESOURCE_URL";var va=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),ba=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),_a={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides: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},wa=function(){},Ca=new Map,Ea="$$undefined",xa="$$empty",Sa=0,Pa=new WeakMap,Oa=/^:([^:]+):(.+)$/,ka=[],Ta={},Aa=new Object,Ma=te(yo),Ra=te(is),Ia=new Object,Da=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return s(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=_e(this.viewDefFactory),o=i.nodes[0].element.componentProvider.index,s=_a.createRootView(t,e||[],n,i,r,Ia),a=Gt(s,o).instance;return n&&s.renderer.setAttribute(qt(s,0).renderElement,"ng-version",oo.full),new Na(s,new La(s),a)},e}(Xo),Na=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i}return s(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Rs(qt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Va(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}(Yo),ja=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Rs(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Va(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=pe(t),t=t.parent;return t?new Va(t,e):new Va(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=en(this._data,t);_a.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new La(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof rs||(i=o.get(is));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return Je(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return rn(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=en(this._data,t);e&&_a.destroyView(e)},t.prototype.detach=function(t){var e=en(this._data,t);return e?new La(e):null},t}(),La=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return we(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){ae(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),_a.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){_a.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),_a.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,sn(this._view),_a.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),Fa=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return s(e,t),e.prototype.createEmbeddedView=function(t){return new La(_a.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Rs(qt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(Vs),Va=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=yo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return _a.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:te(t)},e)},t}(),Ba=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Oe(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=Oe(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),Ua=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,We(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=yo.THROW_IF_NOT_FOUND),Ke(this,{token:t,tokenKey:te(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(Zo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+l(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Qe(this,131072),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Ha=te(Os),za=te(Ms),qa=te(Rs),Ga=te(Bs),Wa=te(Vs),Ka=te(Us),$a=te(yo),Ya=new Object,Xa={},Qa={};Qa.CreateViewNodes=0,Qa.CheckNoChanges=1,Qa.CheckNoChangesProjectedViews=2,Qa.CheckAndUpdate=3,Qa.CheckAndUpdateProjectedViews=4,Qa.Destroy=5,Qa[Qa.CreateViewNodes]="CreateViewNodes",Qa[Qa.CheckNoChanges]="CheckNoChanges",Qa[Qa.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",Qa[Qa.CheckAndUpdate]="CheckAndUpdate",Qa[Qa.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",Qa[Qa.Destroy]="Destroy";var Ja=!1,Za=new Map,tu={};tu.create=0,tu.detectChanges=1,tu.checkNoChanges=2,tu.destroy=3,tu.handleEvent=4,tu[tu.create]="create",tu[tu.detectChanges]="detectChanges",tu[tu.checkNoChanges]="checkNoChanges",tu[tu.destroy]="destroy",tu[tu.handleEvent]="handleEvent";var eu,nu,ru,iu=/([A-Z])/g,ou=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=pe(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return qt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return fn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){oi(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&oi(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=ii(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?he(this.view,this.nodeDef):he(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.index):(r=this.elView.def,i=this.elDef.index);var o=ri(r,i),s=-1,a=function(){return s++,s===o?(n=t.error).bind.apply(n,[t].concat(e)):wa;var n};r.factory(a),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),su=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new au(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),au=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){Mt(Tt(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=ai();if(r){var i=new Ws(n,null,r);i.name=t,At(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=ai();return n&&At(new Gs(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=ai();return n&&At(new Gs(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=Tt(t),r=Tt(e);n&&r&&n instanceof Ws&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=Tt(t),i=Tt(e),o=Tt(n);r&&i&&r instanceof Ws&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=Tt(t),r=Tt(e);n&&r&&n instanceof Ws&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=ai();return n&&At(new Ws(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=Tt(t);if(i&&i instanceof Ws){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=Tt(t);if(r&&r instanceof Ws){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=Tt(t);n&&n instanceof Ws&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=Tt(t);n&&n instanceof Ws&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=Tt(t);i&&i instanceof Ws&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=Tt(t);r&&r instanceof Ws&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=Tt(t);r&&r instanceof Ws&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=Tt(t);r&&r.listeners.push(new qs(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),uu=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return s(e,t),e.prototype.create=function(t){kr();var e=_e(this._ngModuleDefFactory);return _a.createNgModuleRef(this.moduleType,t||yo.NULL,this._bootstrapComponents,e)},e}(os);t.Class=d,t.createPlatform=mt,t.assertPlatform=gt,t.destroyPlatform=vt,t.getPlatform=bt,t.PlatformRef=ws,t.ApplicationRef=Es,t.enableProdMode=dt,t.isDevMode=ft,t.createPlatformFactory=yt,t.NgProbeToken=_s,t.APP_ID=Fo,t.PACKAGE_ROOT_URL=zo,t.PLATFORM_INITIALIZER=Bo,t.PLATFORM_ID=Uo,t.APP_BOOTSTRAP_LISTENER=Ho,t.APP_INITIALIZER=jo,t.ApplicationInitStatus=Lo,t.DebugElement=Ws,t.DebugNode=Gs,t.asNativeElements=Pt,t.getDebugNode=Tt,t.Testability=ds,t.TestabilityRegistry=fs,t.setTestabilityGetter=ht,t.TRANSLATIONS=da,t.TRANSLATIONS_FORMAT=fa,t.LOCALE_ID=ha,t.MissingTranslationStrategy=ma,t.ApplicationModule=ya,t.wtfCreateScope=as,t.wtfLeave=us,t.wtfStartTimeRange=cs,t.wtfEndTimeRange=ls,t.Type=Eo,t.EventEmitter=ps,t.ErrorHandler=_o,t.Sanitizer=va,t.SecurityContext=ga,t.ANALYZE_FOR_ENTRY_COMPONENTS=Li,t.Attribute=Fi,t.ContentChild=Ui,t.ContentChildren=Bi,t.Query=Vi,t.ViewChild=zi,t.ViewChildren=Hi,t.Component=Ki,t.Directive=Wi,t.HostBinding=Qi,t.HostListener=Ji,t.Input=Yi,t.Output=Xi,t.Pipe=$i,t.CUSTOM_ELEMENTS_SCHEMA=Zi,t.NO_ERRORS_SCHEMA=to,t.NgModule=eo,t.ViewEncapsulation=no,t.Version=io,t.VERSION=oo,t.forwardRef=b,t.resolveForwardRef=_,t.Injector=yo,t.ReflectiveInjector=Io,t.ResolvedReflectiveFactory=Mo,t.ReflectiveKey=wo,t.InjectionToken=Ti,t.OpaqueToken=ki,t.Inject=so,t.Optional=ao,t.Injectable=uo,t.Self=co,t.SkipSelf=lo,t.Host=po,t.NgZone=hs,t.RenderComponentType=Ss,t.Renderer=Os,t.Renderer2=Ms,t.RendererFactory2=Ts,t.RendererStyleFlags2=As,t.RootRenderer=ks,t.COMPILER_OPTIONS=Ko,t.Compiler=Wo,t.CompilerFactory=$o,t.ModuleWithComponentFactories=Go,t.ComponentFactory=Xo,t.ComponentRef=Yo,t.ComponentFactoryResolver=Zo,t.ElementRef=Rs,t.NgModuleFactory=os,t.NgModuleRef=is,t.NgModuleFactoryLoader=Is,t.getModuleFactory=Et,t.QueryList=Ns,t.SystemJsNgModuleLoader=Fs,t.SystemJsNgModuleLoaderConfig=js,t.TemplateRef=Vs,t.ViewContainerRef=Bs,t.EmbeddedViewRef=zs,t.ViewRef=Hs,t.ChangeDetectionStrategy=qi,t.ChangeDetectorRef=Us,t.DefaultIterableDiffer=Zs,t.IterableDiffers=sa,t.KeyValueDiffers=aa,t.SimpleChange=Xs,t.WrappedValue=$s,t.platformCore=pa,t.ɵALLOW_MULTIPLE_PLATFORMS=bs,t.ɵAPP_ID_RANDOM_PROVIDER=Vo,t.ɵValueUnwrapper=Ys,t.ɵdevModeEqual=Rt,t.ɵisListLikeIterable=It,t.ɵChangeDetectorStatus=Gi,t.ɵisDefaultChangeDetectionStrategy=v,t.ɵConsole=qo,t.ɵERROR_COMPONENT_TYPE="ngComponentType",t.ɵComponentFactory=Xo,t.ɵCodegenComponentFactoryResolver=ns,t.ɵViewMetadata=ro,t.ɵReflectionCapabilities=So,t.ɵRenderDebugInfo=Ps,t.ɵglobal=Ii,t.ɵlooseIdentical=c,t.ɵstringify=l,t.ɵmakeDecorator=f,t.ɵisObservable=Q,t.ɵisPromise=X,t.ɵclearProviderOverrides=ci,t.ɵoverrideProvider=ui,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=Xa,t.ɵregisterModuleFactory=Ct,t.ɵEMPTY_ARRAY=ka,t.ɵEMPTY_MAP=Ta,t.ɵand=Re,t.ɵccf=cn,t.ɵcmf=li,t.ɵcrt=ne,t.ɵdid=vn,t.ɵeld=Ie,t.ɵelementEventFullName=de,t.ɵgetComponentViewDefinitionFactory=ln,t.ɵinlineInterpolate=Ae,t.ɵinterpolate=Te,t.ɵmod=Ge,t.ɵmpd=qe,t.ɵncd=zn,t.ɵnov=mn,t.ɵpid=bn,t.ɵprd=_n,t.ɵpad=Wn,t.ɵpod=Kn,t.ɵppd=Gn,t.ɵqud=Ln,t.ɵted=Jn,t.ɵunv=ee,t.ɵvid=rr,t.AUTO_STYLE="*",t.trigger=bi,t.animate=_i,t.group=wi,t.sequence=Ci,t.style=Ei,t.state=xi,t.keyframes=Si,t.transition=Pi,t.ɵx=hi,t.ɵy=di,t.ɵbc=gi,t.ɵz=fi,t.ɵbb=yi,t.ɵba=mi,t.ɵbd=vi,t.ɵw=pi,t.ɵk=Bt,t.ɵl=Ut,t.ɵm=Ht,t.ɵe=xs,t.ɵf=J,t.ɵg=ca,t.ɵh=la,t.ɵi=Qs,t.ɵj=ra,t.ɵb=Do,t.ɵc=ko,t.ɵd=H,t.ɵn=ss,t.ɵp=rt,t.ɵo=nt,t.ɵs=st,t.ɵq=it,t.ɵr=ot,t.ɵa=y,t.ɵt=wn,t.ɵu=ba,Object.defineProperty(t,"__esModule",{value:!0})})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"rxjs/Observable":42,"rxjs/Subject":46,"rxjs/observable/merge":65,"rxjs/operator/share":87}],32:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/observable/forkJoin"),t("rxjs/observable/fromPromise"),t("rxjs/operator/map"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.forms=r.ng.forms||{}),r.ng.core,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.ng.platformBrowser)}(this,function(t,e,n,r,i,o){"use strict";function s(t,e){function n(){this.constructor=t}L(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function a(t){return null==t||0===t.length}function u(t){return null!=t}function c(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function l(t,e){return e.map(function(e){return e(t)})}function p(t,e){return e.map(function(e){return e(t)})}function h(t){var e=t.reduce(function(t,e){return null!=e?Object.assign({},t,e):t},{});return 0===Object.keys(e).length?null:e}function d(){var t=o.ɵgetDOM()?o.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function m(t){return t.validate?function(e){return t.validate(e)}:t}function y(){throw new Error("unimplemented")}function g(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 b(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 w(t,e){return e.path.concat([t])}function C(t,e){t||P(e,"Cannot find control with"),e.valueAccessor||P(e,"No value accessor for form control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function E(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 x(t,e){null==t&&P(e,"Cannot find control with"),t.validator=z.compose([t.validator,e.validator]),t.asyncValidator=z.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return P(t,"There is no FormControl instance attached to form control element with")}function P(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function O(t){return null!=t?z.compose(t.map(f)):null}function k(t){return null!=t?z.composeAsync(t.map(m)):null}function T(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}function A(t){return lt.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===Y?n=e:A(e)?(r&&P(t,"More than one built-in value accessor matches form control with"),r=e):(i&&P(t,"More than one custom value accessor matches form control with"),i=e)}),i||(r||(n||(P(t,"No valid value accessor for form control with"),null)))}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof vt?t.controls[e]||null:t instanceof bt?t.at(e)||null:null},t))}function I(t){return Array.isArray(t)?O(t):t||null}function D(t){return Array.isArray(t)?k(t):t||null}function N(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function j(t){return!(t instanceof jt||t instanceof Dt||t instanceof Ft)}var L=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},F=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(F),B=new e.InjectionToken("NgValidators"),U=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])?)*$/,z=function(){function t(){}return t.min=function(t){return function(e){if(a(e.value)||a(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(a(e.value)||a(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return a(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(a(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(a(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(u);return 0==e.length?null:function(t){return h(l(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(u);return 0==e.length?null:function(t){var r=p(t,e).map(c);return i.map.call(n.forkJoin(r),h)}},t}(),q=new e.InjectionToken("NgValueAccessor"),G={provide:q,useExisting:e.forwardRef(function(){return W}),multi:!0},W=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();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.Renderer2},{type:e.ElementRef}]};var K={provide:q,useExisting:e.forwardRef(function(){return Y}),multi:!0},$=new e.InjectionToken("CompositionEventMode"),Y=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!d())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Y.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:[K]}]}],Y.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[$]}]}]};var X={provide:q,useExisting:e.forwardRef(function(){return Q}),multi:!0},Q=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();Q.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]}]}],Q.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]};var J=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 s(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return y()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return y()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(F),Z={provide:q,useExisting:e.forwardRef(function(){return et}),multi:!0},tt=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();tt.decorators=[{type:e.Injectable}],tt.ctorParameters=function(){return[]};var et=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(J),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}();et.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Z]}]}],et.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:tt},{type:e.Injector}]},et.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var nt={provide:q,useExisting:e.forwardRef(function(){return rt}),multi:!0},rt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[nt]}]}],rt.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]};var it={provide:q,useExisting:e.forwardRef(function(){return ot}),multi:!0},ot=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=g(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();ot.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:[it]}]}],ot.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},ot.propDecorators={compareWith:[{type:e.Input}]};var st=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();st.decorators=[{type:e.Directive,args:[{selector:"option"}]}],st.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:ot,decorators:[{type:e.Optional},{type:e.Host}]}]},st.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var at={provide:q,useExisting:e.forwardRef(function(){return ut}),multi:!0},ut=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=e._getOptionValue(s.value);r.push(a)}else for(var i=n.options,o=0;o<i.length;o++)if((s=i.item(o)).selected){a=e._getOptionValue(s.value);r.push(a)}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=_(t);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.Renderer2},{type:e.ElementRef}]},ut.propDecorators={compareWith:[{type:e.Input}]};var ct=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(b(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(b(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ct.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ct.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:ut,decorators:[{type:e.Optional},{type:e.Host}]}]},ct.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var lt=[W,rt,Q,ot,ut,et],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return O(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return k(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),ht=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),dt={"[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"},ft=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e}(ht);ft.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:dt}]}],ft.ctorParameters=function(){return[{type:J,decorators:[{type:e.Self}]}]};var mt=function(t){function e(e){return t.call(this,e)||this}return s(e,t),e}(ht);mt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:dt}]}],mt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=I(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=D(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this._touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this._pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this._status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=c(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this._errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this._pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this._touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),gt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,I(n),D(r))||this;return i._onChange=[],i._applyFormState(e),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return s(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),vt=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof gt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(yt),bt=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return s(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof gt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++)if(e[t].enabled)return!1;return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),_t={provide:V,useExisting:e.forwardRef(function(){return Ct})},wt=Promise.resolve(null),Ct=function(t){function n(n,r){var i=t.call(this)||this;return i._submitted=!1,i.ngSubmit=new e.EventEmitter,i.form=new vt({},O(n),k(r)),i}return s(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),C(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path),r=new vt({});x(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;wt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;wt.then(function(){n.form.get(t.path).setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);Ct.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[_t],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Ct.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]};var Et={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},xt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+Et.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+Et.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Et.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Et.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Et.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Et.ngModelGroup)},t}(),St={provide:V,useExisting:e.forwardRef(function(){return Pt})},Pt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Ct||xt.modelGroupParentException()},e}(pt);Pt.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[St],exportAs:"ngModelGroup"}]}],Pt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Pt.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Ot={provide:J,useExisting:e.forwardRef(function(){return Tt})},kt=Promise.resolve(null),Tt=function(t){function n(n,r,i,o){var s=t.call(this)||this;return s._control=new gt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=M(s,o),s}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),T(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?w(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return k(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){C(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Pt)&&this._parent instanceof pt?xt.formGroupNameException():this._parent instanceof Pt||this._parent instanceof Ct||xt.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xt.missingNameException()},n.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;kt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(J);Tt.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ot],exportAs:"ngModel"}]}],Tt.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:[B]}]},{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:[q]}]}]},Tt.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 At=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Et.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+Et.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+Et.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+Et.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Et.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+Et.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Mt={provide:J,useExisting:e.forwardRef(function(){return Rt})},Rt=function(t){function n(n,r,i){var o=t.call(this)||this;return o.update=new e.EventEmitter,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=M(o,i),o}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){At.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(C(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),T(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return k(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(J);Rt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Mt],exportAs:"ngForm"}]}],Rt.ctorParameters=function(){return[{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:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[q]}]}]},Rt.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 It={provide:V,useExisting:e.forwardRef(function(){return Dt})},Dt=function(t){function n(n,r){var i=t.call(this)||this;return i._validators=n,i._asyncValidators=r,i._submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new e.EventEmitter,i}return s(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return C(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){N(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(t){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);x(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(t){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(E(e._control,e),n&&C(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=O(this._validators);this.form.validator=z.compose([this.form.validator,t]);var e=k(this._asyncValidators);this.form.asyncValidator=z.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||At.missingFormException()},n}(V);Dt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[It],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Dt.ctorParameters=function(){return[{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:[U]}]}]},Dt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Nt={provide:V,useExisting:e.forwardRef(function(){return jt})},jt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(e,t),e.prototype._checkParentType=function(){j(this._parent)&&At.groupParentException()},e}(pt);jt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Nt]}]}],jt.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:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},jt.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Lt={provide:V,useExisting:e.forwardRef(function(){return Ft})},Ft=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return s(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 w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return O(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return k(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){j(this._parent)&&At.arrayParentException()},e}(V);Ft.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Lt]}]}],Ft.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:[B]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Ft.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Vt={provide:J,useExisting:e.forwardRef(function(){return Bt})},Bt=function(t){function n(n,r,i,o){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=M(s,o),s}return s(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){At.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),T(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return w(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return O(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return k(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof jt)&&this._parent instanceof pt?At.ngModelGroupException():this._parent instanceof jt||this._parent instanceof Dt||this._parent instanceof Ft||At.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(J);Bt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Vt]}]}],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:[B]}]},{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:[q]}]}]},Bt.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 Ut={provide:B,useExisting:e.forwardRef(function(){return zt}),multi:!0},Ht={provide:B,useExisting:e.forwardRef(function(){return qt}),multi:!0},zt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?z.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();zt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Ut],host:{"[attr.required]":'required ? "" : null'}}]}],zt.ctorParameters=function(){return[]},zt.propDecorators={required:[{type:e.Input}]};var qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.validate=function(t){return this.required?z.requiredTrue(t):null},e}(zt);qt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],qt.ctorParameters=function(){return[]};var Gt={provide:B,useExisting:e.forwardRef(function(){return Wt}),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?z.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Wt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Gt]}]}],Wt.ctorParameters=function(){return[]},Wt.propDecorators={email:[{type:e.Input}]};var Kt={provide:B,useExisting:e.forwardRef(function(){return $t}),multi:!0},$t=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=z.minLength(parseInt(this.minlength,10))},t}();$t.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Kt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={minlength:[{type:e.Input}]};var Yt={provide:B,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=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=z.maxLength(parseInt(this.maxlength,10))},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Yt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={maxlength:[{type:e.Input}]};var Qt={provide:B,useExisting:e.forwardRef(function(){return Jt}),multi:!0},Jt=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=z.pattern(this.pattern)},t}();Jt.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Qt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={pattern:[{type:e.Input}]};var Zt=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new vt(n,r,i)},t.prototype.control=function(t,e,n){return new gt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new bt(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof gt||t instanceof vt||t instanceof bt)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();Zt.decorators=[{type:e.Injectable}],Zt.ctorParameters=function(){return[]};var te=new e.Version("4.3.0"),ee=function(){function t(){}return t}();ee.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var ne=[ee,st,ct,Y,Q,rt,W,ot,ut,et,ft,mt,zt,$t,Xt,Jt,qt,Wt],re=[Tt,Pt,Ct],ie=[Rt,Dt,Bt,jt,Ft],oe=function(){function t(){}return t}();oe.decorators=[{type:e.NgModule,args:[{declarations:ne,exports:ne}]}],oe.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:e.NgModule,args:[{declarations:re,providers:[tt],exports:[oe,re]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:e.NgModule,args:[{declarations:[ie],providers:[Zt,tt],exports:[oe,ie]}]}],ae.ctorParameters=function(){return[]},t.AbstractControlDirective=F,t.AbstractFormGroupDirective=pt,t.CheckboxControlValueAccessor=W,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=q,t.COMPOSITION_BUFFER_MODE=$,t.DefaultValueAccessor=Y,t.NgControl=J,t.NgControlStatus=ft,t.NgControlStatusGroup=mt,t.NgForm=Ct,t.NgModel=Tt,t.NgModelGroup=Pt,t.RadioControlValueAccessor=et,t.FormControlDirective=Rt,t.FormControlName=Bt,t.FormGroupDirective=Dt,t.FormArrayName=Ft,t.FormGroupName=jt,t.NgSelectOption=st,t.SelectControlValueAccessor=ot,t.SelectMultipleControlValueAccessor=ut,t.CheckboxRequiredValidator=qt,t.EmailValidator=Wt,t.MaxLengthValidator=Xt,t.MinLengthValidator=$t,t.PatternValidator=Jt,t.RequiredValidator=zt,t.FormBuilder=Zt,t.AbstractControl=yt,t.FormArray=bt,t.FormControl=gt,t.FormGroup=vt,t.NG_ASYNC_VALIDATORS=U,t.NG_VALIDATORS=B,t.Validators=z,t.VERSION=te,t.FormsModule=se,t.ReactiveFormsModule=ae,t.ɵba=oe,t.ɵz=ie,t.ɵx=ne,t.ɵy=re,t.ɵa=G,t.ɵb=K,t.ɵc=ht,t.ɵd=dt,t.ɵe=_t,t.ɵf=Ot,t.ɵg=St,t.ɵbf=ee,t.ɵbb=X,t.ɵbc=Q,t.ɵh=Z,t.ɵi=tt,t.ɵbd=nt,t.ɵbe=rt,t.ɵj=Mt,t.ɵk=Vt,t.ɵl=It,t.ɵn=Lt,t.ɵm=Nt,t.ɵo=it,t.ɵq=ct,t.ɵp=at,t.ɵs=Ht,t.ɵt=Gt,t.ɵv=Yt,t.ɵu=Kt,t.ɵw=Qt,t.ɵr=Ut,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":31,"@angular/platform-browser":37,"rxjs/observable/forkJoin":61,"rxjs/observable/fromPromise":64,"rxjs/operator/map":80}],33:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("rxjs/Observable"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.http=r.ng.http||{}),r.ng.core,r.Rx,r.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function i(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return b.Get;case"POST":return b.Post;case"PUT":return b.Put;case"DELETE":return b.Delete;case"OPTIONS":return b.Options;case"HEAD":return b.Head;case"PATCH":return b.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function s(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function a(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function u(t){void 0===t&&(t="");var e=new Map;return t.length>0&&t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)}),e}function c(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 l(){var t="object"==typeof window?window:{};return null===L&&(L=t[j]={}),L}function p(t){var e=new R;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}function h(t,e){return t.createConnection(e).response}function d(t,e,n,r){var i=t;return e?i.merge(new Y({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):i.merge(new Y({method:n,url:r}))}function f(){return new K}function m(t,e){return new rt(t,e)}function y(t,e){return new it(t,e)}var g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},v=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();v.decorators=[{type:e.Injectable}],v.ctorParameters=function(){return[]};var b={};b.Get=0,b.Post=1,b.Put=2,b.Delete=3,b.Options=4,b.Head=5,b.Patch=6,b[b.Get]="Get",b[b.Post]="Post",b[b.Put]="Put",b[b.Delete]="Delete",b[b.Options]="Options",b[b.Head]="Head",b[b.Patch]="Patch";var _={};_.Unsent=0,_.Open=1,_.HeadersReceived=2,_.Loading=3,_.Done=4,_.Cancelled=5,_[_.Unsent]="Unsent",_[_.Open]="Open",_[_.HeadersReceived]="HeadersReceived",_[_.Loading]="Loading",_[_.Done]="Done",_[_.Cancelled]="Cancelled";var w={};w.Basic=0,w.Cors=1,w.Default=2,w.Error=3,w.Opaque=4,w[w.Basic]="Basic",w[w.Cors]="Cors",w[w.Default]="Default",w[w.Error]="Error",w[w.Opaque]="Opaque";var C={};C.NONE=0,C.JSON=1,C.FORM=2,C.FORM_DATA=3,C.TEXT=4,C.BLOB=5,C.ARRAY_BUFFER=6,C[C.NONE]="NONE",C[C.JSON]="JSON",C[C.FORM]="FORM",C[C.FORM_DATA]="FORM_DATA",C[C.TEXT]="TEXT",C[C.BLOB]="BLOB",C[C.ARRAY_BUFFER]="ARRAY_BUFFER";var E={};E.Text=0,E.Json=1,E.ArrayBuffer=2,E.Blob=3,E[E.Text]="Text",E[E.Json]="Json",E[E.ArrayBuffer]="ArrayBuffer",E[E.Blob]="Blob";var x=function(){function t(e){var n=this;this._headers=new Map,this._normalizedNames=new Map,e&&(e instanceof t?e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})}))}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),S=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s: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}(),P=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:w.Default,headers:new x})||this}return i(e,t),e}(S);P.decorators=[{type:e.Injectable}],P.ctorParameters=function(){return[]};var O=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),k=function(){function t(){}return t}(),T=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),A=function(t){return t>=200&&t<300},M=function(){function t(){}return t.prototype.encodeKey=function(t){return c(t)},t.prototype.encodeValue=function(t){return c(t)},t}(),R=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new M),this.rawParams=t,this.queryEncoder=e,this.paramsMap=u(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)}else this.delete(t)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),I=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof R)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:a(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}(),D=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return i(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(I),N=0,j="__ng_jsonp__",L=null,F=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"+N++},t.prototype.requestCallback=function(t){return j+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){l()[t]=e},t.prototype.removeConnection=function(t){l()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[]};var V="JSONP injected script did not invoke callback.",B="JSONP requests must use GET request method.",U=function(){function t(){}return t.prototype.finished=function(t){},t}(),H=function(t){function e(e,r,i){var o=t.call(this)||this;if(o._dom=r,o.baseResponseOptions=i,o._finished=!1,e.method!==b.Get)throw new TypeError(B);return o.request=e,o.response=new n.Observable(function(t){o.readyState=_.Loading;var n=o._id=r.nextRequestID();r.exposeConnection(n,o);var s=r.requestCallback(o._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=o._script=r.build(a),c=function(e){if(o.readyState!==_.Cancelled){if(o.readyState=_.Done,r.cleanup(u),!o._finished){var n=new S({body:V,type:w.Error,url:a});return i&&(n=i.merge(n)),void t.error(new D(n))}var s=new S({body:o._responseData,url:a});o.baseResponseOptions&&(s=o.baseResponseOptions.merge(s)),t.next(new D(s)),t.complete()}},l=function(e){if(o.readyState!==_.Cancelled){o.readyState=_.Done,r.cleanup(u);var n=new S({body:e.message,type:w.Error});i&&(n=i.merge(n)),t.error(new D(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){o.readyState=_.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),o._dom.cleanup(u)}}),o}return i(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==_.Cancelled&&(this._responseData=t)},e}(U),z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(O),q=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return i(e,t),e.prototype.createConnection=function(t){return new H(t,this._browserJSONP,this._baseResponseOptions)},e}(z);q.decorators=[{type:e.Injectable}],q.ctorParameters=function(){return[{type:F},{type:S}]};var G=/^\)\]\}',?\n/,W=function(){function t(t,e,r){var i=this;this.request=t,this.response=new n.Observable(function(n){var o=e.build();o.open(b[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(o.withCredentials=t.withCredentials);var a=function(){var e=1223===o.status?204:o.status,i=null;204!==e&&"string"==typeof(i=void 0===o.response?o.responseText:o.response)&&(i=i.replace(G,"")),0===e&&(e=i?200:0);var a=x.fromResponseHeaderString(o.getAllResponseHeaders()),u=s(o)||t.url,c=o.statusText||"OK",l=new S({body:i,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new D(l);if(p.ok=A(e),p.ok)return n.next(p),void n.complete();n.error(p)},u=function(t){var e=new S({body:t,type:w.Error,status:o.status,statusText:o.statusText});null!=r&&(e=r.merge(e)),n.error(new D(e))};if(i.setDetectedContentType(t,o),null==t.headers&&(t.headers=new x),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return o.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=o.responseType)switch(t.responseType){case E.ArrayBuffer:o.responseType="arraybuffer";break;case E.Json:o.responseType="json";break;case E.Text:o.responseType="text";break;case E.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",a),o.addEventListener("error",u),o.send(i.request.getBody()),function(){o.removeEventListener("load",a),o.removeEventListener("error",u),o.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case C.NONE:break;case C.JSON:e.setRequestHeader("content-type","application/json");break;case C.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case C.TEXT:e.setRequestHeader("content-type","text/plain");break;case C.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),K=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),$=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new W(t,this._browserXHR,this._baseResponseOptions)},t}();$.decorators=[{type:e.Injectable}],$.ctorParameters=function(){return[{type:v},{type:S},{type:T}]};var Y=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,r=t.body,i=t.url,s=t.search,a=t.params,u=t.withCredentials,c=t.responseType;this.method=null!=e?o(e):null,this.headers=null!=n?n:null,this.body=null!=r?r:null,this.url=null!=i?i:null,this.params=this._mergeSearchParams(a||s),this.withCredentials=null!=u?u:null,this.responseType=null!=c?c: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 x(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof R?t.clone():"string"==typeof t?new R(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new R;return Object.keys(t).forEach(function(r){var i=t[r];Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),X=function(t){function e(){return t.call(this,{method:b.Get,headers:new x})||this}return i(e,t),e}(Y);X.decorators=[{type:e.Injectable}],X.ctorParameters=function(){return[]};var Q=function(t){function e(e){var n=t.call(this)||this,r=e.url;n.url=e.url;var i=e.params||e.search;if(i){var s=void 0;if((s="object"!=typeof i||i instanceof R?i.toString():p(i).toString()).length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=r+a+s}}return n._body=e.body,n.method=o(e.method),n.headers=new x(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return i(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return C.JSON;case"application/x-www-form-urlencoded":return C.FORM;case"multipart/form-data":return C.FORM_DATA;case"text/plain":case"text/html":return C.TEXT;case"application/octet-stream":return this._body instanceof nt?C.ARRAY_BUFFER:C.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?C.NONE:this._body instanceof R?C.FORM:this._body instanceof tt?C.FORM_DATA:this._body instanceof et?C.BLOB:this._body instanceof nt?C.ARRAY_BUFFER:this._body&&"object"==typeof this._body?C.JSON:C.TEXT},e.prototype.getBody=function(){switch(this.contentType){case C.JSON:case C.FORM:return this.text();case C.FORM_DATA:return this._body;case C.TEXT:return this.text();case C.BLOB:return this.blob();case C.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(I),J=function(){},Z="object"==typeof window?window:J,tt=Z.FormData||J,et=Z.Blob||J,nt=Z.ArrayBuffer||J,rt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=h(this._backend,new Q(d(this._defaultOptions,e,b.Get,t)));else{if(!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");n=h(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new Q(d(this._defaultOptions,e,b.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new Q(d(this._defaultOptions.merge(new Y({body:e})),n,b.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new Q(d(this._defaultOptions.merge(new Y({body:e})),n,b.Put,t)))},t.prototype.delete=function(t,e){return this.request(new Q(d(this._defaultOptions,e,b.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new Q(d(this._defaultOptions.merge(new Y({body:e})),n,b.Patch,t)))},t.prototype.head=function(t,e){return this.request(new Q(d(this._defaultOptions,e,b.Head,t)))},t.prototype.options=function(t,e){return this.request(new Q(d(this._defaultOptions,e,b.Options,t)))},t}();rt.decorators=[{type:e.Injectable}],rt.ctorParameters=function(){return[{type:O},{type:Y}]};var it=function(t){function e(e,n){return t.call(this,e,n)||this}return i(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new Q(d(this._defaultOptions,e,b.Get,t))),!(t instanceof Q))throw new Error("First argument must be a url string or Request instance.");if(t.method!==b.Get)throw new Error("JSONP requests must use GET request method.");return h(this._backend,t)},e}(rt);it.decorators=[{type:e.Injectable}],it.ctorParameters=function(){return[{type:O},{type:Y}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:rt,useFactory:m,deps:[$,Y]},v,{provide:Y,useClass:X},{provide:S,useClass:P},$,{provide:T,useFactory:f}]}]}],ot.ctorParameters=function(){return[]};var st=function(){function t(){}return t}();st.decorators=[{type:e.NgModule,args:[{providers:[{provide:it,useFactory:y,deps:[z,Y]},F,{provide:Y,useClass:X},{provide:S,useClass:P},{provide:z,useClass:q}]}]}],st.ctorParameters=function(){return[]};var at=new e.Version("4.3.1");t.BrowserXhr=v,t.JSONPBackend=z,t.JSONPConnection=U,t.CookieXSRFStrategy=K,t.XHRBackend=$,t.XHRConnection=W,t.BaseRequestOptions=X,t.RequestOptions=Y,t.BaseResponseOptions=P,t.ResponseOptions=S,t.ReadyState=_,t.RequestMethod=b,t.ResponseContentType=E,t.ResponseType=w,t.Headers=x,t.Http=rt,t.Jsonp=it,t.HttpModule=ot,t.JsonpModule=st,t.Connection=k,t.ConnectionBackend=O,t.XSRFStrategy=T,t.Request=Q,t.Response=D,t.QueryEncoder=M,t.URLSearchParams=R,t.VERSION=at,t.ɵg=F,t.ɵa=q,t.ɵf=I,t.ɵb=f,t.ɵc=m,t.ɵd=y,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/core":31,"@angular/platform-browser":37,"rxjs/Observable":42}],34:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/cdk"),t("@angular/platform-browser"),t("@angular/common"),t("rxjs/Subject"),t("rxjs/Subscription"),t("rxjs/observable/fromEvent"),t("rxjs/observable/merge"),t("rxjs/observable/of"),t("@angular/forms"),t("@angular/animations"),t("@angular/http"),t("rxjs/Observable"),t("rxjs/observable/throw"),t("rxjs/observable/forkJoin")):i((r.ng=r.ng||{},r.ng.material=r.ng.material||{}),r.ng.core,r.ng.cdk,r.ng.platformBrowser,r.ng.common,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable,r.ng.forms,r.ng.animations,r.ng.http,r.Rx,r.Rx.Observable,r.Rx.Observable)}(this,function(t,e,n,r,i,o,s,a,u,c,l,p,h,d,f,m){"use strict";function y(t,e){function n(){this.constructor=t}gt(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function g(t,e){return Error('The "'+t+'-" prefix cannot be used in ng-material v1 compatibility mode. It was used on an "'+e.toLowerCase()+'" element.')}function v(t){window.getComputedStyle(t).getPropertyValue("opacity")}function b(t,e,n){var r=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(r*r+i*i)}function _(t,e,n){return t||new It(e,n)}function w(t,e){return t||new Nt(e)}function C(){return Error("Scroll strategy has already been attached.")}function E(t,e){return function(t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t.apply(this,n)||this;return i.color=e,i}return y(n,t),Object.defineProperty(n.prototype,"color",{get:function(){return this._color},set:function(t){var n=t||e;n!==this._color&&(this._color&&this._renderer.removeClass(this._elementRef.nativeElement,"mat-"+this._color),n&&this._renderer.addClass(this._elementRef.nativeElement,"mat-"+n),this._color=n)},enumerable:!0,configurable:!0}),n}(t)}function x(t){return function(t){function e(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.apply(this,e)||this;return r._disabled=!1,r}return y(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(t)}function S(t){return"string"==typeof t?t:t+"px"}function P(t){return t||new de}function O(t){return t||new Oe}function k(t,e,n){return t||new Te(e,n)}function T(t,e){var n=e.trim();t.style.transform=n,t.style.webkitTransform=n}function A(t,e){for(var n=Array(t),r=0;r<t;r++)n[r]=e(r);return n}function M(t,e){var n=e&&e.submitted;return!(!t.invalid||!t.touched&&!n)}function R(t,e){var n=e&&e.submitted;return!(!t.invalid||!t.dirty&&!n)}function I(){return Error("Cannot change `multiple` mode of select after initialization.")}function D(){return Error("Cannot assign truthy non-array value to select in `multiple` mode.")}function N(t,e,n){return Math.min(Math.max(t,e),n)}function j(t){throw Error("A sidenav was already declared for 'align=\""+t+"\"'")}function L(t){return""+(t||"")}function F(t){return"string"==typeof t?parseInt(t,10):t}function V(t){return"calc("+t+")"}function B(t){return t.match(/px|em|rem/)?t:t+"px"}function U(t){return Error('Unable to find icon with the name "'+t+'"')}function H(){return Error("Could not find Http provider for use with Angular Material icons. Please include the HttpModule from @angular/http in your app imports.")}function z(t){return Error("The URL provided to MdIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was \""+t+'".')}function q(t,e,n){return t||new Zr(e,n)}function G(t){return t.cloneNode(!0)}function W(t,e){return t+":"+e}function K(t){return Math.max(0,Math.min(100,t))}function $(t,e,n){var r=(n-90)*oi;return t+e*Math.cos(r)+","+(t+e*Math.sin(r))}function Y(t,e,n,r){return n*t/r+e}function X(t,e,n,r){var i=t/r,o=Math.pow(i,3),s=Math.pow(i,4);return e+n*(6*Math.pow(i,5)+-15*s+10*o)}function Q(t,e,n){var r,i=50-n,o=(e||0)*si,s=t*si,a=$(50,i,o),u=$(50,i,s+o),c=s<0?0:1;return r=s<0?s>=-180?0:1:s<=180?0:1,"M"+a+"A"+i+","+i+" 0 "+r+","+c+" "+u}function J(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=100),Math.max(e,Math.min(n,t))}function Z(){return Error("Placeholder attribute and child element were both specified.")}function tt(t){return Error('Input type "'+t+"\" isn't supported by md-input-container.")}function et(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}function nt(){return Error("md-input-container must contain an mdInput directive. Did you forget to add mdInput to the native input or textarea element?")}function rt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var r=0,i=e;r<i.length;r++){var o=i[r];if(null!=o)for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function it(t){return rt(new ki,t)}function ot(t){return Error('Tooltip position "'+t+'" is invalid.')}function st(){throw Error('md-menu-trigger: must pass in an md-menu instance.\n\n Example:\n <md-menu #menu="mdMenu"></md-menu>\n <button [mdMenuTriggerFor]="menu"></button>')}function at(){throw Error('x-position value must be either \'before\' or after\'.\n Example: <md-menu x-position="before" #menu="mdMenu"></md-menu>')}function ut(){throw Error('y-position value must be either \'above\' or below\'.\n Example: <md-menu y-position="above" #menu="mdMenu"></md-menu>')}function ct(){throw Error("Attempting to attach dialog content after content is already attached")}function lt(t){return rt(new yo,t)}function pt(){return Error("Attempting to open an undefined instance of `md-autocomplete`. Make sure that the id passed to the `mdAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.")}function ht(t){return Error("MdDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MdNativeDateModule, or provide a custom implementation.")}function dt(t){return Error("Cannot have two MdSortables with the same id ("+t+").")}function ft(){return Error("MdSortHeader must be placed within a parent element with the MdSort directive.")}function mt(){return Error("MdSortHeader must be provided with a unique id.")}function yt(t,e){var n=["asc","desc"];return"desc"==t&&n.reverse(),e||n.push(""),n}var gt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},vt=new e.InjectionToken("md-compatibility-mode"),bt="\n [mat-button],\n [mat-fab],\n [mat-icon-button],\n [mat-mini-fab],\n [mat-raised-button],\n [matCardSubtitle],\n [matCardTitle],\n [matDialogActions],\n [matDialogClose],\n [matDialogContent],\n [matDialogTitle],\n [matLine],\n [matTabLabel],\n [matTabLink],\n [matTabNav],\n [matTooltip],\n mat-autocomplete,\n mat-button-toggle,\n mat-button-toggle,\n mat-button-toggle-group,\n mat-card,\n mat-card-actions,\n mat-card-content,\n mat-card-footer,\n mat-card-header,\n mat-card-subtitle,\n mat-card-title,\n mat-card-title-group,\n mat-cell,\n mat-checkbox,\n mat-chip,\n mat-dialog-actions,\n mat-dialog-container,\n mat-dialog-content,\n mat-divider,\n mat-error,\n mat-grid-list,\n mat-grid-tile,\n mat-grid-tile-footer,\n mat-grid-tile-header,\n mat-header-cell,\n mat-hint,\n mat-icon,\n mat-list,\n mat-list-item,\n mat-menu,\n mat-nav-list,\n mat-option,\n mat-placeholder,\n mat-progress-bar,\n mat-pseudo-checkbox,\n mat-radio-button,\n mat-radio-group,\n mat-row,\n mat-select,\n mat-sidenav,\n mat-sidenav-container,\n mat-slider,\n mat-spinner,\n mat-tab,\n mat-table,\n mat-tab-group,\n mat-toolbar",_t="\n [md-button],\n [md-fab],\n [md-icon-button],\n [md-mini-fab],\n [md-raised-button],\n [mdCardSubtitle],\n [mdCardTitle],\n [mdDialogActions],\n [mdDialogClose],\n [mdDialogContent],\n [mdDialogTitle],\n [mdLine],\n [mdTabLabel],\n [mdTabLink],\n [mdTabNav],\n [mdTooltip],\n md-autocomplete,\n md-button-toggle,\n md-button-toggle,\n md-button-toggle-group,\n md-card,\n md-card-actions,\n md-card-content,\n md-card-footer,\n md-card-header,\n md-card-subtitle,\n md-card-title,\n md-card-title-group,\n md-cell,\n md-checkbox,\n md-chip,\n md-dialog-actions,\n md-dialog-container,\n md-dialog-content,\n md-divider,\n md-error,\n md-grid-list,\n md-grid-tile,\n md-grid-tile-footer,\n md-grid-tile-header,\n md-header-cell,\n md-hint,\n md-icon,\n md-list,\n md-list-item,\n md-menu,\n md-nav-list,\n md-option,\n md-placeholder,\n md-progress-bar,\n md-pseudo-checkbox,\n md-radio-button,\n md-radio-group,\n md-row,\n md-select,\n md-sidenav,\n md-sidenav-container,\n md-slider,\n md-spinner,\n md-tab,\n md-table,\n md-tab-group,\n md-toolbar",wt=function(){function t(t,e){if(!t)throw g("mat",e.nativeElement.nodeName)}return t}();wt.decorators=[{type:e.Directive,args:[{selector:bt}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[vt]}]},{type:e.ElementRef}]};var Ct=function(){function t(t,e){if(t)throw g("md",e.nativeElement.nodeName)}return t}();Ct.decorators=[{type:e.Directive,args:[{selector:_t}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[vt]}]},{type:e.ElementRef}]};var Et=function(){function t(){}return t}();Et.decorators=[{type:e.NgModule,args:[{declarations:[wt,Ct],exports:[wt,Ct]}]}],Et.ctorParameters=function(){return[]};var xt=function(){function t(){}return t}();xt.decorators=[{type:e.NgModule,args:[{providers:[{provide:vt,useValue:!0}]}]}],xt.ctorParameters=function(){return[]};var St=new e.InjectionToken("md-sanity-checks"),Pt=function(){function t(t,n){this._document=t,this._hasDoneGlobalChecks=!1,n&&!this._hasDoneGlobalChecks&&t&&e.isDevMode()&&(this._checkDoctype(),this._checkTheme(),this._hasDoneGlobalChecks=!0)}return t.prototype._checkDoctype=function(){this._document.doctype||console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkTheme=function(){if("function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t),"none"!==getComputedStyle(t).display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t}();Pt.decorators=[{type:e.NgModule,args:[{imports:[Et,n.BidiModule],exports:[Et,n.BidiModule],providers:[{provide:St,useValue:!0}]}]}],Pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r.DOCUMENT]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[St]}]}]};var Ot=function(){function t(){}return t}();Ot.decorators=[{type:e.Directive,args:[{selector:"[md-line], [mat-line], [mdLine], [matLine]",host:{class:"mat-line"}}]}],Ot.ctorParameters=function(){return[]};var kt=function(){function t(t,e,n){var r=this;this._lines=t,this._renderer=e,this._element=n,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){r._setLineClass(r._lines.length)})}return t.prototype._setLineClass=function(t){this._resetClasses(),2===t||3===t?this._setClass("mat-"+t+"-line",!0):t>3&&this._setClass("mat-multi-line",!0)},t.prototype._resetClasses=function(){this._setClass("mat-2-line",!1),this._setClass("mat-3-line",!1),this._setClass("mat-multi-line",!1)},t.prototype._setClass=function(t,e){e?this._renderer.addClass(this._element.nativeElement,t):this._renderer.removeClass(this._element.nativeElement,t)},t}(),Tt=function(){function t(){}return t}();Tt.decorators=[{type:e.NgModule,args:[{imports:[Pt],exports:[Ot,Pt],declarations:[Ot]}]}],Tt.ctorParameters=function(){return[]};var At={};At.FADING_IN=0,At.VISIBLE=1,At.FADING_OUT=2,At.HIDDEN=3,At[At.FADING_IN]="FADING_IN",At[At.VISIBLE]="VISIBLE",At[At.FADING_OUT]="FADING_OUT",At[At.HIDDEN]="HIDDEN";var Mt=function(){function t(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=At.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),Rt=function(){function t(t,e,n,r){this._ngZone=e,this._ruler=n,this._isMousedown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this.rippleConfig={},this.rippleDisabled=!1,r.isBrowser&&(this._containerElement=t.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown.bind(this)),this._triggerEvents.set("mouseup",this.onMouseup.bind(this)),this._triggerEvents.set("mouseleave",this.onMouseLeave.bind(this)),this.setTriggerElement(this._containerElement))}return t.prototype.fadeInRipple=function(t,e,n){var r=this;void 0===n&&(n={});var i=this._containerElement.getBoundingClientRect();if(n.centered)t=i.left+i.width/2,e=i.top+i.height/2;else{var o=this._ruler.getViewportScrollPosition();t-=o.left,e-=o.top}var s=n.radius||b(t,e,i),a=1/(n.speedFactor||1)*450,u=t-i.left,c=e-i.top,l=document.createElement("div");l.classList.add("mat-ripple-element"),l.style.left=u-s+"px",l.style.top=c-s+"px",l.style.height=2*s+"px",l.style.width=2*s+"px",l.style.backgroundColor=n.color||null,l.style.transitionDuration=a+"ms",this._containerElement.appendChild(l),v(l),l.style.transform="scale(1)";var p=new Mt(this,l,n);return p.state=At.FADING_IN,this._activeRipples.add(p),this.runTimeoutOutsideZone(function(){p.state=At.VISIBLE,n.persistent||r._isMousedown||p.fadeOut()},a),p},t.prototype.fadeOutRipple=function(t){if(this._activeRipples.delete(t)){var e=t.element;e.style.transitionDuration="400ms",e.style.opacity="0",t.state=At.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=At.HIDDEN,e.parentNode.removeChild(e)},400)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setTriggerElement=function(t){var e=this;this._triggerElement&&this._triggerEvents.forEach(function(t,n){e._triggerElement.removeEventListener(n,t)}),t&&this._ngZone.runOutsideAngular(function(){e._triggerEvents.forEach(function(e,n){return t.addEventListener(n,e)})}),this._triggerElement=t},t.prototype.onMousedown=function(t){this.rippleDisabled||(this._isMousedown=!0,this.fadeInRipple(t.pageX,t.pageY,this.rippleConfig))},t.prototype.onMouseup=function(){this._isMousedown=!1,this._activeRipples.forEach(function(t){t.config.persistent||t.state!==At.VISIBLE||t.fadeOut()})},t.prototype.onMouseLeave=function(){this._isMousedown&&this.onMouseup()},t.prototype.runTimeoutOutsideZone=function(t,e){void 0===e&&(e=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})},t}(),It=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new o.Subject,this._globalSubscription=null,this._scrolledCount=0,this.scrollableReferences=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._notify()});this.scrollableReferences.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollableReferences.get(t);e&&(e.unsubscribe(),this.scrollableReferences.delete(t))},t.prototype.scrolled=function(t,e){var r=this;if(void 0===t&&(t=20),!this._platform.isBrowser)return s.Subscription.EMPTY;var i=t>0?n.auditTime.call(this._scrolled.asObservable(),t):this._scrolled.asObservable();this._scrolledCount++,this._globalSubscription||(this._globalSubscription=this._ngZone.runOutsideAngular(function(){return u.merge(a.fromEvent(window.document,"scroll"),a.fromEvent(window,"resize")).subscribe(function(){return r._notify()})}));var o=i.subscribe(e);return o.add(function(){r._scrolledCount--,!r._globalSubscription||r.scrollableReferences.size||r._scrolledCount||(r._globalSubscription.unsubscribe(),r._globalSubscription=null)}),o},t.prototype.getScrollContainers=function(t){var e=this,n=[];return this.scrollableReferences.forEach(function(r,i){e.scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype.scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._notify=function(){this._scrolled.next()},t}();It.decorators=[{type:e.Injectable}],It.ctorParameters=function(){return[{type:e.NgZone},{type:n.Platform}]};var Dt={provide:It,deps:[[new e.Optional,new e.SkipSelf,It],e.NgZone,n.Platform],useFactory:_},Nt=function(){function t(t){var e=this;t.scrolled(0,function(){return e._cacheViewportGeometry()})}return t.prototype.getViewportRect=function(t){void 0===t&&(t=this._documentRect),t||(this._cacheViewportGeometry(),t=this._documentRect);var e=this.getViewportScrollPosition(t),n=window.innerHeight,r=window.innerWidth;return{top:e.top,left:e.left,bottom:e.top+n,right:e.left+r,height:n,width:r}},t.prototype.getViewportScrollPosition=function(t){return void 0===t&&(t=this._documentRect),t||(this._cacheViewportGeometry(),t=this._documentRect),{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype._cacheViewportGeometry=function(){this._documentRect=document.documentElement.getBoundingClientRect()},t}();Nt.decorators=[{type:e.Injectable}],Nt.ctorParameters=function(){return[{type:It}]};var jt={provide:Nt,deps:[[new e.Optional,new e.SkipSelf,Nt],It],useFactory:w},Lt=new e.InjectionToken("md-ripple-global-options"),Ft=function(){function t(t,e,n,r,i){this.radius=0,this.speedFactor=1,this._rippleRenderer=new Rt(t,e,n,r),this._globalOptions=i||{},this._updateRippleRenderer()}return t.prototype.ngOnChanges=function(t){t.trigger&&this.trigger&&this._rippleRenderer.setTriggerElement(this.trigger),this._updateRippleRenderer()},t.prototype.ngOnDestroy=function(){this._rippleRenderer.setTriggerElement(null)},t.prototype.launch=function(t,e,n){return void 0===n&&(n=this.rippleConfig),this._rippleRenderer.fadeInRipple(t,e,n)},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1),radius:this.radius,color:this.color}},enumerable:!0,configurable:!0}),t.prototype._updateRippleRenderer=function(){this._rippleRenderer.rippleDisabled=this._globalOptions.disabled||this.disabled,this._rippleRenderer.rippleConfig=this.rippleConfig},t}();Ft.decorators=[{type:e.Directive,args:[{selector:"[md-ripple], [mat-ripple], [mdRipple], [matRipple]",exportAs:"mdRipple",host:{class:"mat-ripple","[class.mat-ripple-unbounded]":"unbounded"}}]}],Ft.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:Nt},{type:n.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Lt]}]}]},Ft.propDecorators={trigger:[{type:e.Input,args:["mdRippleTrigger"]}],centered:[{type:e.Input,args:["mdRippleCentered"]}],disabled:[{type:e.Input,args:["mdRippleDisabled"]}],radius:[{type:e.Input,args:["mdRippleRadius"]}],speedFactor:[{type:e.Input,args:["mdRippleSpeedFactor"]}],color:[{type:e.Input,args:["mdRippleColor"]}],unbounded:[{type:e.Input,args:["mdRippleUnbounded"]}]};var Vt=function(){function t(t,e,n,r){this._elementRef=t,this._scroll=e,this._ngZone=n,this._renderer=r,this._elementScrolled=new o.Subject}return t.prototype.ngOnInit=function(){var t=this;this._scrollListener=this._ngZone.runOutsideAngular(function(){return t._renderer.listen(t.getElementRef().nativeElement,"scroll",function(e){t._elementScrolled.next(e)})}),this._scroll.register(this)},t.prototype.ngOnDestroy=function(){this._scroll.deregister(this),this._scrollListener&&(this._scrollListener(),this._scrollListener=null)},t.prototype.elementScrolled=function(){return this._elementScrolled.asObservable()},t.prototype.getElementRef=function(){return this._elementRef},t}();Vt.decorators=[{type:e.Directive,args:[{selector:"[cdk-scrollable], [cdkScrollable]"}]}],Vt.ctorParameters=function(){return[{type:e.ElementRef},{type:It},{type:e.NgZone},{type:e.Renderer2}]};var Bt=function(){function t(t){this._scrollDispatcher=t,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw C();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(0,function(){t._overlayRef.hasAttached()&&t._overlayRef.detach(),t.disable()}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),Ut=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),Ht=function(){function t(t){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=-this._previousScrollPosition.left+"px",t.style.top=-this._previousScrollPosition.top+"px",t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){this._isEnabled&&(this._isEnabled=!1,document.documentElement.style.left=this._previousHTMLStyles.left,document.documentElement.style.top=this._previousHTMLStyles.top,document.documentElement.classList.remove("cdk-global-scrollblock"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top))},t.prototype._canBeEnabled=function(){if(document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=document.body,e=this._viewportRuler.getViewportRect();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}(),zt=function(){function t(t,e){this._scrollDispatcher=t,this._config=e,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw C();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e,function(){t._overlayRef.updatePosition()})}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),qt=function(){function t(t,e){var n=this;this._scrollDispatcher=t,this._viewportRuler=e,this.noop=function(){return new Ut},this.close=function(){return new Bt(n._scrollDispatcher)},this.block=function(){return new Ht(n._viewportRuler)},this.reposition=function(t){return new zt(n._scrollDispatcher,t)}}return t}();qt.decorators=[{type:e.Injectable}],qt.ctorParameters=function(){return[{type:It},{type:Nt}]};var Gt=function(){function t(){}return t}();Gt.decorators=[{type:e.NgModule,args:[{imports:[n.PlatformModule],exports:[Vt],declarations:[Vt],providers:[Dt,qt]}]}],Gt.ctorParameters=function(){return[]};var Wt=function(){function t(){}return t}();Wt.decorators=[{type:e.NgModule,args:[{imports:[Pt,n.PlatformModule,Gt],exports:[Ft,Pt],declarations:[Ft],providers:[jt]}]}],Wt.ctorParameters=function(){return[]};var Kt=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),$t=E(Kt,"accent"),Yt=function(t){function e(e,n){var r=t.call(this,n,e)||this;return r.state="unchecked",r.disabled=!1,r}return y(e,t),e}($t);Yt.decorators=[{type:e.Component,args:[{encapsulation:e.ViewEncapsulation.None,selector:"md-pseudo-checkbox, mat-pseudo-checkbox",styles:[".mat-pseudo-checkbox{width:20px;height:20px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;transition:border-color 90ms cubic-bezier(0,0,.2,.1),background-color 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:'';border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:9px;left:2px;width:16px;opacity:1}.mat-pseudo-checkbox-checked::after{top:5px;left:3px;width:12px;height:5px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1}"],inputs:["color"],template:"",host:{class:"mat-pseudo-checkbox","[class.mat-pseudo-checkbox-indeterminate]":'state === "indeterminate"',"[class.mat-pseudo-checkbox-checked]":'state === "checked"',"[class.mat-pseudo-checkbox-disabled]":"disabled"}}]}],Yt.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2}]},Yt.propDecorators={state:[{type:e.Input}],disabled:[{type:e.Input}]};var Xt=function(){function t(){}return t}();Xt.decorators=[{type:e.NgModule,args:[{exports:[Yt],declarations:[Yt]}]}],Xt.ctorParameters=function(){return[]};var Qt=function(){function t(){}return t}(),Jt=x(Qt),Zt=0,te=function(t){function e(){var e=t.apply(this,arguments)||this;return e._labelId="mat-optgroup-label-"+Zt++,e}return y(e,t),e}(Jt);te.decorators=[{type:e.Component,args:[{selector:"md-optgroup, mat-optgroup",template:'<label class="mat-optgroup-label" [id]="_labelId">{{ label }}</label><ng-content select="md-option, mat-option"></ng-content>',encapsulation:e.ViewEncapsulation.None,inputs:["disabled"],host:{class:"mat-optgroup",role:"group","[class.mat-optgroup-disabled]":"disabled","[attr.aria-disabled]":"disabled.toString()","[attr.aria-labelledby]":"_labelId"}}]}],te.ctorParameters=function(){return[]},te.propDecorators={label:[{type:e.Input}]};var ee=0,ne=function(){function t(t,e){void 0===e&&(e=!1),this.source=t,this.isUserInput=e}return t}(),re=function(){function t(t,n,r){this._element=t,this.group=n,this._isCompatibilityMode=r,this._selected=!1,this._active=!1,this._disabled=!1,this._id="md-option-"+ee++,this.multiple=!1,this.onSelectionChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewValue",{get:function(){return(this._getHostElement().textContent||"").trim()},enumerable:!0,configurable:!0}),t.prototype.select=function(){this._selected=!0,this._emitSelectionChangeEvent()},t.prototype.deselect=function(){this._selected=!1,this._emitSelectionChangeEvent()},t.prototype.focus=function(){this._getHostElement().focus()},t.prototype.setActiveStyles=function(){this._active=!0},t.prototype.setInactiveStyles=function(){this._active=!1},t.prototype._handleKeydown=function(t){t.keyCode!==n.ENTER&&t.keyCode!==n.SPACE||(this._selectViaInteraction(),t.preventDefault())},t.prototype._selectViaInteraction=function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._emitSelectionChangeEvent(!0))},t.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},t.prototype._getHostElement=function(){return this._element.nativeElement},t.prototype._emitSelectionChangeEvent=function(t){void 0===t&&(t=!1),this.onSelectionChange.emit(new ne(this,t))},t}();re.decorators=[{type:e.Component,args:[{selector:"md-option, mat-option",host:{role:"option","[attr.tabindex]":"_getTabIndex()","[class.mat-selected]":"selected","[class.mat-option-multiple]":"multiple","[class.mat-active]":"active","[id]":"id","[attr.aria-selected]":"selected.toString()","[attr.aria-disabled]":"disabled.toString()","[class.mat-option-disabled]":"disabled","(click)":"_selectViaInteraction()","(keydown)":"_handleKeydown($event)",class:"mat-option"},template:'<span [ngSwitch]="_isCompatibilityMode" *ngIf="multiple"><mat-pseudo-checkbox class="mat-option-pseudo-checkbox" *ngSwitchCase="true" [state]="selected ? \'checked\' : \'\'" color="primary"></mat-pseudo-checkbox><md-pseudo-checkbox class="mat-option-pseudo-checkbox" *ngSwitchDefault [state]="selected ? \'checked\' : \'\'" color="primary"></md-pseudo-checkbox></span><ng-content></ng-content><div class="mat-option-ripple" *ngIf="!disabled" md-ripple [mdRippleTrigger]="_getHostElement()"></div>',encapsulation:e.ViewEncapsulation.None}]}],re.ctorParameters=function(){return[{type:e.ElementRef},{type:te,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[vt]}]}]},re.propDecorators={value:[{type:e.Input}],disabled:[{type:e.Input}],onSelectionChange:[{type:e.Output}]};var ie=function(){function t(){}return t}();ie.decorators=[{type:e.NgModule,args:[{imports:[Wt,i.CommonModule,Xt],exports:[re,te],declarations:[re,te]}]}],ie.ctorParameters=function(){return[]};var oe=function(){function t(){this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.direction="ltr"}return t}(),se=function(){function t(t,e,n,r,i){this._portalHost=t,this._pane=e,this._state=n,this._scrollStrategy=r,this._ngZone=i,this._backdropElement=null,this._backdropClick=new o.Subject,this._attachments=new o.Subject,this._detachments=new o.Subject,r.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=this._portalHost.attach(t);return this._updateStackingOrder(),this.updateSize(),this.updateDirection(),this.updatePosition(),this._scrollStrategy.enable(),this._togglePointerEvents(!0),this._state.hasBackdrop&&this._attachBackdrop(),this._state.panelClass&&this._pane.classList.add(this._state.panelClass),this._attachments.next(),e},t.prototype.detach=function(){this.detachBackdrop(),this._togglePointerEvents(!1),this._scrollStrategy.disable();var t=this._portalHost.detach();return this._detachments.next(),t},t.prototype.dispose=function(){this._state.positionStrategy&&this._state.positionStrategy.dispose(),this._scrollStrategy&&this._scrollStrategy.disable(),this.detachBackdrop(),this._portalHost.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalHost.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.getState=function(){return this._state},t.prototype.updatePosition=function(){this._state.positionStrategy&&this._state.positionStrategy.apply(this._pane)},t.prototype.updateDirection=function(){this._pane.setAttribute("dir",this._state.direction)},t.prototype.updateSize=function(){(this._state.width||0===this._state.width)&&(this._pane.style.width=S(this._state.width)),(this._state.height||0===this._state.height)&&(this._pane.style.height=S(this._state.height)),(this._state.minWidth||0===this._state.minWidth)&&(this._pane.style.minWidth=S(this._state.minWidth)),(this._state.minHeight||0===this._state.minHeight)&&(this._pane.style.minHeight=S(this._state.minHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._state.backdropClass&&this._backdropElement.classList.add(this._state.backdropClass),this._pane.parentElement.insertBefore(this._backdropElement,this._pane),this._backdropElement.addEventListener("click",function(){return t._backdropClick.next(null)}),requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})},t.prototype._updateStackingOrder=function(){this._pane.nextSibling&&this._pane.parentNode.appendChild(this._pane)},t.prototype.detachBackdrop=function(){var t=this,e=this._backdropElement;if(e){var n=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null)};e.classList.remove("cdk-overlay-backdrop-showing"),this._state.backdropClass&&e.classList.remove(this._state.backdropClass),e.addEventListener("transitionend",n),e.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){setTimeout(n,500)})}},t}(),ae=function(){function t(t,e){this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}return t}(),ue=function(){function t(){}return t}(),ce=function(){function t(t,e){this.connectionPair=t,this.scrollableViewProperties=e}return t}();ce.ctorParameters=function(){return[{type:ae},{type:ue,decorators:[{type:e.Optional}]}]};var le=function(){function t(t,e,n,r){this._connectedTo=t,this._originPos=e,this._overlayPos=n,this._viewportRuler=r,this._dir="ltr",this._offsetX=0,this._offsetY=0,this.scrollables=[],this._preferredPositions=[],this._onPositionChange=new o.Subject,this._origin=this._connectedTo.nativeElement,this.withFallbackPosition(e,n)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._dir},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._onPositionChange.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){},t.prototype.apply=function(t){this._pane=t;for(var e,n,r=this._origin.getBoundingClientRect(),i=t.getBoundingClientRect(),o=this._viewportRuler.getViewportRect(),s=0,a=this._preferredPositions;s<a.length;s++){var u=a[s],c=this._getOriginConnectionPoint(r,u),l=this._getOverlayPoint(c,i,o,u);if(l.fitsInViewport){this._setElementPosition(t,i,l,u),this._lastConnectedPosition=u;var p=this.getScrollableViewProperties(t),h=new ce(u,p);return void this._onPositionChange.next(h)}(!e||e.visibleArea<l.visibleArea)&&(e=l,n=u)}this._setElementPosition(t,i,e,n)},t.prototype.recalculateLastPosition=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this._viewportRuler.getViewportRect(),r=this._lastConnectedPosition||this._preferredPositions[0],i=this._getOriginConnectionPoint(t,r),o=this._getOverlayPoint(i,e,n,r);this._setElementPosition(this._pane,e,o,r)},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withFallbackPosition=function(t,e){return this._preferredPositions.push(new ae(t,e)),this},t.prototype.withDirection=function(t){return this._dir=t,this},t.prototype.withOffsetX=function(t){return this._offsetX=t,this},t.prototype.withOffsetY=function(t){return this._offsetY=t,this},t.prototype._getStartX=function(t){return this._isRtl?t.right:t.left},t.prototype._getEndX=function(t){return this._isRtl?t.left:t.right},t.prototype._getOriginConnectionPoint=function(t,e){var n,r=this._getStartX(t),i=this._getEndX(t);n="center"==e.originX?r+t.width/2:"start"==e.originX?r:i;var o;return o="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:o}},t.prototype._getOverlayPoint=function(t,e,n,r){var i;i="center"==r.overlayX?-e.width/2:"start"===r.overlayX?this._isRtl?-e.width:0:this._isRtl?0:-e.width;var o;o="center"==r.overlayY?-e.height/2:"top"==r.overlayY?0:-e.height;var s=t.x+i+this._offsetX,a=t.y+o+this._offsetY,u=0-s,c=s+e.width-n.width,l=0-a,p=a+e.height-n.height,h=this._subtractOverflows(e.width,u,c)*this._subtractOverflows(e.height,l,p);return{x:s,y:a,fitsInViewport:e.width*e.height===h,visibleArea:h}},t.prototype.getScrollableViewProperties=function(t){var e=this,n=this._getElementBounds(this._origin),r=this._getElementBounds(t),i=this.scrollables.map(function(t){return e._getElementBounds(t.getElementRef().nativeElement)});return{isOriginClipped:this.isElementClipped(n,i),isOriginOutsideView:this.isElementOutsideView(n,i),isOverlayClipped:this.isElementClipped(r,i),isOverlayOutsideView:this.isElementOutsideView(r,i)}},t.prototype.isElementOutsideView=function(t,e){return e.some(function(e){var n=t.bottom<e.top,r=t.top>e.bottom,i=t.right<e.left,o=t.left>e.right;return n||r||i||o})},t.prototype.isElementClipped=function(t,e){return e.some(function(e){var n=t.top<e.top,r=t.bottom>e.bottom,i=t.left<e.left,o=t.right>e.right;return n||r||i||o})},t.prototype._setElementPosition=function(t,e,n,r){var i,o="bottom"===r.overlayY?"bottom":"top",s="top"===o?n.y:document.documentElement.clientHeight-(n.y+e.height),a="left"===(i="rtl"===this._dir?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?n.x:document.documentElement.clientWidth-(n.x+e.width);["top","bottom","left","right"].forEach(function(e){return t.style[e]=null}),t.style[o]=s+"px",t.style[i]=a+"px"},t.prototype._getElementBounds=function(t){var e=t.getBoundingClientRect();return{top:e.top,right:e.left+e.width,bottom:e.top+e.height,left:e.left}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(t,e){return t-Math.max(e,0)},t)},t}(),pe=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height="",this._wrapper=null}return t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._width=t,"100%"===t&&this.left("0px"),this},t.prototype.height=function(t){return void 0===t&&(t=""),this._height=t,"100%"===t&&this.top("0px"),this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(t){!this._wrapper&&t.parentNode&&(this._wrapper=document.createElement("div"),this._wrapper.classList.add("cdk-global-overlay-wrapper"),t.parentNode.insertBefore(this._wrapper,t),this._wrapper.appendChild(t));var e=t.style,n=t.parentNode.style;e.position=this._cssPosition,e.marginTop=this._topOffset,e.marginLeft=this._leftOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,e.width=this._width,e.height=this._height,n.justifyContent=this._justifyContent,n.alignItems=this._alignItems},t.prototype.dispose=function(){this._wrapper&&this._wrapper.parentNode&&(this._wrapper.parentNode.removeChild(this._wrapper),this._wrapper=null)},t}(),he=function(){function t(t){this._viewportRuler=t}return t.prototype.global=function(){return new pe},t.prototype.connectedTo=function(t,e,n){return new le(t,e,n,this._viewportRuler)},t}();he.decorators=[{type:e.Injectable}],he.ctorParameters=function(){return[{type:Nt}]};var de=function(){function t(){}return Object.defineProperty(t.prototype,"themeClass",{get:function(){return this._themeClass},set:function(t){this._containerElement&&(this._containerElement.classList.remove(this._themeClass),t&&this._containerElement.classList.add(t)),this._themeClass=t},enumerable:!0,configurable:!0}),t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=document.createElement("div");t.classList.add("cdk-overlay-container"),this._themeClass&&t.classList.add(this._themeClass),document.body.appendChild(t),this._containerElement=t},t}();de.decorators=[{type:e.Injectable}],de.ctorParameters=function(){return[]};var fe={provide:de,deps:[[new e.Optional,new e.SkipSelf,de]],useFactory:P},me=0,ye=new oe,ge=function(){function t(t,e,n,r,i,o,s){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=r,this._appRef=i,this._injector=o,this._ngZone=s}return t.prototype.create=function(t){return void 0===t&&(t=ye),this._createOverlayRef(this._createPaneElement(),t)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(){var t=document.createElement("div");return t.id="cdk-overlay-"+me++,t.classList.add("cdk-overlay-pane"),this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalHost=function(t){return new n.DomPortalHost(t,this._componentFactoryResolver,this._appRef,this._injector)},t.prototype._createOverlayRef=function(t,e){var n=e.scrollStrategy||this.scrollStrategies.noop(),r=this._createPortalHost(t);return new se(r,t,e,n,this._ngZone)},t}();ge.decorators=[{type:e.Injectable}],ge.ctorParameters=function(){return[{type:qt},{type:de},{type:e.ComponentFactoryResolver},{type:he},{type:e.ApplicationRef},{type:e.Injector},{type:e.NgZone}]};var ve=[new ae({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new ae({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})],be=function(){function t(t){this.elementRef=t}return t}();be.decorators=[{type:e.Directive,args:[{selector:"[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]",exportAs:"cdkOverlayOrigin"}]}],be.ctorParameters=function(){return[{type:e.ElementRef}]};var _e=function(){function t(t,r,i,o,s){this._overlay=t,this._renderer=r,this._dir=s,this._hasBackdrop=!1,this._offsetX=0,this._offsetY=0,this.scrollStrategy=this._overlay.scrollStrategies.reposition(),this.open=!1,this.backdropClick=new e.EventEmitter,this.positionChange=new e.EventEmitter,this.attach=new e.EventEmitter,this.detach=new e.EventEmitter,this._templatePortal=new n.TemplatePortal(i,o)}return Object.defineProperty(t.prototype,"offsetX",{get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._position.withOffsetX(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"offsetY",{get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._position.withOffsetY(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlayRef",{get:function(){return this._overlayRef},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir?this._dir.value:"ltr"},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._destroyOverlay()},t.prototype.ngOnChanges=function(t){t.open&&(this.open?this._attachOverlay():this._detachOverlay())},t.prototype._createOverlay=function(){this.positions&&this.positions.length||(this.positions=ve),this._overlayRef=this._overlay.create(this._buildConfig())},t.prototype._buildConfig=function(){var t=new oe;return(this.width||0===this.width)&&(t.width=this.width),(this.height||0===this.height)&&(t.height=this.height),(this.minWidth||0===this.minWidth)&&(t.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(t.minHeight=this.minHeight),t.hasBackdrop=this.hasBackdrop,this.backdropClass&&(t.backdropClass=this.backdropClass),this._position=this._createPositionStrategy(),t.positionStrategy=this._position,t.scrollStrategy=this.scrollStrategy,t},t.prototype._createPositionStrategy=function(){var t=this.positions[0],e={originX:t.originX,originY:t.originY},n={overlayX:t.overlayX,overlayY:t.overlayY},r=this._overlay.position().connectedTo(this.origin.elementRef,e,n).withOffsetX(this.offsetX).withOffsetY(this.offsetY);return this._handlePositionChanges(r),r},t.prototype._handlePositionChanges=function(t){for(var e=this,n=1;n<this.positions.length;n++)t.withFallbackPosition({originX:this.positions[n].originX,originY:this.positions[n].originY},{overlayX:this.positions[n].overlayX,overlayY:this.positions[n].overlayY});this._positionSubscription=t.onPositionChange.subscribe(function(t){return e.positionChange.emit(t)})},t.prototype._attachOverlay=function(){var t=this;this._overlayRef||this._createOverlay(),this._position.withDirection(this.dir),this._overlayRef.getState().direction=this.dir,this._initEscapeListener(),this._overlayRef.hasAttached()||(this._overlayRef.attach(this._templatePortal),this.attach.emit()),this.hasBackdrop&&(this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(){t.backdropClick.emit()}))},t.prototype._detachOverlay=function(){this._overlayRef&&(this._overlayRef.detach(),this.detach.emit()),this._backdropSubscription&&(this._backdropSubscription.unsubscribe(),this._backdropSubscription=null),this._escapeListener&&this._escapeListener()},t.prototype._destroyOverlay=function(){this._overlayRef&&this._overlayRef.dispose(),this._backdropSubscription&&this._backdropSubscription.unsubscribe(),this._positionSubscription&&this._positionSubscription.unsubscribe(),this._escapeListener&&this._escapeListener()},t.prototype._initEscapeListener=function(){var t=this;this._escapeListener=this._renderer.listen("document","keydown",function(e){e.keyCode===n.ESCAPE&&t._detachOverlay()})},t}();_e.decorators=[{type:e.Directive,args:[{selector:"[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]",exportAs:"cdkConnectedOverlay"}]}],_e.ctorParameters=function(){return[{type:ge},{type:e.Renderer2},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},_e.propDecorators={origin:[{type:e.Input}],positions:[{type:e.Input}],offsetX:[{type:e.Input}],offsetY:[{type:e.Input}],width:[{type:e.Input}],height:[{type:e.Input}],minWidth:[{type:e.Input}],minHeight:[{type:e.Input}],backdropClass:[{type:e.Input}],scrollStrategy:[{type:e.Input}],open:[{type:e.Input}],hasBackdrop:[{type:e.Input}],backdropClick:[{type:e.Output}],positionChange:[{type:e.Output}],attach:[{type:e.Output}],detach:[{type:e.Output}]};var we=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype._createContainer=function(){var e=this;t.prototype._createContainer.call(this),this._adjustParentForFullscreenChange(),this._addFullscreenChangeListener(function(){return e._adjustParentForFullscreenChange()})},e.prototype._adjustParentForFullscreenChange=function(){this._containerElement&&(this.getFullscreenElement()||document.body).appendChild(this._containerElement)},e.prototype._addFullscreenChangeListener=function(t){document.fullscreenEnabled?document.addEventListener("fullscreenchange",t):document.webkitFullscreenEnabled?document.addEventListener("webkitfullscreenchange",t):document.mozFullScreenEnabled?document.addEventListener("mozfullscreenchange",t):document.msFullscreenEnabled&&document.addEventListener("MSFullscreenChange",t)},e.prototype.getFullscreenElement=function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||null},e}(de);we.decorators=[{type:e.Injectable}],we.ctorParameters=function(){return[]};var Ce=[ge,he,jt,fe],Ee=function(){function t(){}return t}();Ee.decorators=[{type:e.NgModule,args:[{imports:[n.PortalModule,Gt],exports:[_e,be,Gt],declarations:[_e,be],providers:[Ce]}]}],Ee.ctorParameters=function(){return[]};var xe=function(t){function n(){var n=t.call(this)||this;return n._hammer="undefined"!=typeof window?window.Hammer:null,n.events=n._hammer?["longpress","slide","slidestart","slideend","slideright","slideleft"]:[],!n._hammer&&e.isDevMode()&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),n}return y(n,t),n.prototype.buildHammer=function(t){var e=new this._hammer(t),n=new this._hammer.Pan,r=new this._hammer.Swipe,i=new this._hammer.Press,o=this._createRecognizer(n,{event:"slide",threshold:0},r),s=this._createRecognizer(i,{event:"longpress",time:500});return n.recognizeWith(r),e.add([r,i,n,o,s]),e},n.prototype._createRecognizer=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new t.constructor(e);return n.push(t),n.forEach(function(t){return i.recognizeWith(t)}),i},n}(r.HammerGestureConfig);xe.decorators=[{type:e.Injectable}],xe.ctorParameters=function(){return[]};var Se=function(){function t(t,e,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=this;this._isMulti=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.onChange=this._emitChanges?new o.Subject:null,e&&(t?e.forEach(function(t){return r._markSelected(t)}):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(t){this._markSelected(t),this._emitChangeEvent()},t.prototype.deselect=function(t){this._unmarkSelected(t),this._emitChangeEvent()},t.prototype.toggle=function(t){this.isSelected(t)?this.deselect(t):this.select(t)},t.prototype.clear=function(){this._unmarkAll(),this._emitChangeEvent()},t.prototype.isSelected=function(t){return this._selection.has(t)},t.prototype.isEmpty=function(){return 0===this._selection.size},t.prototype.hasValue=function(){return!this.isEmpty()},t.prototype.sort=function(t){this._isMulti&&this._selected&&this._selected.sort(t)},t.prototype._emitChangeEvent=function(){if(this._selectedToEmit.length||this._deselectedToEmit.length){var t=new Pe(this._selectedToEmit,this._deselectedToEmit);this.onChange&&this.onChange.next(t),this._deselectedToEmit=[],this._selectedToEmit=[]}this._selected=null},t.prototype._markSelected=function(t){this.isSelected(t)||(this._isMulti||this._unmarkAll(),this._selection.add(t),this._emitChanges&&this._selectedToEmit.push(t))},t.prototype._unmarkSelected=function(t){this.isSelected(t)&&(this._selection.delete(t),this._emitChanges&&this._deselectedToEmit.push(t))},t.prototype._unmarkAll=function(){var t=this;this.isEmpty()||this._selection.forEach(function(e){return t._unmarkSelected(e)})},t}(),Pe=function(){function t(t,e){this.added=t,this.removed=e}return t}(),Oe=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n<r.length;n++)(0,r[n])(t,e)},t.prototype.listen=function(t){var e=this;return this._listeners.push(t),function(){e._listeners=e._listeners.filter(function(e){return t!==e})}},t}();Oe.decorators=[{type:e.Injectable}],Oe.ctorParameters=function(){return[]};var ke={provide:Oe,deps:[[new e.Optional,new e.SkipSelf,Oe]],useFactory:O},Te=function(){function t(t,e){var n=this;this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new WeakMap,this._ngZone.runOutsideAngular(function(){return n._registerDocumentEvents()})}return t.prototype.monitor=function(t,e,n){var r=this;if(!this._platform.isBrowser)return c.of(null);if(this._elementInfo.has(t)){var i=this._elementInfo.get(t);return i.checkChildren=n,i.subject.asObservable()}var s={unlisten:function(){},checkChildren:n,renderer:e,subject:new o.Subject};this._elementInfo.set(t,s);var a=function(e){return r._onFocus(e,t)},u=function(e){return r._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",a,!0),t.addEventListener("blur",u,!0)}),s.unlisten=function(){t.removeEventListener("focus",a,!0),t.removeEventListener("blur",u,!0)},s.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t))},t.prototype.focusVia=function(t,e){this._setOriginForCurrentEventQueue(e),t.focus()},t.prototype._registerDocumentEvents=function(){var t=this;this._platform.isBrowser&&(document.addEventListener("keydown",function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},!0),document.addEventListener("mousedown",function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},!0),document.addEventListener("touchstart",function(e){null!=t._touchTimeout&&clearTimeout(t._touchTimeout),t._lastTouchTarget=e.target,t._touchTimeout=setTimeout(function(){return t._lastTouchTarget=null},650)},!0),window.addEventListener("focus",function(){t._windowFocused=!0,setTimeout(function(){return t._windowFocused=!1},0)}))},t.prototype._setClasses=function(t,e){var n=this._elementInfo.get(t);if(n){var r=function(e,r){r?n.renderer.addClass(t,e):n.renderer.removeClass(t,e)};r("cdk-focused",!!e),r("cdk-touch-focused","touch"===e),r("cdk-keyboard-focused","keyboard"===e),r("cdk-mouse-focused","mouse"===e),r("cdk-program-focused","program"===e)}},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._origin=t,setTimeout(function(){return e._origin=null},0)},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);n&&(n.checkChildren||e===t.target)&&(this._origin||(this._windowFocused&&this._lastFocusOrigin?this._origin=this._lastFocusOrigin:this._wasCausedByTouch(t)?this._origin="touch":this._origin="program"),this._setClasses(e,this._origin),n.subject.next(this._origin),this._lastFocusOrigin=this._origin,this._origin=null)},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),n.subject.next(null))},t}();Te.decorators=[{type:e.Injectable}],Te.ctorParameters=function(){return[{type:e.NgZone},{type:n.Platform}]};var Ae=function(){function t(t,n,r){var i=this;this._elementRef=t,this._focusOriginMonitor=n,this.cdkFocusChange=new e.EventEmitter,this._monitorSubscription=this._focusOriginMonitor.monitor(this._elementRef.nativeElement,r,this._elementRef.nativeElement.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(t){return i.cdkFocusChange.emit(t)})}return t.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._elementRef.nativeElement),this._monitorSubscription.unsubscribe()},t}();Ae.decorators=[{type:e.Directive,args:[{selector:"[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]"}]}],Ae.ctorParameters=function(){return[{type:e.ElementRef},{type:Te},{type:e.Renderer2}]},Ae.propDecorators={cdkFocusChange:[{type:e.Output}]};var Me={provide:Te,deps:[[new e.Optional,new e.SkipSelf,Te],e.NgZone,n.Platform],useFactory:k},Re=function(){function t(){}return t}();Re.decorators=[{type:e.NgModule,args:[{imports:[n.PlatformModule],declarations:[Ae],exports:[Ae],providers:[Me]}]}],Re.ctorParameters=function(){return[]};var Ie=function(){function t(){}return t}();Ie.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Ie.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Ie.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Ie.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)";var De=function(){function t(){}return t}();De.COMPLEX="375ms",De.ENTERING="225ms",De.EXITING="195ms";var Ne=function(){function t(){}return t.prototype.getYear=function(t){},t.prototype.getMonth=function(t){},t.prototype.getDate=function(t){},t.prototype.getDayOfWeek=function(t){},t.prototype.getMonthNames=function(t){},t.prototype.getDateNames=function(){},t.prototype.getDayOfWeekNames=function(t){},t.prototype.getYearName=function(t){},t.prototype.getFirstDayOfWeek=function(){},t.prototype.getNumDaysInMonth=function(t){},t.prototype.clone=function(t){},t.prototype.createDate=function(t,e,n){},t.prototype.today=function(){},t.prototype.parse=function(t,e){},t.prototype.format=function(t,e){},t.prototype.addCalendarYears=function(t,e){},t.prototype.addCalendarMonths=function(t,e){},t.prototype.addCalendarDays=function(t,e){},t.prototype.getISODateString=function(t){},t.prototype.setLocale=function(t){this.locale=t},t.prototype.compareDate=function(t,e){return this.getYear(t)-this.getYear(e)||this.getMonth(t)-this.getMonth(e)||this.getDate(t)-this.getDate(e)},t.prototype.sameDate=function(t,e){return t&&e?!this.compareDate(t,e):t==e},t.prototype.clampDate=function(t,e,n){return e&&this.compareDate(t,e)<0?e:n&&this.compareDate(t,n)>0?n:t},t}(),je="undefined"!=typeof Intl,Le={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Fe=A(31,function(t){return String(t+1)}),Ve={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Be=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.getYear=function(t){return t.getFullYear()},e.prototype.getMonth=function(t){return t.getMonth()},e.prototype.getDate=function(t){return t.getDate()},e.prototype.getDayOfWeek=function(t){return t.getDay()},e.prototype.getMonthNames=function(t){var e=this;if(je){var n=new Intl.DateTimeFormat(this.locale,{month:t});return A(12,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,t,1)))})}return Le[t]},e.prototype.getDateNames=function(){var t=this;if(je){var e=new Intl.DateTimeFormat(this.locale,{day:"numeric"});return A(31,function(n){return t._stripDirectionalityCharacters(e.format(new Date(2017,0,n+1)))})}return Fe},e.prototype.getDayOfWeekNames=function(t){var e=this;if(je){var n=new Intl.DateTimeFormat(this.locale,{weekday:t});return A(7,function(t){return e._stripDirectionalityCharacters(n.format(new Date(2017,0,t+1)))})}return Ve[t]},e.prototype.getYearName=function(t){if(je){var e=new Intl.DateTimeFormat(this.locale,{year:"numeric"});return this._stripDirectionalityCharacters(e.format(t))}return String(this.getYear(t))},e.prototype.getFirstDayOfWeek=function(){return 0},e.prototype.getNumDaysInMonth=function(t){return this.getDate(this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+1,0))},e.prototype.clone=function(t){return this.createDate(this.getYear(t),this.getMonth(t),this.getDate(t))},e.prototype.createDate=function(t,e,n){if(e<0||e>11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var r=this._createDateWithOverflow(t,e,n);if(r.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return r},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){var e="number"==typeof t?t:Date.parse(t);return isNaN(e)?null:new Date(e)},e.prototype.format=function(t,e){if(je){var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(n.format(t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.getISODateString=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype._createDateWithOverflow=function(t,e,n){var r=new Date(t,e,n);return t>=0&&t<100&&r.setFullYear(this.getYear(r)-1900),r},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e}(Ne),Ue=new e.InjectionToken("md-date-formats"),He={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},ze=function(){function t(){}return t}();ze.decorators=[{type:e.NgModule,args:[{providers:[{provide:Ne,useClass:Be}]}]}],ze.ctorParameters=function(){return[]};var qe=function(){function t(){}return t}();qe.decorators=[{type:e.NgModule,args:[{imports:[ze],providers:[{provide:Ue,useValue:He}]}]}],qe.ctorParameters=function(){return[]};var Ge=new e.InjectionToken("md-placeholder-global-options"),We=new e.InjectionToken("md-error-global-options"),Ke=function(){function t(){}return t}();Ke.decorators=[{type:e.NgModule,args:[{imports:[Tt,n.BidiModule,Wt,n.ObserveContentModule,n.PortalModule,Ee,n.A11yModule,ie,Xt],exports:[Tt,n.BidiModule,Wt,n.ObserveContentModule,n.PortalModule,Ee,n.A11yModule,ie,Xt]}]}],Ke.ctorParameters=function(){return[]};var $e=function(){function t(){}return t}(),Ye=x($e),Xe={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Ze}),multi:!0},Qe=0,Je=function(){function t(){}return t}(),Ze=function(t){function r(){var n=t.apply(this,arguments)||this;return n._value=null,n._name="md-button-toggle-group-"+Qe++,n._vertical=!1,n._selected=null,n._isInitialized=!1,n._controlValueAccessorChangeFn=function(){},n.onTouched=function(){},n.change=new e.EventEmitter,n}return y(r,t),r.prototype.ngAfterViewInit=function(){this._isInitialized=!0},Object.defineProperty(r.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateButtonToggleNames()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._updateSelectedButtonToggleFromValue(),this._isInitialized&&this._emitChangeEvent())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,t&&!t.checked&&(t.checked=!0)},enumerable:!0,configurable:!0}),r.prototype._updateButtonToggleNames=function(){var t=this;this._buttonToggles&&this._buttonToggles.forEach(function(e){e.name=t._name})},r.prototype._updateSelectedButtonToggleFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;if(null!=this._buttonToggles&&!e){var n=this._buttonToggles.filter(function(e){return e.value==t._value})[0];n?this.selected=n:null==this.value&&(this.selected=null,this._buttonToggles.forEach(function(t){t.checked=!1}))}},r.prototype._emitChangeEvent=function(){var t=new Je;t.source=this._selected,t.value=this._value,this._controlValueAccessorChangeFn(t.value),this.change.emit(t)},r.prototype.writeValue=function(t){this.value=t},r.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},r.prototype.registerOnTouched=function(t){this.onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t},r}(Ye);Ze.decorators=[{type:e.Directive,args:[{selector:"md-button-toggle-group:not([multiple]), mat-button-toggle-group:not([multiple])",providers:[Xe],inputs:["disabled"],host:{role:"radiogroup",class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical"},exportAs:"mdButtonToggleGroup"}]}],Ze.ctorParameters=function(){return[]},Ze.propDecorators={_buttonToggles:[{type:e.ContentChildren,args:[e.forwardRef(function(){return en})]}],name:[{type:e.Input}],vertical:[{type:e.Input}],value:[{type:e.Input}],selected:[{type:e.Input}],change:[{type:e.Output}]};var tn=function(t){function e(){var e=t.apply(this,arguments)||this;return e._vertical=!1,e}return y(e,t),Object.defineProperty(e.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e}(Ye);tn.decorators=[{type:e.Directive,args:[{selector:"md-button-toggle-group[multiple], mat-button-toggle-group[multiple]",exportAs:"mdButtonToggleGroup",inputs:["disabled"],host:{class:"mat-button-toggle-group","[class.mat-button-toggle-vertical]":"vertical"}}]}],tn.ctorParameters=function(){return[]},tn.propDecorators={vertical:[{type:e.Input}]};var en=function(){function t(t,n,r,i,o,s){var a=this;this._buttonToggleDispatcher=r,this._renderer=i,this._elementRef=o,this._focusOriginMonitor=s,this._checked=!1,this._disabled=!1,this._value=null,this._isSingleSelector=!1,this._removeUniqueSelectionListener=function(){},this.change=new e.EventEmitter,this.buttonToggleGroup=t,this.buttonToggleGroupMultiple=n,this.buttonToggleGroup?(this._removeUniqueSelectionListener=r.listen(function(t,e){t!=a.id&&e==a.name&&(a.checked=!1)}),this._type="radio",this.name=this.buttonToggleGroup.name,this._isSingleSelector=!0):(this._type="checkbox",this._isSingleSelector=!1)}return Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(t){this._isSingleSelector&&t&&this._buttonToggleDispatcher.notify(this.id,this.name),this._checked=t,t&&this._isSingleSelector&&this.buttonToggleGroup.value!=this.value&&(this.buttonToggleGroup.selected=this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(null!=this.buttonToggleGroup&&this.checked&&(this.buttonToggleGroup.value=t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled||null!=this.buttonToggleGroup&&this.buttonToggleGroup.disabled||null!=this.buttonToggleGroupMultiple&&this.buttonToggleGroupMultiple.disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){null==this.id&&(this.id="md-button-toggle-"+Qe++),this.buttonToggleGroup&&this._value==this.buttonToggleGroup.value&&(this._checked=!0),this._focusOriginMonitor.monitor(this._elementRef.nativeElement,this._renderer,!0)},t.prototype.focus=function(){this._inputElement.nativeElement.focus()},t.prototype._toggle=function(){this.checked=!this.checked},t.prototype._onInputChange=function(t){t.stopPropagation(),this._isSingleSelector?(this.checked=!0,this.buttonToggleGroup.selected=this,this.buttonToggleGroup.onTouched()):this._toggle(),this._emitChangeEvent()},t.prototype._onInputClick=function(t){t.stopPropagation()},t.prototype._emitChangeEvent=function(){var t=new Je;t.source=this,t.value=this._value,this.change.emit(t)},t.prototype.ngOnDestroy=function(){this._removeUniqueSelectionListener()},t}();en.decorators=[{type:e.Component,args:[{selector:"md-button-toggle, mat-button-toggle",template:'<label [attr.for]="inputId" class="mat-button-toggle-label"><input #input class="mat-button-toggle-input cdk-visually-hidden" [type]="_type" [id]="inputId" [checked]="checked" [disabled]="disabled || null" [name]="name" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-button-toggle-label-content"><ng-content></ng-content></div></label><div class="mat-button-toggle-focus-overlay"></div>',styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);position:relative;display:inline-flex;flex-direction:row;border-radius:2px;cursor:pointer;white-space:nowrap}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle-disabled .mat-button-toggle-label-content{cursor:default}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;cursor:pointer}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;position:absolute;top:0;left:0;right:0;bottom:0}"],encapsulation:e.ViewEncapsulation.None,host:{"[class.mat-button-toggle-standalone]":"!buttonToggleGroup && !buttonToggleGroupMultiple",class:"mat-button-toggle"}}]}],en.ctorParameters=function(){return[{type:Ze,decorators:[{type:e.Optional}]},{type:tn,decorators:[{type:e.Optional}]},{type:Oe},{type:e.Renderer2},{type:e.ElementRef},{type:Te}]},en.propDecorators={_inputElement:[{type:e.ViewChild,args:["input"]}],id:[{type:e.HostBinding},{type:e.Input}],name:[{type:e.Input}],checked:[{type:e.HostBinding,args:["class.mat-button-toggle-checked"]},{type:e.Input}],value:[{type:e.Input}],disabled:[{type:e.HostBinding,args:["class.mat-button-toggle-disabled"]},{type:e.Input}],change:[{type:e.Output}]};var nn=function(){function t(){}return t}();nn.decorators=[{type:e.NgModule,args:[{imports:[l.FormsModule,Pt,Re],exports:[Ze,tn,en,Pt],declarations:[Ze,tn,en],providers:[ke]}]}],nn.ctorParameters=function(){return[]};var rn="accent",on=function(){function t(){}return t}();on.decorators=[{type:e.Directive,args:[{selector:"button[md-button], button[mat-button], a[md-button], a[mat-button]",host:{class:"mat-button"}}]}],on.ctorParameters=function(){return[]};var sn=function(){function t(){}return t}();sn.decorators=[{type:e.Directive,args:[{selector:"button[md-raised-button], button[mat-raised-button], a[md-raised-button], a[mat-raised-button]",host:{class:"mat-raised-button"}}]}],sn.ctorParameters=function(){return[]};var an=function(){function t(){}return t}();an.decorators=[{type:e.Directive,args:[{selector:"button[md-icon-button], button[mat-icon-button], a[md-icon-button], a[mat-icon-button]",host:{class:"mat-icon-button"}}]}],an.ctorParameters=function(){return[]};var un=function(){function t(t,e){(t||e).color=rn}return t}();un.decorators=[{type:e.Directive,args:[{selector:"button[md-fab], button[mat-fab], a[md-fab], a[mat-fab]",host:{class:"mat-fab"}}]}],un.ctorParameters=function(){return[{type:hn,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return hn})]}]},{type:dn,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return dn})]}]}]};var cn=function(){function t(t,e){(t||e).color=rn}return t}();cn.decorators=[{type:e.Directive,args:[{selector:"button[md-mini-fab], button[mat-mini-fab], a[md-mini-fab], a[mat-mini-fab]",host:{class:"mat-mini-fab"}}]}],cn.ctorParameters=function(){return[{type:hn,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return hn})]}]},{type:dn,decorators:[{type:e.Self},{type:e.Optional},{type:e.Inject,args:[e.forwardRef(function(){return dn})]}]}]};var ln=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),pn=E(x(ln)),hn=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o._platform=r,o._focusOriginMonitor=i,o._isRoundButton=o._hasAttributeWithPrefix("fab","mini-fab"),o._isIconButton=o._hasAttributeWithPrefix("icon-button"),o._disableRipple=!1,o._focusOriginMonitor.monitor(o._elementRef.nativeElement,o._renderer,!0),o}return y(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.focus=function(){this._getHostElement().focus()},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._hasAttributeWithPrefix=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return!!this._platform.isBrowser&&e.some(function(e){var n=t._getHostElement();return n.hasAttribute("md-"+e)||n.hasAttribute("mat-"+e)})},e}(pn);hn.decorators=[{type:e.Component,args:[{selector:"button[md-button], button[md-raised-button], button[md-icon-button],button[md-fab], button[md-mini-fab],button[mat-button], button[mat-raised-button], button[mat-icon-button],button[mat-fab], button[mat-mini-fab]",host:{"[disabled]":"disabled || null"},template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div md-ripple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [mdRippleDisabled]="_isRippleDisabled()" [mdRippleCentered]="_isIconButton" [mdRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([disabled]):active,.mat-mini-fab:not([disabled]):active,.mat-raised-button:not([disabled]):active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([disabled]):active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-icon,.mat-fab i{padding:16px 0;line-height:24px}.mat-mini-fab{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([disabled]):active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-icon,.mat-mini-fab i{padding:8px 0;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-icon-button,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],inputs:["disabled","color"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],hn.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:n.Platform},{type:Te}]},hn.propDecorators={disableRipple:[{type:e.Input}]};var dn=function(t){function e(e,n,r,i){return t.call(this,i,r,e,n)||this}return y(e,t),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:0},enumerable:!0,configurable:!0}),e.prototype._haltDisabledEvents=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},e}(hn);dn.decorators=[{type:e.Component,args:[{selector:"a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab],\n a[mat-button], a[mat-raised-button], a[mat-icon-button], a[mat-fab], a[mat-mini-fab]",host:{"[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","(click)":"_haltDisabledEvents($event)"},inputs:["disabled","color"],template:'<span class="mat-button-wrapper"><ng-content></ng-content></span><div md-ripple class="mat-button-ripple" [class.mat-button-ripple-round]="_isRoundButton || _isIconButton" [mdRippleDisabled]="_isRippleDisabled()" [mdRippleCentered]="_isIconButton" [mdRippleTrigger]="_getHostElement()"></div><div class="mat-button-focus-overlay"></div>',styles:[".mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px}[disabled].mat-button,[disabled].mat-fab,[disabled].mat-icon-button,[disabled].mat-mini-fab,[disabled].mat-raised-button{cursor:default}.cdk-keyboard-focused.mat-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-icon-button .mat-button-focus-overlay,.cdk-keyboard-focused.mat-mini-fab .mat-button-focus-overlay,.cdk-keyboard-focused.mat-raised-button .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-fab::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-mini-fab::-moz-focus-inner,.mat-raised-button::-moz-focus-inner{border:0}.mat-fab,.mat-mini-fab,.mat-raised-button{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-fab:not([disabled]):active,.mat-mini-fab:not([disabled]):active,.mat-raised-button:not([disabled]):active{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}[disabled].mat-fab,[disabled].mat-mini-fab,[disabled].mat-raised-button{box-shadow:none}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay{opacity:1}.mat-fab{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab:not([disabled]):active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-icon,.mat-fab i{padding:16px 0;line-height:24px}.mat-mini-fab{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab:not([disabled]):active{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-icon,.mat-mini-fab i{padding:8px 0;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button,.mat-icon-button,.mat-raised-button{color:currentColor}.mat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*{vertical-align:middle}.mat-button-focus-overlay,.mat-button-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None}]}],dn.ctorParameters=function(){return[{type:n.Platform},{type:Te},{type:e.ElementRef},{type:e.Renderer2}]},dn.propDecorators={tabIndex:[{type:e.HostBinding,args:["tabIndex"]}]};var fn=function(){function t(){}return t}();fn.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Wt,Pt,Re],exports:[hn,dn,cn,un,Pt,on,sn,an],declarations:[hn,dn,cn,un,on,sn,an]}]}],fn.ctorParameters=function(){return[]};var mn=0,yn={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return wn}),multi:!0},gn={};gn.Init=0,gn.Checked=1,gn.Unchecked=2,gn.Indeterminate=3,gn[gn.Init]="Init",gn[gn.Checked]="Checked",gn[gn.Unchecked]="Unchecked",gn[gn.Indeterminate]="Indeterminate";var vn=function(){function t(){}return t}(),bn=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),_n=E(x(bn),"accent"),wn=function(t){function r(n,r,i,o){var s=t.call(this,n,r)||this;return s._changeDetectorRef=i,s._focusOriginMonitor=o,s.ariaLabel="",s.ariaLabelledby=null,s.id="md-checkbox-"+ ++mn,s.labelPosition="after",s.tabIndex=0,s.name=null,s.change=new e.EventEmitter,s.indeterminateChange=new e.EventEmitter,s.onTouched=function(){},s._currentAnimationClass="",s._currentCheckState=gn.Init,s._checked=!1,s._indeterminate=!1,s._controlValueAccessorChangeFn=function(){},s}return y(r,t),Object.defineProperty(r.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"inputId",{get:function(){return"input-"+this.id},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"required",{get:function(){return this._required},set:function(t){this._required=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),r.prototype.ngAfterViewInit=function(){var t=this;this._focusOriginMonitor.monitor(this._inputElement.nativeElement,this._renderer,!1).subscribe(function(e){return t._onInputFocusChange(e)})},r.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._inputElement.nativeElement)},Object.defineProperty(r.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._indeterminate?this._transitionCheckState(gn.Indeterminate):this._transitionCheckState(this.checked?gn.Checked:gn.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),r.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},r.prototype._onLabelTextChange=function(){this._changeDetectorRef.markForCheck()},r.prototype.writeValue=function(t){this.checked=!!t},r.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},r.prototype.registerOnTouched=function(t){this.onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},r.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._renderer,r=this._elementRef;e!==t&&(this._currentAnimationClass.length>0&&n.removeClass(r.nativeElement,this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0&&n.addClass(r.nativeElement,this._currentAnimationClass))},r.prototype._emitChangeEvent=function(){var t=new vn;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},r.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this._removeFocusRipple(),this.onTouched()):this._focusRipple=this._ripple.launch(0,0,{persistent:!0,centered:!0})},r.prototype.toggle=function(){this.checked=!this.checked},r.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this._removeFocusRipple(),this.disabled||(this._indeterminate&&Promise.resolve().then(function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)}),this.toggle(),this._transitionCheckState(this._checked?gn.Checked:gn.Unchecked),this._emitChangeEvent())},r.prototype.focus=function(){this._focusOriginMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},r.prototype._onInteractionEvent=function(t){t.stopPropagation()},r.prototype._getAnimationClassForCheckStateTransition=function(t,e){var n="";switch(t){case gn.Init:if(e===gn.Checked)n="unchecked-checked";else{if(e!=gn.Indeterminate)return"";n="unchecked-indeterminate"}break;case gn.Unchecked:n=e===gn.Checked?"unchecked-checked":"unchecked-indeterminate";break;case gn.Checked:n=e===gn.Unchecked?"checked-unchecked":"checked-indeterminate";break;case gn.Indeterminate:n=e===gn.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},r.prototype._removeFocusRipple=function(){this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)},r}(_n);wn.decorators=[{type:e.Component,args:[{selector:"md-checkbox, mat-checkbox",template:'<label [attr.for]="inputId" class="mat-checkbox-layout" #label><div class="mat-checkbox-inner-container" [class.mat-checkbox-inner-container-no-side-margin]="!checkboxLabel.textContent.trim()"><input #input class="mat-checkbox-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [checked]="checked" [value]="value" [disabled]="disabled" [name]="name" [tabIndex]="tabIndex" [indeterminate]="indeterminate" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInteractionEvent($event)" (click)="_onInputClick($event)"><div md-ripple class="mat-checkbox-ripple" [mdRippleTrigger]="label" [mdRippleDisabled]="_isRippleDisabled()" [mdRippleCentered]="true"></div><div class="mat-checkbox-frame"></div><div class="mat-checkbox-background"><svg version="1.1" class="mat-checkbox-checkmark" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" xml:space="preserve"><path class="mat-checkbox-checkmark-path" fill="none" stroke="white" d="M4.1,12.7 9,17.6 20.3,6.3"/></svg><div class="mat-checkbox-mixedmark"></div></div></div><span class="mat-checkbox-label" #checkboxLabel (cdkObserveContent)="_onLabelTextChange()"><span style="display:none"> </span><ng-content></ng-content></span></label>',styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-checkmark,.mat-checkbox-frame{bottom:0;left:0;position:absolute;right:0;top:0}.mat-checkbox-checkmark,.mat-checkbox-mixedmark{width:calc(100% - 4px)}.mat-checkbox-background,.mat-checkbox-frame{border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer}.mat-checkbox-layout{cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex}.mat-checkbox-inner-container{display:inline-block;height:20px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:20px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}.mat-checkbox-checkmark{width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.66667px}.mat-checkbox-mixedmark{height:2px;opacity:0;transform:scaleX(0) rotate(0)}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox-ripple{position:absolute;left:-15px;top:-15px;right:-15px;bottom:-15px;border-radius:50%;z-index:1;pointer-events:none}"],host:{class:"mat-checkbox","[class.mat-checkbox-indeterminate]":"indeterminate","[class.mat-checkbox-checked]":"checked","[class.mat-checkbox-disabled]":"disabled","[class.mat-checkbox-label-before]":'labelPosition == "before"'},providers:[yn],inputs:["disabled","color"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],wn.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:Te}]},wn.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],id:[{type:e.Input}],disableRipple:[{type:e.Input}],required:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],tabIndex:[{type:e.Input}],name:[{type:e.Input}],change:[{type:e.Output}],indeterminateChange:[{type:e.Output}],value:[{type:e.Input}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Ft]}],checked:[{type:e.Input}],indeterminate:[{type:e.Input}]};var Cn=function(){function t(){}return t}();Cn.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Wt,Pt,n.ObserveContentModule],exports:[wn,Pt],declarations:[wn],providers:[Te]}]}],Cn.ctorParameters=function(){return[]};var En={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return kn}),multi:!0},xn=0,Sn=function(){function t(){}return t}(),Pn=function(){function t(){}return t}(),On=x(Pn),kn=function(t){function n(n){var r=t.call(this)||this;return r._changeDetector=n,r._value=null,r._name="md-radio-group-"+xn++,r._selected=null,r._isInitialized=!1,r._labelPosition="after",r._disabled=!1,r._controlValueAccessorChangeFn=function(){},r.onTouched=function(){},r.change=new e.EventEmitter,r}return y(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"==t?"before":"after",this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),n.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._markRadiosForCheck()},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._isInitialized=!0},n.prototype._touch=function(){this.onTouched&&this.onTouched()},n.prototype._updateRadioButtonNames=function(){var t=this;this._radios&&this._radios.forEach(function(e){e.name=t.name})},n.prototype._updateSelectedRadioFromValue=function(){var t=this,e=null!=this._selected&&this._selected.value==this._value;null==this._radios||e||(this._selected=null,this._radios.forEach(function(e){e.checked=t.value==e.value,e.checked&&(t._selected=e)}))},n.prototype._emitChangeEvent=function(){if(this._isInitialized){var t=new Sn;t.source=this._selected,t.value=this._value,this.change.emit(t)}},n.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(t){return t._markForCheck()})},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetector.markForCheck()},n}(On);kn.decorators=[{type:e.Directive,args:[{selector:"md-radio-group, mat-radio-group",providers:[En],host:{role:"radiogroup",class:"mat-radio-group"},inputs:["disabled"]}]}],kn.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},kn.propDecorators={change:[{type:e.Output}],_radios:[{type:e.ContentChildren,args:[e.forwardRef(function(){return Mn})]}],name:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],value:[{type:e.Input}],selected:[{type:e.Input}],disabled:[{type:e.Input}]};var Tn=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),An=E(Tn,"accent"),Mn=function(t){function r(n,r,i,o,s,a){var u=t.call(this,i,r)||this;return u._changeDetector=o,u._focusOriginMonitor=s,u._radioDispatcher=a,u.id="md-radio-"+xn++,u.change=new e.EventEmitter,u._checked=!1,u._value=null,u._removeUniqueSelectionListener=function(){},u.radioGroup=n,u._removeUniqueSelectionListener=a.listen(function(t,e){t!=u.id&&e==u.name&&(u.checked=!1)}),u}return y(r,t),Object.defineProperty(r.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked!=t&&(this._checked=t,t&&this.radioGroup&&this.radioGroup.value!=this.value?this.radioGroup.selected=this:!t&&this.radioGroup&&this.radioGroup.value==this.value&&(this.radioGroup.selected=null),t&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},set:function(t){this._value!=t&&(this._value=t,null!=this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value==t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"align",{get:function(){return"after"==this.labelPosition?"start":"end"},set:function(t){this.labelPosition="start"==t?"after":"before"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"labelPosition",{get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disabled",{get:function(){return this._disabled||null!=this.radioGroup&&this.radioGroup.disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"inputId",{get:function(){return this.id+"-input"},enumerable:!0,configurable:!0}),r.prototype.focus=function(){this._focusOriginMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},r.prototype._markForCheck=function(){this._changeDetector.markForCheck()},r.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},r.prototype.ngAfterViewInit=function(){var t=this;this._focusOriginMonitor.monitor(this._inputElement.nativeElement,this._renderer,!1).subscribe(function(e){return t._onInputFocusChange(e)})},r.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._inputElement.nativeElement),this._removeUniqueSelectionListener()},r.prototype._emitChangeEvent=function(){var t=new Sn;t.source=this,t.value=this._value,this.change.emit(t)},r.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},r.prototype._onInputClick=function(t){t.stopPropagation()},r.prototype._onInputChange=function(t){t.stopPropagation();var e=this.radioGroup&&this.value!=this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),this.radioGroup._touch(),e&&this.radioGroup._emitChangeEvent())},r.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.radioGroup&&this.radioGroup._touch(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0,centered:!0})},r}(An);Mn.decorators=[{type:e.Component,args:[{selector:"md-radio-button, mat-radio-button",template:'<label [attr.for]="inputId" class="mat-radio-label" #label><div class="mat-radio-container"><div class="mat-radio-outer-circle"></div><div class="mat-radio-inner-circle"></div><div md-ripple class="mat-radio-ripple" [mdRippleTrigger]="label" [mdRippleDisabled]="_isRippleDisabled()" [mdRippleCentered]="true"></div></div><input #input class="mat-radio-input cdk-visually-hidden" type="radio" [id]="inputId" [checked]="checked" [disabled]="disabled" [name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onInputChange($event)" (click)="_onInputClick($event)"><div class="mat-radio-label-content" [class.mat-radio-label-before]="labelPosition == \'before\'"><span style="display:none"> </span><ng-content></ng-content></div></label>',styles:[".mat-radio-button{display:inline-block}.mat-radio-label{cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}.mat-radio-container{box-sizing:border-box;display:inline-block;height:20px;position:relative;width:20px}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;transform:scale(0);width:20px}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}.mat-radio-label-content{display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-ripple{position:absolute;left:-15px;top:-15px;right:-15px;bottom:-15px;border-radius:50%;z-index:1;pointer-events:none}"],inputs:["color"],encapsulation:e.ViewEncapsulation.None,host:{class:"mat-radio-button","[class.mat-radio-checked]":"checked","[class.mat-radio-disabled]":"disabled","[attr.id]":"id"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Mn.ctorParameters=function(){return[{type:kn,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.Renderer2},{type:e.ChangeDetectorRef},{type:Te},{type:Oe}]},Mn.propDecorators={id:[{type:e.Input}],name:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],disableRipple:[{type:e.Input}],checked:[{type:e.Input}],value:[{type:e.Input}],align:[{type:e.Input}],labelPosition:[{type:e.Input}],disabled:[{type:e.Input}],change:[{type:e.Output}],_ripple:[{type:e.ViewChild,args:[Ft]}],_inputElement:[{type:e.ViewChild,args:["input"]}]};var Rn=function(){function t(){}return t}();Rn.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Wt,Pt],exports:[kn,Mn,Pt],providers:[ke,jt,Te],declarations:[kn,Mn]}]}],Rn.ctorParameters=function(){return[]};var In=function(t){function e(e){return t.call(this,e)||this}return y(e,t),e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus()},e}(n.ListKeyManager),Dn=p.trigger("transformPlaceholder",[p.state("floating-ltr",p.style({top:"-22px",left:"-2px",transform:"scale(0.75)"})),p.state("floating-rtl",p.style({top:"-22px",left:"2px",transform:"scale(0.75)"})),p.transition("* => *",p.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))]),Nn=p.trigger("transformPanel",[p.state("showing",p.style({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),p.state("showing-multiple",p.style({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),p.transition("void => *",[p.style({opacity:0,minWidth:"100%",transform:"scaleY(0)"}),p.animate("150ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),p.transition("* => void",[p.animate("250ms 100ms linear",p.style({opacity:0}))])]),jn=p.trigger("fadeInContent",[p.state("showing",p.style({opacity:1})),p.transition("void => showing",[p.style({opacity:0}),p.animate("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]),Ln=Math.floor(256/48),Fn=function(){function t(t,e){this.source=t,this.value=e}return t}(),Vn=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),Bn=E(x(Vn),"primary"),Un=function(t){function r(n,r,i,o,s,a,u,c){var l=t.call(this,i,o)||this;return l._viewportRuler=n,l._changeDetectorRef=r,l._dir=s,l._control=a,l._panelOpen=!1,l._required=!1,l._scrollTop=0,l._multiple=!1,l._placeholderState="",l._onChange=function(){},l._onTouched=function(){},l._optionIds="",l._transformOrigin="top",l._panelDoneAnimating=!1,l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l.ariaLabel="",l.ariaLabelledby="",l.onOpen=new e.EventEmitter,l.onClose=new e.EventEmitter,l.change=new e.EventEmitter,l._control&&(l._control.valueAccessor=l),l._tabIndex=parseInt(u)||0,l._placeholderOptions=c||{},l.floatPlaceholder=l._placeholderOptions.float||"auto",l}return y(r,t),Object.defineProperty(r.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){var e=this;this._placeholder=t,Promise.resolve(null).then(function(){return e._setTriggerWidth()})},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"required",{get:function(){return this._required},set:function(t){this._required=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw I();this._multiple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"floatPlaceholder",{get:function(){return this._floatPlaceholder},set:function(t){this._floatPlaceholder=t||this._placeholderOptions.float||"auto"},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){void 0!==t&&(this._tabIndex=t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"optionSelectionChanges",{get:function(){return u.merge.apply(void 0,this.options.map(function(t){return t.onSelectionChange}))},enumerable:!0,configurable:!0}),r.prototype.ngOnInit=function(){this._selectionModel=new Se(this.multiple,void 0,!1)},r.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._changeSubscription=n.startWith.call(this.options.changes,null).subscribe(function(){t._resetOptions(),t._control&&Promise.resolve(null).then(function(){return t._setSelectionByValue(t._control.value)})})},r.prototype.ngOnDestroy=function(){this._dropSubscriptions(),this._changeSubscription&&this._changeSubscription.unsubscribe(),this._tabSubscription&&this._tabSubscription.unsubscribe()},r.prototype.toggle=function(){this.panelOpen?this.close():this.open()},r.prototype.open=function(){!this.disabled&&this.options.length&&(this._triggerWidth||this._setTriggerWidth(),this._calculateOverlayPosition(),this._placeholderState=this._floatPlaceholderState(),this._panelOpen=!0)},r.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._selectionModel.isEmpty()&&(this._placeholderState=""),this.focus())},r.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},r.prototype.registerOnChange=function(t){this._onChange=t},r.prototype.registerOnTouched=function(t){this._onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t},Object.defineProperty(r.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"triggerValue",{get:function(){if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),r.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},r.prototype._setTriggerWidth=function(){this._triggerWidth=this._getTriggerRect().width},r.prototype._handleClosedKeydown=function(t){this.disabled||(t.keyCode===n.ENTER||t.keyCode===n.SPACE?(t.preventDefault(),this.open()):t.keyCode!==n.UP_ARROW&&t.keyCode!==n.DOWN_ARROW||this._handleArrowKey(t))},r.prototype._handlePanelKeydown=function(t){t.keyCode===n.HOME||t.keyCode===n.END?(t.preventDefault(),t.keyCode===n.HOME?this._keyManager.setFirstItemActive():this._keyManager.setLastItemActive()):this._keyManager.onKeydown(t)},r.prototype._onPanelDone=function(){this.panelOpen?(this._focusCorrectOption(),this.onOpen.emit()):(this.onClose.emit(),this._panelDoneAnimating=!1,this.overlayDir.offsetX=0)},r.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen},r.prototype._onBlur=function(){this.panelOpen||this._onTouched()},r.prototype._onAttached=function(){this._calculateOverlayOffsetX(),this._setScrollTop()},r.prototype._setScrollTop=function(){this.overlayDir.overlayRef.overlayElement.querySelector(".mat-select-panel").scrollTop=this._scrollTop},r.prototype._setSelectionByValue=function(t,e){var n=this;void 0===e&&(e=!1);var r=Array.isArray(t);if(this.multiple&&t&&!r)throw D();this._clearSelection(),r?(t.forEach(function(t){return n._selectValue(t,e)}),this._sortValues()):this._selectValue(t,e),this._setValueWidth(),this._selectionModel.isEmpty()&&(this._placeholderState=""),this._changeDetectorRef.markForCheck()},r.prototype._selectValue=function(t,e){void 0===e&&(e=!1);var n=this.options.toArray(),r=n.find(function(e){return null!=e.value&&e.value===t});return r&&(e?r._selectViaInteraction():r.select(),this._selectionModel.select(r),this._keyManager.setActiveItem(n.indexOf(r))),r},r.prototype._clearSelection=function(t){this._selectionModel.clear(),this.options.forEach(function(e){e!==t&&e.deselect()})},r.prototype._getTriggerRect=function(){return this.trigger.nativeElement.getBoundingClientRect()},r.prototype._initKeyManager=function(){var t=this;this._keyManager=new In(this.options),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.close()})},r.prototype._resetOptions=function(){this._dropSubscriptions(),this._listenToOptions(),this._setOptionIds(),this._setOptionMultiple()},r.prototype._listenToOptions=function(){var t=this;this._optionSubscription=n.filter.call(this.optionSelectionChanges,function(t){return t.isUserInput}).subscribe(function(e){t._onSelect(e.source),t._setValueWidth(),t.multiple||t.close()})},r.prototype._onSelect=function(t){var e=this._selectionModel.isSelected(t);this.multiple?(this._selectionModel.toggle(t),e?t.deselect():t.select(),this._sortValues()):(this._clearSelection(null==t.value?void 0:t),null==t.value?this._propagateChanges(t.value):this._selectionModel.select(t)),e!==this._selectionModel.isSelected(t)&&this._propagateChanges()},r.prototype._sortValues=function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.options.forEach(function(e){e.selected&&t._selectionModel.select(e)}))},r.prototype._dropSubscriptions=function(){this._optionSubscription&&(this._optionSubscription.unsubscribe(),this._optionSubscription=null)},r.prototype._propagateChanges=function(t){var e=null;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._onChange(e),this.change.emit(new Fn(this,e))},r.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},r.prototype._setOptionMultiple=function(){var t=this;this.multiple&&Promise.resolve(null).then(function(){t.options.forEach(function(e){return e.multiple=t.multiple})})},r.prototype._setValueWidth=function(){this._selectedValueWidth=this._triggerWidth-13},r.prototype._focusCorrectOption=function(){this._selectionModel.isEmpty()?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._getOptionIndex(this._selectionModel.selected[0]))},r.prototype.focus=function(){this._elementRef.nativeElement.focus()},r.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,r){return void 0===e?t===n?r:void 0:e},void 0)},r.prototype._calculateOverlayPosition=function(){var t=this._getItemCount(),e=Math.min(48*t,256),n=48*t-e;if(this._selectionModel.hasValue()){var r=this._getOptionIndex(this._selectionModel.selected[0]);r+=this._getLabelCountBeforeOption(r);var i=e/2;this._scrollTop=this._calculateOverlayScroll(r,i,n),this._offsetY=this._calculateOverlayOffsetY(r,i,n)}else this._offsetY=-9-48*this._getLabelCountBeforeOption(0);this._checkOverlayWithinViewport(n)},r.prototype._calculateOverlayScroll=function(t,e,n){return N(0,48*t-e+24,n)},r.prototype._getPlaceholderAnimationState=function(){return"never"===this.floatPlaceholder?"":"always"===this.floatPlaceholder?this._floatPlaceholderState():this._placeholderState},r.prototype._getPlaceholderOpacity=function(){return"never"!==this.floatPlaceholder||this._selectionModel.isEmpty()?"1":"0"},Object.defineProperty(r.prototype,"_ariaLabel",{get:function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},enumerable:!0,configurable:!0}),r.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportRect(),r=this._isRtl(),i=this.multiple?64:32;if(this.multiple)t=48;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var s=0-(e.left+t-(r?i:0)),a=e.right+t-n.width+(r?0:i);s>0?t+=s+8:a>0&&(t-=a+8),this.overlayDir.offsetX=t,this.overlayDir.overlayRef.updatePosition()},r.prototype._calculateOverlayOffsetY=function(t,e,n){return-1*(0===this._scrollTop?48*t:this._scrollTop===n?48*(t-(this._getItemCount()-Ln))+16:e-24)-9},r.prototype._checkOverlayWithinViewport=function(t){var e=this._viewportRuler.getViewportRect(),n=this._getTriggerRect(),r=n.top-8,i=e.height-n.bottom-8,o=Math.abs(this._offsetY),s=Math.min(48*this._getItemCount(),256)-o-n.height;s>i?this._adjustPanelUp(s,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},r.prototype._adjustPanelUp=function(t,e){var n=t-e;this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},r.prototype._adjustPanelDown=function(t,e,n){var r=t-e;if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},r.prototype._getOriginBasedOnOption=function(){return"50% "+(Math.abs(this._offsetY)-9+24)+"px 0px"},r.prototype._floatPlaceholderState=function(){return this._isRtl()?"floating-rtl":"floating-ltr"},r.prototype._handleArrowKey=function(t){if(this._multiple)t.preventDefault(),this.open();else{var e=this._keyManager.activeItem;this._keyManager.onKeydown(t);var n=this._keyManager.activeItem;n!==e&&(this._clearSelection(),this._setSelectionByValue(n.value,!0),this._propagateChanges())}},r.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},r.prototype._getLabelCountBeforeOption=function(t){if(this.optionGroups.length){for(var e=this.options.toArray(),n=this.optionGroups.toArray(),r=0,i=0;i<t+1;i++)e[i].group&&e[i].group===n[r]&&r++;return r}return 0},r}(Bn);Un.decorators=[{type:e.Component,args:[{selector:"md-select, mat-select",template:'<div class="mat-select-trigger" cdk-overlay-origin (click)="toggle()" #origin="cdkOverlayOrigin" #trigger><span class="mat-select-placeholder" [class.mat-floating-placeholder]="_selectionModel.hasValue()" [@transformPlaceholder]="_getPlaceholderAnimationState()" [style.opacity]="_getPlaceholderOpacity()" [style.width.px]="_selectedValueWidth">{{ placeholder }} </span><span class="mat-select-value" *ngIf="_selectionModel.hasValue()"><span class="mat-select-value-text">{{ triggerValue }}</span> </span><span class="mat-select-arrow"></span> <span class="mat-select-underline"></span></div><ng-template cdk-connected-overlay hasBackdrop backdropClass="cdk-overlay-transparent-backdrop" [origin]="origin" [open]="panelOpen" [positions]="_positions" [minWidth]="_triggerWidth" [offsetY]="_offsetY" (backdropClick)="close()" (attach)="_onAttached()" (detach)="close()"><div class="mat-select-panel {{ \'mat-\' + color }}" [ngClass]="panelClass" [@transformPanel]="multiple ? \'showing-multiple\' : \'showing\'" (@transformPanel.done)="_onPanelDone()" (keydown)="_handlePanelKeydown($event)" [style.transformOrigin]="_transformOrigin" [class.mat-select-panel-done-animating]="_panelDoneAnimating"><div class="mat-select-content" [@fadeInContent]="\'showing\'" (@fadeInContent.done)="_onFadeInDone()"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-select{display:inline-block;outline:0}.mat-select-trigger{display:flex;align-items:center;height:30px;min-width:112px;cursor:pointer;position:relative;box-sizing:border-box}[aria-disabled=true] .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-underline{position:absolute;bottom:0;left:0;right:0;height:1px}[aria-disabled=true] .mat-select-underline{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;background-color:transparent;background-position:0 bottom}.mat-select-placeholder{position:relative;padding:0 2px;transform-origin:left top;flex-grow:1}.mat-select-placeholder.mat-floating-placeholder{top:-22px;left:-2px;text-align:left;transform:scale(.75)}[dir=rtl] .mat-select-placeholder{transform-origin:right top}[dir=rtl] .mat-select-placeholder.mat-floating-placeholder{left:2px;text-align:right}[aria-required=true] .mat-select-placeholder::after{content:'*'}.mat-select-value{position:absolute;max-width:calc(100% - 18px);flex-grow:1;top:0;left:0;bottom:0;display:flex;align-items:center}[dir=rtl] .mat-select-value{left:auto;right:0}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:30px}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}"],inputs:["color","disabled"],encapsulation:e.ViewEncapsulation.None,host:{role:"listbox","[attr.tabindex]":"tabIndex","[attr.aria-label]":"_ariaLabel","[attr.aria-labelledby]":"ariaLabelledby","[attr.aria-required]":"required.toString()","[attr.aria-disabled]":"disabled.toString()","[attr.aria-invalid]":'_control?.invalid || "false"',"[attr.aria-owns]":"_optionIds","[class.mat-select-disabled]":"disabled",class:"mat-select","(keydown)":"_handleClosedKeydown($event)","(blur)":"_onBlur()"},animations:[Dn,Nn,jn],exportAs:"mdSelect"}]}],Un.ctorParameters=function(){return[{type:Nt},{type:e.ChangeDetectorRef},{type:e.Renderer2},{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:l.NgControl,decorators:[{type:e.Self},{type:e.Optional}]},{type:void 0,decorators:[{type:e.Attribute,args:["tabindex"]}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ge]}]}]},Un.propDecorators={trigger:[{type:e.ViewChild,args:["trigger"]}],overlayDir:[{type:e.ViewChild,args:[_e]}],options:[{type:e.ContentChildren,args:[re,{descendants:!0}]}],optionGroups:[{type:e.ContentChildren,args:[te]}],panelClass:[{type:e.Input}],placeholder:[{type:e.Input}],required:[{type:e.Input}],multiple:[{type:e.Input}],floatPlaceholder:[{type:e.Input}],tabIndex:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],onOpen:[{type:e.Output}],onClose:[{type:e.Output}],change:[{type:e.Output}]};var Hn=function(){function t(){}return t}();Hn.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Ee,ie,Pt],exports:[Un,ie,Pt],declarations:[Un]}]}],Hn.ctorParameters=function(){return[]};var zn={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return $n}),multi:!0},qn=function(){function t(){}return t}(),Gn=0,Wn=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),Kn=E(x(Wn),"accent"),$n=function(t){function r(n,r,i,o,s){var a=t.call(this,r,n)||this;return a._platform=i,a._focusOriginMonitor=o,a._changeDetectorRef=s,a.onChange=function(t){},a.onTouched=function(){},a._uniqueId="md-slide-toggle-"+ ++Gn,a._checked=!1,a._required=!1,a._disableRipple=!1,a.name=null,a.id=a._uniqueId,a.tabIndex=0,a.labelPosition="after",a.ariaLabel=null,a.ariaLabelledby=null,a.change=new e.EventEmitter,a}return y(r,t),Object.defineProperty(r.prototype,"required",{get:function(){return this._required},set:function(t){this._required=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),r.prototype.ngAfterContentInit=function(){var t=this;this._slideRenderer=new Yn(this._elementRef,this._platform),this._focusOriginMonitor.monitor(this._inputElement.nativeElement,this._renderer,!1).subscribe(function(e){return t._onInputFocusChange(e)})},r.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._inputElement.nativeElement)},r.prototype._onChangeEvent=function(t){t.stopPropagation(),this.disabled||this._slideRenderer.dragging||(this.toggle(),this._emitChangeEvent())},r.prototype._onInputClick=function(t){this.onTouched(),t.stopPropagation()},r.prototype.writeValue=function(t){this.checked=t},r.prototype.registerOnChange=function(t){this.onChange=t},r.prototype.registerOnTouched=function(t){this.onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},r.prototype.focus=function(){this._focusOriginMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},Object.defineProperty(r.prototype,"checked",{get:function(){return!!this._checked},set:function(t){this.checked!==!!t&&(this._checked=t,this.onChange(this._checked))},enumerable:!0,configurable:!0}),r.prototype.toggle=function(){this.checked=!this.checked},r.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.onTouched(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0,centered:!0})},r.prototype._emitChangeEvent=function(){var t=new qn;t.source=this,t.checked=this.checked,this.change.emit(t)},r.prototype._onDragStart=function(){this.disabled||this._slideRenderer.startThumbDrag(this.checked)},r.prototype._onDrag=function(t){this._slideRenderer.dragging&&this._slideRenderer.updateThumbPosition(t.deltaX)},r.prototype._onDragEnd=function(){var t=this;if(this._slideRenderer.dragging){var e=this.checked;this.checked=this._slideRenderer.dragPercentage>50,e!==this.checked&&this._emitChangeEvent(),setTimeout(function(){return t._slideRenderer.stopThumbDrag()})}},r}(Kn);$n.decorators=[{type:e.Component,args:[{selector:"md-slide-toggle, mat-slide-toggle",host:{class:"mat-slide-toggle","[class.mat-checked]":"checked","[class.mat-disabled]":"disabled","[class.mat-slide-toggle-label-before]":'labelPosition == "before"'},template:'<label class="mat-slide-toggle-label" #label><div class="mat-slide-toggle-bar"><input #input class="mat-slide-toggle-input cdk-visually-hidden" type="checkbox" [id]="inputId" [required]="required" [tabIndex]="tabIndex" [checked]="checked" [disabled]="disabled" [attr.name]="name" [attr.aria-label]="ariaLabel" [attr.aria-labelledby]="ariaLabelledby" (change)="_onChangeEvent($event)" (click)="_onInputClick($event)"><div class="mat-slide-toggle-thumb-container" (slidestart)="_onDragStart()" (slide)="_onDrag($event)" (slideend)="_onDragEnd()"><div class="mat-slide-toggle-thumb"></div><div class="mat-slide-toggle-ripple" md-ripple [mdRippleTrigger]="label" [mdRippleCentered]="true" [mdRippleDisabled]="disableRipple || disabled"></div></div></div><span class="mat-slide-toggle-content"><ng-content></ng-content></span></label>',styles:[".mat-slide-toggle{display:inline-block;height:24px;line-height:24px;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;outline:0}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;cursor:pointer}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging,.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing;transition-duration:0s}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%;box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:solid 1px #000}}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;border-radius:8px}@media screen and (-ms-high-contrast:active){.mat-slide-toggle-bar{background:#fff}}.mat-slide-toggle-input{bottom:0;left:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}.mat-slide-toggle-ripple{position:absolute;top:-13px;left:-13px;height:46px;width:46px;border-radius:50%;z-index:1;pointer-events:none}"],providers:[zn],inputs:["disabled","color"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],$n.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:n.Platform},{type:Te},{type:e.ChangeDetectorRef}]},$n.propDecorators={name:[{type:e.Input}],id:[{type:e.Input}],tabIndex:[{type:e.Input}],labelPosition:[{type:e.Input}],ariaLabel:[{type:e.Input,args:["aria-label"]}],ariaLabelledby:[{type:e.Input,args:["aria-labelledby"]}],required:[{type:e.Input}],disableRipple:[{type:e.Input}],change:[{type:e.Output}],_inputElement:[{type:e.ViewChild,args:["input"]}],_ripple:[{type:e.ViewChild,args:[Ft]}],checked:[{type:e.Input}]};var Yn=function(){function t(t,e){this._elementRef=t,this.dragging=!1,e.isBrowser&&(this._thumbEl=t.nativeElement.querySelector(".mat-slide-toggle-thumb-container"),this._thumbBarEl=t.nativeElement.querySelector(".mat-slide-toggle-bar"))}return t.prototype.startThumbDrag=function(t){this.dragging||(this._thumbBarWidth=this._thumbBarEl.clientWidth-this._thumbEl.clientWidth,this._thumbEl.classList.add("mat-dragging"),this._previousChecked=t,this.dragging=!0)},t.prototype.stopThumbDrag=function(){return!!this.dragging&&(this.dragging=!1,this._thumbEl.classList.remove("mat-dragging"),T(this._thumbEl,""),this.dragPercentage>50)},t.prototype.updateThumbPosition=function(t){this.dragPercentage=this._getDragPercentage(t);var e=this.dragPercentage/100*this._thumbBarWidth;T(this._thumbEl,"translate3d("+e+"px, 0, 0)")},t.prototype._getDragPercentage=function(t){var e=t/this._thumbBarWidth*100;return this._previousChecked&&(e+=100),Math.max(0,Math.min(e,100))},t}(),Xn=function(){function t(){}return t}();Xn.decorators=[{type:e.NgModule,args:[{imports:[l.FormsModule,Wt,Pt,n.PlatformModule],exports:[$n,Pt],declarations:[$n],providers:[Me,{provide:r.HAMMER_GESTURE_CONFIG,useClass:xe}]}]}],Xn.ctorParameters=function(){return[]};var Qn={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return er}),multi:!0},Jn=function(){function t(){}return t}(),Zn=function(){function t(){}return t}(),tr=x(Zn),er=function(t){function r(n,r,i,o){var s=t.call(this)||this;return s._elementRef=r,s._focusOriginMonitor=i,s._dir=o,s._invert=!1,s._max=100,s._min=0,s._step=1,s._thumbLabel=!1,s._tickInterval=0,s._value=null,s._vertical=!1,s.color="accent",s.change=new e.EventEmitter,s.input=new e.EventEmitter,s.onTouched=function(){},s._percent=0,s._isSliding=!1,s._isActive=!1,s._tickIntervalPercent=0,s._sliderDimensions=null,s._controlValueAccessorChangeFn=function(){},s._focusOriginMonitor.monitor(s._elementRef.nativeElement,n,!0).subscribe(function(t){return s._isActive=!!t&&"keyboard"!==t}),s._renderer=new nr(s._elementRef),s}return y(r,t),Object.defineProperty(r.prototype,"invert",{get:function(){return this._invert},set:function(t){this._invert=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"max",{get:function(){return this._max},set:function(t){this._max=n.coerceNumberProperty(t,this._max),this._percent=this._calculatePercentage(this._value)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"min",{get:function(){return this._min},set:function(t){this._min=n.coerceNumberProperty(t,this._min),null===this._value&&(this.value=this._min),this._percent=this._calculatePercentage(this._value)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"step",{get:function(){return this._step},set:function(t){this._step=n.coerceNumberProperty(t,this._step),this._step%1!=0&&(this._roundLabelTo=this._step.toString().split(".").pop().length)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"thumbLabel",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_thumbLabelDeprecated",{get:function(){return this._thumbLabel},set:function(t){this._thumbLabel=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"tickInterval",{get:function(){return this._tickInterval},set:function(t){this._tickInterval="auto"===t?"auto":"number"==typeof t||"string"==typeof t?n.coerceNumberProperty(t,this._tickInterval):0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_tickIntervalDeprecated",{get:function(){return this.tickInterval},set:function(t){this.tickInterval=t},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"value",{get:function(){return null===this._value&&(this.value=this._min),this._value},set:function(t){this._value=n.coerceNumberProperty(t,this._value||0),this._percent=this._calculatePercentage(this._value)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"displayValue",{get:function(){return this._roundLabelTo&&this.value&&this.value%1!=0?this.value.toFixed(this._roundLabelTo):this.value||0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"percent",{get:function(){return this._clamp(this._percent)},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_invertAxis",{get:function(){return this.vertical?!this.invert:this.invert},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_isMinValue",{get:function(){return 0===this.percent},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_thumbGap",{get:function(){return this.disabled?7:this._isMinValue&&!this.thumbLabel?this._isActive?10:7:0},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_trackBackgroundStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"-":"")+this._thumbGap+"px) scale"+t+"("+(1-this.percent)+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_trackFillStyles",{get:function(){var t=this.vertical?"Y":"X";return{transform:"translate"+t+"("+(this._invertMouseCoords?"":"-")+this._thumbGap+"px) scale"+t+"("+this.percent+")"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_ticksContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"-":"")+this._tickIntervalPercent/2*100+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_ticksStyles",{get:function(){var t=100*this._tickIntervalPercent,e={backgroundSize:this.vertical?"2px "+t+"%":t+"% 2px",transform:"translateZ(0) translate"+(this.vertical?"Y":"X")+"("+(this.vertical||"rtl"!=this._direction?"":"-")+t/2+"%)"+(this.vertical||"rtl"!=this._direction?"":" rotate(180deg)")};return this._isMinValue&&this._thumbGap&&(e["padding"+(this.vertical?this._invertAxis?"Bottom":"Top":this._invertAxis?"Right":"Left")]=this._thumbGap+"px"),e},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_thumbContainerStyles",{get:function(){return{transform:"translate"+(this.vertical?"Y":"X")+"(-"+100*(("rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis)?this.percent:1-this.percent)+"%)"}},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_invertMouseCoords",{get:function(){return"rtl"!=this._direction||this.vertical?this._invertAxis:!this._invertAxis},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"_direction",{get:function(){return this._dir&&"rtl"==this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),r.prototype.ngOnDestroy=function(){this._focusOriginMonitor.stopMonitoring(this._elementRef.nativeElement)},r.prototype._onMouseenter=function(){this.disabled||(this._sliderDimensions=this._renderer.getSliderDimensions(),this._updateTickIntervalPercent())},r.prototype._onClick=function(t){this.disabled||(this._isSliding=!1,this._renderer.addFocus(),this._updateValueFromPosition({x:t.clientX,y:t.clientY}),this._emitInputEvent(),this._emitValueIfChanged())},r.prototype._onSlide=function(t){this.disabled||(t.preventDefault(),this._updateValueFromPosition({x:t.center.x,y:t.center.y}),this._emitInputEvent())},r.prototype._onSlideStart=function(t){this.disabled||(this._onMouseenter(),t.preventDefault(),this._isSliding=!0,this._renderer.addFocus(),this._updateValueFromPosition({x:t.center.x,y:t.center.y}))},r.prototype._onSlideEnd=function(){this._isSliding=!1,this._emitValueIfChanged()},r.prototype._onFocus=function(){this._sliderDimensions=this._renderer.getSliderDimensions(),this._updateTickIntervalPercent()},r.prototype._onBlur=function(){this.onTouched()},r.prototype._onKeydown=function(t){if(!this.disabled){switch(t.keyCode){case n.PAGE_UP:this._increment(10);break;case n.PAGE_DOWN:this._increment(-10);break;case n.END:this.value=this.max;break;case n.HOME:this.value=this.min;break;case n.LEFT_ARROW:this._increment("rtl"==this._direction?1:-1);break;case n.UP_ARROW:this._increment(1);break;case n.RIGHT_ARROW:this._increment("rtl"==this._direction?-1:1);break;case n.DOWN_ARROW:this._increment(-1);break;default:return}this._isSliding=!0,t.preventDefault()}},r.prototype._onKeyup=function(){this._isSliding=!1},r.prototype._increment=function(t){this.value=this._clamp((this.value||0)+this.step*t,this.min,this.max),this._emitInputEvent(),this._emitValueIfChanged()},r.prototype._updateValueFromPosition=function(t){if(this._sliderDimensions){var e=this.vertical?this._sliderDimensions.top:this._sliderDimensions.left,n=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,r=this.vertical?t.y:t.x,i=this._clamp((r-e)/n);this._invertMouseCoords&&(i=1-i);var o=this._calculateValue(i),s=Math.round((o-this.min)/this.step)*this.step+this.min;this.value=this._clamp(s,this.min,this.max)}},r.prototype._emitValueIfChanged=function(){if(this.value!=this._lastChangeValue){var t=this._createChangeEvent();this._lastChangeValue=this.value,this._controlValueAccessorChangeFn(this.value),this.change.emit(t)}},r.prototype._emitInputEvent=function(){if(this.value!=this._lastInputValue){var t=this._createChangeEvent();this._lastInputValue=this.value,this.input.emit(t)}},r.prototype._updateTickIntervalPercent=function(){if(this.tickInterval&&this._sliderDimensions)if("auto"==this.tickInterval){var t=this.vertical?this._sliderDimensions.height:this._sliderDimensions.width,e=t*this.step/(this.max-this.min),n=Math.ceil(30/e)*this.step;this._tickIntervalPercent=n/t}else this._tickIntervalPercent=this.tickInterval*this.step/(this.max-this.min)},r.prototype._createChangeEvent=function(t){void 0===t&&(t=this.value);var e=new Jn;return e.source=this,e.value=t,e},r.prototype._calculatePercentage=function(t){return((t||0)-this.min)/(this.max-this.min)},r.prototype._calculateValue=function(t){return this.min+t*(this.max-this.min)},r.prototype._clamp=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=1),Math.max(e,Math.min(t,n))},r.prototype.writeValue=function(t){this.value=t},r.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},r.prototype.registerOnTouched=function(t){this.onTouched=t},r.prototype.setDisabledState=function(t){this.disabled=t},r}(tr);er.decorators=[{type:e.Component,args:[{selector:"md-slider, mat-slider",providers:[Qn],host:{"(focus)":"_onFocus()","(blur)":"_onBlur()","(click)":"_onClick($event)","(keydown)":"_onKeydown($event)","(keyup)":"_onKeyup()","(mouseenter)":"_onMouseenter()","(slide)":"_onSlide($event)","(slideend)":"_onSlideEnd()","(slidestart)":"_onSlideStart($event)",class:"mat-slider",role:"slider",tabindex:"0","[attr.aria-disabled]":"disabled","[attr.aria-valuemax]":"max","[attr.aria-valuemin]":"min","[attr.aria-valuenow]":"value","[attr.aria-orientation]":'vertical ? "vertical" : "horizontal"',"[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color != "primary" && color != "warn"',"[class.mat-warn]":'color == "warn"',"[class.mat-slider-disabled]":"disabled","[class.mat-slider-has-ticks]":"tickInterval","[class.mat-slider-horizontal]":"!vertical","[class.mat-slider-axis-inverted]":"_invertAxis","[class.mat-slider-sliding]":"_isSliding","[class.mat-slider-thumb-label-showing]":"thumbLabel","[class.mat-slider-vertical]":"vertical","[class.mat-slider-min-value]":"_isMinValue","[class.mat-slider-hide-last-tick]":"disabled || _isMinValue && _thumbGap && _invertAxis"},template:'<div class="mat-slider-wrapper"><div class="mat-slider-track-wrapper"><div class="mat-slider-track-background" [ngStyle]="_trackBackgroundStyles"></div><div class="mat-slider-track-fill" [ngStyle]="_trackFillStyles"></div></div><div class="mat-slider-ticks-container" [ngStyle]="_ticksContainerStyles"><div class="mat-slider-ticks" [ngStyle]="_ticksStyles"></div></div><div class="mat-slider-thumb-container" [ngStyle]="_thumbContainerStyles"><div class="mat-slider-focus-ring"></div><div class="mat-slider-thumb"></div><div class="mat-slider-thumb-label"><span class="mat-slider-thumb-label-text">{{displayValue}}</span></div></div></div>',styles:[".mat-slider{display:inline-block;position:relative;box-sizing:border-box;padding:8px;outline:0;vertical-align:middle}.mat-slider-wrapper{position:absolute}.mat-slider-track-wrapper{position:absolute;top:0;left:0;overflow:hidden}.mat-slider-track-fill{position:absolute;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-track-background{position:absolute;transform-origin:100% 100%;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-ticks-container{position:absolute;left:0;top:0;overflow:hidden}.mat-slider-ticks{background-repeat:repeat;background-clip:content-box;box-sizing:border-box;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-container{position:absolute;z-index:1;transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-focus-ring{position:absolute;width:30px;height:30px;border-radius:50%;transform:scale(0);opacity:0;transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),opacity .4s cubic-bezier(.25,.8,.25,1)}.cdk-keyboard-focused .mat-slider-focus-ring{transform:scale(1);opacity:1}.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label{cursor:-webkit-grab;cursor:grab}.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb,.mat-slider-sliding:not(.mat-slider-disabled) .mat-slider-thumb-label,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb-label:active,.mat-slider:not(.mat-slider-disabled) .mat-slider-thumb:active{cursor:-webkit-grabbing;cursor:grabbing}.mat-slider-thumb{position:absolute;right:-10px;bottom:-10px;box-sizing:border-box;width:20px;height:20px;border:3px solid transparent;border-radius:50%;transform:scale(.7);transition:transform .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1),border-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label{display:none;align-items:center;justify-content:center;position:absolute;width:28px;height:28px;border-radius:50%;transition:transform .4s cubic-bezier(.25,.8,.25,1),border-radius .4s cubic-bezier(.25,.8,.25,1),background-color .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-thumb-label-text{z-index:1;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-sliding .mat-slider-thumb-container,.mat-slider-sliding .mat-slider-track-background,.mat-slider-sliding .mat-slider-track-fill{transition-duration:0s}.mat-slider-has-ticks .mat-slider-wrapper::after{content:'';position:absolute;border-width:0;border-style:solid;opacity:0;transition:opacity .4s cubic-bezier(.25,.8,.25,1)}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after,.mat-slider-has-ticks:hover:not(.mat-slider-hide-last-tick) .mat-slider-wrapper::after{opacity:1}.mat-slider-has-ticks.cdk-focused:not(.mat-slider-disabled) .mat-slider-ticks,.mat-slider-has-ticks:hover:not(.mat-slider-disabled) .mat-slider-ticks{opacity:1}.mat-slider-thumb-label-showing .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-thumb-label-showing .mat-slider-thumb-label{display:flex}.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:100% 100%}.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:0 0}.cdk-focused.mat-slider-thumb-label-showing .mat-slider-thumb{transform:scale(0)}.cdk-focused .mat-slider-thumb-label{border-radius:50% 50% 0}.cdk-focused .mat-slider-thumb-label-text{opacity:1}.cdk-mouse-focused .mat-slider-thumb,.cdk-program-focused .mat-slider-thumb,.cdk-touch-focused .mat-slider-thumb{border-width:2px;transform:scale(1)}.mat-slider-disabled .mat-slider-focus-ring{transform:scale(0);opacity:0}.mat-slider-disabled .mat-slider-thumb{border-width:4px;transform:scale(.5)}.mat-slider-disabled .mat-slider-thumb-label{display:none}.mat-slider-horizontal{height:48px;min-width:128px}.mat-slider-horizontal .mat-slider-wrapper{height:2px;top:23px;left:8px;right:8px}.mat-slider-horizontal .mat-slider-wrapper::after{height:2px;border-left-width:2px;right:0;top:0}.mat-slider-horizontal .mat-slider-track-wrapper{height:2px;width:100%}.mat-slider-horizontal .mat-slider-track-fill{height:2px;width:100%;transform:scaleX(0)}.mat-slider-horizontal .mat-slider-track-background{height:2px;width:100%;transform:scaleX(1)}.mat-slider-horizontal .mat-slider-ticks-container{height:2px;width:100%}.mat-slider-horizontal .mat-slider-ticks{height:2px;width:100%}.mat-slider-horizontal .mat-slider-thumb-container{width:100%;height:0;top:50%}.mat-slider-horizontal .mat-slider-focus-ring{top:-15px;right:-15px}.mat-slider-horizontal .mat-slider-thumb-label{right:-14px;top:-40px;transform:translateY(26px) scale(.01) rotate(45deg)}.mat-slider-horizontal .mat-slider-thumb-label-text{transform:rotate(-45deg)}.mat-slider-horizontal.cdk-focused .mat-slider-thumb-label{transform:rotate(45deg)}.mat-slider-vertical{width:48px;min-height:128px}.mat-slider-vertical .mat-slider-wrapper{width:2px;top:8px;bottom:8px;left:23px}.mat-slider-vertical .mat-slider-wrapper::after{width:2px;border-top-width:2px;bottom:0;left:0}.mat-slider-vertical .mat-slider-track-wrapper{height:100%;width:2px}.mat-slider-vertical .mat-slider-track-fill{height:100%;width:2px;transform:scaleY(0)}.mat-slider-vertical .mat-slider-track-background{height:100%;width:2px;transform:scaleY(1)}.mat-slider-vertical .mat-slider-ticks-container{width:2px;height:100%}.mat-slider-vertical .mat-slider-focus-ring{bottom:-15px;left:-15px}.mat-slider-vertical .mat-slider-ticks{width:2px;height:100%}.mat-slider-vertical .mat-slider-thumb-container{height:100%;width:0;left:50%}.mat-slider-vertical .mat-slider-thumb-label{bottom:-14px;left:-40px;transform:translateX(26px) scale(.01) rotate(-45deg)}.mat-slider-vertical .mat-slider-thumb-label-text{transform:rotate(45deg)}.mat-slider-vertical.cdk-focused .mat-slider-thumb-label{transform:rotate(-45deg)}[dir=rtl] .mat-slider-wrapper::after{left:0;right:auto}[dir=rtl] .mat-slider-horizontal .mat-slider-track-fill{transform-origin:100% 100%}[dir=rtl] .mat-slider-horizontal .mat-slider-track-background{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-fill{transform-origin:0 0}[dir=rtl] .mat-slider-horizontal.mat-slider-axis-inverted .mat-slider-track-background{transform-origin:100% 100%}"],inputs:["disabled"],encapsulation:e.ViewEncapsulation.None}]}],er.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:Te},{type:n.Directionality,decorators:[{type:e.Optional}]}]},er.propDecorators={invert:[{type:e.Input}],max:[{type:e.Input}],min:[{type:e.Input}],step:[{type:e.Input}],thumbLabel:[{type:e.Input}],_thumbLabelDeprecated:[{type:e.Input,args:["thumb-label"]}],tickInterval:[{type:e.Input}],_tickIntervalDeprecated:[{type:e.Input,args:["tick-interval"]}],value:[{type:e.Input}],vertical:[{type:e.Input}],color:[{type:e.Input}],change:[{type:e.Output}],input:[{type:e.Output}]};var nr=function(){function t(t){this._sliderElement=t.nativeElement}return t.prototype.getSliderDimensions=function(){var t=this._sliderElement.querySelector(".mat-slider-wrapper");return t?t.getBoundingClientRect():null},t.prototype.addFocus=function(){this._sliderElement.focus()},t}(),rr=function(){function t(){}return t}();rr.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,l.FormsModule,Pt,Re,n.BidiModule],exports:[er,Pt],declarations:[er],providers:[{provide:r.HAMMER_GESTURE_CONFIG,useClass:xe}]}]}],rr.ctorParameters=function(){return[]};var ir=function(){function t(t,e){this.type=t,this.animationFinished=e}return t}(),or=function(){function t(t,n,r){var i=this;this._elementRef=t,this._focusTrapFactory=n,this._doc=r,this._align="start",this.mode="over",this._disableClose=!1,this._opened=!1,this.onOpenStart=new e.EventEmitter,this.onOpen=new e.EventEmitter,this.onCloseStart=new e.EventEmitter,this.onClose=new e.EventEmitter,this.onAlignChanged=new e.EventEmitter,this._toggleAnimationPromise=null,this._resolveToggleAnimationPromise=null,this._elementFocusedBeforeSidenavWasOpened=null,this.onOpen.subscribe(function(){i._doc&&(i._elementFocusedBeforeSidenavWasOpened=i._doc.activeElement),i.isFocusTrapEnabled&&i._focusTrap&&i._focusTrap.focusInitialElementWhenReady()}),this.onClose.subscribe(function(){return i._restoreFocus()})}return Object.defineProperty(t.prototype,"align",{get:function(){return this._align},set:function(t){(t="end"==t?"end":"start")!=this._align&&(this._align=t,this.onAlignChanged.emit())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableClose",{get:function(){return this._disableClose},set:function(t){this._disableClose=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocusTrapEnabled",{get:function(){return this.opened&&"side"!==this.mode},enumerable:!0,configurable:!0}),t.prototype._restoreFocus=function(){var t=this._doc&&this._doc.activeElement;t&&this._elementRef.nativeElement.contains(t)&&(this._elementFocusedBeforeSidenavWasOpened instanceof HTMLElement?this._elementFocusedBeforeSidenavWasOpened.focus():this._elementRef.nativeElement.blur()),this._elementFocusedBeforeSidenavWasOpened=null},t.prototype.ngAfterContentInit=function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._focusTrap.enabled=this.isFocusTrapEnabled,this._toggleAnimationPromise&&this._resolveToggleAnimationPromise&&(this._resolveToggleAnimationPromise(!0),this._toggleAnimationPromise=this._resolveToggleAnimationPromise=null)},t.prototype.ngOnDestroy=function(){this._focusTrap&&this._focusTrap.destroy()},Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){this.toggle(n.coerceBooleanProperty(t))},enumerable:!0,configurable:!0}),t.prototype.open=function(){return this.toggle(!0)},t.prototype.close=function(){return this.toggle(!1)},t.prototype.toggle=function(t){var e=this;return void 0===t&&(t=!this.opened),t===this.opened?this._toggleAnimationPromise||Promise.resolve(new ir(t?"open":"close",!0)):(this._opened=t,this._focusTrap&&(this._focusTrap.enabled=this.isFocusTrapEnabled),t?this.onOpenStart.emit():this.onCloseStart.emit(),this._toggleAnimationPromise&&this._resolveToggleAnimationPromise&&this._resolveToggleAnimationPromise(!1),this._toggleAnimationPromise=new Promise(function(n){e._resolveToggleAnimationPromise=function(e){return n(new ir(t?"open":"close",e))}}),this._toggleAnimationPromise)},t.prototype.handleKeydown=function(t){t.keyCode!==n.ESCAPE||this.disableClose||(this.close(),t.stopPropagation())},t.prototype._onTransitionEnd=function(t){t.target==this._elementRef.nativeElement&&t.propertyName.endsWith("transform")&&(this._opened?this.onOpen.emit():this.onClose.emit(),this._toggleAnimationPromise&&this._resolveToggleAnimationPromise&&(this._resolveToggleAnimationPromise(!0),this._toggleAnimationPromise=this._resolveToggleAnimationPromise=null))},Object.defineProperty(t.prototype,"_isClosing",{get:function(){return!this._opened&&!!this._toggleAnimationPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isOpening",{get:function(){return this._opened&&!!this._toggleAnimationPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isClosed",{get:function(){return!this._opened&&!this._toggleAnimationPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isOpened",{get:function(){return this._opened&&!this._toggleAnimationPromise},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_isEnd",{get:function(){return"end"==this.align},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_modeSide",{get:function(){return"side"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_modeOver",{get:function(){return"over"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_modePush",{get:function(){return"push"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_width",{get:function(){return this._elementRef.nativeElement?this._elementRef.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),t}();or.decorators=[{type:e.Component,args:[{selector:"md-sidenav, mat-sidenav",template:"<ng-content></ng-content>",host:{class:"mat-sidenav","(transitionend)":"_onTransitionEnd($event)","(keydown)":"handleKeydown($event)","[attr.align]":"null","[class.mat-sidenav-closed]":"_isClosed","[class.mat-sidenav-closing]":"_isClosing","[class.mat-sidenav-end]":"_isEnd","[class.mat-sidenav-opened]":"_isOpened","[class.mat-sidenav-opening]":"_isOpening","[class.mat-sidenav-over]":"_modeOver","[class.mat-sidenav-push]":"_modePush","[class.mat-sidenav-side]":"_modeSide",tabIndex:"-1"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],or.ctorParameters=function(){return[{type:e.ElementRef},{type:n.FocusTrapFactory},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r.DOCUMENT]}]}]},or.propDecorators={align:[{type:e.Input}],mode:[{type:e.Input}],disableClose:[{type:e.Input}],onOpenStart:[{type:e.Output,args:["open-start"]}],onOpen:[{type:e.Output,args:["open"]}],onCloseStart:[{type:e.Output,args:["close-start"]}],onClose:[{type:e.Output,args:["close"]}],onAlignChanged:[{type:e.Output,args:["align-changed"]}],opened:[{type:e.Input}]};var sr=function(){function t(t,n,r,i){var o=this;this._dir=t,this._element=n,this._renderer=r,this._ngZone=i,this.backdropClick=new e.EventEmitter,this._enableTransitions=!1,null!=t&&t.change.subscribe(function(){return o._validateDrawers()})}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._sidenavs.changes.subscribe(function(){return t._validateDrawers()}),this._sidenavs.forEach(function(e){t._watchSidenavToggle(e),t._watchSidenavAlign(e)}),this._validateDrawers(),n.first.call(this._ngZone.onMicrotaskEmpty).subscribe(function(){return t._enableTransitions=!0})},t.prototype.open=function(){return Promise.all([this._start,this._end].filter(function(t){return t}).map(function(t){return t.open()}))},t.prototype.close=function(){return Promise.all([this._start,this._end].filter(function(t){return t}).map(function(t){return t.close()}))},t.prototype._watchSidenavToggle=function(t){var e=this;t&&"side"!==t.mode&&(t.onOpen.subscribe(function(){return e._setContainerClass(!0)}),t.onClose.subscribe(function(){return e._setContainerClass(!1)}))},t.prototype._watchSidenavAlign=function(t){var e=this;t&&t.onAlignChanged.subscribe(function(){return n.first.call(e._ngZone.onMicrotaskEmpty).subscribe(function(){return e._validateDrawers()})})},t.prototype._setContainerClass=function(t){t?this._renderer.addClass(this._element.nativeElement,"mat-sidenav-opened"):this._renderer.removeClass(this._element.nativeElement,"mat-sidenav-opened")},t.prototype._validateDrawers=function(){this._start=this._end=null;for(var t=0,e=this._sidenavs.toArray();t<e.length;t++){var n=e[t];"end"==n.align?(null!=this._end&&j("end"),this._end=n):(null!=this._start&&j("start"),this._start=n)}this._right=this._left=null,null==this._dir||"ltr"==this._dir.value?(this._left=this._start,this._right=this._end):(this._left=this._end,this._right=this._start)},t.prototype._onBackdropClicked=function(){this.backdropClick.emit(),this._closeModalSidenav()},t.prototype._closeModalSidenav=function(){[this._start,this._end].filter(function(t){return t&&!t.disableClose&&"side"!==t.mode}).forEach(function(t){return t.close()})},t.prototype._isShowingBackdrop=function(){return this._isSidenavOpen(this._start)&&"side"!=this._start.mode||this._isSidenavOpen(this._end)&&"side"!=this._end.mode},t.prototype._isSidenavOpen=function(t){return null!=t&&t.opened},t.prototype._getSidenavEffectiveWidth=function(t,e){return this._isSidenavOpen(t)&&t.mode==e?t._width:0},t.prototype._getMarginLeft=function(){return this._left?this._getSidenavEffectiveWidth(this._left,"side"):0},t.prototype._getMarginRight=function(){return this._right?this._getSidenavEffectiveWidth(this._right,"side"):0},t.prototype._getPositionLeft=function(){return this._left?this._getSidenavEffectiveWidth(this._left,"push"):0},t.prototype._getPositionRight=function(){return this._right?this._getSidenavEffectiveWidth(this._right,"push"):0},t.prototype._getPositionOffset=function(){return this._getPositionLeft()-this._getPositionRight()},t.prototype._getStyles=function(){return{marginLeft:this._getMarginLeft()+"px",marginRight:this._getMarginRight()+"px",transform:"translate3d("+this._getPositionOffset()+"px, 0, 0)"}},t}();sr.decorators=[{type:e.Component,args:[{selector:"md-sidenav-container, mat-sidenav-container",template:'<div class="mat-sidenav-backdrop" (click)="_onBackdropClicked()" [class.mat-sidenav-shown]="_isShowingBackdrop()"></div><ng-content select="md-sidenav, mat-sidenav"></ng-content><div class="mat-sidenav-content" [ngStyle]="_getStyles()" cdk-scrollable><ng-content></ng-content></div>',styles:[".mat-sidenav-container{position:relative;transform:translate3d(0,0,0);box-sizing:border-box;-webkit-overflow-scrolling:touch;display:block;overflow:hidden}.mat-sidenav-container[fullscreen]{position:absolute;top:0;left:0;right:0;bottom:0}.mat-sidenav-container[fullscreen].mat-sidenav-opened{overflow:hidden}.mat-sidenav-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;display:block;z-index:2;visibility:hidden}.mat-sidenav-backdrop.mat-sidenav-shown{visibility:visible}@media screen and (-ms-high-contrast:active){.mat-sidenav-backdrop{opacity:.5}}.mat-sidenav-content{position:relative;transform:translate3d(0,0,0);display:block;height:100%;overflow:auto}.mat-sidenav{position:relative;transform:translate3d(0,0,0);display:block;position:absolute;top:0;bottom:0;z-index:3;min-width:5vw;outline:0;box-sizing:border-box;height:100%;overflow-y:auto;transform:translate3d(-100%,0,0)}.mat-sidenav.mat-sidenav-closed{visibility:hidden}.mat-sidenav.mat-sidenav-opened,.mat-sidenav.mat-sidenav-opening{transform:translate3d(0,0,0)}.mat-sidenav.mat-sidenav-side{z-index:1}.mat-sidenav.mat-sidenav-end{right:0;transform:translate3d(100%,0,0)}.mat-sidenav.mat-sidenav-end.mat-sidenav-closed{visibility:hidden}.mat-sidenav.mat-sidenav-end.mat-sidenav-opened,.mat-sidenav.mat-sidenav-end.mat-sidenav-opening{transform:translate3d(0,0,0)}[dir=rtl] .mat-sidenav{transform:translate3d(100%,0,0)}[dir=rtl] .mat-sidenav.mat-sidenav-closed{visibility:hidden}[dir=rtl] .mat-sidenav.mat-sidenav-opened,[dir=rtl] .mat-sidenav.mat-sidenav-opening{transform:translate3d(0,0,0)}[dir=rtl] .mat-sidenav.mat-sidenav-end{left:0;right:auto;transform:translate3d(-100%,0,0)}[dir=rtl] .mat-sidenav.mat-sidenav-end.mat-sidenav-closed{visibility:hidden}[dir=rtl] .mat-sidenav.mat-sidenav-end.mat-sidenav-opened,[dir=rtl] .mat-sidenav.mat-sidenav-end.mat-sidenav-opening{transform:translate3d(0,0,0)}.mat-sidenav.mat-sidenav-opened:not(.mat-sidenav-side),.mat-sidenav.mat-sidenav-opening:not(.mat-sidenav-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)} .mat-sidenav-transition .mat-sidenav{transition:transform .4s cubic-bezier(.25,.8,.25,1)}.mat-sidenav-transition .mat-sidenav-content{transition-duration:.4s;transition-timing-function:cubic-bezier(.25,.8,.25,1);transition-property:transform,margin-left,margin-right}.mat-sidenav-transition .mat-sidenav-backdrop.mat-sidenav-shown{transition:background-color .4s cubic-bezier(.25,.8,.25,1)}"],host:{class:"mat-sidenav-container","[class.mat-sidenav-transition]":"_enableTransitions"},encapsulation:e.ViewEncapsulation.None}]}],sr.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ElementRef},{type:e.Renderer2},{type:e.NgZone}]},sr.propDecorators={_sidenavs:[{type:e.ContentChildren,args:[or]}],backdropClick:[{type:e.Output}]};var ar=function(){function t(){}return t}();ar.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Pt,n.A11yModule,Ee],exports:[sr,or,Pt],declarations:[sr,or]}]}],ar.ctorParameters=function(){return[]};var ur=function(){function t(){}return t}();ur.decorators=[{type:e.Directive,args:[{selector:"md-divider, mat-divider",host:{role:"separator","aria-orientation":"horizontal"}}]}],ur.ctorParameters=function(){return[]};var cr=function(){function t(){this._disableRipple=!1}return Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t}();cr.decorators=[{type:e.Component,args:[{selector:"md-list, mat-list, md-nav-list, mat-nav-list",host:{role:"list"},template:"<ng-content></ng-content>",styles:[".mat-subheader{display:block;box-sizing:border-box;padding:16px;margin:0}.mat-list,.mat-nav-list{padding-top:8px;display:block}.mat-list .mat-subheader,.mat-nav-list .mat-subheader{height:48px}.mat-list .mat-subheader:first-child,.mat-nav-list .mat-subheader:first-child{margin-top:-8px}.mat-list .mat-list-item,.mat-nav-list .mat-list-item{display:block}.mat-list .mat-list-item .mat-list-item-content,.mat-nav-list .mat-list-item .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;height:48px;padding:0 16px;position:relative}.mat-list .mat-list-item .mat-list-item-ripple,.mat-nav-list .mat-list-item .mat-list-item-ripple{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none}.mat-list .mat-list-item.mat-list-item-avatar .mat-list-item-content,.mat-nav-list .mat-list-item.mat-list-item-avatar .mat-list-item-content{height:56px}.mat-list .mat-list-item.mat-2-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-2-line .mat-list-item-content{height:72px}.mat-list .mat-list-item.mat-3-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-3-line .mat-list-item-content{height:88px}.mat-list .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list .mat-list-item.mat-multi-line .mat-list-item-content{height:100%;padding:8px 16px}.mat-list .mat-list-item .mat-list-text,.mat-nav-list .mat-list-item .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list .mat-list-item .mat-list-text>*,.mat-nav-list .mat-list-item .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list .mat-list-item .mat-list-text:empty,.mat-nav-list .mat-list-item .mat-list-text:empty{display:none}.mat-list .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list .mat-list-item .mat-list-text:nth-child(2){padding:0}.mat-list .mat-list-item .mat-list-avatar,.mat-nav-list .mat-list-item .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list .mat-list-item .mat-list-icon,.mat-nav-list .mat-list-item .mat-list-icon{width:24px;height:24px;font-size:24px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-list[dense],.mat-nav-list[dense]{padding-top:4px;display:block}.mat-list[dense] .mat-subheader,.mat-nav-list[dense] .mat-subheader{height:40px}.mat-list[dense] .mat-subheader:first-child,.mat-nav-list[dense] .mat-subheader:first-child{margin-top:-4px}.mat-list[dense] .mat-list-item,.mat-nav-list[dense] .mat-list-item{display:block}.mat-list[dense] .mat-list-item .mat-list-item-content,.mat-nav-list[dense] .mat-list-item .mat-list-item-content{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;height:40px;padding:0 16px;position:relative}.mat-list[dense] .mat-list-item .mat-list-item-ripple,.mat-nav-list[dense] .mat-list-item .mat-list-item-ripple{position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none}.mat-list[dense] .mat-list-item.mat-list-item-avatar .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-list-item-avatar .mat-list-item-content{height:48px}.mat-list[dense] .mat-list-item.mat-2-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-2-line .mat-list-item-content{height:60px}.mat-list[dense] .mat-list-item.mat-3-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-3-line .mat-list-item-content{height:76px}.mat-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content,.mat-nav-list[dense] .mat-list-item.mat-multi-line .mat-list-item-content{height:100%;padding:8px 16px}.mat-list[dense] .mat-list-item .mat-list-text,.mat-nav-list[dense] .mat-list-item .mat-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden;padding:0 16px}.mat-list[dense] .mat-list-item .mat-list-text>*,.mat-nav-list[dense] .mat-list-item .mat-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-list[dense] .mat-list-item .mat-list-text:empty,.mat-nav-list[dense] .mat-list-item .mat-list-text:empty{display:none}.mat-list[dense] .mat-list-item .mat-list-text:nth-child(2),.mat-nav-list[dense] .mat-list-item .mat-list-text:nth-child(2){padding:0}.mat-list[dense] .mat-list-item .mat-list-avatar,.mat-nav-list[dense] .mat-list-item .mat-list-avatar{flex-shrink:0;width:40px;height:40px;border-radius:50%}.mat-list[dense] .mat-list-item .mat-list-icon,.mat-nav-list[dense] .mat-list-item .mat-list-icon{width:20px;height:20px;font-size:20px;box-sizing:content-box;border-radius:50%;padding:4px}.mat-divider{display:block;border-top-style:solid;border-top-width:1px;margin:0}.mat-nav-list a{text-decoration:none;color:inherit}.mat-nav-list .mat-list-item-content{cursor:pointer}.mat-nav-list .mat-list-item-content.mat-list-item-focus,.mat-nav-list .mat-list-item-content:hover{outline:0}"],encapsulation:e.ViewEncapsulation.None}]}],cr.ctorParameters=function(){return[]},cr.propDecorators={disableRipple:[{type:e.Input}]};var lr=function(){function t(){}return t}();lr.decorators=[{type:e.Directive,args:[{selector:"md-list, mat-list",host:{class:"mat-list"}}]}],lr.ctorParameters=function(){return[]};var pr=function(){function t(){}return t}();pr.decorators=[{type:e.Directive,args:[{selector:"md-nav-list, mat-nav-list",host:{class:"mat-nav-list"}}]}],pr.ctorParameters=function(){return[]};var hr=function(){function t(){}return t}();hr.decorators=[{type:e.Directive,args:[{selector:"md-divider, mat-divider",host:{class:"mat-divider"}}]}],hr.ctorParameters=function(){return[]};var dr=function(){function t(){}return t}();dr.decorators=[{type:e.Directive,args:[{selector:"[md-list-avatar], [mat-list-avatar], [mdListAvatar], [matListAvatar]",host:{class:"mat-list-avatar"}}]}],dr.ctorParameters=function(){return[]};var fr=function(){function t(){}return t}();fr.decorators=[{type:e.Directive,args:[{selector:"[md-list-icon], [mat-list-icon], [mdListIcon], [matListIcon]",host:{class:"mat-list-icon"}}]}],fr.ctorParameters=function(){return[]};var mr=function(){function t(){}return t}();mr.decorators=[{type:e.Directive,args:[{selector:"[md-subheader], [mat-subheader]",host:{class:"mat-subheader"}}]}],mr.ctorParameters=function(){return[]};var yr=function(){function t(t,e,n,r){this._renderer=t,this._element=e,this._list=n,this._disableRipple=!1,this._isNavList=!1,this._isNavList=!!r}return Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_hasAvatar",{set:function(t){null!=t?this._renderer.addClass(this._element.nativeElement,"mat-list-item-avatar"):this._renderer.removeClass(this._element.nativeElement,"mat-list-item-avatar")},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._lineSetter=new kt(this._lines,this._renderer,this._element)},t.prototype.isRippleEnabled=function(){return!this.disableRipple&&this._isNavList&&!this._list.disableRipple},t.prototype._handleFocus=function(){this._renderer.addClass(this._element.nativeElement,"mat-list-item-focus")},t.prototype._handleBlur=function(){this._renderer.removeClass(this._element.nativeElement,"mat-list-item-focus")},t.prototype._getHostElement=function(){return this._element.nativeElement},t}();yr.decorators=[{type:e.Component,args:[{selector:"md-list-item, mat-list-item, a[md-list-item], a[mat-list-item]",host:{role:"listitem",class:"mat-list-item","(focus)":"_handleFocus()","(blur)":"_handleBlur()"},template:'<div class="mat-list-item-content"><div class="mat-list-item-ripple" md-ripple [mdRippleTrigger]="_getHostElement()" [mdRippleDisabled]="!isRippleEnabled()"></div><ng-content select="[md-list-avatar],[md-list-icon], [mat-list-avatar], [mat-list-icon]"></ng-content><div class="mat-list-text"><ng-content select="[md-line], [mat-line]"></ng-content></div><ng-content></ng-content></div>',encapsulation:e.ViewEncapsulation.None}]}],yr.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:cr,decorators:[{type:e.Optional}]},{type:pr,decorators:[{type:e.Optional}]}]},yr.propDecorators={disableRipple:[{type:e.Input}],_lines:[{type:e.ContentChildren,args:[Ot]}],_hasAvatar:[{type:e.ContentChild,args:[dr]}]};var gr=function(){function t(){}return t}();gr.decorators=[{type:e.NgModule,args:[{imports:[Tt,Wt,Pt],exports:[cr,yr,ur,dr,Tt,Pt,fr,lr,pr,hr,mr],declarations:[cr,yr,ur,dr,fr,lr,pr,hr,mr]}]}],gr.ctorParameters=function(){return[]};var vr=function(){function t(t,e){this._renderer=t,this._element=e,this._rowspan=1,this._colspan=1}return Object.defineProperty(t.prototype,"rowspan",{get:function(){return this._rowspan},set:function(t){this._rowspan=F(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colspan",{get:function(){return this._colspan},set:function(t){this._colspan=F(t)},enumerable:!0,configurable:!0}),t.prototype._setStyle=function(t,e){this._renderer.setStyle(this._element.nativeElement,t,e)},t}();vr.decorators=[{type:e.Component,args:[{selector:"md-grid-tile, mat-grid-tile",host:{role:"listitem",class:"mat-grid-tile"},template:'<figure class="mat-figure"><ng-content></ng-content></figure>',styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{display:flex;position:absolute;align-items:center;justify-content:center;height:100%;top:0;right:0;bottom:0;left:0;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],encapsulation:e.ViewEncapsulation.None}]}],vr.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},vr.propDecorators={rowspan:[{type:e.Input}],colspan:[{type:e.Input}]};var br=function(){function t(t,e){this._renderer=t,this._element=e}return t.prototype.ngAfterContentInit=function(){this._lineSetter=new kt(this._lines,this._renderer,this._element)},t}();br.decorators=[{type:e.Component,args:[{selector:"md-grid-tile-header, mat-grid-tile-header, md-grid-tile-footer, mat-grid-tile-footer",template:'<ng-content select="[md-grid-avatar], [mat-grid-avatar]"></ng-content><div class="mat-grid-list-text"><ng-content select="[md-line], [mat-line]"></ng-content></div><ng-content></ng-content>'}]}],br.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},br.propDecorators={_lines:[{type:e.ContentChildren,args:[Ot]}]};var _r=function(){function t(){}return t}();_r.decorators=[{type:e.Directive,args:[{selector:"[md-grid-avatar], [mat-grid-avatar], [mdGridAvatar], [matGridAvatar]",host:{class:"mat-grid-avatar"}}]}],_r.ctorParameters=function(){return[]};var wr=function(){function t(){}return t}();wr.decorators=[{type:e.Directive,args:[{selector:"md-grid-tile-header, mat-grid-tile-header",host:{class:"mat-grid-tile-header"}}]}],wr.ctorParameters=function(){return[]};var Cr=function(){function t(){}return t}();Cr.decorators=[{type:e.Directive,args:[{selector:"md-grid-tile-footer, mat-grid-tile-footer",host:{class:"mat-grid-tile-footer"}}]}],Cr.ctorParameters=function(){return[]};var Er=function(){function t(t,e){var n=this;this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(t),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(function(t){return n._trackTile(t)})}return Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowspan",{get:function(){var t=Math.max.apply(Math,this.tracker);return t>1?this.rowCount+t-1:this.rowCount},enumerable:!0,configurable:!0}),t.prototype._trackTile=function(t){var e=this._findMatchingGap(t.colspan);return this._markTilePosition(e,t),this.columnIndex=e+t.colspan,new xr(this.rowIndex,e)},t.prototype._findMatchingGap=function(t){if(t>this.tracker.length)throw Error("md-grid-list: tile with colspan "+t+' is wider than grid with cols="'+this.tracker.length+'".');var e=-1,n=-1;do{this.columnIndex+t>this.tracker.length?this._nextRow():-1!=(e=this.tracker.indexOf(0,this.columnIndex))?(n=this._findGapEndIndex(e),this.columnIndex=e+1):this._nextRow()}while(n-e<t);return e},t.prototype._nextRow=function(){this.columnIndex=0,this.rowIndex++;for(var t=0;t<this.tracker.length;t++)this.tracker[t]=Math.max(0,this.tracker[t]-1)},t.prototype._findGapEndIndex=function(t){for(var e=t+1;e<this.tracker.length;e++)if(0!=this.tracker[e])return e;return this.tracker.length},t.prototype._markTilePosition=function(t,e){for(var n=0;n<e.colspan;n++)this.tracker[t+n]=e.rowspan},t}(),xr=function(){function t(t,e){this.row=t,this.col=e}return t}(),Sr=function(){function t(){this._rows=0,this._rowspan=0}return t.prototype.init=function(t,e,n,r){this._gutterSize=B(t),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=r},t.prototype.getBaseTileSize=function(t,e){return"("+t+"% - ( "+this._gutterSize+" * "+e+" ))"},t.prototype.getTilePosition=function(t,e){return V("("+t+" + "+this._gutterSize+") * "+e)},t.prototype.getTileSize=function(t,e){return"("+t+" * "+e+") + ("+(e-1)+" * "+this._gutterSize+")"},t.prototype.setStyle=function(t,e,n){var r=100/this._cols,i=(this._cols-1)/this._cols;this.setColStyles(t,n,r,i),this.setRowStyles(t,e,r,i)},t.prototype.setColStyles=function(t,e,n,r){var i=this.getBaseTileSize(n,r),o="ltr"===this._direction?"left":"right";t._setStyle(o,this.getTilePosition(i,e)),t._setStyle("width",V(this.getTileSize(i,t.colspan)))},t.prototype.getGutterSpan=function(){return this._gutterSize+" * ("+this._rowspan+" - 1)"},t.prototype.getTileSpan=function(t){return this._rowspan+" * "+this.getTileSize(t,1)},t.prototype.setRowStyles=function(t,e,n,r){},t.prototype.getComputedHeight=function(){return null},t}(),Pr=function(t){function e(e){var n=t.call(this)||this;return n.fixedRowHeight=e,n}return y(e,t),e.prototype.init=function(e,n,r,i){t.prototype.init.call(this,e,n,r,i),this.fixedRowHeight=B(this.fixedRowHeight)},e.prototype.setRowStyles=function(t,e){t._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),t._setStyle("height",V(this.getTileSize(this.fixedRowHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["height",V(this.getTileSpan(this.fixedRowHeight)+" + "+this.getGutterSpan())]},e}(Sr),Or=function(t){function e(e){var n=t.call(this)||this;return n._parseRatio(e),n}return y(e,t),e.prototype.setRowStyles=function(t,e,n,r){var i=n/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(i,r),t._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),t._setStyle("paddingTop",V(this.getTileSize(this.baseTileHeight,t.rowspan)))},e.prototype.getComputedHeight=function(){return["paddingBottom",V(this.getTileSpan(this.baseTileHeight)+" + "+this.getGutterSpan())]},e.prototype._parseRatio=function(t){var e=t.split(":");if(2!==e.length)throw Error('md-grid-list: invalid ratio given for row-height: "'+t+'"');this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])},e}(Sr),kr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.setRowStyles=function(t,e){var n=100/this._rowspan,r=(this._rows-1)/this._rows,i=this.getBaseTileSize(n,r);t._setStyle("top",this.getTilePosition(i,e)),t._setStyle("height",V(this.getTileSize(i,t.rowspan)))},e}(Sr),Tr=function(){function t(t,e,n){this._renderer=t,this._element=e,this._dir=n,this._gutter="1px"}return Object.defineProperty(t.prototype,"cols",{get:function(){return this._cols},set:function(t){this._cols=F(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gutterSize",{get:function(){return this._gutter},set:function(t){this._gutter=L(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowHeight",{set:function(t){this._rowHeight=L(t),this._setTileStyler()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._checkCols(),this._checkRowHeight()},t.prototype.ngAfterContentChecked=function(){this._layoutTiles()},t.prototype._checkCols=function(){if(!this.cols)throw Error('md-grid-list: must pass in number of columns. Example: <md-grid-list cols="3">')},t.prototype._checkRowHeight=function(){this._rowHeight||(this._tileStyler=new Or("1:1"))},t.prototype._setTileStyler=function(){"fit"===this._rowHeight?this._tileStyler=new kr:this._rowHeight&&this._rowHeight.indexOf(":")>-1?this._tileStyler=new Or(this._rowHeight):this._tileStyler=new Pr(this._rowHeight)},t.prototype._layoutTiles=function(){var t=this,e=new Er(this.cols,this._tiles),n=this._dir?this._dir.value:"ltr";this._tileStyler.init(this.gutterSize,e,this.cols,n),this._tiles.forEach(function(n,r){var i=e.positions[r];t._tileStyler.setStyle(n,i.row,i.col)}),this._setListStyle(this._tileStyler.getComputedHeight())},t.prototype._setListStyle=function(t){t&&this._renderer.setStyle(this._element.nativeElement,t[0],t[1])},t}();Tr.decorators=[{type:e.Component,args:[{selector:"md-grid-list, mat-grid-list",template:"<div><ng-content></ng-content></div>",styles:[".mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-figure{display:flex;position:absolute;align-items:center;justify-content:center;height:100%;top:0;right:0;bottom:0;left:0;padding:0;margin:0}.mat-grid-tile .mat-grid-tile-footer,.mat-grid-tile .mat-grid-tile-header{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-footer>*,.mat-grid-tile .mat-grid-tile-header>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-tile-footer.mat-2-line,.mat-grid-tile .mat-grid-tile-header.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;width:100%;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}"],host:{role:"list",class:"mat-grid-list"},encapsulation:e.ViewEncapsulation.None}]}],Tr.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},Tr.propDecorators={_tiles:[{type:e.ContentChildren,args:[vr]}],cols:[{type:e.Input}],gutterSize:[{type:e.Input}],rowHeight:[{type:e.Input}]};var Ar=function(){function t(){}return t}();Ar.decorators=[{type:e.NgModule,args:[{imports:[Tt,Pt],exports:[Tr,vr,br,Tt,Pt,wr,Cr,_r],declarations:[Tr,vr,br,wr,Cr,_r]}]}],Ar.ctorParameters=function(){return[]};var Mr=function(){function t(){}return t}();Mr.decorators=[{type:e.Directive,args:[{selector:"md-card-content, mat-card-content",host:{class:"mat-card-content"}}]}],Mr.ctorParameters=function(){return[]};var Rr=function(){function t(){}return t}();Rr.decorators=[{type:e.Directive,args:[{selector:"md-card-title, mat-card-title, [md-card-title], [mat-card-title],[mdCardTitle], [matCardTitle]",host:{class:"mat-card-title "}}]}],Rr.ctorParameters=function(){return[]};var Ir=function(){function t(){}return t}();Ir.decorators=[{type:e.Directive,args:[{selector:"md-card-subtitle, mat-card-subtitle, [md-card-subtitle], [mat-card-subtitle],[mdCardSubtitle], [matCardSubtitle]",host:{class:"mat-card-subtitle "}}]}],Ir.ctorParameters=function(){return[]};var Dr=function(){function t(){}return t}();Dr.decorators=[{type:e.Directive,args:[{selector:"md-card-actions, mat-card-actions",host:{class:"mat-card-actions"}}]}],Dr.ctorParameters=function(){return[]};var Nr=function(){function t(){}return t}();Nr.decorators=[{type:e.Directive,args:[{selector:"md-card-footer, mat-card-footer",host:{class:"mat-card-footer"}}]}],Nr.ctorParameters=function(){return[]};var jr=function(){function t(){}return t}();jr.decorators=[{type:e.Directive,args:[{selector:"[md-card-image], [mat-card-image], [mdCardImage], [matCardImage]",host:{class:"mat-card-image"}}]}],jr.ctorParameters=function(){return[]};var Lr=function(){function t(){}return t}();Lr.decorators=[{type:e.Directive,args:[{selector:"[md-card-sm-image], [mat-card-sm-image], [mdCardImageSmall], [matCardImageSmall]",host:{class:"mat-card-sm-image"}}]}],Lr.ctorParameters=function(){return[]};var Fr=function(){function t(){}return t}();Fr.decorators=[{type:e.Directive,args:[{selector:"[md-card-md-image], [mat-card-md-image], [mdCardImageMedium], [matCardImageMedium]",host:{class:"mat-card-md-image"}}]}],Fr.ctorParameters=function(){return[]};var Vr=function(){function t(){}return t}();Vr.decorators=[{type:e.Directive,args:[{selector:"[md-card-lg-image], [mat-card-lg-image], [mdCardImageLarge], [matCardImageLarge]",host:{class:"mat-card-lg-image"}}]}],Vr.ctorParameters=function(){return[]};var Br=function(){function t(){}return t}();Br.decorators=[{type:e.Directive,args:[{selector:"[md-card-xl-image], [mat-card-xl-image], [mdCardImageXLarge], [matCardImageXLarge]",host:{class:"mat-card-xl-image"}}]}],Br.ctorParameters=function(){return[]};var Ur=function(){function t(){}return t}();Ur.decorators=[{type:e.Directive,args:[{selector:"[md-card-avatar], [mat-card-avatar], [mdCardAvatar], [matCardAvatar]",host:{class:"mat-card-avatar"}}]}],Ur.ctorParameters=function(){return[]};var Hr=function(){function t(){}return t}();Hr.decorators=[{type:e.Component,args:[{selector:"md-card, mat-card",template:"<ng-content></ng-content>",styles:[".mat-card{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);display:block;position:relative;padding:24px;border-radius:2px}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}@media screen and (-ms-high-contrast:active){.mat-card{outline:solid 1px}}.mat-card-flat{box-shadow:none}.mat-card-actions,.mat-card-content,.mat-card-subtitle,.mat-card-title{display:block;margin-bottom:16px}.mat-card-actions{margin-left:-16px;margin-right:-16px;padding:8px 0}.mat-card-actions[align=end]{display:flex;justify-content:flex-end}.mat-card-image{width:calc(100% + 48px);margin:0 -24px 16px -24px}.mat-card-xl-image{width:240px;height:240px;margin:-8px}.mat-card-footer{position:absolute;width:100%;min-height:5px;bottom:0;left:0}.mat-card-actions .mat-button,.mat-card-actions .mat-raised-button{margin:0 4px}.mat-card-header{display:flex;flex-direction:row}.mat-card-header-text{margin:0 8px}.mat-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0}.mat-card-lg-image,.mat-card-md-image,.mat-card-sm-image{margin:-8px 0}.mat-card-title-group{display:flex;justify-content:space-between;margin:0 -8px}.mat-card-sm-image{width:80px;height:80px}.mat-card-md-image{width:112px;height:112px}.mat-card-lg-image{width:152px;height:152px}@media (max-width:600px){.mat-card{padding:24px 16px}.mat-card-actions{margin-left:-8px;margin-right:-8px}.mat-card-image{width:calc(100% + 32px);margin:16px -16px}.mat-card-title-group{margin:0}.mat-card-xl-image{margin-left:0;margin-right:0}.mat-card-header{margin:-8px 0 0 0}}.mat-card-content>:first-child,.mat-card>:first-child{margin-top:0}.mat-card-content>:last-child,.mat-card>:last-child{margin-bottom:0}.mat-card-image:first-child{margin-top:-24px}.mat-card>.mat-card-actions:last-child{margin-bottom:-16px;padding-bottom:0}.mat-card-actions .mat-button:first-child,.mat-card-actions .mat-raised-button:first-child{margin-left:0;margin-right:0}.mat-card-subtitle:not(:first-child),.mat-card-title:not(:first-child){margin-top:-4px}.mat-card-header .mat-card-subtitle:not(:first-child){margin-top:-8px}.mat-card>.mat-card-xl-image:first-child{margin-top:-8px}.mat-card>.mat-card-xl-image:last-child{margin-bottom:-8px}"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card"}}]}],Hr.ctorParameters=function(){return[]};var zr=function(){function t(){}return t}();zr.decorators=[{type:e.Component,args:[{selector:"md-card-header, mat-card-header",template:'<ng-content select="[md-card-avatar], [mat-card-avatar]"></ng-content><div class="mat-card-header-text"><ng-content select="md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle, [md-card-title], [mat-card-title], [md-card-subtitle], [mat-card-subtitle]"></ng-content></div><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-header"}}]}],zr.ctorParameters=function(){return[]};var qr=function(){function t(){}return t}();qr.decorators=[{type:e.Component,args:[{selector:"md-card-title-group, mat-card-title-group",template:'<div><ng-content select="md-card-title, mat-card-title, md-card-subtitle, mat-card-subtitle, [md-card-title], [mat-card-title], [md-card-subtitle], [mat-card-subtitle]"></ng-content></div><ng-content select="img"></ng-content><ng-content></ng-content>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush,host:{class:"mat-card-title-group"}}]}],qr.ctorParameters=function(){return[]};var Gr=function(){function t(){}return t}();Gr.decorators=[{type:e.NgModule,args:[{imports:[Pt],exports:[Hr,zr,qr,Mr,Rr,Ir,Dr,Nr,Lr,Fr,Vr,jr,Br,Ur,Pt],declarations:[Hr,zr,qr,Mr,Rr,Ir,Dr,Nr,Lr,Fr,Vr,jr,Br,Ur]}]}],Gr.ctorParameters=function(){return[]};var Wr=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),Kr=E(x(Wr),"primary"),$r=function(){function t(){}return t}();$r.decorators=[{type:e.Directive,args:[{selector:"md-basic-chip, [md-basic-chip], mat-basic-chip, [mat-basic-chip]",host:{class:"mat-basic-chip"}}]}],$r.ctorParameters=function(){return[]};var Yr=function(t){function r(n,r){var i=t.call(this,n,r)||this;return i._selected=!1,i._hasFocus=!1,i.onFocus=new e.EventEmitter,i.select=new e.EventEmitter,i.deselect=new e.EventEmitter,i.destroy=new e.EventEmitter,i}return y(r,t),Object.defineProperty(r.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=n.coerceBooleanProperty(t),(this.selected?this.select:this.deselect).emit({chip:this})},enumerable:!0,configurable:!0}),r.prototype.ngOnDestroy=function(){this.destroy.emit({chip:this})},r.prototype.toggleSelected=function(){return this.selected=!this.selected,this.selected},r.prototype.focus=function(){this._elementRef.nativeElement.focus(),this.onFocus.emit({chip:this})},r.prototype._handleClick=function(t){this.disabled?(t.preventDefault(),t.stopPropagation()):this.focus()},r}(Kr);Yr.decorators=[{type:e.Directive,args:[{selector:"md-basic-chip, [md-basic-chip], md-chip, [md-chip],\n mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]",inputs:["color","disabled"],host:{class:"mat-chip",tabindex:"-1",role:"option","[class.mat-chip-selected]":"selected","[attr.disabled]":"disabled || null","[attr.aria-disabled]":"disabled.toString()","(click)":"_handleClick($event)","(focus)":"_hasFocus = true","(blur)":"_hasFocus = false"}}]}],Yr.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]},Yr.propDecorators={selected:[{type:e.Input}],select:[{type:e.Output}],deselect:[{type:e.Output}],destroy:[{type:e.Output}]};var Xr=function(){function t(){this._subscribed=new WeakMap,this._selectable=!0,this._tabIndex=0}return t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new In(this.chips).withWrap(),this._tabOutSubscription=this._keyManager.tabOut.subscribe(function(){t._tabIndex=-1,setTimeout(function(){return t._tabIndex=0})}),this._subscribeChips(this.chips),this.chips.changes.subscribe(function(e){t._subscribeChips(e)})},t.prototype.ngOnDestroy=function(){this._tabOutSubscription&&this._tabOutSubscription.unsubscribe()},Object.defineProperty(t.prototype,"selectable",{get:function(){return this._selectable},set:function(t){this._selectable=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._keyManager.setFirstItemActive()},t.prototype._keydown=function(t){var e=t.target;if(e&&e.classList.contains("mat-chip"))switch(t.keyCode){case n.SPACE:this.selectable&&this._toggleSelectOnFocusedChip(),t.preventDefault();break;case n.LEFT_ARROW:this._keyManager.setPreviousItemActive(),t.preventDefault();break;case n.RIGHT_ARROW:this._keyManager.setNextItemActive(),t.preventDefault();break;default:this._keyManager.onKeydown(t)}},t.prototype._toggleSelectOnFocusedChip=function(){if(this.selectable){var t=this._keyManager.activeItemIndex;if("number"==typeof t&&this._isValidIndex(t)){var e=this.chips.toArray()[t];e&&e.toggleSelected()}}},t.prototype._subscribeChips=function(t){var e=this;t.forEach(function(t){return e._addChip(t)})},t.prototype._addChip=function(t){var e=this;this._subscribed.has(t)||(t.onFocus.subscribe(function(){var n=e.chips.toArray().indexOf(t);e._isValidIndex(n)&&e._keyManager.updateActiveItemIndex(n)}),t.destroy.subscribe(function(){var n=e.chips.toArray().indexOf(t);e._isValidIndex(n)&&t._hasFocus&&(n<e.chips.length-1?e._keyManager.setActiveItem(n):n-1>=0&&e._keyManager.setActiveItem(n-1)),e._subscribed.delete(t),t.destroy.unsubscribe()}),this._subscribed.set(t,!0))},t.prototype._isValidIndex=function(t){return t>=0&&t<this.chips.length},t}();Xr.decorators=[{type:e.Component,args:[{selector:"md-chip-list, mat-chip-list",template:'<div class="mat-chip-list-wrapper"><ng-content></ng-content></div>',host:{"[attr.tabindex]":"_tabIndex",role:"listbox",class:"mat-chip-list","(focus)":"focus()","(keydown)":"_keydown($event)"},queries:{chips:new e.ContentChildren(Yr)},styles:[".mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:flex-start}.mat-chip:not(.mat-basic-chip){display:inline-block;padding:8px 12px 8px 12px;border-radius:24px}.mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 0 0 3px}[dir=rtl] .mat-chip:not(.mat-basic-chip)+.mat-chip:not(.mat-basic-chip){margin:0 3px 0 0}.mat-chip-list-stacked .mat-chip-list-wrapper{display:block}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){display:block;margin:0;margin-bottom:8px}[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip){margin:0;margin-bottom:8px}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child,[dir=rtl] .mat-chip-list-stacked .mat-chip-list-wrapper .mat-chip:not(.mat-basic-chip):last-child{margin-bottom:0}"],encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Xr.ctorParameters=function(){return[]},Xr.propDecorators={selectable:[{type:e.Input}]};var Qr=function(){function t(){}return t}();Qr.decorators=[{type:e.NgModule,args:[{imports:[],exports:[Xr,Yr,$r],declarations:[Xr,Yr,$r]}]}],Qr.ctorParameters=function(){return[]};var Jr=function(){function t(t){this.url=t,this.svgElement=null}return t}(),Zr=function(){function t(t,e){this._http=t,this._sanitizer=e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons"}return t.prototype.addSvgIcon=function(t,e){return this.addSvgIconInNamespace("",t,e)},t.prototype.addSvgIconInNamespace=function(t,e,n){var r=W(t,e);return this._svgIconConfigs.set(r,new Jr(n)),this},t.prototype.addSvgIconSet=function(t){return this.addSvgIconSetInNamespace("",t)},t.prototype.addSvgIconSetInNamespace=function(t,e){var n=new Jr(e),r=this._iconSetConfigs.get(t);return r?r.push(n):this._iconSetConfigs.set(t,[n]),this},t.prototype.registerFontClassAlias=function(t,e){return void 0===e&&(e=t),this._fontCssClassesByAlias.set(t,e),this},t.prototype.classNameForFontAlias=function(t){return this._fontCssClassesByAlias.get(t)||t},t.prototype.setDefaultFontSetClass=function(t){return this._defaultFontSetClass=t,this},t.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},t.prototype.getSvgIconFromUrl=function(t){var r=this,i=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!i)throw z(t);var o=this._cachedIconsByUrl.get(i);return o?c.of(G(o)):n.RxChain.from(this._loadSvgIconFromConfig(new Jr(i))).call(n.doOperator,function(t){return r._cachedIconsByUrl.set(i,t)}).call(n.map,function(t){return G(t)}).result()},t.prototype.getNamedSvgIcon=function(t,e){void 0===e&&(e="");var n=W(e,t),r=this._svgIconConfigs.get(n);if(r)return this._getSvgFromConfig(r);var i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):f._throw(U(n))},t.prototype._getSvgFromConfig=function(t){return t.svgElement?c.of(G(t.svgElement)):n.RxChain.from(this._loadSvgIconFromConfig(t)).call(n.doOperator,function(e){return t.svgElement=e}).call(n.map,function(t){return G(t)}).result()},t.prototype._getSvgFromIconSetConfigs=function(t,r){var i=this,o=this._extractIconWithNameFromAnySet(t,r);if(o)return c.of(o);var s=r.filter(function(t){return!t.svgElement}).map(function(t){return n.RxChain.from(i._loadSvgIconSetFromConfig(t)).call(n.catchOperator,function(n){var r=i._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t.url);return console.log("Loading icon set URL: "+r+" failed: "+n),c.of(null)}).call(n.doOperator,function(e){e&&(t.svgElement=e)}).result()});return n.map.call(m.forkJoin.call(d.Observable,s),function(){var e=i._extractIconWithNameFromAnySet(t,r);if(!e)throw U(t);return e})},t.prototype._extractIconWithNameFromAnySet=function(t,e){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,t);if(i)return i}}return null},t.prototype._loadSvgIconFromConfig=function(t){var e=this;return n.map.call(this._fetchUrl(t.url),function(t){return e._createSvgElementForSingleIcon(t)})},t.prototype._loadSvgIconSetFromConfig=function(t){var e=this;return n.map.call(this._fetchUrl(t.url),function(t){return e._svgElementFromString(t)})},t.prototype._createSvgElementForSingleIcon=function(t){var e=this._svgElementFromString(t);return this._setSvgAttributes(e),e},t.prototype._extractSvgIconFromSet=function(t,e){var n=t.querySelector("#"+e);if(!n)return null;if("svg"===n.tagName.toLowerCase())return this._setSvgAttributes(n.cloneNode(!0));if("symbol"===n.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(n));var r=this._svgElementFromString("<svg></svg>");return r.appendChild(n.cloneNode(!0)),this._setSvgAttributes(r)},t.prototype._svgElementFromString=function(t){var e=document.createElement("DIV");e.innerHTML=t;var n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n},t.prototype._toSvgElement=function(t){for(var e=this._svgElementFromString("<svg></svg>"),n=0;n<t.childNodes.length;n++)t.childNodes[n].nodeType===Node.ELEMENT_NODE&&e.appendChild(t.childNodes[n].cloneNode(!0));return e},t.prototype._setSvgAttributes=function(t){return t.getAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),t},t.prototype._fetchUrl=function(t){var r=this;if(!this._http)throw H();var i=this._sanitizer.sanitize(e.SecurityContext.RESOURCE_URL,t);if(!i)throw z(t);var o=this._inProgressUrlFetches.get(i);if(o)return o;var s=n.RxChain.from(this._http.get(i)).call(n.map,function(t){return t.text()}).call(n.finallyOperator,function(){return r._inProgressUrlFetches.delete(i)}).call(n.share).result();return this._inProgressUrlFetches.set(i,s),s},t}();Zr.decorators=[{type:e.Injectable}],Zr.ctorParameters=function(){return[{type:h.Http,decorators:[{type:e.Optional}]},{type:r.DomSanitizer}]};var ti={provide:Zr,deps:[[new e.Optional,new e.SkipSelf,Zr],[new e.Optional,h.Http],r.DomSanitizer],useFactory:q},ei=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),ni=E(ei),ri=function(t){function e(e,n,r,i){var o=t.call(this,e,n)||this;return o._mdIconRegistry=r,i||e.setAttribute(n.nativeElement,"aria-hidden","true"),o}return y(e,t),e.prototype._splitIconName=function(t){if(!t)return["",""];var e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error('Invalid icon name: "'+t+'"')}},e.prototype.ngOnChanges=function(t){var e=this,r=Object.keys(t);if((-1!=r.indexOf("svgIcon")||-1!=r.indexOf("svgSrc"))&&this.svgIcon){var i=this._splitIconName(this.svgIcon),o=i[0],s=i[1];n.first.call(this._mdIconRegistry.getNamedSvgIcon(s,o)).subscribe(function(t){return e._setSvgElement(t)},function(t){return console.log("Error retrieving icon: "+t.message)})}this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},e.prototype._usingFontIcon=function(){return!this.svgIcon},e.prototype._setSvgElement=function(t){var e=this._elementRef.nativeElement;e.innerHTML="",this._renderer.appendChild(e,t)},e.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var t=this._elementRef.nativeElement,e=this.fontSet?this._mdIconRegistry.classNameForFontAlias(this.fontSet):this._mdIconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&this._renderer.removeClass(t,this._previousFontSetClass),e&&this._renderer.addClass(t,e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&this._renderer.removeClass(t,this._previousFontIconClass),this.fontIcon&&this._renderer.addClass(t,this.fontIcon),this._previousFontIconClass=this.fontIcon)}},e}(ni);ri.decorators=[{type:e.Component,args:[{template:"<ng-content></ng-content>",selector:"md-icon, mat-icon",styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}"],inputs:["color"],host:{role:"img",class:"mat-icon"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],ri.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:Zr},{type:void 0,decorators:[{type:e.Attribute,args:["aria-hidden"]}]}]},ri.propDecorators={svgIcon:[{type:e.Input}],fontSet:[{type:e.Input}],fontIcon:[{type:e.Input}]};var ii=function(){function t(){}return t}();ii.decorators=[{type:e.NgModule,args:[{imports:[Pt],exports:[ri,Pt],declarations:[ri],providers:[ti]}]}],ii.ctorParameters=function(){return[]};var oi=Math.PI/180,si=3.5999,ai="undefined"!=typeof requestAnimationFrame,ui=10,ci=function(){function t(){}return t}();ci.decorators=[{type:e.Directive,args:[{selector:"md-progress-spinner, mat-progress-spinner",host:{class:"mat-progress-spinner"}}]}],ci.ctorParameters=function(){return[]};var li=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),pi=E(li,"primary"),hi=function(t){function e(e,n,r){var i=t.call(this,e,n)||this;return i._ngZone=r,i._lastAnimationId=0,i._mode="determinate",i.strokeWidth=ui,i}return y(e,t),Object.defineProperty(e.prototype,"_ariaValueMin",{get:function(){return"determinate"==this.mode?0:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_ariaValueMax",{get:function(){return"determinate"==this.mode?100:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interdeterminateInterval",{get:function(){return this._interdeterminateInterval},set:function(t){this._interdeterminateInterval&&clearInterval(this._interdeterminateInterval),this._interdeterminateInterval=t},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._cleanupIndeterminateAnimation()},Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"==this.mode?this._value:0},set:function(t){if(null!=t&&"determinate"==this.mode){var e=K(t);this._animateCircle(this.value||0,e),this._value=e}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"mode",{get:function(){return this._mode},set:function(t){t!==this._mode&&("indeterminate"===t?this._startIndeterminateAnimation():(this._cleanupIndeterminateAnimation(),this._animateCircle(0,this._value)),this._mode=t)},enumerable:!0,configurable:!0}),e.prototype._animateCircle=function(t,e,n,r,i){var o=this;void 0===n&&(n=Y),void 0===r&&(r=225),void 0===i&&(i=0);var s=++this._lastAnimationId,a=Date.now(),u=e-t;if(e===t)this._renderArc(e,i);else{var c=function(){var e=ai?Math.max(0,Math.min(Date.now()-a,r)):r;o._renderArc(n(e,t,u,r),i),s===o._lastAnimationId&&e<r&&requestAnimationFrame(c)};this._ngZone.runOutsideAngular(c)}},e.prototype._startIndeterminateAnimation=function(){var t=this,e=0,n=3,r=80,i=function(){t._animateCircle(n,r,X,667,e),e=(e+r)%100;var i=n;n=-r,r=-i};this.interdeterminateInterval||this._ngZone.runOutsideAngular(function(){t.interdeterminateInterval=setInterval(i,717,0,!1),i()})},e.prototype._cleanupIndeterminateAnimation=function(){this.interdeterminateInterval=null},e.prototype._renderArc=function(t,e){if(void 0===e&&(e=0),this._path){var n=Q(t,e,this.strokeWidth);this._renderer.setAttribute(this._path.nativeElement,"d",n)}},e}(pi);hi.decorators=[{type:e.Component,args:[{selector:"md-progress-spinner, mat-progress-spinner",host:{role:"progressbar","[attr.aria-valuemin]":"_ariaValueMin","[attr.aria-valuemax]":"_ariaValueMax"},inputs:["color"],template:'<svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><path #path [style.strokeWidth]="strokeWidth"></path></svg>',styles:[":host{display:block;height:100px;width:100px;overflow:hidden}:host svg{height:100%;width:100%;transform-origin:center}:host path{fill:transparent;transition:stroke .3s cubic-bezier(.35,0,.25,1)}:host[mode=indeterminate] svg{animation-duration:5.25s,2.887s;animation-name:mat-progress-spinner-sporadic-rotate,mat-progress-spinner-linear-rotate;animation-timing-function:cubic-bezier(.35,0,.25,1),linear;animation-iteration-count:infinite;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-sporadic-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush}]}],hi.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:e.NgZone}]},hi.propDecorators={_path:[{type:e.ViewChild,args:["path"]}],strokeWidth:[{type:e.Input}],value:[{type:e.Input},{type:e.HostBinding,args:["attr.aria-valuenow"]}],mode:[{type:e.HostBinding,args:["attr.mode"]},{type:e.Input}]};var di=function(t){function e(e,n,r){var i=t.call(this,r,e,n)||this;return i.mode="indeterminate",i}return y(e,t),e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this)},e}(hi);di.decorators=[{type:e.Component,args:[{selector:"md-spinner, mat-spinner",host:{role:"progressbar",mode:"indeterminate",class:"mat-spinner"},inputs:["color"],template:'<svg viewBox="0 0 100 100" preserveAspectRatio="xMidYMid meet"><path #path [style.strokeWidth]="strokeWidth"></path></svg>',styles:[":host{display:block;height:100px;width:100px;overflow:hidden}:host svg{height:100%;width:100%;transform-origin:center}:host path{fill:transparent;transition:stroke .3s cubic-bezier(.35,0,.25,1)}:host[mode=indeterminate] svg{animation-duration:5.25s,2.887s;animation-name:mat-progress-spinner-sporadic-rotate,mat-progress-spinner-linear-rotate;animation-timing-function:cubic-bezier(.35,0,.25,1),linear;animation-iteration-count:infinite;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-sporadic-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}"]}]}],di.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:e.Renderer2}]};var fi=function(){function t(){}return t}();fi.decorators=[{type:e.NgModule,args:[{imports:[Pt],exports:[hi,di,Pt,ci],declarations:[hi,di,ci]}]}],fi.ctorParameters=function(){return[]};var mi=function(){function t(){this.color="primary",this._value=0,this._bufferValue=0,this.mode="determinate"}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=J(t||0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(t){this._bufferValue=J(t||0)},enumerable:!0,configurable:!0}),t.prototype._primaryTransform=function(){return{transform:"scaleX("+this.value/100+")"}},t.prototype._bufferTransform=function(){if("buffer"==this.mode)return{transform:"scaleX("+this.bufferValue/100+")"}},t}();mi.decorators=[{type:e.Component,args:[{selector:"md-progress-bar, mat-progress-bar",host:{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","[class.mat-primary]":'color == "primary"',"[class.mat-accent]":'color == "accent"',"[class.mat-warn]":'color == "warn"',class:"mat-progress-bar"},template:'<div class="mat-progress-bar-background mat-progress-bar-element"></div><div class="mat-progress-bar-buffer mat-progress-bar-element" [ngStyle]="_bufferTransform()"></div><div class="mat-progress-bar-primary mat-progress-bar-fill mat-progress-bar-element" [ngStyle]="_primaryTransform()"></div><div class="mat-progress-bar-secondary mat-progress-bar-fill mat-progress-bar-element"></div>',styles:[":host{display:block;height:5px;overflow:hidden;position:relative;transform:translateZ(0);transition:opacity 250ms linear;width:100%}:host .mat-progress-bar-element,:host .mat-progress-bar-fill::after{height:100%;position:absolute;width:100%}:host .mat-progress-bar-background{background-repeat:repeat-x;background-size:10px 4px;display:none}:host .mat-progress-bar-buffer{transform-origin:top left;transition:transform 250ms ease,stroke .3s cubic-bezier(.35,0,.25,1)}:host .mat-progress-bar-secondary{display:none}:host .mat-progress-bar-fill{animation:none;transform-origin:top left;transition:transform 250ms ease,stroke .3s cubic-bezier(.35,0,.25,1)}:host .mat-progress-bar-fill::after{animation:none;content:'';display:inline-block;left:0}:host[mode=query]{transform:rotateZ(180deg)}:host[mode=indeterminate] .mat-progress-bar-fill,:host[mode=query] .mat-progress-bar-fill{transition:none}:host[mode=indeterminate] .mat-progress-bar-primary,:host[mode=query] .mat-progress-bar-primary{animation:mat-progress-bar-primary-indeterminate-translate 2s infinite linear;left:-145.166611%}:host[mode=indeterminate] .mat-progress-bar-primary.mat-progress-bar-fill::after,:host[mode=query] .mat-progress-bar-primary.mat-progress-bar-fill::after{animation:mat-progress-bar-primary-indeterminate-scale 2s infinite linear}:host[mode=indeterminate] .mat-progress-bar-secondary,:host[mode=query] .mat-progress-bar-secondary{animation:mat-progress-bar-secondary-indeterminate-translate 2s infinite linear;left:-54.888891%;display:block}:host[mode=indeterminate] .mat-progress-bar-secondary.mat-progress-bar-fill::after,:host[mode=query] .mat-progress-bar-secondary.mat-progress-bar-fill::after{animation:mat-progress-bar-secondary-indeterminate-scale 2s infinite linear}:host[mode=buffer] .mat-progress-bar-background{animation:mat-progress-bar-background-scroll 250ms infinite linear;display:block}:host-context([dir=rtl]){transform:rotateY(180deg)}@keyframes mat-progress-bar-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(.5,0,.70173,.49582);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(.30244,.38135,.55,.95635);transform:translateX(83.67142%)}100%{transform:translateX(200.61106%)}}@keyframes mat-progress-bar-primary-indeterminate-scale{0%{transform:scaleX(.08)}36.65%{animation-timing-function:cubic-bezier(.33473,.12482,.78584,1);transform:scaleX(.08)}69.15%{animation-timing-function:cubic-bezier(.06,.11,.6,1);transform:scaleX(.66148)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:translateX(37.65191%)}48.35%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:translateX(84.38617%)}100%{transform:translateX(160.27778%)}}@keyframes mat-progress-bar-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(.15,0,.51506,.40969);transform:scaleX(.08)}19.15%{animation-timing-function:cubic-bezier(.31033,.28406,.8,.73371);transform:scaleX(.4571)}44.15%{animation-timing-function:cubic-bezier(.4,.62704,.6,.90203);transform:scaleX(.72796)}100%{transform:scaleX(.08)}}@keyframes mat-progress-bar-background-scroll{to{transform:translateX(-10px)}}"],changeDetection:e.ChangeDetectionStrategy.OnPush}]}],mi.ctorParameters=function(){return[]},mi.propDecorators={color:[{type:e.Input}],value:[{type:e.Input},{type:e.HostBinding,args:["attr.aria-valuenow"]}],bufferValue:[{type:e.Input}],mode:[{type:e.Input},{type:e.HostBinding,args:["attr.mode"]}]};var yi=function(){function t(){}return t}();yi.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Pt],exports:[mi,Pt],declarations:[mi]}]}],yi.ctorParameters=function(){return[]};var gi=["button","checkbox","color","file","hidden","image","radio","range","reset","submit"],vi=0,bi=function(){function t(){}return t}();bi.decorators=[{type:e.Directive,args:[{selector:"md-placeholder, mat-placeholder"}]}],bi.ctorParameters=function(){return[]};var _i=function(){function t(){this.align="start",this.id="md-input-hint-"+vi++}return t}();_i.decorators=[{type:e.Directive,args:[{selector:"md-hint, mat-hint",host:{class:"mat-hint","[class.mat-right]":'align == "end"',"[attr.id]":"id"}}]}],_i.ctorParameters=function(){return[]},_i.propDecorators={align:[{type:e.Input}],id:[{type:e.Input}]};var wi=function(){function t(){}return t}();wi.decorators=[{type:e.Directive,args:[{selector:"md-error, mat-error",host:{class:"mat-input-error"}}]}],wi.ctorParameters=function(){return[]};var Ci=function(){function t(){}return t}();Ci.decorators=[{type:e.Directive,args:[{selector:"[mdPrefix], [matPrefix], [md-prefix]"}]}],Ci.ctorParameters=function(){return[]};var Ei=function(){function t(){}return t}();Ei.decorators=[{type:e.Directive,args:[{selector:"[mdSuffix], [matSuffix], [md-suffix]"}]}],Ei.ctorParameters=function(){return[]};var xi=function(){function t(t,r,i,o,s,a,u){this._elementRef=t,this._renderer=r,this._platform=i,this._ngControl=o,this._parentForm=s,this._parentFormGroup=a,this._type="text",this._placeholder="",this._disabled=!1,this._required=!1,this.focused=!1,this._placeholderChange=new e.EventEmitter,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return n.getSupportedInputTypes().has(t)}),this.id=this.id,this._errorOptions=u||{},this.errorStateMatcher=this._errorOptions.errorStateMatcher||M}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._ngControl?this._ngControl.disabled:this._disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder!==t&&(this._placeholder=t,this._placeholderChange.emit(this._placeholder))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&n.getSupportedInputTypes().has(this._type)&&this._renderer.setProperty(this._elementRef.nativeElement,"type",this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._elementRef.nativeElement.value},set:function(t){this._elementRef.nativeElement.value=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||null!=this.value&&""!==this.value||this._isBadInput())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_uid",{get:function(){return this._cachedUid=this._cachedUid||"md-input-"+vi++},enumerable:!0,configurable:!0}),t.prototype.focus=function(){this._elementRef.nativeElement.focus()},t.prototype._onFocus=function(){this.focused=!0},t.prototype._onBlur=function(){this.focused=!1},t.prototype._onInput=function(){},t.prototype._isErrorState=function(){var t=this._ngControl,e=this._parentFormGroup||this._parentForm;return t&&this.errorStateMatcher(t.control,e)},t.prototype._validateType=function(){if(-1!==gi.indexOf(this._type))throw tt(this._type)},t.prototype._isNeverEmpty=function(){return-1!==this._neverEmptyInputTypes.indexOf(this._type)},t.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},t.prototype._isTextarea=function(){var t=this._elementRef.nativeElement,e=this._platform.isBrowser?t.nodeName:t.name;return!!e&&"textarea"===e.toLowerCase()},t}();xi.decorators=[{type:e.Directive,args:[{selector:"input[mdInput], textarea[mdInput], input[matInput], textarea[matInput]",host:{class:"mat-input-element","[id]":"id","[placeholder]":"placeholder","[disabled]":"disabled","[required]":"required","[attr.aria-describedby]":"ariaDescribedby || null","[attr.aria-invalid]":"_isErrorState()","(blur)":"_onBlur()","(focus)":"_onFocus()","(input)":"_onInput()"}}]}],xi.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:n.Platform},{type:l.NgControl,decorators:[{type:e.Optional},{type:e.Self}]},{type:l.NgForm,decorators:[{type:e.Optional}]},{type:l.FormGroupDirective,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[We]}]}]},xi.propDecorators={disabled:[{type:e.Input}],id:[{type:e.Input}],placeholder:[{type:e.Input}],required:[{type:e.Input}],type:[{type:e.Input}],errorStateMatcher:[{type:e.Input}],_placeholderChange:[{type:e.Output}]};var Si=function(){function t(t,e,n){this._elementRef=t,this._changeDetectorRef=e,this.color="primary",this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="md-input-hint-"+vi++,this._placeholderOptions=n||{},this.floatPlaceholder=this._placeholderOptions.float||"auto"}return Object.defineProperty(t.prototype,"dividerColor",{get:function(){return this.color},set:function(t){this.color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this._floatPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_canPlaceholderFloat",{get:function(){return"never"!==this._floatPlaceholder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"floatPlaceholder",{get:function(){return this._floatPlaceholder},set:function(t){this._floatPlaceholder=t||this._placeholderOptions.float||"auto"},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._validateInputChild(),this._processHints(),this._validatePlaceholders(),this._hintChildren.changes.subscribe(function(){return t._processHints()}),this._mdInputChild._placeholderChange.subscribe(function(){return t._validatePlaceholders()})},t.prototype.ngAfterContentChecked=function(){this._validateInputChild()},t.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},t.prototype._shouldForward=function(t){var e=this._mdInputChild?this._mdInputChild._ngControl:null;return e&&e[t]},t.prototype._hasPlaceholder=function(){return!(!this._mdInputChild.placeholder&&!this._placeholderChild)},t.prototype._focusInput=function(){this._mdInputChild.focus()},t.prototype._getDisplayedMessages=function(){var t=this._mdInputChild;return this._errorChildren.length>0&&t._isErrorState()?"error":"hint"},t.prototype._validatePlaceholders=function(){if(this._mdInputChild.placeholder&&this._placeholderChild)throw Z()},t.prototype._processHints=function(){this._validateHints(),this._syncAriaDescribedby()},t.prototype._validateHints=function(){var t=this;if(this._hintChildren){var e,n;this._hintChildren.forEach(function(r){if("start"==r.align){if(e||t.hintLabel)throw et("start");e=r}else if("end"==r.align){if(n)throw et("end");n=r}})}},t.prototype._syncAriaDescribedby=function(){if(this._mdInputChild){var t=[],e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id),this._mdInputChild.ariaDescribedby=t.join(" ")}},t.prototype._validateInputChild=function(){if(!this._mdInputChild)throw nt()},t}();Si.decorators=[{type:e.Component,args:[{selector:"md-input-container, mat-input-container",template:'<div class="mat-input-wrapper"><div class="mat-input-flex"><div class="mat-input-prefix" *ngIf="_prefixChildren.length"><ng-content select="[mdPrefix], [matPrefix]"></ng-content></div><div class="mat-input-infix"><ng-content selector="input, textarea"></ng-content><span class="mat-input-placeholder-wrapper"><label class="mat-input-placeholder" [attr.for]="_mdInputChild.id" [class.mat-empty]="_mdInputChild.empty && !_shouldAlwaysFloat" [class.mat-float]="_canPlaceholderFloat" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'" *ngIf="_hasPlaceholder()"><ng-content select="md-placeholder, mat-placeholder"></ng-content>{{_mdInputChild.placeholder}} <span class="mat-placeholder-required" *ngIf="!hideRequiredMarker && _mdInputChild.required">*</span></label></span></div><div class="mat-input-suffix" *ngIf="_suffixChildren.length"><ng-content select="[mdSuffix], [matSuffix]"></ng-content></div></div><div class="mat-input-underline" #underline [class.mat-disabled]="_mdInputChild.disabled"><span class="mat-input-ripple" [class.mat-accent]="color == \'accent\'" [class.mat-warn]="color == \'warn\'"></span></div><div class="mat-input-subscript-wrapper" [ngSwitch]="_getDisplayedMessages()"><div *ngSwitchCase="\'error\'" [@transitionMessages]="_subscriptAnimationState"><ng-content select="md-error, mat-error"></ng-content></div><div class="mat-input-hint-wrapper" *ngSwitchCase="\'hint\'" [@transitionMessages]="_subscriptAnimationState"><div *ngIf="hintLabel" [id]="_hintLabelId" class="mat-hint">{{hintLabel}}</div><ng-content select="md-hint:not([align=\'end\']), mat-hint:not([align=\'end\'])"></ng-content><div class="mat-input-hint-spacer"></div><ng-content select="md-hint[align=\'end\'], mat-hint[align=\'end\']"></ng-content></div></div></div>',styles:[".mat-input-container{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-input-container{text-align:right}.mat-input-wrapper{position:relative}.mat-input-flex{display:inline-flex;align-items:baseline;width:100%}.mat-input-prefix,.mat-input-suffix{white-space:nowrap;flex:none}.mat-input-prefix .mat-datepicker-toggle,.mat-input-prefix .mat-icon,.mat-input-suffix .mat-datepicker-toggle,.mat-input-suffix .mat-icon{width:1em;height:1em;vertical-align:text-bottom}.mat-input-prefix .mat-icon-button,.mat-input-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-input-prefix .mat-icon-button .mat-icon,.mat-input-suffix .mat-icon-button .mat-icon{font-size:inherit;width:1em;height:1em;vertical-align:baseline}.mat-input-infix{display:block;position:relative;flex:auto}.mat-input-element{font:inherit;background:0 0;color:currentColor;border:none;outline:0;padding:0;width:100%;vertical-align:bottom}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element:-webkit-autofill+.mat-input-placeholder-wrapper .mat-input-placeholder{display:none}.mat-input-element:-webkit-autofill+.mat-input-placeholder-wrapper .mat-float{display:block;transition:none}.mat-input-element::placeholder{color:transparent!important}.mat-input-element::-moz-placeholder{color:transparent!important}.mat-input-element::-webkit-input-placeholder{color:transparent!important}.mat-input-element:-ms-input-placeholder{color:transparent!important}.mat-input-placeholder-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}textarea.mat-input-element{overflow:auto}.mat-input-placeholder{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform:perspective(100px);-ms-transform:none;transform-origin:0 0;transition:transform .4s cubic-bezier(.25,.8,.25,1),color .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);display:none}.mat-focused .mat-input-placeholder.mat-float,.mat-input-placeholder.mat-empty,.mat-input-placeholder.mat-float:not(.mat-empty){display:block}[dir=rtl] .mat-input-placeholder{transform-origin:100% 0;left:auto;right:0}.mat-input-placeholder:not(.mat-empty){transition:none}.mat-input-underline{position:absolute;height:1px;width:100%}.mat-input-underline.mat-disabled{background-image:linear-gradient(to right,rgba(0,0,0,.26) 0,rgba(0,0,0,.26) 33%,transparent 0);background-size:4px 1px;background-repeat:repeat-x;background-position:0;background-color:transparent}.mat-input-underline .mat-input-ripple{position:absolute;height:2px;top:0;left:0;width:100%;transform-origin:50%;transform:scaleX(.5);visibility:hidden;transition:background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-focused .mat-input-underline .mat-input-ripple,.mat-input-invalid .mat-input-underline .mat-input-ripple{visibility:visible;transform:scaleX(1);transition:transform 150ms linear,background-color .3s cubic-bezier(.55,0,.55,.2)}.mat-input-subscript-wrapper{position:absolute;width:100%;overflow:hidden}.mat-input-placeholder-wrapper .mat-datepicker-toggle,.mat-input-placeholder-wrapper .mat-icon,.mat-input-subscript-wrapper .mat-datepicker-toggle,.mat-input-subscript-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-input-hint-wrapper{display:flex}.mat-input-hint-spacer{flex:1 0 1em}.mat-input-error{display:block}"],animations:[p.trigger("transitionMessages",[p.state("enter",p.style({opacity:1,transform:"translateY(0%)"})),p.transition("void => enter",[p.style({opacity:0,transform:"translateY(-100%)"}),p.animate("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])],host:{"[attr.align]":"null",class:"mat-input-container","[class.mat-input-invalid]":"_mdInputChild._isErrorState()","[class.mat-focused]":"_mdInputChild.focused","[class.ng-untouched]":'_shouldForward("untouched")',"[class.ng-touched]":'_shouldForward("touched")',"[class.ng-pristine]":'_shouldForward("pristine")',"[class.ng-dirty]":'_shouldForward("dirty")',"[class.ng-valid]":'_shouldForward("valid")',"[class.ng-invalid]":'_shouldForward("invalid")',"[class.ng-pending]":'_shouldForward("pending")',"(click)":"_focusInput()"},encapsulation:e.ViewEncapsulation.None}]}],Si.ctorParameters=function(){return[{type:e.ElementRef},{type:e.ChangeDetectorRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ge]}]}]},Si.propDecorators={color:[{type:e.Input}],dividerColor:[{type:e.Input}],hideRequiredMarker:[{type:e.Input}],hintLabel:[{type:e.Input}],floatPlaceholder:[{type:e.Input}],underlineRef:[{type:e.ViewChild,args:["underline"]}],_mdInputChild:[{type:e.ContentChild,args:[xi]}],_placeholderChild:[{type:e.ContentChild,args:[bi]}],_errorChildren:[{type:e.ContentChildren,args:[wi]}],_hintChildren:[{type:e.ContentChildren,args:[_i]}],_prefixChildren:[{type:e.ContentChildren,args:[Ci]}],_suffixChildren:[{type:e.ContentChildren,args:[Ei]}]};var Pi=function(){function t(t,e){var n=this;this._elementRef=t,e&&e.valueChanges&&e.valueChanges.subscribe(function(){return n.resizeToFitContent()})}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matAutosizeMinRows",{get:function(){return this.minRows},set:function(t){this.minRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matAutosizeMaxRows",{get:function(){return this.maxRows},set:function(t){this.maxRows=t},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("minHeight",t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&this._setTextareaStyle("maxHeight",t)},t.prototype.ngAfterViewInit=function(){this._cacheTextareaLineHeight(),this.resizeToFitContent()},t.prototype._setTextareaStyle=function(t,e){this._elementRef.nativeElement.style[t]=e},t.prototype._cacheTextareaLineHeight=function(){var t=this._elementRef.nativeElement,e=t.cloneNode(!1);e.rows=1,e.style.position="absolute",e.style.visibility="hidden",e.style.border="none",e.style.padding="0",e.style.height="",e.style.minHeight="",e.style.maxHeight="",t.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,t.parentNode.removeChild(e),this._setMinHeight(),this._setMaxHeight()},t.prototype.resizeToFitContent=function(){var t=this._elementRef.nativeElement;t.value!==this._previousValue&&(t.style.height="auto",t.style.height=t.scrollHeight+"px",this._previousValue=t.value)},t}();Pi.decorators=[{type:e.Directive,args:[{selector:"textarea[md-autosize], textarea[mdTextareaAutosize],textarea[mat-autosize], textarea[matTextareaAutosize]",exportAs:"mdTextareaAutosize",host:{"(input)":"resizeToFitContent()",rows:"1"}}]}],Pi.ctorParameters=function(){return[{type:e.ElementRef},{type:l.NgControl,decorators:[{type:e.Optional},{type:e.Self}]}]},Pi.propDecorators={minRows:[{type:e.Input,args:["mdAutosizeMinRows"]}],maxRows:[{type:e.Input,args:["mdAutosizeMaxRows"]}],_matAutosizeMinRows:[{type:e.Input,args:["matAutosizeMaxRows"]}],_matAutosizeMaxRows:[{type:e.Input,args:["matAutosizeMaxRows"]}]};var Oi=function(){function t(){}return t}();Oi.decorators=[{type:e.NgModule,args:[{declarations:[wi,_i,Si,xi,bi,Ci,Ei,Pi],imports:[i.CommonModule,l.FormsModule,n.PlatformModule],exports:[wi,_i,Si,xi,bi,Ci,Ei,Pi]}]}],Oi.ctorParameters=function(){return[]};var ki=function(){function t(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.direction="ltr"}return t}(),Ti=function(){function t(t,e,n){var r=this;this._overlayRef=n,this._afterClosed=new o.Subject,this._onAction=new o.Subject,this._instance=t,this.containerInstance=e,this.onAction().subscribe(function(){return r.dismiss()}),e._onExit().subscribe(function(){return r._finishDismiss()})}return Object.defineProperty(t.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),t.prototype.dismiss=function(){this._afterClosed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},t)},t.prototype._action=function(){this._onAction.closed||(this._onAction.next(),this._onAction.complete())},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._afterClosed.next(),this._afterClosed.complete()},t.prototype.afterDismissed=function(){return this._afterClosed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter()},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),Ai=function(t){function e(e,n,r){var i=t.call(this)||this;return i._ngZone=e,i._renderer=n,i._elementRef=r,i.onExit=new o.Subject,i.onEnter=new o.Subject,i.animationState="initial",i}return y(e,t),e.prototype.attachComponentPortal=function(t){if(this._portalHost.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached");if(this.snackBarConfig.extraClasses)for(var e=0,n=this.snackBarConfig.extraClasses;e<n.length;e++){var r=n[e];this._renderer.addClass(this._elementRef.nativeElement,r)}return this._portalHost.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(){throw Error("Not yet implemented")},e.prototype.onAnimationEnd=function(t){if("void"!==t.toState&&"complete"!==t.toState||this._completeExit(),"visible"===t.toState){var e=this.onEnter;this._ngZone.run(function(){e.next(),e.complete()})}},e.prototype.enter=function(){this.animationState="visible"},e.prototype._onEnter=function(){return this.animationState="visible",this.onEnter.asObservable()},e.prototype.exit=function(){return this.animationState="complete",this._onExit()},e.prototype._onExit=function(){return this.onExit.asObservable()},e.prototype.ngOnDestroy=function(){this._completeExit()},e.prototype._completeExit=function(){var t=this.onExit;n.first.call(this._ngZone.onMicrotaskEmpty).subscribe(function(){t.next(),t.complete()})},e}(n.BasePortalHost);Ai.decorators=[{type:e.Component,args:[{selector:"snack-bar-container",template:"<ng-template cdkPortalHost></ng-template>",styles:[":host{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12);background:#323232;border-radius:2px;box-sizing:content-box;display:block;max-width:568px;min-width:288px;padding:14px 24px;transform:translateY(100%)}@media screen and (-ms-high-contrast:active){:host{border:solid 1px}}"],host:{role:"alert","[@state]":"animationState","(@state.done)":"onAnimationEnd($event)"},animations:[p.trigger("state",[p.state("initial",p.style({transform:"translateY(100%)"})),p.state("visible",p.style({transform:"translateY(0%)"})),p.state("complete",p.style({transform:"translateY(100%)"})),p.transition("visible => complete",p.animate("195ms cubic-bezier(0.0,0.0,0.2,1)")),p.transition("initial => visible, void => visible",p.animate("225ms cubic-bezier(0.4,0.0,1,1)"))])]}]}],Ai.ctorParameters=function(){return[{type:e.NgZone},{type:e.Renderer2},{type:e.ElementRef}]},Ai.propDecorators={_portalHost:[{type:e.ViewChild,args:[n.PortalHostDirective]}]};var Mi=function(){function t(){}return t.prototype.dismiss=function(){this.snackBarRef._action()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.action},enumerable:!0,configurable:!0}),t}();Mi.decorators=[{type:e.Component,args:[{selector:"simple-snack-bar",template:'{{message}} <button class="mat-simple-snackbar-action" *ngIf="hasAction" (click)="dismiss()">{{action}}</button>',styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;color:#fff;line-height:20px}.mat-simple-snackbar-action{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;background:0 0;color:inherit;flex-shrink:0;margin-left:48px}[dir=rtl] .mat-simple-snackbar-action{margin-right:48px;margin-left:0}"],encapsulation:e.ViewEncapsulation.None,host:{class:"mat-simple-snackbar"}}]}],Mi.ctorParameters=function(){return[]};var Ri=function(){function t(t,e,n){this._overlay=t,this._live=e,this._parentSnackBar=n,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){var n=this;e=it(e);var r=this._createOverlay(e),i=this._attachSnackBarContainer(r,e),o=this._attachSnackbarContent(t,i,r);return o.afterDismissed().subscribe(function(){n._openedSnackBarRef==o&&(n._openedSnackBarRef=null)}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){o.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):o.containerInstance.enter(),e.duration&&e.duration>0&&o.afterOpened().subscribe(function(){o._dismissAfter(e.duration)}),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness),this._openedSnackBarRef=o,this._openedSnackBarRef},t.prototype.open=function(t,e,n){void 0===e&&(e="");var r=it(n);r.announcementMessage=t;var i=this.openFromComponent(Mi,r);return i.instance.snackBarRef=i,i.instance.message=t,i.instance.action=e,i},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var r=new n.ComponentPortal(Ai,e.viewContainerRef),i=t.attach(r);return i.instance.snackBarConfig=e,i.changeDetectorRef.detectChanges(),i.instance},t.prototype._attachSnackbarContent=function(t,e,r){var i=new n.ComponentPortal(t),o=e.attachComponentPortal(i);return new Ti(o.instance,e,r)},t.prototype._createOverlay=function(t){var e=new oe;return e.direction=t.direction,e.positionStrategy=this._overlay.position().global().centerHorizontally().bottom("0"),this._overlay.create(e)},t}();Ri.decorators=[{type:e.Injectable}],Ri.ctorParameters=function(){return[{type:ge},{type:n.LiveAnnouncer},{type:Ri,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var Ii=function(){function t(){}return t}();Ii.decorators=[{type:e.NgModule,args:[{imports:[Ee,n.PortalModule,i.CommonModule,Pt],exports:[Ai,Pt],declarations:[Ai,Mi],entryComponents:[Ai,Mi],providers:[Ri,n.LIVE_ANNOUNCER_PROVIDER]}]}],Ii.ctorParameters=function(){return[]};var Di=function(t){function e(e,n){return t.call(this,e,n)||this}return y(e,t),e}(n.TemplatePortalDirective);Di.decorators=[{type:e.Directive,args:[{selector:"[md-tab-label], [mat-tab-label], [mdTabLabel], [matTabLabel]"}]}],Di.ctorParameters=function(){return[{type:e.TemplateRef},{type:e.ViewContainerRef}]};var Ni=function(){function t(){}return t}(),ji=x(Ni),Li=function(t){function e(e){var n=t.call(this)||this;return n._viewContainerRef=e,n.textLabel="",n._contentPortal=null,n.position=null,n.origin=null,n}return y(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._contentPortal=new n.TemplatePortal(this._content,this._viewContainerRef)},e}(ji);Li.decorators=[{type:e.Component,args:[{selector:"md-tab, mat-tab",template:"<ng-template><ng-content></ng-content></ng-template>",inputs:["disabled"]}]}],Li.ctorParameters=function(){return[{type:e.ViewContainerRef}]},Li.propDecorators={templateLabel:[{type:e.ContentChild,args:[Di]}],_content:[{type:e.ViewChild,args:[e.TemplateRef]}],textLabel:[{type:e.Input,args:["label"]}]};var Fi=0,Vi=function(){function t(){}return t}(),Bi=function(){function t(t){this._renderer=t,this._isInitialized=!1,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._dynamicHeight=!1,this._disableRipple=!1,this._selectedIndex=null,this.headerPosition="above",this.focusChange=new e.EventEmitter,this.selectChange=new e.EventEmitter(!0),this._groupId=Fi++}return Object.defineProperty(t.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dynamicHeightDeprecated",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndexChange",{get:function(){return n.map.call(this.selectChange,function(t){return t.index})},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=Math.min(this._tabs.length-1,Math.max(this._indexToSelect||0,0));this._selectedIndex!=e&&null!=this._selectedIndex&&this.selectChange.emit(this._createChangeEvent(e)),this._tabs.forEach(function(n,r){n.position=r-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex=e},t.prototype.ngAfterViewChecked=function(){this._isInitialized=!0},t.prototype._focusChanged=function(t){this.focusChange.emit(this._createChangeEvent(t))},t.prototype._createChangeEvent=function(t){var e=new Vi;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e},t.prototype._getTabLabelId=function(t){return"md-tab-label-"+this._groupId+"-"+t},t.prototype._getTabContentId=function(t){return"md-tab-content-"+this._groupId+"-"+t},t.prototype._setTabBodyWrapperHeight=function(t){this._dynamicHeight&&this._tabBodyWrapperHeight&&(this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height",this._tabBodyWrapperHeight+"px"),this._tabBodyWrapper.nativeElement.offsetHeight&&this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height",t+"px"))},t.prototype._removeTabBodyWrapperHeight=function(){this._tabBodyWrapperHeight=this._tabBodyWrapper.nativeElement.clientHeight,this._renderer.setStyle(this._tabBodyWrapper.nativeElement,"height","")},t}();Bi.decorators=[{type:e.Component,args:[{selector:"md-tab-group, mat-tab-group",template:'<md-tab-header #tabHeader [selectedIndex]="selectedIndex" [disableRipple]="disableRipple" (indexFocused)="_focusChanged($event)" (selectFocusedIndex)="selectedIndex = $event"><div class="mat-tab-label" role="tab" md-tab-label-wrapper md-ripple *ngFor="let tab of _tabs; let i = index" [id]="_getTabLabelId(i)" [tabIndex]="selectedIndex == i ? 0 : -1" [attr.aria-controls]="_getTabContentId(i)" [attr.aria-selected]="selectedIndex == i" [class.mat-tab-label-active]="selectedIndex == i" [disabled]="tab.disabled" [mdRippleDisabled]="disableRipple" (click)="tabHeader.focusIndex = selectedIndex = i"><ng-template [ngIf]="tab.templateLabel"><ng-template [cdkPortalHost]="tab.templateLabel"></ng-template></ng-template><ng-template [ngIf]="!tab.templateLabel">{{tab.textLabel}}</ng-template></div></md-tab-header><div class="mat-tab-body-wrapper" #tabBodyWrapper><md-tab-body role="tabpanel" *ngFor="let tab of _tabs; let i = index" [id]="_getTabContentId(i)" [attr.aria-labelledby]="_getTabLabelId(i)" [class.mat-tab-body-active]="selectedIndex == i" [content]="tab.content" [position]="tab.position" [origin]="tab.origin" (onCentered)="_removeTabBodyWrapperHeight()" (onCentering)="_setTabBodyWrapperHeight($event)"></md-tab-body></div>',styles:[":host{display:flex;flex-direction:column}:host.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{line-height:48px;height:48px;padding:0 12px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-label{min-width:72px}}:host[mat-stretch-tabs] .mat-tab-label,:host[md-stretch-tabs] .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}.mat-tab-body{position:absolute;top:0;left:0;right:0;bottom:0;display:block;overflow:hidden}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}:host.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],host:{class:"mat-tab-group","[class.mat-tab-group-dynamic-height]":"dynamicHeight","[class.mat-tab-group-inverted-header]":'headerPosition === "below"'}}]}],Bi.ctorParameters=function(){return[{type:e.Renderer2}]},Bi.propDecorators={_tabs:[{type:e.ContentChildren,args:[Li]}],_tabBodyWrapper:[{type:e.ViewChild,args:["tabBodyWrapper"]}],dynamicHeight:[{type:e.Input}],_dynamicHeightDeprecated:[{type:e.Input,args:["md-dynamic-height"]}],disableRipple:[{type:e.Input}],selectedIndex:[{type:e.Input}],headerPosition:[{type:e.Input}],selectedIndexChange:[{type:e.Output}],focusChange:[{type:e.Output}],selectChange:[{type:e.Output}]};var Ui=function(){function t(){}return t}(),Hi=x(Ui),zi=function(t){function e(e){var n=t.call(this)||this;return n.elementRef=e,n}return y(e,t),e.prototype.focus=function(){this.elementRef.nativeElement.focus()},e.prototype.getOffsetLeft=function(){return this.elementRef.nativeElement.offsetLeft},e.prototype.getOffsetWidth=function(){return this.elementRef.nativeElement.offsetWidth},e}(Hi);zi.decorators=[{type:e.Directive,args:[{selector:"[md-tab-label-wrapper], [mat-tab-label-wrapper]",inputs:["disabled"],host:{"[class.mat-tab-disabled]":"disabled"}}]}],zi.ctorParameters=function(){return[{type:e.ElementRef}]};var qi=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._ngZone=n}return t.prototype.alignToElement=function(t){var e=this;this.show(),this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){e._renderer.setStyle(e._elementRef.nativeElement,"left",e._getLeftPosition(t)),e._renderer.setStyle(e._elementRef.nativeElement,"width",e._getElementWidth(t))})})},t.prototype.show=function(){this._renderer.setStyle(this._elementRef.nativeElement,"visibility","visible")},t.prototype.hide=function(){this._renderer.setStyle(this._elementRef.nativeElement,"visibility","hidden")},t.prototype._getLeftPosition=function(t){return t?t.offsetLeft+"px":"0"},t.prototype._getElementWidth=function(t){return t?t.offsetWidth+"px":"0"},t}();qi.decorators=[{type:e.Directive,args:[{selector:"md-ink-bar, mat-ink-bar",host:{class:"mat-ink-bar"}}]}],qi.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef},{type:e.NgZone}]};var Gi=function(){function t(t,e){this._dir=t,this._ngZone=e,this._onDestroy=new o.Subject}return t.prototype.updateActiveLink=function(t){this._activeLinkChanged=this._activeLinkElement!=t,this._activeLinkElement=t},t.prototype.ngAfterContentInit=function(){var t=this;this._resizeSubscription=this._ngZone.runOutsideAngular(function(){var e=t._dir?t._dir.change:c.of(null),r="undefined"!=typeof window?n.auditTime.call(a.fromEvent(window,"resize"),10):c.of(null);return n.takeUntil.call(u.merge(e,r),t._onDestroy).subscribe(function(){return t._alignInkBar()})})},t.prototype.ngAfterContentChecked=function(){this._activeLinkChanged&&(this._alignInkBar(),this._activeLinkChanged=!1)},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._resizeSubscription.unsubscribe()},t.prototype._alignInkBar=function(){this._activeLinkElement&&this._inkBar.alignToElement(this._activeLinkElement.nativeElement)},t}();Gi.decorators=[{type:e.Component,args:[{selector:"[md-tab-nav-bar], [mat-tab-nav-bar]",template:'<div class="mat-tab-links" (cdkObserveContent)="_alignInkBar()"><ng-content></ng-content><md-ink-bar></md-ink-bar></div>',styles:[".mat-tab-nav-bar{overflow:hidden;position:relative;flex-shrink:0}.mat-tab-links{position:relative}.mat-tab-link{line-height:48px;height:48px;padding:0 12px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-block;vertical-align:top;text-decoration:none;position:relative;overflow:hidden}.mat-tab-link:focus{outline:0;opacity:1}.mat-tab-link.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-link{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}"],host:{class:"mat-tab-nav-bar"},encapsulation:e.ViewEncapsulation.None}]}],Gi.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.NgZone}]},Gi.propDecorators={_inkBar:[{type:e.ViewChild,args:[qi]}]};var Wi=function(){function t(){}return t}(),Ki=x(Wi),$i=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a._mdTabNavBar=e,a._elementRef=n,a._isActive=!1,a._tabLinkRipple=new Ft(n,r,i,o,s),a}return y(e,t),Object.defineProperty(e.prototype,"active",{get:function(){return this._isActive},set:function(t){this._isActive=t,t&&this._mdTabNavBar.updateActiveLink(this._elementRef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:0},enumerable:!0,configurable:!0}),e.prototype.ngOnDestroy=function(){this._tabLinkRipple.ngOnDestroy()},e}(Ki);$i.decorators=[{type:e.Directive,args:[{selector:"[md-tab-link], [mat-tab-link], [mdTabLink], [matTabLink]",inputs:["disabled"],host:{class:"mat-tab-link","[attr.aria-disabled]":"disabled.toString()","[class.mat-tab-disabled]":"disabled"}}]}],$i.ctorParameters=function(){return[{type:Gi},{type:e.ElementRef},{type:e.NgZone},{type:Nt},{type:n.Platform},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Lt]}]}]},$i.propDecorators={active:[{type:e.Input}],tabIndex:[{type:e.HostBinding,args:["tabIndex"]}]};var Yi=function(){function t(t,n){this._elementRef=t,this._dir=n,this.onCentering=new e.EventEmitter,this.onCentered=new e.EventEmitter(!0)}return Object.defineProperty(t.prototype,"position",{set:function(t){this._position=t<0?"ltr"==this._getLayoutDirection()?"left":"right":t>0?"ltr"==this._getLayoutDirection()?"right":"left":"center"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"origin",{set:function(t){if(null!=t){var e=this._getLayoutDirection();this._origin="ltr"==e&&t<=0||"rtl"==e&&t>0?"left":"right"}},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&this._origin&&(this._position="left"==this._origin?"left-origin-center":"right-origin-center")},t.prototype.ngAfterViewChecked=function(){this._isCenterPosition(this._position)&&!this._portalHost.hasAttached()&&this._portalHost.attach(this._content)},t.prototype._onTranslateTabStarted=function(t){this._isCenterPosition(t.toState)&&this.onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._onTranslateTabComplete=function(t){this._isCenterPosition(t.toState)||this._isCenterPosition(this._position)||this._portalHost.detach(),this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this.onCentered.emit()},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t}();Yi.decorators=[{type:e.Component,args:[{selector:"md-tab-body, mat-tab-body",template:'<div class="mat-tab-body-content" #content [@translateTab]="_position" (@translateTab.start)="_onTranslateTabStarted($event)" (@translateTab.done)="_onTranslateTabComplete($event)"><ng-template cdkPortalHost></ng-template></div>',styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:e.ViewEncapsulation.None,host:{class:"mat-tab-body"},animations:[p.trigger("translateTab",[p.state("void",p.style({transform:"translate3d(0%, 0, 0)"})),p.state("left",p.style({transform:"translate3d(-100%, 0, 0)"})),p.state("left-origin-center",p.style({transform:"translate3d(0%, 0, 0)"})),p.state("right-origin-center",p.style({transform:"translate3d(0%, 0, 0)"})),p.state("center",p.style({transform:"translate3d(0%, 0, 0)"})),p.state("right",p.style({transform:"translate3d(100%, 0, 0)"})),p.transition("* => left, * => right, left => center, right => center",p.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")),p.transition("void => left-origin-center",[p.style({transform:"translate3d(-100%, 0, 0)"}),p.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")]),p.transition("void => right-origin-center",[p.style({transform:"translate3d(100%, 0, 0)"}),p.animate("500ms cubic-bezier(0.35, 0, 0.25, 1)")])])]}]}],Yi.ctorParameters=function(){return[{type:e.ElementRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},Yi.propDecorators={_portalHost:[{type:e.ViewChild,args:[n.PortalHostDirective]}],onCentering:[{type:e.Output}],onCentered:[{type:e.Output}],_content:[{type:e.Input,args:["content"]}],position:[{type:e.Input,args:["position"]}],origin:[{type:e.Input,args:["origin"]}]};var Xi=function(){function t(t,n,r,i){this._elementRef=t,this._ngZone=n,this._renderer=r,this._dir=i,this._focusIndex=0,this._scrollDistance=0,this._selectedIndexChanged=!1,this._realignInkBar=null,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._selectedIndex=0,this._disableRipple=!1,this.selectFocusedIndex=new e.EventEmitter,this.indexFocused=new e.EventEmitter}return Object.defineProperty(t.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._selectedIndexChanged=this._selectedIndex!=t,this._selectedIndex=t,this._focusIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentChecked=function(){this._tabLabelCount!=this._labelWrappers.length&&(this._updatePagination(),this._tabLabelCount=this._labelWrappers.length),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1)},t.prototype._handleKeydown=function(t){switch(t.keyCode){case n.RIGHT_ARROW:this._focusNextTab();break;case n.LEFT_ARROW:this._focusPreviousTab();break;case n.ENTER:this.selectFocusedIndex.emit(this.focusIndex)}},t.prototype.ngAfterContentInit=function(){var t=this;this._realignInkBar=this._ngZone.runOutsideAngular(function(){var e=t._dir?t._dir.change:c.of(null),r="undefined"!=typeof window?n.auditTime.call(a.fromEvent(window,"resize"),10):c.of(null);return n.startWith.call(u.merge(e,r),null).subscribe(function(){t._updatePagination(),t._alignInkBarToSelectedTab()})})},t.prototype.ngOnDestroy=function(){this._realignInkBar&&(this._realignInkBar.unsubscribe(),this._realignInkBar=null)},t.prototype._onContentChanges=function(){this._updatePagination(),this._alignInkBarToSelectedTab()},t.prototype._updatePagination=function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()},Object.defineProperty(t.prototype,"focusIndex",{get:function(){return this._focusIndex},set:function(t){this._isValidIndex(t)&&this._focusIndex!=t&&(this._focusIndex=t,this.indexFocused.emit(t),this._setTabFocus(t))},enumerable:!0,configurable:!0}),t.prototype._isValidIndex=function(t){if(!this._labelWrappers)return!0;var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;return!!e&&!e.disabled},t.prototype._setTabFocus=function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._labelWrappers&&this._labelWrappers.length){this._labelWrappers.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}},t.prototype._moveFocus=function(t){if(this._labelWrappers)for(var e=this._labelWrappers.toArray(),n=this.focusIndex+t;n<e.length&&n>=0;n+=t)if(this._isValidIndex(n))return void(this.focusIndex=n)},t.prototype._focusNextTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?1:-1)},t.prototype._focusPreviousTab=function(){this._moveFocus("ltr"==this._getLayoutDirection()?-1:1)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._updateTabScrollPosition=function(){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._renderer.setStyle(this._tabList.nativeElement,"transform","translate3d("+e+"px, 0, 0)")},Object.defineProperty(t.prototype,"scrollDistance",{get:function(){return this._scrollDistance},set:function(t){this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),t)),this._scrollDistanceChanged=!0,this._checkScrollingControls()},enumerable:!0,configurable:!0}),t.prototype._scrollHeader=function(t){var e=this._tabListContainer.nativeElement.offsetWidth;this.scrollDistance+=("before"==t?-1:1)*e/3},t.prototype._scrollToLabel=function(t){var e=this._labelWrappers?this._labelWrappers.toArray()[t]:null;if(e){var n,r,i=this._tabListContainer.nativeElement.offsetWidth;"ltr"==this._getLayoutDirection()?r=(n=e.getOffsetLeft())+e.getOffsetWidth():n=(r=this._tabList.nativeElement.offsetWidth-e.getOffsetLeft())-e.getOffsetWidth();var o=this.scrollDistance,s=this.scrollDistance+i;n<o?this.scrollDistance-=o-n+60:r>s&&(this.scrollDistance+=r-s+60)}},t.prototype._checkPaginationEnabled=function(){this._showPaginationControls=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth,this._showPaginationControls||(this.scrollDistance=0)},t.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance()},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._labelWrappers&&this._labelWrappers.length?this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement:null;this._inkBar.alignToElement(t)},t}();Xi.decorators=[{type:e.Component,args:[{selector:"md-tab-header, mat-tab-header",template:'<div class="mat-tab-header-pagination mat-tab-header-pagination-before mat-elevation-z4" aria-hidden="true" md-ripple [mdRippleDisabled]="_disableScrollBefore || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollBefore" (click)="_scrollHeader(\'before\')"><div class="mat-tab-header-pagination-chevron"></div></div><div class="mat-tab-label-container" #tabListContainer (keydown)="_handleKeydown($event)"><div class="mat-tab-list" #tabList role="tablist" (cdkObserveContent)="_onContentChanges()"><div class="mat-tab-labels"><ng-content></ng-content></div><md-ink-bar></md-ink-bar></div></div><div class="mat-tab-header-pagination mat-tab-header-pagination-after mat-elevation-z4" aria-hidden="true" md-ripple [mdRippleDisabled]="_disableScrollAfter || disableRipple" [class.mat-tab-header-pagination-disabled]="_disableScrollAfter" (click)="_scrollHeader(\'after\')"><div class="mat-tab-header-pagination-chevron"></div></div>',styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-label{line-height:48px;height:48px;padding:0 12px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;position:relative}.mat-tab-label:focus{outline:0;opacity:1}.mat-tab-label.mat-tab-disabled{cursor:default;pointer-events:none}@media (max-width:600px){.mat-tab-label{min-width:72px}}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.mat-tab-header-pagination{position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:#ccc}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-tab-labels{display:flex}"],encapsulation:e.ViewEncapsulation.None,host:{class:"mat-tab-header","[class.mat-tab-header-pagination-controls-enabled]":"_showPaginationControls","[class.mat-tab-header-rtl]":"_getLayoutDirection() == 'rtl'"}}]}],Xi.ctorParameters=function(){return[{type:e.ElementRef},{type:e.NgZone},{type:e.Renderer2},{type:n.Directionality,decorators:[{type:e.Optional}]}]},Xi.propDecorators={_labelWrappers:[{type:e.ContentChildren,args:[zi]}],_inkBar:[{type:e.ViewChild,args:[qi]}],_tabListContainer:[{type:e.ViewChild,args:["tabListContainer"]}],_tabList:[{type:e.ViewChild,args:["tabList"]}],selectedIndex:[{type:e.Input}],disableRipple:[{type:e.Input}],selectFocusedIndex:[{type:e.Output}],indexFocused:[{type:e.Output}]};var Qi=function(){function t(){}return t}();Qi.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,n.PortalModule,Wt,n.ObserveContentModule,Gt],exports:[Bi,Di,Li,Gi,$i],declarations:[Bi,Di,Li,qi,zi,Gi,$i,Yi,Xi],providers:[jt]}]}],Qi.ctorParameters=function(){return[]};var Ji=function(){function t(){}return t}();Ji.decorators=[{type:e.Directive,args:[{selector:"md-toolbar-row, mat-toolbar-row",host:{class:"mat-toolbar-row"}}]}],Ji.ctorParameters=function(){return[]};var Zi=function(){function t(t,e){this._renderer=t,this._elementRef=e}return t}(),to=E(Zi),eo=function(t){function e(e,n){return t.call(this,e,n)||this}return y(e,t),e}(to);eo.decorators=[{type:e.Component,args:[{selector:"md-toolbar, mat-toolbar",template:'<div class="mat-toolbar-layout"><md-toolbar-row><ng-content></ng-content></md-toolbar-row><ng-content select="md-toolbar-row, mat-toolbar-row"></ng-content></div>',styles:[".mat-toolbar{display:flex;box-sizing:border-box;width:100%;padding:0 16px;flex-direction:column}.mat-toolbar .mat-toolbar-row{display:flex;box-sizing:border-box;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar{min-height:64px}.mat-toolbar-row{height:64px}@media (max-width:600px){.mat-toolbar{min-height:56px}.mat-toolbar-row{height:56px}}"],inputs:["color"],host:{class:"mat-toolbar",role:"toolbar"},changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],eo.ctorParameters=function(){return[{type:e.Renderer2},{type:e.ElementRef}]};var no=function(){function t(){}return t}();no.decorators=[{type:e.NgModule,args:[{imports:[Pt],exports:[eo,Ji,Pt],declarations:[eo,Ji]}]}],no.ctorParameters=function(){return[]};var ro=function(){function t(t,e,n,r,i,o,s,a){var u=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=r,this._ngZone=i,this._renderer=o,this._platform=s,this._dir=a,this._position="below",this._disabled=!1,this.showDelay=0,this.hideDelay=0,s.IOS||(o.listen(e.nativeElement,"mouseenter",function(){return u.show()}),o.listen(e.nativeElement,"mouseleave",function(){return u.hide()}))}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._tooltipInstance&&this._disposeTooltip())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=n.coerceBooleanProperty(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_positionDeprecated",{get:function(){return this._position},set:function(t){this._position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){this._message=t,this._setTooltipMessage(this._message)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMessage",{get:function(){return this.message},set:function(t){this.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matMessage",{get:function(){return this.message},set:function(t){this.message=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matPosition",{get:function(){return this.position},set:function(t){this.position=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matDisabled",{get:function(){return this.disabled},set:function(t){this.disabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matHideDelay",{get:function(){return this.hideDelay},set:function(t){this.hideDelay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matShowDelay",{get:function(){return this.showDelay},set:function(t){this.showDelay=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matClass",{get:function(){return this.tooltipClass},set:function(t){this.tooltipClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._tooltipInstance&&this._disposeTooltip()},t.prototype.show=function(t){void 0===t&&(t=this.showDelay),!this.disabled&&this._message&&this._message.trim()&&(this._tooltipInstance||this._createTooltip(),this._setTooltipClass(this._tooltipClass),this._setTooltipMessage(this._message),this._tooltipInstance.show(this._position,t))},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._createTooltip=function(){var t=this,e=this._createOverlay(),r=new n.ComponentPortal(io,this._viewContainerRef);this._tooltipInstance=e.attach(r).instance,this._tooltipInstance.afterHidden().subscribe(function(){t._tooltipInstance&&t._disposeTooltip()})},t.prototype._createOverlay=function(){var t=this,e=this._getOrigin(),n=this._getOverlayPosition(),r=this._overlay.position().connectedTo(this._elementRef,e,n);r.withScrollableContainers(this._scrollDispatcher.getScrollContainers(this._elementRef)),r.onPositionChange.subscribe(function(e){e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance&&t._tooltipInstance.isVisible()&&t.hide(0)});var i=new oe;return i.direction=this._dir?this._dir.value:"ltr",i.positionStrategy=r,i.scrollStrategy=this._overlay.scrollStrategies.reposition({scrollThrottle:20}),this._overlayRef=this._overlay.create(i),this._overlayRef},t.prototype._disposeTooltip=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._tooltipInstance=null},t.prototype._getOrigin=function(){if("above"==this.position||"below"==this.position)return{originX:"center",originY:"above"==this.position?"top":"bottom"};var t=!this._dir||"ltr"==this._dir.value;if("left"==this.position||"before"==this.position&&t||"after"==this.position&&!t)return{originX:"start",originY:"center"};if("right"==this.position||"after"==this.position&&t||"before"==this.position&&!t)return{originX:"end",originY:"center"};throw ot(this.position)},t.prototype._getOverlayPosition=function(){if("above"==this.position)return{overlayX:"center",overlayY:"bottom"};if("below"==this.position)return{overlayX:"center",overlayY:"top"};var t=!this._dir||"ltr"==this._dir.value;if("left"==this.position||"before"==this.position&&t||"after"==this.position&&!t)return{overlayX:"end",overlayY:"center"};if("right"==this.position||"after"==this.position&&t||"before"==this.position&&!t)return{overlayX:"start",overlayY:"center"};throw ot(this.position)},t.prototype._setTooltipMessage=function(t){var e=this;this._tooltipInstance&&(this._tooltipInstance.message=t,this._tooltipInstance._markForCheck(),n.first.call(this._ngZone.onMicrotaskEmpty).subscribe(function(){e._tooltipInstance&&e._overlayRef.updatePosition()}))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t}();ro.decorators=[{type:e.Directive,args:[{selector:"[md-tooltip], [mdTooltip], [mat-tooltip], [matTooltip]",host:{"(longpress)":"show()","(touchend)":"hide(1500)"},exportAs:"mdTooltip"}]}],ro.ctorParameters=function(){return[{type:ge},{type:e.ElementRef},{type:It},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.Renderer2},{type:n.Platform},{type:n.Directionality,decorators:[{type:e.Optional}]}]},ro.propDecorators={position:[{type:e.Input,args:["mdTooltipPosition"]}],disabled:[{type:e.Input,args:["mdTooltipDisabled"]}],_positionDeprecated:[{type:e.Input,args:["tooltip-position"]}],showDelay:[{type:e.Input,args:["mdTooltipShowDelay"]}],hideDelay:[{type:e.Input,args:["mdTooltipHideDelay"]}],message:[{type:e.Input,args:["mdTooltip"]}],tooltipClass:[{type:e.Input,args:["mdTooltipClass"]}],_deprecatedMessage:[{type:e.Input,args:["md-tooltip"]}],_matMessage:[{type:e.Input,args:["matTooltip"]}],_matPosition:[{type:e.Input,args:["matTooltipPosition"]}],_matDisabled:[{type:e.Input,args:["matTooltipDisabled"]}],_matHideDelay:[{type:e.Input,args:["matTooltipHideDelay"]}],_matShowDelay:[{type:e.Input,args:["matTooltipShowDelay"]}],_matClass:[{type:e.Input,args:["matTooltipClass"]}]};var io=function(){function t(t,e){this._dir=t,this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._transformOrigin="bottom",this._onHide=new o.Subject}return t.prototype.show=function(t,e){var n=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._setTransformOrigin(t),this._showTimeoutId=setTimeout(function(){n._visibility="visible",n._closeOnInteraction=!1,n._markForCheck(),setTimeout(function(){return n._closeOnInteraction=!0},0)},e)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._closeOnInteraction=!1,e._markForCheck()},t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype._setTransformOrigin=function(t){var e=!this._dir||"ltr"==this._dir.value;switch(t){case"before":this._transformOrigin=e?"right":"left";break;case"after":this._transformOrigin=e?"left":"right";break;case"left":this._transformOrigin="right";break;case"right":this._transformOrigin="left";break;case"above":this._transformOrigin="bottom";break;case"below":this._transformOrigin="top";break;default:throw ot(t)}},t.prototype._afterVisibilityAnimation=function(t){"hidden"!==t.toState||this.isVisible()||this._onHide.next()},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t}();io.decorators=[{type:e.Component,args:[{selector:"md-tooltip-component, mat-tooltip-component",template:'<div class="mat-tooltip" [ngClass]="tooltipClass" [style.transform-origin]="_transformOrigin" [@state]="_visibility" (@state.done)="_afterVisibilityAnimation($event)">{{message}}</div>',styles:[":host{pointer-events:none}.mat-tooltip{color:#fff;border-radius:2px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}"],encapsulation:e.ViewEncapsulation.None,animations:[p.trigger("state",[p.state("void",p.style({transform:"scale(0)"})),p.state("initial",p.style({transform:"scale(0)"})),p.state("visible",p.style({transform:"scale(1)"})),p.state("hidden",p.style({transform:"scale(0)"})),p.transition("* => visible",p.animate("150ms cubic-bezier(0.0, 0.0, 0.2, 1)")),p.transition("* => hidden",p.animate("150ms cubic-bezier(0.4, 0.0, 1, 1)"))])],host:{"[style.zoom]":'_visibility === "visible" ? 1 : null',"(body:click)":"this._handleBodyInteraction()"}}]}],io.ctorParameters=function(){return[{type:n.Directionality,decorators:[{type:e.Optional}]},{type:e.ChangeDetectorRef}]};var oo=function(){function t(){}return t}();oo.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Ee,Pt,n.PlatformModule],exports:[ro,io,Pt],declarations:[ro,io],entryComponents:[io]}]}],oo.ctorParameters=function(){return[]};var so=function(){function t(){}return t}(),ao=x(so),uo=function(t){function e(e){var n=t.call(this)||this;return n._elementRef=e,n}return y(e,t),e.prototype.focus=function(){this._getHostElement().focus()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e}(ao);uo.decorators=[{type:e.Component,args:[{selector:"[md-menu-item], [mat-menu-item]",inputs:["disabled"],host:{role:"menuitem",class:"mat-menu-item","[attr.tabindex]":"_getTabIndex()","[attr.aria-disabled]":"disabled.toString()","[attr.disabled]":"disabled || null","(click)":"_checkDisabled($event)"},template:'<ng-content></ng-content><div class="mat-menu-ripple" *ngIf="!disabled" md-ripple [mdRippleTrigger]="_getHostElement()"></div>',exportAs:"mdMenuItem"}]}],uo.ctorParameters=function(){return[{type:e.ElementRef}]};var co=p.trigger("transformMenu",[p.state("showing",p.style({opacity:1,transform:"scale(1)"})),p.transition("void => *",[p.style({opacity:0,transform:"scale(0)"}),p.animate("200ms cubic-bezier(0.25, 0.8, 0.25, 1)")]),p.transition("* => void",[p.animate("50ms 100ms linear",p.style({opacity:0}))])]),lo=p.trigger("fadeInItems",[p.state("showing",p.style({opacity:1})),p.transition("void => *",[p.style({opacity:0}),p.animate("200ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])]),po=function(){function t(t){this._elementRef=t,this._xPosition="after",this._yPosition="below",this._classList={},this.overlapTrigger=!0,this.close=new e.EventEmitter}return Object.defineProperty(t.prototype,"xPosition",{get:function(){return this._xPosition},set:function(t){"before"!==t&&"after"!==t&&at(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&ut(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{set:function(t){t&&t.length&&(this._classList=t.split(" ").reduce(function(t,e){return t[e]=!0,t},{}),this._elementRef.nativeElement.className="",this.setPositionClasses())},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new In(this.items).withWrap(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t._emitCloseEvent()})},t.prototype.ngOnDestroy=function(){this._tabSubscription&&this._tabSubscription.unsubscribe()},t.prototype._handleKeydown=function(t){switch(t.keyCode){case n.ESCAPE:return void this._emitCloseEvent();default:this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(){this._keyManager.setFirstItemActive()},t.prototype._emitCloseEvent=function(){this.close.emit()},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition),this._classList["mat-menu-before"]="before"===t,this._classList["mat-menu-after"]="after"===t,this._classList["mat-menu-above"]="above"===e,this._classList["mat-menu-below"]="below"===e},t}();po.decorators=[{type:e.Component,args:[{selector:"md-menu, mat-menu",template:'<ng-template><div class="mat-menu-panel" [ngClass]="_classList" (keydown)="_handleKeydown($event)" (click)="_emitCloseEvent()" [@transformMenu]="\'showing\'" role="menu"><div class="mat-menu-content" [@fadeInItems]="\'showing\'"><ng-content></ng-content></div></div></ng-template>',styles:[".mat-menu-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px)}.mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:left top}.mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:left bottom}.mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:right top}.mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-below{transform-origin:right top}[dir=rtl] .mat-menu-panel.mat-menu-after.mat-menu-above{transform-origin:right bottom}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-below{transform-origin:left top}[dir=rtl] .mat-menu-panel.mat-menu-before.mat-menu-above{transform-origin:left bottom}@media screen and (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content{padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;position:relative}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}button.mat-menu-item{width:100%}.mat-menu-ripple{position:absolute;top:0;left:0;bottom:0;right:0}"],encapsulation:e.ViewEncapsulation.None,animations:[co,lo],exportAs:"mdMenu"}]}],po.ctorParameters=function(){return[{type:e.ElementRef}]},po.propDecorators={xPosition:[{type:e.Input}],yPosition:[{type:e.Input}],templateRef:[{type:e.ViewChild,args:[e.TemplateRef]}],items:[{type:e.ContentChildren,args:[uo]}],overlapTrigger:[{type:e.Input}],classList:[{type:e.Input,args:["class"]}],close:[{type:e.Output}]};var ho=function(){function t(t,n,r,i){this._overlay=t,this._element=n,this._viewContainerRef=r,this._dir=i,this._overlayRef=null,this._menuOpen=!1,this._openedByMouse=!1,this.onMenuOpen=new e.EventEmitter,this.onMenuClose=new e.EventEmitter}return Object.defineProperty(t.prototype,"_deprecatedMdMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_matMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;this._checkMenu(),this.menu.close.subscribe(function(){return t.closeMenu()})},t.prototype.ngOnDestroy=function(){this.destroyMenu()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){this._menuOpen||(this._createOverlay().attach(this._portal),this._subscribeToBackdrop(),this._initMenu())},t.prototype.closeMenu=function(){this._overlayRef&&(this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._resetMenu())},t.prototype.destroyMenu=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null,this._cleanUpSubscriptions())},t.prototype.focus=function(){this._element.nativeElement.focus()},Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype._subscribeToBackdrop=function(){var t=this;this._overlayRef&&(this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(){t.menu._emitCloseEvent()}))},t.prototype._initMenu=function(){this._setIsMenuOpen(!0),this._openedByMouse||this.menu.focusFirstItem()},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse||this.focus(),this._openedByMouse=!1},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.onMenuOpen.emit():this.onMenuClose.emit()},t.prototype._checkMenu=function(){this.menu||st()},t.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new n.TemplatePortal(this.menu.templateRef,this._viewContainerRef);var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t)}return this._overlayRef},t.prototype._getOverlayConfig=function(){var t=new oe;return t.positionStrategy=this._getPosition().withDirection(this.dir),t.hasBackdrop=!0,t.backdropClass="cdk-overlay-transparent-backdrop",t.direction=this.dir,t.scrollStrategy=this._overlay.scrollStrategies.reposition(),t},t.prototype._subscribeToPositions=function(t){var e=this;this._positionSubscription=t.onPositionChange.subscribe(function(t){var n="start"===t.connectionPair.originX?"after":"before",r="top"===t.connectionPair.originY?"below":"above";e.menu.overlapTrigger||(r="below"===r?"above":"below"),e.menu.setPositionClasses(n,r)})},t.prototype._getPosition=function(){var t="before"===this.menu.xPosition?["end","start"]:["start","end"],e=t[0],n=t[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],i=r[0],o=r[1],s=i,a=o;return this.menu.overlapTrigger||(s="top"===i?"bottom":"top",a="top"===o?"bottom":"top"),this._overlay.position().connectedTo(this._element,{originX:e,originY:s},{overlayX:e,overlayY:i}).withFallbackPosition({originX:n,originY:s},{overlayX:n,overlayY:i}).withFallbackPosition({originX:e,originY:a},{overlayX:e,overlayY:o}).withFallbackPosition({originX:n,originY:a},{overlayX:n,overlayY:o})},t.prototype._cleanUpSubscriptions=function(){this._backdropSubscription&&this._backdropSubscription.unsubscribe(),this._positionSubscription&&this._positionSubscription.unsubscribe()},t.prototype._handleMousedown=function(t){n.isFakeMousedownFromScreenReader(t)||(this._openedByMouse=!0)},t}();ho.decorators=[{type:e.Directive,args:[{selector:"[md-menu-trigger-for], [mat-menu-trigger-for],\n [mdMenuTriggerFor], [matMenuTriggerFor]",host:{"aria-haspopup":"true","(mousedown)":"_handleMousedown($event)","(click)":"toggleMenu()"},exportAs:"mdMenuTrigger"}]}],ho.ctorParameters=function(){return[{type:ge},{type:e.ElementRef},{type:e.ViewContainerRef},{type:n.Directionality,decorators:[{type:e.Optional}]}]},ho.propDecorators={_deprecatedMdMenuTriggerFor:[{type:e.Input,args:["md-menu-trigger-for"]}],_deprecatedMatMenuTriggerFor:[{type:e.Input,args:["mat-menu-trigger-for"]}],_matMenuTriggerFor:[{type:e.Input,args:["matMenuTriggerFor"]}],menu:[{type:e.Input,args:["mdMenuTriggerFor"]}],onMenuOpen:[{type:e.Output}],onMenuClose:[{type:e.Output}]};var fo=function(){function t(){}return t}();fo.decorators=[{type:e.NgModule,args:[{imports:[Ee,i.CommonModule,Wt,Pt],exports:[po,uo,ho,Pt],declarations:[po,uo,ho]}]}],fo.ctorParameters=function(){return[]};var mo=function(){function t(t,e){this._parentInjector=t,this._customTokens=e}return t.prototype.get=function(t,e){var n=this._customTokens.get(t);return void 0!==n?n:this._parentInjector.get(t,e)},t}(),yo=function(){function t(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.direction="ltr"}return t}(),go=function(){function t(t,e){var r=this;this._overlayRef=t,this._containerInstance=e,this.disableClose=this._containerInstance._config.disableClose,this._afterClosed=new o.Subject,n.filter.call(e._onAnimationStateChange,function(t){return"exit"===t.toState}).subscribe(function(){return r._overlayRef.dispose()},void 0,function(){r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null})}return t.prototype.close=function(t){this._result=t,this._containerInstance._state="exit",this._overlayRef.detachBackdrop()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t="auto"),void 0===e&&(e="auto"),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getState().positionStrategy},t}(),vo=function(t){function n(n,r,i,o){var s=t.call(this)||this;return s._ngZone=n,s._elementRef=r,s._focusTrapFactory=i,s._elementFocusedBeforeDialogWasOpened=null,s._state="enter",s._onAnimationStateChange=new e.EventEmitter,s._ariaLabelledBy=null,s._document=o,s}return y(n,t),n.prototype.attachComponentPortal=function(t){return this._portalHost.hasAttached()&&ct(),this._savePreviouslyFocusedElement(),this._portalHost.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(t){return this._portalHost.hasAttached()&&ct(),this._savePreviouslyFocusedElement(),this._portalHost.attachTemplatePortal(t)},n.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._focusTrap.focusInitialElementWhenReady()},n.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"focus"in t&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},n.prototype._savePreviouslyFocusedElement=function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement)},n.prototype._onAnimationDone=function(t){this._onAnimationStateChange.emit(t),"enter"===t.toState?this._trapFocus():"exit"===t.toState&&(this._restoreFocus(),this._onAnimationStateChange.complete())},n}(n.BasePortalHost);vo.decorators=[{type:e.Component,args:[{selector:"md-dialog-container, mat-dialog-container",template:"<ng-template cdkPortalHost></ng-template>",styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;max-width:80vw;width:100%;height:100%}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap}.mat-dialog-actions:last-child{margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}"],encapsulation:e.ViewEncapsulation.None,animations:[p.trigger("slideDialog",[p.state("enter",p.style({transform:"none",opacity:1})),p.state("void",p.style({transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0})),p.state("exit",p.style({transform:"translate3d(0, 25%, 0)",opacity:0})),p.transition("* => *",p.animate("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])],host:{class:"mat-dialog-container","[attr.role]":"_config?.role","[attr.aria-labelledby]":"_ariaLabelledBy","[@slideDialog]":"_state","(@slideDialog.done)":"_onAnimationDone($event)"}}]}],vo.ctorParameters=function(){return[{type:e.NgZone},{type:e.ElementRef},{type:n.FocusTrapFactory},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r.DOCUMENT]}]}]},vo.propDecorators={_portalHost:[{type:e.ViewChild,args:[n.PortalHostDirective]}]};var bo=new e.InjectionToken("MdDialogData"),_o=function(){function t(t,e,n,r){var i=this;this._overlay=t,this._injector=e,this._location=n,this._parentDialog=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new o.Subject,this._afterOpenAtThisLevel=new o.Subject,this._boundKeydown=this._handleKeydown.bind(this),this.afterOpen=this._afterOpen.asObservable(),this.afterAllClosed=this._afterAllClosed.asObservable(),!r&&n&&n.subscribe(function(){return i.closeAll()})}return Object.defineProperty(t.prototype,"_openDialogs",{get:function(){return this._parentDialog?this._parentDialog._openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterOpen",{get:function(){return this._parentDialog?this._parentDialog._afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){return this._parentDialog?this._parentDialog._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;e=lt(e);var r=this._createOverlay(e),i=this._attachDialogContainer(r,e),o=this._attachDialogContent(t,i,r,e);return this._openDialogs.length||document.addEventListener("keydown",this._boundKeydown),this._openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this._afterOpen.next(o),o},t.prototype.closeAll=function(){for(var t=this._openDialogs.length;t--;)this._openDialogs[t].close()},t.prototype._createOverlay=function(t){var e=this._getOverlayState(t);return this._overlay.create(e)},t.prototype._getOverlayState=function(t){var e=new oe;return e.panelClass=t.panelClass,e.hasBackdrop=t.hasBackdrop,e.scrollStrategy=this._overlay.scrollStrategies.block(),e.direction=t.direction,t.backdropClass&&(e.backdropClass=t.backdropClass),e.positionStrategy=this._overlay.position().global(),e},t.prototype._attachDialogContainer=function(t,e){var r=new n.ComponentPortal(vo,e.viewContainerRef),i=t.attach(r);return i.instance._config=e,i.instance},t.prototype._attachDialogContent=function(t,r,i,o){var s=new go(i,r);if(o.hasBackdrop&&i.backdropClick().subscribe(function(){s.disableClose||s.close()}),t instanceof e.TemplateRef)r.attachTemplatePortal(new n.TemplatePortal(t,null));else{var a=this._createInjector(o,s,r),u=r.attachComponentPortal(new n.ComponentPortal(t,void 0,a));s.componentInstance=u.instance}return s.updateSize(o.width,o.height).updatePosition(o.position),s},t.prototype._createInjector=function(t,e,n){var r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=new WeakMap;return i.set(go,e),i.set(vo,n),i.set(bo,t.data),new mo(r||this._injector,i)},t.prototype._removeOpenDialog=function(t){var e=this._openDialogs.indexOf(t);e>-1&&(this._openDialogs.splice(e,1),this._openDialogs.length||(this._afterAllClosed.next(),document.removeEventListener("keydown",this._boundKeydown)))},t.prototype._handleKeydown=function(t){var e=this._openDialogs[this._openDialogs.length-1],r=!!e&&!e.disableClose;t.keyCode===n.ESCAPE&&r&&e.close()},t}();_o.decorators=[{type:e.Injectable}],_o.ctorParameters=function(){return[{type:ge},{type:e.Injector},{type:i.Location,decorators:[{type:e.Optional}]},{type:_o,decorators:[{type:e.Optional},{type:e.SkipSelf}]}]};var wo=0,Co=function(){function t(t){this.dialogRef=t,this.ariaLabel="Close dialog"}return Object.defineProperty(t.prototype,"_matDialogClose",{set:function(t){this.dialogResult=t},enumerable:!0,configurable:!0}),t}();Co.decorators=[{type:e.Directive,args:[{selector:"button[md-dialog-close], button[mat-dialog-close],button[mdDialogClose], button[matDialogClose]",host:{"(click)":"dialogRef.close(dialogResult)","[attr.aria-label]":"ariaLabel",type:"button"}}]}],Co.ctorParameters=function(){return[{type:go}]},Co.propDecorators={ariaLabel:[{type:e.Input,args:["aria-label"]}],dialogResult:[{type:e.Input,args:["md-dialog-close"]}],_matDialogClose:[{type:e.Input,args:["mat-dialog-close"]}]};var Eo=function(){function t(t){this._container=t,this.id="md-dialog-title-"+wo++}return t.prototype.ngOnInit=function(){var t=this;this._container&&!this._container._ariaLabelledBy&&Promise.resolve().then(function(){return t._container._ariaLabelledBy=t.id})},t}();Eo.decorators=[{type:e.Directive,args:[{selector:"[md-dialog-title], [mat-dialog-title], [mdDialogTitle], [matDialogTitle]",host:{class:"mat-dialog-title","[id]":"id"}}]}],Eo.ctorParameters=function(){return[{type:vo,decorators:[{type:e.Optional}]}]},Eo.propDecorators={id:[{type:e.Input}]};var xo=function(){function t(){}return t}();xo.decorators=[{type:e.Directive,args:[{selector:"[md-dialog-content], md-dialog-content, [mat-dialog-content], mat-dialog-content,[mdDialogContent], [matDialogContent]",host:{class:"mat-dialog-content"}}]}],xo.ctorParameters=function(){return[]};var So=function(){function t(){}return t}();So.decorators=[{type:e.Directive,args:[{selector:"[md-dialog-actions], md-dialog-actions, [mat-dialog-actions], mat-dialog-actions,[mdDialogActions], [matDialogActions]",host:{class:"mat-dialog-actions"}}]}],So.ctorParameters=function(){return[]};var Po=function(){function t(){}return t}();Po.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,Ee,n.PortalModule,n.A11yModule,Pt],exports:[vo,Co,Eo,xo,So,Pt],declarations:[vo,Co,Eo,So,xo],providers:[_o],entryComponents:[vo]}]}],Po.ctorParameters=function(){return[]};var Oo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e.prototype.setActiveItem=function(e){var n=this;Promise.resolve().then(function(){n.activeItem&&n.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(n,e),n.activeItem&&n.activeItem.setActiveStyles()})},e}(n.ListKeyManager),ko=0,To=function(){function t(t){this._changeDetectorRef=t,this.positionY="below",this.showPanel=!1,this.displayWith=null,this.id="md-autocomplete-"+ko++}return t.prototype.ngAfterContentInit=function(){this._keyManager=new Oo(this.options).withWrap()},t.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},t.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},t.prototype._setVisibility=function(){var t=this;Promise.resolve().then(function(){t.showPanel=!!t.options.length,t._changeDetectorRef.markForCheck()})},t.prototype._getClassList=function(){return{"mat-autocomplete-panel-below":"below"===this.positionY,"mat-autocomplete-panel-above":"above"===this.positionY,"mat-autocomplete-visible":this.showPanel,"mat-autocomplete-hidden":!this.showPanel}},t}();To.decorators=[{type:e.Component,args:[{selector:"md-autocomplete, mat-autocomplete",template:'<ng-template><div class="mat-autocomplete-panel" role="listbox" [id]="id" [ngClass]="_getClassList()" #panel><ng-content></ng-content></div></ng-template>',styles:[".mat-autocomplete-panel{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative}.mat-autocomplete-panel.mat-autocomplete-panel-below{top:6px}.mat-autocomplete-panel.mat-autocomplete-panel-above{top:-24px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}"],encapsulation:e.ViewEncapsulation.None,exportAs:"mdAutocomplete",host:{class:"mat-autocomplete"}}]}],To.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]},To.propDecorators={template:[{type:e.ViewChild,args:[e.TemplateRef]}],panel:[{type:e.ViewChild,args:["panel"]}],options:[{type:e.ContentChildren,args:[re]}],displayWith:[{type:e.Input}]};var Ao={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return Mo}),multi:!0},Mo=function(){function t(t,e,n,r,i,o,s,a){this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=r,this._changeDetectorRef=i,this._dir=o,this._inputContainer=s,this._document=a,this._panelOpen=!1,this._manuallyFloatingPlaceholder=!1,this._onChange=function(){},this._onTouched=function(){}}return Object.defineProperty(t.prototype,"_matAutocomplete",{get:function(){return this.autocomplete},set:function(t){this.autocomplete=t},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._panelPositionSubscription&&this._panelPositionSubscription.unsubscribe(),this._destroyPanel()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._panelOpen&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){if(!this.autocomplete)throw pt();this._overlayRef?(this._overlayRef.getState().width=this._getHostWidth(),this._overlayRef.updateSize()):this._createOverlay(),this._overlayRef&&!this._overlayRef.hasAttached()&&(this._overlayRef.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions()),this.autocomplete._setVisibility(),this._floatPlaceholder(),this._panelOpen=!0},t.prototype.closePanel=function(){this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._panelOpen=!1,this._resetPlaceholder(),this._changeDetectorRef.detectChanges()},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){return u.merge(this.optionSelections,this.autocomplete._keyManager.tabOut,this._outsideClickStream)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionSelections",{get:function(){return u.merge.apply(void 0,this.autocomplete.options.map(function(t){return t.onSelectionChange}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_outsideClickStream",{get:function(){var t=this;return this._document?n.RxChain.from(u.merge(a.fromEvent(this._document,"click"),a.fromEvent(this._document,"touchend"))).call(n.filter,function(e){var n=e.target,r=t._inputContainer?t._inputContainer._elementRef.nativeElement:null;return t._panelOpen&&n!==t._element.nativeElement&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}).result():c.of(null)},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype._handleKeydown=function(t){var e=this;if(t.keyCode===n.ESCAPE&&this.panelOpen)this.closePanel();else if(this.activeOption&&t.keyCode===n.ENTER)this.activeOption._selectViaInteraction(),t.preventDefault();else{var r=this.autocomplete._keyManager.activeItem,i=t.keyCode===n.UP_ARROW||t.keyCode===n.DOWN_ARROW;this.autocomplete._keyManager.onKeydown(t),i&&this.openPanel(),Promise.resolve().then(function(){(i||e.autocomplete._keyManager.activeItem!==r)&&e._scrollToOption()})}},t.prototype._handleInput=function(t){document.activeElement===t.target&&(this._onChange(t.target.value),this.openPanel())},t.prototype._floatPlaceholder=function(){this._inputContainer&&"auto"===this._inputContainer.floatPlaceholder&&(this._inputContainer.floatPlaceholder="always",this._manuallyFloatingPlaceholder=!0)},t.prototype._resetPlaceholder=function(){this._manuallyFloatingPlaceholder&&(this._inputContainer.floatPlaceholder="auto",this._manuallyFloatingPlaceholder=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex?48*this.autocomplete._keyManager.activeItemIndex:0,e=this.autocomplete._getScrollTop();if(t<e)this.autocomplete._setScrollTop(t);else if(t+48>e+256){var n=Math.max(0,t-256+48);this.autocomplete._setScrollTop(n)}},t.prototype._subscribeToClosingActions=function(){var t=this;return n.RxChain.from(u.merge(n.first.call(this._zone.onStable),this.autocomplete.options.changes)).call(n.switchMap,function(){return t._resetPanel(),t.panelClosingActions}).call(n.first).subscribe(function(e){return t._setValueAndClose(e)})},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete.displayWith?this.autocomplete.displayWith(t):t;this._element.nativeElement.value=null!=e?e:""},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus()),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach(function(e){e!=t&&e.selected&&e.deselect()})},t.prototype._createOverlay=function(){this._portal=new n.TemplatePortal(this.autocomplete.template,this._viewContainerRef),this._overlayRef=this._overlay.create(this._getOverlayConfig())},t.prototype._getOverlayConfig=function(){var t=new oe;return t.positionStrategy=this._getOverlayPosition(),t.width=this._getHostWidth(),t.direction=this._dir?this._dir.value:"ltr",t.scrollStrategy=this._overlay.scrollStrategies.reposition(),t},t.prototype._getOverlayPosition=function(){return this._positionStrategy=this._overlay.position().connectedTo(this._element,{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}),this._subscribeToPositionChanges(this._positionStrategy),this._positionStrategy},t.prototype._subscribeToPositionChanges=function(t){var e=this;this._panelPositionSubscription=t.onPositionChange.subscribe(function(t){e.autocomplete.positionY="top"===t.connectionPair.originY?"above":"below"})},t.prototype._getHostWidth=function(){return this._element.nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(-1)},t.prototype._resetPanel=function(){this._resetActiveItem(),this._positionStrategy.recalculateLastPosition(),this.autocomplete._setVisibility()},t}();Mo.decorators=[{type:e.Directive,args:[{selector:"input[mdAutocomplete], input[matAutocomplete],textarea[mdAutocomplete], textarea[matAutocomplete]",host:{role:"combobox",autocomplete:"off","aria-autocomplete":"list","aria-multiline":"false","[attr.aria-activedescendant]":"activeOption?.id","[attr.aria-expanded]":"panelOpen.toString()","[attr.aria-owns]":"autocomplete?.id","(focusin)":"openPanel()","(input)":"_handleInput($event)","(blur)":"_onTouched()","(keydown)":"_handleKeydown($event)"},providers:[Ao]}]}],Mo.ctorParameters=function(){return[{type:e.ElementRef},{type:ge},{type:e.ViewContainerRef},{type:e.NgZone},{type:e.ChangeDetectorRef},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:Si,decorators:[{type:e.Optional},{type:e.Host}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r.DOCUMENT]}]}]},Mo.propDecorators={autocomplete:[{type:e.Input,args:["mdAutocomplete"]}],_matAutocomplete:[{type:e.Input,args:["matAutocomplete"]}]};var Ro=function(){function t(){}return t}();Ro.decorators=[{type:e.NgModule,args:[{imports:[ie,Ee,Pt,i.CommonModule],exports:[To,ie,Mo,Pt],declarations:[To,Mo]}]}],Ro.ctorParameters=function(){return[]};var Io=function(){function t(t,e,n,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=r}return t}(),Do=function(){function t(){this.numCols=7,this.allowDisabledSelection=!1,this.activeCell=0,this.selectedValueChange=new e.EventEmitter}return t.prototype._cellClicked=function(t){(this.allowDisabledSelection||t.enabled)&&this.selectedValueChange.emit(t.value)},Object.defineProperty(t.prototype,"_firstRowOffset",{get:function(){return this.rows&&this.rows.length&&this.rows[0].length?this.numCols-this.rows[0].length:0},enumerable:!0,configurable:!0}),t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t}();Do.decorators=[{type:e.Component,args:[{selector:"[md-calendar-body]",template:'<tr *ngIf="_firstRowOffset < labelMinRequiredCells" aria-hidden="true"><td class="mat-calendar-body-label" [attr.colspan]="numCols">{{label}}</td></tr><tr *ngFor="let row of rows; let rowIndex = index" role="row"><td *ngIf="rowIndex === 0 && _firstRowOffset" aria-hidden="true" class="mat-calendar-body-label" [attr.colspan]="_firstRowOffset">{{_firstRowOffset >= labelMinRequiredCells ? label : \'\'}}</td><td *ngFor="let item of row; let colIndex = index" role="gridcell" class="mat-calendar-body-cell" [tabindex]="_isActiveCell(rowIndex, colIndex) ? 0 : -1" [class.mat-calendar-body-disabled]="!item.enabled" [class.mat-calendar-body-active]="_isActiveCell(rowIndex, colIndex)" [attr.aria-label]="item.ariaLabel" [attr.aria-disabled]="!item.enabled || null" (click)="_cellClicked(item)"><div class="mat-calendar-body-cell-content" [class.mat-calendar-body-selected]="selectedValue === item.value" [class.mat-calendar-body-today]="todayValue === item.value">{{item.displayValue}}</div></td></tr>',styles:[".mat-calendar-body{min-width:224px}.mat-calendar-body-label{padding:7.14286% 0 7.14286% 7.14286%;height:0;line-height:0;transform:translateX(-6px);text-align:left}.mat-calendar-body-cell{position:relative;width:14.28571%;height:0;line-height:0;padding:7.14286% 0;text-align:center;outline:0;cursor:pointer}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;border-width:1px;border-style:solid;border-radius:50%}[dir=rtl] .mat-calendar-body-label{padding:0 7.14286% 0 0;transform:translateX(6px);text-align:right}"],host:{class:"mat-calendar-body"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Do.ctorParameters=function(){return[]},Do.propDecorators={label:[{type:e.Input}],rows:[{type:e.Input}],todayValue:[{type:e.Input}],selectedValue:[{type:e.Input}],labelMinRequiredCells:[{type:e.Input}],numCols:[{type:e.Input}],allowDisabledSelection:[{type:e.Input}],activeCell:[{type:e.Input}],selectedValueChange:[{type:e.Output}]};var No=function(){function t(t,n){if(this._dateAdapter=t,this._dateFormats=n,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw ht("DateAdapter");if(!this._dateFormats)throw ht("MD_DATE_FORMATS");var r=this._dateAdapter.getFirstDayOfWeek(),i=this._dateAdapter.getDayOfWeekNames("narrow"),o=this._dateAdapter.getDayOfWeekNames("long").map(function(t,e){return{long:t,narrow:i[e]}});this._weekdays=o.slice(r).concat(o.slice(0,r)),this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=t||this._dateAdapter.today(),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this._selectedDate=this._getDateInCurrentMonth(this.selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){this._selectedDate!=t&&this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),t))},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._createWeekCells()},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,r=this._firstWeekOffset;n<t;n++,r++){7==r&&(this._weeks.push([]),r=0);var i=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),n+1),o=!this.dateFilter||this.dateFilter(i),s=this._dateAdapter.format(i,this._dateFormats.display.dateA11yLabel);this._weeks[this._weeks.length-1].push(new Io(n+1,e[n],s,o))}},t.prototype._getDateInCurrentMonth=function(t){return this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t}();No.decorators=[{type:e.Component,args:[{selector:"md-month-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th *ngFor="let day of _weekdays" [attr.aria-label]="day.long">{{day.narrow}}</th></tr><tr><th class="mat-calendar-table-header-divider" colspan="7" aria-hidden="true"></th></tr></thead><tbody md-calendar-body role="grid" [label]="_monthLabel" [rows]="_weeks" [todayValue]="_todayDate" [selectedValue]="_selectedDate" [labelMinRequiredCells]="3" [activeCell]="_dateAdapter.getDate(activeDate) - 1" (selectedValueChange)="_dateSelected($event)"></tbody></table>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],No.ctorParameters=function(){return[{type:Ne,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ue]}]}]},No.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]};var jo=function(){function t(t,n){if(this._dateAdapter=t,this._dateFormats=n,this.selectedChange=new e.EventEmitter,!this._dateAdapter)throw ht("DateAdapter");if(!this._dateFormats)throw ht("MD_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate;this._activeDate=t||this._dateAdapter.today(),this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(this._activeDate)&&this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this._selectedMonth=this._getMonthInCurrentYear(this.selected)},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._monthSelected=function(t){this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,this._dateAdapter.getDate(this.activeDate)))},t.prototype._init=function(){var t=this;this._selectedMonth=this._getMonthInCurrentYear(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);var e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3,4],[5,6,7,8,9,10,11]].map(function(n){return n.map(function(n){return t._createCellForMonth(n,e[n])})})},t.prototype._getMonthInCurrentYear=function(t){return t&&this._dateAdapter.getYear(t)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(t):null},t.prototype._createCellForMonth=function(t,e){var n=this._dateAdapter.format(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1),this._dateFormats.display.monthYearA11yLabel);return new Io(t,e.toLocaleUpperCase(),n,this._isMonthEnabled(t))},t.prototype._isMonthEnabled=function(t){if(!this.dateFilter)return!0;for(var e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this._dateAdapter.getMonth(e)==t;e=this._dateAdapter.addCalendarDays(e,1))if(this.dateFilter(e))return!0;return!1},t}();jo.decorators=[{type:e.Component,args:[{selector:"md-year-view",template:'<table class="mat-calendar-table"><thead class="mat-calendar-table-header"><tr><th class="mat-calendar-table-header-divider" colspan="7"></th></tr></thead><tbody md-calendar-body role="grid" allowDisabledSelection="true" [label]="_yearLabel" [rows]="_months" [todayValue]="_todayMonth" [selectedValue]="_selectedMonth" [labelMinRequiredCells]="2" [activeCell]="_dateAdapter.getMonth(activeDate)" (selectedValueChange)="_monthSelected($event)"></tbody></table>',encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],jo.ctorParameters=function(){return[{type:Ne,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ue]}]}]},jo.propDecorators={activeDate:[{type:e.Input}],selected:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]};var Lo=function(){function t(){this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.switchToMonthViewLabel="Change to month view",this.switchToYearViewLabel="Change to year view"}return t}();Lo.decorators=[{type:e.Injectable}],Lo.ctorParameters=function(){return[]};var Fo=function(){function t(t,n,r,i,o,s){var a=this;if(this._elementRef=t,this._intl=n,this._ngZone=r,this._isCompatibilityMode=i,this._dateAdapter=o,this._dateFormats=s,this.startView="month",this.selectedChange=new e.EventEmitter,this._dateFilterForViews=function(t){return!!t&&(!a.dateFilter||a.dateFilter(t))&&(!a.minDate||a._dateAdapter.compareDate(t,a.minDate)>=0)&&(!a.maxDate||a._dateAdapter.compareDate(t,a.maxDate)<=0)},!this._dateAdapter)throw ht("DateAdapter");if(!this._dateFormats)throw ht("MD_DATE_FORMATS")}return Object.defineProperty(t.prototype,"_activeDate",{get:function(){return this._clampedActiveDate},set:function(t){this._clampedActiveDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonText",{get:function(){return this._monthView?this._dateAdapter.format(this._activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this._dateAdapter.getYearName(this._activeDate)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_periodButtonLabel",{get:function(){return this._monthView?this._intl.switchToYearViewLabel:this._intl.switchToMonthViewLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_prevButtonLabel",{get:function(){return this._monthView?this._intl.prevMonthLabel:this._intl.prevYearLabel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_nextButtonLabel",{get:function(){return this._monthView?this._intl.nextMonthLabel:this._intl.nextYearLabel},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._activeDate=this.startAt||this._dateAdapter.today(),this._focusActiveCell(),this._monthView="year"!=this.startView},t.prototype._dateSelected=function(t){this._dateAdapter.sameDate(t,this.selected)||this.selectedChange.emit(t)},t.prototype._monthSelected=function(t){this._activeDate=t,this._monthView=!0},t.prototype._currentPeriodClicked=function(){this._monthView=!this._monthView},t.prototype._previousClicked=function(){this._activeDate=this._monthView?this._dateAdapter.addCalendarMonths(this._activeDate,-1):this._dateAdapter.addCalendarYears(this._activeDate,-1)},t.prototype._nextClicked=function(){this._activeDate=this._monthView?this._dateAdapter.addCalendarMonths(this._activeDate,1):this._dateAdapter.addCalendarYears(this._activeDate,1)},t.prototype._previousEnabled=function(){return!this.minDate||(!this.minDate||!this._isSameView(this._activeDate,this.minDate))},t.prototype._nextEnabled=function(){return!this.maxDate||!this._isSameView(this._activeDate,this.maxDate)},t.prototype._handleCalendarBodyKeydown=function(t){this._monthView?this._handleCalendarBodyKeydownInMonthView(t):this._handleCalendarBodyKeydownInYearView(t)},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular(function(){return n.first.call(t._ngZone.onStable).subscribe(function(){t._elementRef.nativeElement.querySelector(".mat-calendar-body-active").focus()})})},t.prototype._isSameView=function(t,e){return this._monthView?this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)&&this._dateAdapter.getMonth(t)==this._dateAdapter.getMonth(e):this._dateAdapter.getYear(t)==this._dateAdapter.getYear(e)},t.prototype._handleCalendarBodyKeydownInMonthView=function(t){switch(t.keyCode){case n.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-1);break;case n.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1);break;case n.UP_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case n.DOWN_ARROW:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case n.HOME:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case n.END:this._activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case n.PAGE_UP:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case n.PAGE_DOWN:this._activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case n.ENTER:return void(this._dateFilterForViews(this._activeDate)&&(this._dateSelected(this._activeDate),t.preventDefault()));default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._handleCalendarBodyKeydownInYearView=function(t){switch(t.keyCode){case n.LEFT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case n.RIGHT_ARROW:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case n.UP_ARROW:this._activeDate=this._prevMonthInSameCol(this._activeDate);break;case n.DOWN_ARROW:this._activeDate=this._nextMonthInSameCol(this._activeDate);break;case n.HOME:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case n.END:this._activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case n.PAGE_UP:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-10:-1);break;case n.PAGE_DOWN:this._activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?10:1);break;case n.ENTER:this._monthSelected(this._activeDate);break;default:return}this._focusActiveCell(),t.preventDefault()},t.prototype._prevMonthInSameCol=function(t){var e=this._dateAdapter.getMonth(t)<=4?-5:this._dateAdapter.getMonth(t)>=7?-7:-12;return this._dateAdapter.addCalendarMonths(t,e)},t.prototype._nextMonthInSameCol=function(t){var e=this._dateAdapter.getMonth(t)<=4?7:this._dateAdapter.getMonth(t)>=7?5:12;return this._dateAdapter.addCalendarMonths(t,e)},t}();Fo.decorators=[{type:e.Component,args:[{selector:"md-calendar",template:'<div class="mat-calendar-header"><div class="mat-calendar-controls"><button *ngIf="!_isCompatibilityMode" md-button class="mat-calendar-period-button" (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel">{{_periodButtonText}}<div class="mat-calendar-arrow" [class.mat-calendar-invert]="!_monthView"></div></button> <button *ngIf="_isCompatibilityMode" mat-button class="mat-calendar-period-button" (click)="_currentPeriodClicked()" [attr.aria-label]="_periodButtonLabel">{{_periodButtonText}}<div class="mat-calendar-arrow" [class.mat-calendar-invert]="!_monthView"></div></button><div class="mat-calendar-spacer"></div><button *ngIf="!_isCompatibilityMode" md-icon-button class="mat-calendar-previous-button" [disabled]="!_previousEnabled()" (click)="_previousClicked()" [attr.aria-label]="_prevButtonLabel"></button> <button *ngIf="_isCompatibilityMode" mat-icon-button class="mat-calendar-previous-button" [disabled]="!_previousEnabled()" (click)="_previousClicked()" [attr.aria-label]="_prevButtonLabel"></button> <button *ngIf="!_isCompatibilityMode" md-icon-button class="mat-calendar-next-button" [disabled]="!_nextEnabled()" (click)="_nextClicked()" [attr.aria-label]="_nextButtonLabel"></button> <button *ngIf="_isCompatibilityMode" mat-icon-button class="mat-calendar-next-button" [disabled]="!_nextEnabled()" (click)="_nextClicked()" [attr.aria-label]="_nextButtonLabel"></button></div></div><div class="mat-calendar-content" (keydown)="_handleCalendarBodyKeydown($event)" [ngSwitch]="_monthView" cdkMonitorSubtreeFocus><md-month-view *ngSwitchCase="true" [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_dateSelected($event)"></md-month-view><md-year-view *ngSwitchDefault [activeDate]="_activeDate" [selected]="selected" [dateFilter]="_dateFilterForViews" (selectedChange)="_monthSelected($event)"></md-year-view></div>',styles:[".mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:0}.mat-calendar-controls{display:flex;padding:5% calc(100% / 14 - 22px) 5% calc(100% / 14 - 22px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top-width:5px;border-top-style:solid;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.mat-calendar-next-button,.mat-calendar-previous-button{position:relative}.mat-calendar-next-button::after,.mat-calendar-previous-button::after{content:'';position:absolute;top:0;left:0;bottom:0;right:0;margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-next-button,[dir=rtl] .mat-calendar-previous-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:'';position:absolute;top:0;left:-8px;right:-8px;height:1px}"],host:{class:"mat-calendar"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Fo.ctorParameters=function(){return[{type:e.ElementRef},{type:Lo},{type:e.NgZone},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[vt]}]},{type:Ne,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ue]}]}]},Fo.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],selected:[{type:e.Input}],minDate:[{type:e.Input}],maxDate:[{type:e.Input}],dateFilter:[{type:e.Input}],selectedChange:[{type:e.Output}]};var Vo=0,Bo=function(){function t(){}return t.prototype.ngAfterContentInit=function(){this._calendar._focusActiveCell()},t.prototype._handleKeydown=function(t){t.keyCode===n.ESCAPE&&(this.datepicker.close(),t.preventDefault())},t}();Bo.decorators=[{type:e.Component,args:[{selector:"md-datepicker-content",template:'<md-calendar cdkTrapFocus [id]="datepicker.id" [startAt]="datepicker.startAt" [startView]="datepicker.startView" [minDate]="datepicker._minDate" [maxDate]="datepicker._maxDate" [dateFilter]="datepicker._dateFilter" [selected]="datepicker._selected" (selectedChange)="datepicker._selectAndClose($event)"></md-calendar>',styles:[".mat-datepicker-content{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);display:block}.mat-calendar{width:296px}.mat-datepicker-content-touch{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12);display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{width:64vmin;height:80vmin;min-width:250px;min-height:312px;max-width:750px;max-height:788px}"],host:{class:"mat-datepicker-content","[class.mat-datepicker-content-touch]":"datepicker.touchUi","(keydown)":"_handleKeydown($event)"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Bo.ctorParameters=function(){return[]},Bo.propDecorators={_calendar:[{type:e.ViewChild,args:[Fo]}]};var Uo=function(){function t(t,n,r,i,o,s,a){if(this._dialog=t,this._overlay=n,this._ngZone=r,this._viewContainerRef=i,this._dateAdapter=o,this._dir=s,this._document=a,this.startView="month",this.touchUi=!1,this.selectedChanged=new e.EventEmitter,this.opened=!1,this.id="md-datepicker-"+Vo++,this._selected=null,this._focusedElementBeforeOpen=null,!this._dateAdapter)throw ht("DateAdapter")}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.close(),this._popupRef&&this._popupRef.dispose(),this._inputSubscription&&this._inputSubscription.unsubscribe()},t.prototype._selectAndClose=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this.selectedChanged.emit(t),this.close()},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("An MdDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe(function(t){return e._selected=t})},t.prototype.open=function(){if(!this.opened){if(!this._datepickerInput)throw Error("Attempted to open an MdDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this.opened=!0}},t.prototype.close=function(){this.opened&&(this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach(),this._focusedElementBeforeOpen&&"focus"in this._focusedElementBeforeOpen&&(this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null),this.opened=!1)},t.prototype._openAsDialog=function(){var t=this;this._dialogRef=this._dialog.open(Bo,{viewContainerRef:this._viewContainerRef,direction:this._dir?this._dir.value:"ltr"}),this._dialogRef.afterClosed().subscribe(function(){return t.close()}),this._dialogRef.componentInstance.datepicker=this},t.prototype._openAsPopup=function(){var t=this;this._calendarPortal||(this._calendarPortal=new n.ComponentPortal(Bo,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupRef.attach(this._calendarPortal).instance.datepicker=this,n.first.call(this._ngZone.onStable).subscribe(function(){return t._popupRef.updatePosition()})),this._popupRef.backdropClick().subscribe(function(){return t.close()})},t.prototype._createPopup=function(){var t=new oe;t.positionStrategy=this._createPopupPositionStrategy(),t.hasBackdrop=!0,t.backdropClass="md-overlay-transparent-backdrop",t.direction=this._dir?this._dir.value:"ltr",t.scrollStrategy=this._overlay.scrollStrategies.reposition(),this._popupRef=this._overlay.create(t)},t.prototype._createPopupPositionStrategy=function(){return this._overlay.position().connectedTo(this._datepickerInput.getPopupConnectionElementRef(),{originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}).withFallbackPosition({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"}).withFallbackPosition({originX:"end",originY:"bottom"},{overlayX:"end",overlayY:"top"}).withFallbackPosition({originX:"end",originY:"top"},{overlayX:"end",overlayY:"bottom"})},t}();Uo.decorators=[{type:e.Component,args:[{selector:"md-datepicker, mat-datepicker",template:""}]}],Uo.ctorParameters=function(){return[{type:_o},{type:ge},{type:e.NgZone},{type:e.ViewContainerRef},{type:Ne,decorators:[{type:e.Optional}]},{type:n.Directionality,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[r.DOCUMENT]}]}]},Uo.propDecorators={startAt:[{type:e.Input}],startView:[{type:e.Input}],touchUi:[{type:e.Input}],selectedChanged:[{type:e.Output}]};var Ho={provide:l.NG_VALUE_ACCESSOR,useExisting:e.forwardRef(function(){return qo}),multi:!0},zo={provide:l.NG_VALIDATORS,useExisting:e.forwardRef(function(){return qo}),multi:!0},qo=function(){function t(t,n,r,i,o){var s=this;if(this._elementRef=t,this._renderer=n,this._dateAdapter=r,this._dateFormats=i,this._mdInputContainer=o,this._valueChange=new e.EventEmitter,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._minValidator=function(t){return!s.min||!t.value||s._dateAdapter.compareDate(s.min,t.value)<=0?null:{mdDatepickerMin:{min:s.min,actual:t.value}}},this._maxValidator=function(t){return!s.max||!t.value||s._dateAdapter.compareDate(s.max,t.value)>=0?null:{mdDatepickerMax:{max:s.max,actual:t.value}}},this._filterValidator=function(t){return s._dateFilter&&t.value&&!s._dateFilter(t.value)?{mdDatepickerFilter:!0}:null},this._validator=l.Validators.compose([this._minValidator,this._maxValidator,this._filterValidator]),!this._dateAdapter)throw ht("DateAdapter");if(!this._dateFormats)throw ht("MD_DATE_FORMATS")}return Object.defineProperty(t.prototype,"mdDatepicker",{set:function(t){t&&(this._datepicker=t,this._datepicker._registerInput(this))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){this.mdDatepicker=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mdDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this.mdDatepickerFilter=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._dateAdapter.parse(this._elementRef.nativeElement.value,this._dateFormats.parse.dateInput)},set:function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput),n=this.value;this._renderer.setProperty(this._elementRef.nativeElement,"value",e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""),this._dateAdapter.sameDate(n,e)||this._valueChange.emit(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._datepicker&&(this._datepickerSubscription=this._datepicker.selectedChanged.subscribe(function(e){t.value=e,t._cvaOnChange(e)}))},t.prototype.ngOnDestroy=function(){this._datepickerSubscription&&this._datepickerSubscription.unsubscribe()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this._mdInputContainer?this._mdInputContainer.underlineRef:this._elementRef},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._onKeydown=function(t){t.altKey&&t.keyCode===n.DOWN_ARROW&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._cvaOnChange(e),this._valueChange.emit(e)},t}();qo.decorators=[{type:e.Directive,args:[{selector:"input[mdDatepicker], input[matDatepicker]",providers:[Ho,zo],host:{"[attr.aria-expanded]":'_datepicker?.opened || "false"',"[attr.aria-haspopup]":"true","[attr.aria-owns]":"_datepicker?.id","[attr.min]":"min ? _dateAdapter.getISODateString(min) : null","[attr.max]":"max ? _dateAdapter.getISODateString(max) : null","(input)":"_onInput($event.target.value)","(blur)":"_onTouched()","(keydown)":"_onKeydown($event)"}}]}],qo.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer2},{type:Ne,decorators:[{type:e.Optional}]},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Ue]}]},{type:Si,decorators:[{type:e.Optional}]}]},qo.propDecorators={mdDatepicker:[{type:e.Input}],matDatepicker:[{type:e.Input}],mdDatepickerFilter:[{type:e.Input}],matDatepickerFilter:[{type:e.Input}],value:[{type:e.Input}],min:[{type:e.Input}],max:[{type:e.Input}]};var Go=function(){function t(t){this._intl=t}return Object.defineProperty(t.prototype,"_datepicker",{get:function(){return this.datepicker},set:function(t){this.datepicker=t},enumerable:!0,configurable:!0}),t.prototype._open=function(t){this.datepicker&&(this.datepicker.open(),t.stopPropagation())},t}();Go.decorators=[{type:e.Component,args:[{selector:"button[mdDatepickerToggle], button[matDatepickerToggle]",template:"",styles:[".mat-datepicker-toggle{display:inline-block;background:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0iY3VycmVudENvbG9yIj48cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTE5IDNoLTFWMWgtMnYySDhWMUg2djJINWMtMS4xMSAwLTEuOTkuOS0xLjk5IDJMMyAxOWMwIDEuMS44OSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yem0wIDE2SDVWOGgxNHYxMXpNNyAxMGg1djVIN3oiLz48L3N2Zz4=) no-repeat;background-size:contain;height:24px;width:24px;border:none;outline:0;vertical-align:middle}.mat-datepicker-toggle:not([disabled]){cursor:pointer}"],host:{type:"button",class:"mat-datepicker-toggle","[attr.aria-label]":"_intl.openCalendarLabel","(click)":"_open($event)"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],Go.ctorParameters=function(){return[{type:Lo}]},Go.propDecorators={datepicker:[{type:e.Input,args:["mdDatepickerToggle"]}],_datepicker:[{type:e.Input,args:["matDatepickerToggle"]}]};var Wo=function(){function t(){}return t}();Wo.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,fn,Po,Ee,Re,n.A11yModule],exports:[Uo,Bo,qo,Go],declarations:[Fo,Do,Uo,Bo,qo,Go,No,jo],providers:[Lo],entryComponents:[Bo]}]}],Wo.ctorParameters=function(){return[]};var Ko=0,$o=function(){function t(){this.id="cdk-accordion-"+Ko++,this._multi=!1,this._hideToggle=!1,this.displayMode="default"}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t}();$o.decorators=[{type:e.Directive,args:[{selector:"[cdk-accordion]"}]}],$o.ctorParameters=function(){return[]},$o.propDecorators={multi:[{type:e.Input}],hideToggle:[{type:e.Input}],displayMode:[{type:e.Input}]};var Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}($o);Yo.decorators=[{type:e.Directive,args:[{selector:"mat-accordion, md-accordion",host:{class:"mat-accordion"}}]}],Yo.ctorParameters=function(){return[]};var Xo=0,Qo=function(){function t(t,n){var r=this;this.accordion=t,this._expansionDispatcher=n,this.closed=new e.EventEmitter,this.opened=new e.EventEmitter,this.destroyed=new e.EventEmitter,this.id="cdk-accordion-child-"+Xo++,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)})}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){if(this._expanded!==t)if(this._expanded=t,t){this.opened.emit();var e=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,e)}else this.closed.emit()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.destroyed.emit(),this._removeUniqueSelectionListener()},t.prototype.toggle=function(){this.expanded=!this.expanded},t.prototype.close=function(){this.expanded=!1},t.prototype.open=function(){this.expanded=!0},t}();Qo.decorators=[{type:e.Injectable}],Qo.ctorParameters=function(){return[{type:$o,decorators:[{type:e.Optional}]},{type:Oe}]},Qo.propDecorators={closed:[{type:e.Output}],opened:[{type:e.Output}],destroyed:[{type:e.Output}],expanded:[{type:e.Input}]};var Jo=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.hideToggle=!1,r.accordion=e,r}return y(e,t),e.prototype._getHideToggle=function(){return this.accordion?this.accordion.hideToggle:this.hideToggle},e.prototype._getDisplayMode=function(){return this.expanded&&this.accordion?this.accordion.displayMode:this._getExpandedState()},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e}(Qo);Jo.decorators=[{type:e.Component,args:[{styles:[".mat-expansion-panel{transition:box-shadow 280ms cubic-bezier(.4,0,.2,1);box-sizing:content-box;display:block}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-expansion-panel-content{overflow:hidden}.mat-expansion-panel-body{padding:0 24px 16px}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}"],selector:"md-expansion-panel, mat-expansion-panel",template:'<ng-content select="mat-expansion-panel-header, md-expansion-panel-header"></ng-content><div [class.mat-expanded]="expanded" class="mat-expansion-panel-content" [@bodyExpansion]="_getExpandedState()" [id]="id"><div class="mat-expansion-panel-body"><ng-content></ng-content></div><ng-content select="mat-action-row, md-action-row"></ng-content></div>',encapsulation:e.ViewEncapsulation.None,host:{class:"mat-expansion-panel","[class.mat-expanded]":"expanded","[@displayMode]":"_getDisplayMode()"},providers:[{provide:Qo,useExisting:e.forwardRef(function(){return Jo})}],animations:[p.trigger("bodyExpansion",[p.state("collapsed",p.style({height:"0px"})),p.state("expanded",p.style({height:"*"})),p.transition("expanded <=> collapsed",p.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),p.trigger("displayMode",[p.state("collapsed",p.style({margin:"0"})),p.state("default",p.style({margin:"16px 0"})),p.state("flat",p.style({margin:"0"})),p.transition("flat <=> collapsed, default <=> collapsed, flat <=> default",p.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])]}]}],Jo.ctorParameters=function(){return[{type:Yo,decorators:[{type:e.Optional},{type:e.Host}]},{type:Oe}]},Jo.propDecorators={hideToggle:[{type:e.Input}]};var Zo=function(){function t(){}return t}();Zo.decorators=[{type:e.Directive,args:[{selector:"mat-action-row, md-action-row",host:{class:"mat-action-row"}}]}],Zo.ctorParameters=function(){return[]};var ts=function(){function t(t){this.panel=t}return t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._getHideToggle=function(){return this.panel.hideToggle},t.prototype._keyup=function(t){switch(t.keyCode){case n.SPACE:case n.ENTER:t.preventDefault(),this._toggle();break;default:return}},t}();ts.decorators=[{type:e.Component,args:[{selector:"md-expansion-panel-header, mat-expansion-panel-header",styles:[".mat-expansion-panel-header{cursor:pointer;display:flex;flex-direction:row;height:48px;line-height:48px;padding:0 24px}.mat-expansion-panel-header.mat-expanded{height:64px;line-height:64px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-title{display:flex;flex-grow:1;font-size:15px;margin-right:16px}.mat-expansion-panel-header-description{display:flex;flex-grow:2;font-size:15px;margin-right:16px}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],template:'<span class="mat-content"><ng-content select="md-panel-title, mat-panel-title"></ng-content><ng-content select="md-panel-description, mat-panel-description"></ng-content><ng-content></ng-content></span><span [@indicatorRotate]="_getExpandedState()" *ngIf="!_getHideToggle()" class="mat-expansion-indicator"></span>',encapsulation:e.ViewEncapsulation.None,host:{class:"mat-expansion-panel-header",role:"button",tabindex:"0","[attr.aria-controls]":"_getPanelId()","[attr.aria-expanded]":"_isExpanded()","[class.mat-expanded]":"_isExpanded()","(click)":"_toggle()","(keyup)":"_keyup($event)","[@expansionHeight]":"_getExpandedState()"},animations:[p.trigger("indicatorRotate",[p.state("collapsed",p.style({transform:"rotate(0deg)"})),p.state("expanded",p.style({transform:"rotate(180deg)"})),p.transition("expanded <=> collapsed",p.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),p.trigger("expansionHeight",[p.state("collapsed",p.style({height:"48px","line-height":"48px"})),p.state("expanded",p.style({height:"64px","line-height":"68px"})),p.transition("expanded <=> collapsed",p.animate("225ms cubic-bezier(0.4,0.0,0.2,1)"))])]}]}],ts.ctorParameters=function(){return[{type:Jo,decorators:[{type:e.Host}]}]};var es=function(){function t(){}return t}();es.decorators=[{type:e.Directive,args:[{selector:"md-panel-description, mat-panel-description",host:{class:"mat-expansion-panel-header-description"}}]}],es.ctorParameters=function(){return[]};var ns=function(){function t(){}return t}();ns.decorators=[{type:e.Directive,args:[{selector:"md-panel-title, mat-panel-title",host:{class:"mat-expansion-panel-header-title"}}]}],ns.ctorParameters=function(){return[]};var rs=function(){function t(){}return t}();rs.decorators=[{type:e.NgModule,args:[{imports:[Et,i.CommonModule],exports:[$o,Yo,Jo,Zo,ts,ns,es],declarations:[$o,Yo,Jo,Zo,ts,ns,es],providers:[ke]}]}],rs.ctorParameters=function(){return[]};var is=n.CdkTable,os=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(is);os.decorators=[{type:e.Component,args:[{selector:"md-table, mat-table",template:n.CDK_TABLE_TEMPLATE,styles:[".mat-table{display:block}.mat-header-row,.mat-row{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;height:48px;padding:0 24px}.mat-cell,.mat-header-cell{flex:1}"],host:{class:"mat-table"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],os.ctorParameters=function(){return[]};var ss=n.CdkHeaderCell,as=n.CdkCell,us=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return r.addClass(n.nativeElement,"mat-column-"+e.name),i}return y(e,t),e}(ss);us.decorators=[{type:e.Directive,args:[{selector:"md-header-cell, mat-header-cell",host:{class:"mat-header-cell",role:"columnheader"}}]}],us.ctorParameters=function(){return[{type:n.CdkColumnDef},{type:e.ElementRef},{type:e.Renderer2}]};var cs=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return r.addClass(n.nativeElement,"mat-column-"+e.name),i}return y(e,t),e}(as);cs.decorators=[{type:e.Directive,args:[{selector:"md-cell, mat-cell",host:{class:"mat-cell",role:"gridcell"}}]}],cs.ctorParameters=function(){return[{type:n.CdkColumnDef},{type:e.ElementRef},{type:e.Renderer2}]};var ls=n.CdkHeaderRow,ps=n.CdkRow,hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(ls);hs.decorators=[{type:e.Component,args:[{selector:"md-header-row, mat-header-row",template:n.CDK_ROW_TEMPLATE,host:{class:"mat-header-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],hs.ctorParameters=function(){return[]};var ds=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y(e,t),e}(ps);ds.decorators=[{type:e.Component,args:[{selector:"md-row, mat-row",template:n.CDK_ROW_TEMPLATE,host:{class:"mat-row",role:"row"},changeDetection:e.ChangeDetectionStrategy.OnPush}]}],ds.ctorParameters=function(){return[]};var fs=function(){function t(){}return t}();fs.decorators=[{type:e.NgModule,args:[{imports:[n.CdkTableModule,i.CommonModule,Pt],exports:[os,us,cs,hs,ds],declarations:[os,us,cs,hs,ds]}]}],fs.ctorParameters=function(){return[]};var ms=function(){function t(){this.sortables=new Map,this.start="asc",this.direction="",this.mdSortChange=new e.EventEmitter}return Object.defineProperty(t.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),t.prototype.register=function(t){if(!t.id)throw mt();if(this.sortables.has(t.id))throw dt(t.id);this.sortables.set(t.id,t)},t.prototype.deregister=function(t){this.sortables.delete(t.id)},t.prototype.sort=function(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.mdSortChange.next({active:this.active,direction:this.direction})},t.prototype.getNextSortDirection=function(t){if(!t)return"";var e=null!=t.disableClear?t.disableClear:this.disableClear,n=yt(t.start||this.start,e),r=n.indexOf(this.direction)+1;return r>=n.length&&(r=0),n[r]},t}();ms.decorators=[{type:e.Directive,args:[{selector:"[mdSort], [matSort]"}]}],ms.ctorParameters=function(){return[]},ms.propDecorators={active:[{type:e.Input,args:["mdSortActive"]}],start:[{type:e.Input,args:["mdSortStart"]}],direction:[{type:e.Input,args:["mdSortDirection"]}],disableClear:[{type:e.Input,args:["mdSortDisableClear"]}],mdSortChange:[{type:e.Output}]};var ys=function(){function t(){this.sortButtonLabel=function(t){return"Change sorting for "+t},this.sortDescriptionLabel=function(t,e){return"Sorted by "+t+" "+("asc"==e?"ascending":"descending")}}return t}();ys.decorators=[{type:e.Injectable}],ys.ctorParameters=function(){return[]};var gs=function(){function t(t,e,n,r){if(this._intl=t,this._changeDetectorRef=e,this._sort=n,this._cdkColumnDef=r,this.arrowPosition="after",!n)throw ft();this.sortSubscription=n.mdSortChange.subscribe(function(){return e.markForCheck()})}return Object.defineProperty(t.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=n.coerceBooleanProperty(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_id",{get:function(){return this.id},set:function(t){this.id=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){!this.id&&this._cdkColumnDef&&(this.id=this._cdkColumnDef.name),this._sort.register(this)},t.prototype.ngOnDestroy=function(){this._sort.deregister(this),this.sortSubscription.unsubscribe()},t.prototype._isSorted=function(){return this._sort.active==this.id&&this._sort.direction},t}();gs.decorators=[{type:e.Component,args:[{selector:"[md-sort-header], [mat-sort-header]",template:'<div class="mat-sort-header-container" [class.mat-sort-header-position-before]="arrowPosition == \'before\'"><button class="mat-sort-header-button" type="button" [attr.aria-label]="_intl.sortButtonLabel(id)"><ng-content></ng-content></button><div *ngIf="_isSorted()" class="mat-sort-header-arrow" [class.mat-sort-header-asc]="_sort.direction == \'asc\'" [class.mat-sort-header-desc]="_sort.direction == \'desc\'"><div class="mat-sort-header-stem"></div><div class="mat-sort-header-pointer-left"></div><div class="mat-sort-header-pointer-right"></div></div></div><span class="cdk-visually-hidden" *ngIf="_isSorted()">{{_intl.sortDescriptionLabel(id, _sort.direction)}}</span>',styles:[".mat-sort-header-container{display:flex;cursor:pointer}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:pointer;outline:0;font:inherit;color:currentColor}.mat-sort-header-arrow{display:none;height:10px;width:10px;position:relative;margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-asc{display:block;transform:rotate(45deg)}.mat-sort-header-desc{display:block;transform:rotate(225deg);top:2px}.mat-sort-header-stem{background:currentColor;transform:rotate(135deg);height:10px;width:2px;margin:auto}.mat-sort-header-pointer-left{background:currentColor;width:2px;height:8px;position:absolute;bottom:0;right:0}.mat-sort-header-pointer-right{background:currentColor;width:8px;height:2px;position:absolute;bottom:0;right:0}"],host:{"(click)":"_sort.sort(this)","[class.mat-sort-header-sorted]":"_isSorted()"},encapsulation:e.ViewEncapsulation.None,changeDetection:e.ChangeDetectionStrategy.OnPush}]}],gs.ctorParameters=function(){return[{type:ys},{type:e.ChangeDetectorRef},{type:ms,decorators:[{type:e.Optional}]},{type:n.CdkColumnDef,decorators:[{type:e.Optional}]}]},gs.propDecorators={id:[{type:e.Input,args:["md-sort-header"]}],arrowPosition:[{type:e.Input}],start:[{type:e.Input,args:["start"]}],disableClear:[{type:e.Input}],_id:[{type:e.Input,args:["mat-sort-header"]}]};var vs=function(){function t(){}return t}();vs.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule],exports:[ms,gs],declarations:[ms,gs],providers:[ys]}]}],vs.ctorParameters=function(){return[]};var bs=function(){function t(){this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var r=t*e;return r+1+" - "+(r<(n=Math.max(n,0))?Math.min(r+e,n):r+e)+" of "+n}}return t}();bs.decorators=[{type:e.Injectable}],bs.ctorParameters=function(){return[]};var _s=function(){function t(){}return t}(),ws=function(){function t(t){this._intl=t,this.pageIndex=0,this.length=0,this._pageSize=50,this._pageSizeOptions=[],this.page=new e.EventEmitter}return Object.defineProperty(t.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=t,this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=t,this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions()},t.prototype.nextPage=function(){this.hasNextPage()&&(this.pageIndex++,this._emitPageEvent())},t.prototype.previousPage=function(){this.hasPreviousPage()&&(this.pageIndex--,this._emitPageEvent())},t.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},t.prototype.hasNextPage=function(){var t=Math.ceil(this.length/this.pageSize)-1;return this.pageIndex<t&&0!=this.pageSize},t.prototype._changePageSize=function(t){var e=this.pageIndex*this.pageSize;this.pageIndex=Math.floor(e/t)||0,this.pageSize=t,this._emitPageEvent()},t.prototype._updateDisplayedPageSizeOptions=function(){this._initialized&&(this._displayedPageSizeOptions=this.pageSizeOptions.slice(),-1==this._displayedPageSizeOptions.indexOf(this.pageSize)&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort(function(t,e){return t-e}))},t.prototype._emitPageEvent=function(){this.page.next({pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})},t}();ws.decorators=[{type:e.Component,args:[{selector:"md-paginator, mat-paginator",template:'<div class="mat-paginator-page-size"><div class="mat-paginator-page-size-label">{{_intl.itemsPerPageLabel}}</div><md-select *ngIf="_displayedPageSizeOptions.length > 1" class="mat-paginator-page-size-select" [ngModel]="pageSize" [aria-label]="_intl.itemsPerPageLabel" (change)="_changePageSize($event.value)"><md-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption">{{pageSizeOption}}</md-option></md-select><div *ngIf="_displayedPageSizeOptions.length <= 1">{{pageSize}}</div></div><div class="mat-paginator-range-label">{{_intl.getRangeLabel(pageIndex, pageSize, length)}}</div><button md-icon-button class="mat-paginator-navigation-previous" (click)="previousPage()" [attr.aria-label]="_intl.previousPageLabel" [mdTooltip]="_intl.previousPageLabel" [mdTooltipPosition]="\'above\'" [disabled]="!hasPreviousPage()"><div class="mat-paginator-increment"></div></button> <button md-icon-button class="mat-paginator-navigation-next" (click)="nextPage()" [attr.aria-label]="_intl.nextPageLabel" [mdTooltip]="_intl.nextPageLabel" [mdTooltipPosition]="\'above\'" [disabled]="!hasNextPage()"><div class="mat-paginator-decrement"></div></button>',styles:[".mat-paginator{display:flex;align-items:center;justify-content:flex-end;min-height:56px;padding:0 8px}.mat-paginator-page-size{display:flex;align-items:center}.mat-paginator-page-size-label{margin:0 4px}.mat-paginator-page-size-select{margin:0 4px}.mat-paginator-page-size-select .mat-select-trigger{min-width:56px}.mat-paginator-range-label{margin:0 32px}.mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 0 0 8px}[dir=rtl] .mat-paginator-increment-button+.mat-paginator-increment-button{margin:0 8px 0 0}.mat-paginator-decrement,.mat-paginator-increment{width:8px;height:8px}.mat-paginator-decrement,[dir=rtl] .mat-paginator-increment{transform:rotate(45deg)}.mat-paginator-increment,[dir=rtl] .mat-paginator-decrement{transform:rotate(225deg)}.mat-paginator-decrement{margin-left:12px}[dir=rtl] .mat-paginator-decrement{margin-right:12px}.mat-paginator-increment{margin-left:16px}[dir=rtl] .mat-paginator-increment{margin-right:16px}"],host:{class:"mat-paginator"},providers:[{provide:vt,useValue:!1}],changeDetection:e.ChangeDetectionStrategy.OnPush,encapsulation:e.ViewEncapsulation.None}]}],ws.ctorParameters=function(){return[{type:bs}]},ws.propDecorators={pageIndex:[{type:e.Input}],length:[{type:e.Input}],pageSize:[{type:e.Input}],pageSizeOptions:[{type:e.Input}],page:[{type:e.Output}]};var Cs=function(){function t(){}return t}();Cs.decorators=[{type:e.NgModule,args:[{imports:[i.CommonModule,l.FormsModule,fn,Hn,oo],exports:[ws],declarations:[ws],providers:[bs]}]}],Cs.ctorParameters=function(){return[]};var Es=[Ro,fn,nn,Gr,Qr,Cn,Wo,fs,Po,rs,Ar,ii,Oi,gr,fo,Cs,yi,fi,Rn,Wt,Hn,ar,rr,Xn,Ii,vs,Qi,no,oo,Ee,n.PortalModule,n.BidiModule,Re,n.A11yModule,n.PlatformModule,Pt,n.ObserveContentModule],xs=function(){function t(){}return t}();xs.decorators=[{type:e.NgModule,args:[{imports:Es,exports:Es}]}],xs.ctorParameters=function(){return[]},t.coerceBooleanProperty=n.coerceBooleanProperty,t.coerceNumberProperty=n.coerceNumberProperty,t.ObserveContentModule=n.ObserveContentModule,t.ObserveContent=n.ObserveContent,t.Dir=n.Dir,t.Directionality=n.Directionality,t.BidiModule=n.BidiModule,t.Portal=n.Portal,t.BasePortalHost=n.BasePortalHost,t.ComponentPortal=n.ComponentPortal,t.TemplatePortal=n.TemplatePortal,t.PortalHostDirective=n.PortalHostDirective,t.TemplatePortalDirective=n.TemplatePortalDirective,t.PortalModule=n.PortalModule,t.DomPortalHost=n.DomPortalHost,t.GestureConfig=xe,t.LiveAnnouncer=n.LiveAnnouncer,t.LIVE_ANNOUNCER_ELEMENT_TOKEN=n.LIVE_ANNOUNCER_ELEMENT_TOKEN,t.LIVE_ANNOUNCER_PROVIDER=n.LIVE_ANNOUNCER_PROVIDER,t.InteractivityChecker=n.InteractivityChecker,t.isFakeMousedownFromScreenReader=n.isFakeMousedownFromScreenReader,t.A11yModule=n.A11yModule,t.UniqueSelectionDispatcher=Oe,t.UNIQUE_SELECTION_DISPATCHER_PROVIDER=ke,t.MdLineModule=Tt,t.MdLine=Ot,t.MdLineSetter=kt,t.CompatibilityModule=Et,t.NoConflictStyleCompatibilityMode=xt,t.MdCommonModule=Pt,t.MATERIAL_SANITY_CHECKS=St,t.MD_PLACEHOLDER_GLOBAL_OPTIONS=Ge,t.MD_ERROR_GLOBAL_OPTIONS=We,t.defaultErrorStateMatcher=M,t.showOnDirtyErrorStateMatcher=R,t.MdCoreModule=Ke,t.MdOptionModule=ie,t.MdOptionSelectionChange=ne,t.MdOption=re,t.MdOptgroupBase=Qt,t._MdOptgroupMixinBase=Jt,t.MdOptgroup=te,t.PlatformModule=n.PlatformModule,t.Platform=n.Platform,t.getSupportedInputTypes=n.getSupportedInputTypes,t.OVERLAY_PROVIDERS=Ce,t.OverlayModule=Ee,t.Overlay=ge,t.OverlayContainer=de,t.FullscreenOverlayContainer=we,t.OverlayRef=se,t.OverlayState=oe,t.ConnectedOverlayDirective=_e,t.OverlayOrigin=be,t.ViewportRuler=Nt,t.GlobalPositionStrategy=pe,t.ConnectedPositionStrategy=le,t.ConnectionPositionPair=ae,t.ScrollableViewProperties=ue,t.ConnectedOverlayPositionChange=ce,t.Scrollable=Vt,t.ScrollDispatcher=It,t.ScrollStrategyOptions=qt,t.RepositionScrollStrategy=zt,t.CloseScrollStrategy=Bt,t.NoopScrollStrategy=Ut,t.BlockScrollStrategy=Ht,t.ScrollDispatchModule=Gt,t.MdRipple=Ft,t.MD_RIPPLE_GLOBAL_OPTIONS=Lt,t.RippleRef=Mt,t.RippleState=At,t.RIPPLE_FADE_IN_DURATION=450,t.RIPPLE_FADE_OUT_DURATION=400,t.MdRippleModule=Wt,t.SelectionModel=Se,t.SelectionChange=Pe,t.FocusTrap=n.FocusTrap,t.FocusTrapFactory=n.FocusTrapFactory,t.FocusTrapDeprecatedDirective=n.FocusTrapDeprecatedDirective,t.FocusTrapDirective=n.FocusTrapDirective,t.StyleModule=Re,t.TOUCH_BUFFER_MS=650,t.FocusOriginMonitor=Te,t.CdkMonitorFocus=Ae,t.FOCUS_ORIGIN_MONITOR_PROVIDER_FACTORY=k,t.FOCUS_ORIGIN_MONITOR_PROVIDER=Me,t.applyCssTransform=T,t.UP_ARROW=n.UP_ARROW,t.DOWN_ARROW=n.DOWN_ARROW,t.RIGHT_ARROW=n.RIGHT_ARROW,t.LEFT_ARROW=n.LEFT_ARROW,t.PAGE_UP=n.PAGE_UP,t.PAGE_DOWN=n.PAGE_DOWN,t.HOME=n.HOME,t.END=n.END,t.ENTER=n.ENTER,t.SPACE=n.SPACE,t.TAB=n.TAB,t.ESCAPE=n.ESCAPE,t.BACKSPACE=n.BACKSPACE,t.DELETE=n.DELETE,t.MATERIAL_COMPATIBILITY_MODE=vt,t.getMdCompatibilityInvalidPrefixError=g,t.MAT_ELEMENTS_SELECTOR=bt,t.MD_ELEMENTS_SELECTOR=_t,t.MatPrefixRejector=wt,t.MdPrefixRejector=Ct,t.AnimationCurves=Ie,t.AnimationDurations=De,t.MdSelectionModule=Xt,t.MdPseudoCheckboxBase=Kt,t._MdPseudoCheckboxBase=$t,t.MdPseudoCheckbox=Yt,t.NativeDateModule=ze,t.MdNativeDateModule=qe,t.DateAdapter=Ne,t.MD_DATE_FORMATS=Ue,t.NativeDateAdapter=Be,t.MD_NATIVE_DATE_FORMATS=He,t.MaterialModule=xs,t.MdAutocompleteModule=Ro,t.MdAutocomplete=To,t.AUTOCOMPLETE_OPTION_HEIGHT=48,t.AUTOCOMPLETE_PANEL_HEIGHT=256,t.MD_AUTOCOMPLETE_VALUE_ACCESSOR=Ao,t.getMdAutocompleteMissingPanelError=pt,t.MdAutocompleteTrigger=Mo,t.MdButtonModule=fn,t.MdButtonCssMatStyler=on,t.MdRaisedButtonCssMatStyler=sn,t.MdIconButtonCssMatStyler=an,t.MdFab=un,t.MdMiniFab=cn,t.MdButtonBase=ln,t._MdButtonMixinBase=pn,t.MdButton=hn,t.MdAnchor=dn,t.MdButtonToggleModule=nn,t.MdButtonToggleGroupBase=$e,t._MdButtonToggleGroupMixinBase=Ye,t.MD_BUTTON_TOGGLE_GROUP_VALUE_ACCESSOR=Xe,t.MdButtonToggleChange=Je,t.MdButtonToggleGroup=Ze,t.MdButtonToggleGroupMultiple=tn,t.MdButtonToggle=en,t.MdCardModule=Gr,t.MdCardContent=Mr,t.MdCardTitle=Rr,t.MdCardSubtitle=Ir,t.MdCardActions=Dr,t.MdCardFooter=Nr,t.MdCardImage=jr,t.MdCardSmImage=Lr,t.MdCardMdImage=Fr,t.MdCardLgImage=Vr,t.MdCardXlImage=Br,t.MdCardAvatar=Ur,t.MdCard=Hr,t.MdCardHeader=zr,t.MdCardTitleGroup=qr,t.MdChipsModule=Qr,t.MdChipList=Xr,t.MdChipBase=Wr,t._MdChipMixinBase=Kr,t.MdBasicChip=$r,t.MdChip=Yr,t.MdCheckboxModule=Cn,t.MD_CHECKBOX_CONTROL_VALUE_ACCESSOR=yn,t.TransitionCheckState=gn,t.MdCheckboxChange=vn,t.MdCheckboxBase=bn,t._MdCheckboxMixinBase=_n,t.MdCheckbox=wn,t.MdDatepickerModule=Wo,t.MdCalendar=Fo,t.MdCalendarCell=Io,t.MdCalendarBody=Do,t.MdDatepickerContent=Bo,t.MdDatepicker=Uo,t.MD_DATEPICKER_VALUE_ACCESSOR=Ho,t.MD_DATEPICKER_VALIDATORS=zo,t.MdDatepickerInput=qo,t.MdDatepickerIntl=Lo,t.MdDatepickerToggle=Go,t.MdMonthView=No,t.MdYearView=jo,t.MdDialogModule=Po,t.MD_DIALOG_DATA=bo,t.MdDialog=_o,t.throwMdDialogContentAlreadyAttachedError=ct,t.MdDialogContainer=vo,t.MdDialogClose=Co,t.MdDialogTitle=Eo,t.MdDialogContent=xo,t.MdDialogActions=So,t.MdDialogConfig=yo,t.MdDialogRef=go,t.MdExpansionModule=rs,t.CdkAccordion=$o,t.MdAccordion=Yo,t.AccordionItem=Qo,t.MdExpansionPanel=Jo,t.MdExpansionPanelActionRow=Zo,t.MdExpansionPanelHeader=ts,t.MdExpansionPanelDescription=es,t.MdExpansionPanelTitle=ns,t.MdGridListModule=Ar,t.MdGridTile=vr,t.MdGridList=Tr,t.MdIconModule=ii,t.MdIconBase=ei,t._MdIconMixinBase=ni,t.MdIcon=ri,t.getMdIconNameNotFoundError=U,t.getMdIconNoHttpProviderError=H,t.getMdIconFailedToSanitizeError=z,t.MdIconRegistry=Zr,t.ICON_REGISTRY_PROVIDER_FACTORY=q,t.ICON_REGISTRY_PROVIDER=ti,t.MdInputModule=Oi,t.MdTextareaAutosize=Pi,t.MdPlaceholder=bi,t.MdHint=_i,t.MdErrorDirective=wi,t.MdPrefix=Ci,t.MdSuffix=Ei,t.MdInputDirective=xi,t.MdInputContainer=Si,t.getMdInputContainerPlaceholderConflictError=Z,t.getMdInputContainerUnsupportedTypeError=tt,t.getMdInputContainerDuplicatedHintError=et,t.getMdInputContainerMissingMdInputError=nt,t.MdListModule=gr,t.MdListDivider=ur,t.MdList=cr,t.MdListCssMatStyler=lr,t.MdNavListCssMatStyler=pr,t.MdDividerCssMatStyler=hr,t.MdListAvatarCssMatStyler=dr,t.MdListIconCssMatStyler=fr,t.MdListSubheaderCssMatStyler=mr,t.MdListItem=yr,t.MdMenuModule=fo,t.fadeInItems=lo,t.transformMenu=co,t.MdMenu=po,t.MdMenuItem=uo,t.MdMenuTrigger=ho,t.MdPaginatorModule=Cs,t.PageEvent=_s,t.MdPaginator=ws,t.MdProgressBarModule=yi,t.MdProgressBar=mi,t.MdProgressSpinnerModule=fi,t.PROGRESS_SPINNER_STROKE_WIDTH=ui,t.MdProgressSpinnerCssMatStyler=ci,t.MdProgressSpinnerBase=li,t._MdProgressSpinnerMixinBase=pi,t.MdProgressSpinner=hi,t.MdSpinner=di,t.MdRadioModule=Rn,t.MD_RADIO_GROUP_CONTROL_VALUE_ACCESSOR=En,t.MdRadioChange=Sn,t.MdRadioGroupBase=Pn,t._MdRadioGroupMixinBase=On,t.MdRadioGroup=kn,t.MdRadioButtonBase=Tn,t._MdRadioButtonMixinBase=An,t.MdRadioButton=Mn,t.MdSelectModule=Hn,t.fadeInContent=jn,t.transformPanel=Nn,t.transformPlaceholder=Dn,t.SELECT_ITEM_HEIGHT=48,t.SELECT_PANEL_MAX_HEIGHT=256,t.SELECT_MAX_OPTIONS_DISPLAYED=Ln,t.SELECT_TRIGGER_HEIGHT=30,t.SELECT_OPTION_HEIGHT_ADJUSTMENT=9,t.SELECT_PANEL_PADDING_X=16,t.SELECT_PANEL_INDENT_PADDING_X=32,t.SELECT_MULTIPLE_PANEL_PADDING_X=48,t.SELECT_PANEL_PADDING_Y=16,t.SELECT_PANEL_VIEWPORT_PADDING=8,t.MdSelectChange=Fn,t.MdSelectBase=Vn,t._MdSelectMixinBase=Bn,t.MdSelect=Un,t.MdSidenavModule=ar,t.throwMdDuplicatedSidenavError=j,t.MdSidenavToggleResult=ir,t.MdSidenav=or,t.MdSidenavContainer=sr,t.MdSliderModule=rr,t.MD_SLIDER_VALUE_ACCESSOR=Qn,t.MdSliderChange=Jn,t.MdSliderBase=Zn,t._MdSliderMixinBase=tr,t.MdSlider=er,t.SliderRenderer=nr,t.MdSlideToggleModule=Xn,t.MD_SLIDE_TOGGLE_VALUE_ACCESSOR=zn,t.MdSlideToggleChange=qn,t.MdSlideToggleBase=Wn,t._MdSlideToggleMixinBase=Kn,t.MdSlideToggle=$n,t.MdSnackBarModule=Ii,t.MdSnackBar=Ri,t.SHOW_ANIMATION="225ms cubic-bezier(0.4,0.0,1,1)",t.HIDE_ANIMATION="195ms cubic-bezier(0.0,0.0,0.2,1)",t.MdSnackBarContainer=Ai,t.MdSnackBarConfig=ki,t.MdSnackBarRef=Ti,t.SimpleSnackBar=Mi,t.MdSortModule=vs,t.MdSortHeader=gs,t.MdSortHeaderIntl=ys,t.MdSort=ms,t.MdTableModule=fs,t._MdHeaderCellBase=ss,t._MdCell=as,t.MdHeaderCell=us,t.MdCell=cs,t._MdTable=is,t.MdTable=os,t._MdHeaderRow=ls,t._MdRow=ps,t.MdHeaderRow=hs,t.MdRow=ds,t.MdTabsModule=Qi,t.MdInkBar=qi,t.MdTabBody=Yi,t.MdTabHeader=Xi,t.MdTabLabelWrapper=zi,t.MdTab=Li,t.MdTabLabel=Di,t.MdTabNav=Gi,t.MdTabLink=$i,t.MdTabChangeEvent=Vi,t.MdTabGroup=Bi,t.MdTabLinkBase=Wi,t._MdTabLinkMixinBase=Ki,t.MdToolbarModule=no,t.MdToolbarRow=Ji,t.MdToolbarBase=Zi,t._MdToolbarMixinBase=to,t.MdToolbar=eo,t.MdTooltipModule=oo,t.TOUCHEND_HIDE_DELAY=1500,t.SCROLL_THROTTLE_MS=20,t.getMdTooltipInvalidPositionError=ot,t.MdTooltip=ro,t.TooltipComponent=io,t.ɵu=E,t.ɵv=x,t.ɵh=O,t.ɵb=fe,t.ɵa=P,t.ɵt=he,t.ɵd=jt,t.ɵc=w,t.ɵf=Dt,t.ɵe=_,t.ɵg=Rt,t.ɵi="225ms cubic-bezier(0.4,0.0,0.2,1)",t.ɵk=_r,t.ɵm=Cr,t.ɵl=wr,t.ɵj=br,t.ɵn=so,t.ɵo=ao,t.ɵx=bs,t.ɵr=Ni,t.ɵs=ji,t.ɵp=Ui,t.ɵq=Hi,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/animations":26,"@angular/cdk":27,"@angular/common":29,"@angular/core":31,"@angular/forms":32,"@angular/http":33,"@angular/platform-browser":37,"rxjs/Observable":42,"rxjs/Subject":46,"rxjs/Subscription":49,"rxjs/observable/forkJoin":61,"rxjs/observable/fromEvent":63,"rxjs/observable/merge":65,"rxjs/observable/of":66,"rxjs/observable/throw":67}],35:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/compiler"),t("@angular/core"),t("@angular/common"),t("@angular/platform-browser")):i((r.ng=r.ng||{},r.ng.platformBrowserDynamic=r.ng.platformBrowserDynamic||{}),r.ng.compiler,r.ng.core,r.ng.common,r.ng.platformBrowser)}(this,function(t,e,n,r,i){"use strict";function o(t,e){function n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e}(e.ResourceLoader);a.decorators=[{type:n.Injectable}],a.ctorParameters=function(){return[]};var u=[i.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:a}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],c=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return o(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),l=new n.Version("4.3.0"),p=[{provide:e.ResourceLoader,useClass:c}],h=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",u);t.RESOURCE_CACHE_PROVIDER=p,t.platformBrowserDynamic=h,t.VERSION=l,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=u,t.ɵResourceLoaderImpl=a,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":29,"@angular/compiler":30,"@angular/core":31,"@angular/platform-browser":37}],36:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/core"),t("@angular/platform-browser"),t("@angular/animations"),t("@angular/animations/browser")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{},r.ng.platformBrowser.animations=r.ng.platformBrowser.animations||{}),r.ng.core,r.ng.platformBrowser,r.ng.animations,r.ng.animations.browser)}(this,function(t,e,n,r,i){"use strict";function o(t,e){function n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function s(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}function a(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function u(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}function c(){return i.ɵsupportsWebAnimations()?new i.ɵWebAnimationsDriver:new i.ɵNoopAnimationDriver}function l(){return new i.ɵWebAnimationsStyleNormalizer}function p(t,e,n){return new y(t,e,n)}var h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},d=function(t){function n(n){var r=t.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:e.ViewEncapsulation.None,styles:[],data:{animation:[]}};return r._renderer=n.createRenderer(document.body,i),r}return o(n,t),n.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?r.sequence(t):t;return s(this._renderer,null,e,"register",[n]),new f(e,this._renderer)},n}(r.AnimationBuilder);d.decorators=[{type:e.Injectable}],d.ctorParameters=function(){return[{type:e.RendererFactory2}]};var f=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return o(e,t),e.prototype.create=function(t,e){return new m(this._id,t,e||{},this._renderer)},e}(r.AnimationFactory),m=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return s(this._renderer,this.element,this.id,t,e)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}(),y=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new g("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,s=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,s,t,e.name,e)}),new v(this,s,r,this.engine)},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return e(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))},t.prototype.end=function(){var t=this;this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[{type:e.RendererFactory2},{type:i.ɵAnimationEngine},{type:e.NgZone}]};var g=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t}(),v=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return o(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?(e=e.substr(1),this.engine.process(this.namespaceId,t,e,n)):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r=this;if("@"==e.charAt(0)){var i=a(t),o=e.substr(1),s="";return"@"!=o.charAt(0)&&(o=(c=u(o))[0],s=c[1]),this.engine.listen(this.namespaceId,i,o,s,function(t){var e=t._data||-1;r.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n);var c},e}(g),b=function(t){function e(e,n){return t.call(this,e,n)||this}return o(e,t),e}(i.ɵAnimationEngine);b.decorators=[{type:e.Injectable}],b.ctorParameters=function(){return[{type:i.AnimationDriver},{type:i.ɵAnimationStyleNormalizer}]};var _=[{provide:r.AnimationBuilder,useClass:d},{provide:i.ɵAnimationStyleNormalizer,useFactory:l},{provide:i.ɵAnimationEngine,useClass:b},{provide:e.RendererFactory2,useFactory:p,deps:[n.ɵDomRendererFactory2,i.ɵAnimationEngine,e.NgZone]}],w=[{provide:i.AnimationDriver,useFactory:c}].concat(_),C=[{provide:i.AnimationDriver,useClass:i.ɵNoopAnimationDriver}].concat(_),E=function(){function t(){}return t}();E.decorators=[{type:e.NgModule,args:[{imports:[n.BrowserModule],providers:w}]}],E.ctorParameters=function(){return[]};var x=function(){function t(){}return t}();x.decorators=[{type:e.NgModule,args:[{imports:[n.BrowserModule],providers:C}]}],x.ctorParameters=function(){return[]},t.BrowserAnimationsModule=E,t.NoopAnimationsModule=x,t.ɵBrowserAnimationBuilder=d,t.ɵBrowserAnimationFactory=f,t.ɵAnimationRenderer=v,t.ɵAnimationRendererFactory=y,t.ɵa=g,t.ɵf=w,t.ɵg=C,t.ɵb=b,t.ɵd=l,t.ɵe=p,t.ɵc=c,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/animations":26,"@angular/animations/browser":25,"@angular/core":31,"@angular/platform-browser":37}],37:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core")):i((r.ng=r.ng||{},r.ng.platformBrowser=r.ng.platformBrowser||{}),r.ng.common,r.ng.core)}(this,function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}j(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function i(){return L}function o(t){L||(L=t)}function s(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function a(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function u(){return!!window.history.pushState}function c(t,e,r){return function(){r.get(n.ApplicationInitStatus).donePromise.then(function(){var n=i();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})})}}function l(t,e){Z||(n.ɵglobal.ng=Z=n.ɵglobal.ng||{}),Z[t]=e}function p(t){return n.getDebugNode(t)}function h(t,e){var n=(t||[]).concat(e||[]);return l(et,p),l(nt,Object.assign({},tt,d(n||[]))),function(){return p}}function d(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function f(t){return dt.replace(pt,t)}function m(t){return ht.replace(pt,t)}function y(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?y(t,i,n):(i=i.replace(pt,t),n.push(i))}return n}function g(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function v(t,e){if(t.charCodeAt(0)===yt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function b(t){return(t=String(t)).match(Ot)||t.match(kt)?t:(n.isDevMode()&&i().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function _(t){return(t=String(t)).split(",").map(function(t){return b(t.trim())}).join(", ")}function w(){if(Tt)return Tt;var t=(At=i()).createElement("template");if("content"in t)return t;var e=At.createHtmlDocument();if(null==(Tt=At.querySelector(e,"body"))){var n=At.createElement("html",e);Tt=At.createElement("body",e),At.appendChild(n,Tt),At.appendChild(e,n)}return Tt}function C(t){for(var e={},n=0,r=t.split(",");n<r.length;n++)e[r[n]]=!0;return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function x(t,e){if(e&&At.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+At.getOuterHTML(t));return e}function S(t){return t.replace(/&/g,"&").replace(zt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(qt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function P(t){At.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||At.removeAttribute(t,n)});for(var e=0,n=At.childNodesAsList(t);e<n.length;e++){var r=n[e];At.isElementNode(r)&&P(r)}}function O(t,e){try{var r=w(),i=e?String(e):"",o=5,s=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=s,At.setInnerHTML(r,i),t.documentMode&&P(r),s=At.getInnerHTML(r)}while(i!==s);for(var a=new Ht,u=a.sanitizeChildren(At.getTemplateContent(r)||r),c=At.getTemplateContent(r)||r,l=0,p=At.childNodesAsList(c);l<p.length;l++){var h=p[l];At.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&At.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Tt=null,t}}function k(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function T(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&b(e[1])===e[1]||t.match(Gt)&&k(t)?t:(n.isDevMode()&&i().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function A(){q.makeCurrent(),Q.init()}function M(){return new n.ErrorHandler}function R(){return document}function I(t){return l(ue,new ae(t)),t}function D(){l(ue,null)}var N,j=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},L=null,F=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),V=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return r(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(F),B={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},U={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},H={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","Â":"NumLock"};n.ɵglobal.Node&&(N=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,q=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return r(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){o(new n)},n.prototype.hasProperty=function(t,e){return e in t},n.prototype.setProperty=function(t,e,n){t[e]=n},n.prototype.getProperty=function(t,e){return t[e]},n.prototype.invoke=function(t,e,n){t[e].apply(t,n)},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return B},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,e){return N.call(t,e)},n.prototype.querySelector=function(t,e){return t.querySelector(e)},n.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},n.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},n.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},n.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},n.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},n.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,e){t.appendChild(e)},n.prototype.removeChild=function(t,e){t.removeChild(e)},n.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},n.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},n.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},n.prototype.setInnerHTML=function(t,e){t.innerHTML=e},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,e){t.textContent=e},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,e){t.value=e},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,e){t.checked=e},n.prototype.createComment=function(t){return document.createComment(t)},n.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},n.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},n.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},n.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},n.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},n.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},n.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,e){t.classList.add(e)},n.prototype.removeClass=function(t,e){t.classList.remove(e)},n.prototype.hasClass=function(t,e){return t.classList.contains(e)},n.prototype.setStyle=function(t,e,n){t.style[e]=n},n.prototype.removeStyle=function(t,e){t.style[e]=""},n.prototype.getStyle=function(t,e){return t.style[e]},n.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},n.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},n.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},n.prototype.getAttribute=function(t,e){return t.getAttribute(e)},n.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},n.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},n.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},n.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},n.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return document.title},n.prototype.setTitle=function(t,e){document.title=e||""},n.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},n.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.href},n.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&H.hasOwnProperty(e)&&(e=H[e]))}return U[e]||e},n.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var e=s();return null==e?null:a(e)},n.prototype.resetBaseElement=function(){G=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},n.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return e.ɵparseCookieValue(document.cookie,t)},n.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},n}(V),G=null,W=e.DOCUMENT,K=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this._location=i().getLocation(),this._history=i().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return i().getBaseHref(this._doc)},e.prototype.onPopState=function(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){u()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){u()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);K.decorators=[{type:n.Injectable}],K.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var $=function(){function t(t){this._doc=t,this._dom=i()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();$.decorators=[{type:n.Injectable}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Y=new n.InjectionToken("TRANSITION_ID"),X=[{provide:n.APP_INITIALIZER,useFactory:c,deps:[Y,W,n.Injector],multi:!0}],Q=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,i=!1,o=function(e){i=i||e,0==--r&&t(i)};e.forEach(function(t){t.whenStable(o)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var r=t.getTestability(e);return null!=r?r:n?i().isShadowRoot(e)?this.findTestabilityInTree(t,i().getHost(e),!0):this.findTestabilityInTree(t,i().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return i().getTitle(this._doc)},t.prototype.setTitle=function(t){i().setTitle(this._doc,t)},t}();J.decorators=[{type:n.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Z,tt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},et="probe",nt="coreTokens",rt=function(){function t(t,e){this.name=t,this.token=e}return t}(),it=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[rt,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],ot=new n.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:n.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[ot]}]},{type:n.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var r=i().getGlobalEventTarget(this._doc,t);if(!r)throw new Error("Unsupported event target "+r+" for event "+e);return this.addEventListener(r,e,n)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:n.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return r(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return i().remove(t)})},e}(ut);ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="_nghost-%COMP%",dt="_ngcontent-%COMP%",ft=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new mt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new gt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new vt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var i=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}();ft.decorators=[{type:n.Injectable}],ft.ctorParameters=function(){return[{type:st},{type:ct}]};var mt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=lt[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,i){i&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,i&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){v(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return v(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,g(n)):this.eventManager.addEventListener(t,e,g(n))},t}(),yt="@".charCodeAt(0),gt=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=y(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=f(r.id),i.hostAttr=m(r.id),i}return r(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(mt),vt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=y(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return r(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(mt),bt=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(at);bt.decorators=[{type:n.Injectable}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var _t={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},wt=new n.InjectionToken("HammerGestureConfig"),Ct=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();Ct.decorators=[{type:n.Injectable}],Ct.ctorParameters=function(){return[]};var Et=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return r(e,t),e.prototype.supports=function(t){if(!_t.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);Et.decorators=[{type:n.Injectable}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]},{type:Ct,decorators:[{type:n.Inject,args:[wt]}]}]};var xt=["alt","control","meta","shift"],St={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Pt=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return i().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(xt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=i().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),xt.forEach(function(r){r!=n&&(0,St[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(at);Pt.decorators=[{type:n.Injectable}],Pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Ot=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,kt=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Tt=null,At=null,Mt=C("area,br,col,hr,img,wbr"),Rt=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),It=C("rp,rt"),Dt=E(It,Rt),Nt=E(Rt,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")),jt=E(It,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Lt=E(Mt,Nt,jt,Dt),Ft=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vt=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"),Ut=E(Ft,Vt,Bt),Ht=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(At.isElementNode(e)?this.startElement(e):At.isTextNode(e)?this.chars(At.nodeValue(e)):this.sanitizedSomething=!0,At.firstChild(e))e=At.firstChild(e);else for(;e;){At.isElementNode(e)&&this.endElement(e);var n=x(e,At.nextSibling(e));if(n){e=n;break}e=x(e,At.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=At.nodeName(t).toLowerCase();Lt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),At.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();Ut.hasOwnProperty(r)?(Ft[r]&&(t=b(t)),Vt[r]&&(t=_(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(S(t)),e.buf.push('"')):e.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=At.nodeName(t).toLowerCase();Lt.hasOwnProperty(e)&&!Mt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(S(t))},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,qt=/([^\#-~ |!])/g,Gt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wt=/^url\(([^)]+)\)$/,Kt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),$t=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof Xt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),O(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof Qt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),T(e));case n.SecurityContext.SCRIPT:if(e instanceof Jt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof te||e instanceof Zt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),b(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof te)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Yt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Xt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Qt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Zt(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new te(t)},e}(Kt);$t.decorators=[{type:n.Injectable}],$t.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[W]}]}]};var Yt=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}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Yt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Yt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Yt),Zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Yt),te=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Yt),ee=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:A,multi:!0},{provide:e.PlatformLocation,useClass:K},{provide:W,useFactory:R,deps:[]}],ne=[{provide:n.Sanitizer,useExisting:Kt},{provide:Kt,useClass:$t}],re=n.createPlatformFactory(n.platformCore,"browser",ee),ie=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:Y,useExisting:n.APP_ID},X]}},t}();ie.decorators=[{type:n.NgModule,args:[{providers:[ne,{provide:n.ErrorHandler,useFactory:M,deps:[]},{provide:ot,useClass:bt,multi:!0},{provide:ot,useClass:Pt,multi:!0},{provide:ot,useClass:Et,multi:!0},{provide:wt,useClass:Ct},ft,{provide:n.RendererFactory2,useExisting:ft},{provide:ut,useExisting:ct},ct,n.Testability,st,it,$,J],exports:[e.CommonModule,n.ApplicationModule]}]}],ie.ctorParameters=function(){return[{type:ie,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var oe="undefined"!=typeof window&&window||{},se=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),ae=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=oe.console.profile;e&&n&&oe.console.profile("Change Detection");for(var r=i().performanceNow(),o=0;o<5||i().performanceNow()-r<500;)this.appRef.tick(),o++;var s=i().performanceNow();e&&n&&oe.console.profileEnd("Change Detection");var a=(s-r)/o;return oe.console.log("ran "+o+" change detection cycles"),oe.console.log(a.toFixed(2)+" ms per check"),new se(a,o)},t}(),ue="profiler",ce=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&i().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}},t}(),le=new n.Version("4.3.0");t.BrowserModule=ie,t.platformBrowser=re,t.Meta=$,t.Title=J,t.disableDebugTools=D,t.enableDebugTools=I,t.By=ce,t.NgProbeToken=rt,t.DOCUMENT=W,t.EVENT_MANAGER_PLUGINS=ot,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=wt,t.HammerGestureConfig=Ct,t.DomSanitizer=Kt,t.VERSION=le,t.ɵBROWSER_SANITIZATION_PROVIDERS=ne,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ee,t.ɵinitDomAdapter=A,t.ɵBrowserDomAdapter=q,t.ɵBrowserPlatformLocation=K,t.ɵTRANSITION_ID=Y,t.ɵBrowserGetTestability=Q,t.ɵELEMENT_PROBE_PROVIDERS=it,t.ɵDomAdapter=F,t.ɵgetDOM=i,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=ft,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=f,t.ɵshimHostAttribute=m,t.ɵDomEventsPlugin=bt,t.ɵHammerGesturesPlugin=Et,t.ɵKeyEventsPlugin=Pt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=R,t.ɵa=M,t.ɵh=V,t.ɵg=X,t.ɵf=c,t.ɵc=h,t.ɵd=at,t.ɵe=$t,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":29,"@angular/core":31}],38:[function(t,e,n){!function(r,i){"object"==typeof n&&void 0!==e?i(n,t("@angular/common"),t("@angular/core"),t("rxjs/BehaviorSubject"),t("rxjs/Subject"),t("rxjs/observable/from"),t("rxjs/observable/of"),t("rxjs/operator/concatMap"),t("rxjs/operator/every"),t("rxjs/operator/first"),t("rxjs/operator/map"),t("rxjs/operator/mergeMap"),t("rxjs/operator/reduce"),t("rxjs/Observable"),t("rxjs/operator/catch"),t("rxjs/operator/concatAll"),t("rxjs/util/EmptyError"),t("rxjs/observable/fromPromise"),t("rxjs/operator/last"),t("rxjs/operator/mergeAll"),t("@angular/platform-browser"),t("rxjs/operator/filter")):i((r.ng=r.ng||{},r.ng.router=r.ng.router||{}),r.ng.common,r.ng.core,r.Rx,r.Rx,r.Rx.Observable,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.Rx,r.Rx.Observable,r.Rx.Observable.prototype,r.Rx.Observable.prototype,r.ng.platformBrowser,r.Rx.Observable.prototype)}(this,function(t,e,n,r,i,o,s,a,u,c,l,p,h,d,f,m,y,g,v,b,_,w){"use strict";function C(t,e){function n(){this.constructor=t}ke(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function E(t){return new Ue(t)}function x(t){var e=Error("NavigationCancelingError: "+t);return e[He]=!0,e}function S(t){return t[He]}function P(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function O(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];k(r,T(e,r))}}function k(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Be)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&O(t.children,e)}function T(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function A(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!M(t[n],e[n]))return!1;return!0}function M(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function R(t){return Array.prototype.concat.apply([],t)}function I(t){return t.length>0?t[t.length-1]:null}function D(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function N(t,e){if(0===Object.keys(t).length)return s.of({});var n=[],r=[],i={};D(t,function(t,o){var s=l.map.call(e(o,t),function(t){return i[o]=t});o===Be?n.push(s):r.push(s)});var o=m.concatAll.call(s.of.apply(void 0,n.concat(r))),a=v.last.call(o);return l.map.call(a,function(){return i})}function j(t){var e=b.mergeAll.call(t);return u.every.call(e,function(t){return!0===t})}function L(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?g.fromPromise(Promise.resolve(t)):s.of(t)}function F(){return new qe(new Ge([],{}),{},null)}function V(t,e,n){return n?B(t.queryParams,e.queryParams)&&U(t.root,e.root):H(t.queryParams,e.queryParams)&&z(t.root,e.root)}function B(t,e){return M(t,e)}function U(t,e){if(!W(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!U(t.children[n],e.children[n]))return!1}return!0}function H(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function z(t,e){return q(t,e,e.segments)}function q(t,e,n){if(t.segments.length>n.length)return!!W(i=t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!W(t.segments,n))return!1;for(var r in e.children){if(!t.children[r])return!1;if(!z(t.children[r],e.children[r]))return!1}return!0}var i=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!W(t.segments,i)&&(!!t.children[Be]&&q(t.children[Be],e,o))}function G(t,e){return W(t,e)&&t.every(function(t,n){return M(t.parameters,e[n].parameters)})}function W(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function K(t,e){var n=[];return D(t.children,function(t,r){r===Be&&(n=n.concat(e(t,r)))}),D(t.children,function(t,r){r!==Be&&(n=n.concat(e(t,r)))}),n}function $(t){return t.segments.map(function(t){return J(t)}).join("/")}function Y(t,e){if(!t.hasChildren())return $(t);if(e){var n=t.children[Be]?Y(t.children[Be],!1):"",r=[];return D(t.children,function(t,e){e!==Be&&r.push(e+":"+Y(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var i=K(t,function(e,n){return n===Be?[Y(t.children[Be],!1)]:[n+":"+Y(e,!1)]});return $(t)+"/("+i.join("//")+")"}function X(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function Q(t){return decodeURIComponent(t)}function J(t){return""+X(t.path)+Z(t.parameters)}function Z(t){return Object.keys(t).map(function(e){return";"+X(e)+"="+X(t[e])}).join("")}function tt(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return X(e)+"="+X(t)}).join("&"):X(e)+"="+X(n)});return e.length?"?"+e.join("&"):""}function et(t){var e=t.match(Xe);return e?e[0]:""}function nt(t){var e=t.match(Qe);return e?e[0]:""}function rt(t){var e=t.match(Je);return e?e[0]:""}function it(t){return new d.Observable(function(e){return e.error(new tn(t))})}function ot(t){return new d.Observable(function(e){return e.error(new en(t))})}function st(t){return new d.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function at(t){return new d.Observable(function(e){return e.error(x("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function ut(t,e,n,r,i){return new nn(t,e,n,r,i).apply()}function ct(t,e){var n=e.canLoad;return n&&0!==n.length?j(l.map.call(o.from(n),function(n){var r=t.get(n);return L(r.canLoad?r.canLoad(e):r(e))})):s.of(!0)}function lt(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||P)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function pt(t,e,n,r){if(n.length>0&&mt(t,n,r))return{segmentGroup:ht(i=new Ge(e,ft(r,new Ge(n,t.children)))),slicedSegments:[]};if(0===n.length&&yt(t,n,r)){var i=new Ge(t.segments,dt(t,n,r,t.children));return{segmentGroup:ht(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function ht(t){if(1===t.numberOfChildren&&t.children[Be]){var e=t.children[Be];return new Ge(t.segments.concat(e.segments),e.children)}return t}function dt(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];gt(t,e,a)&&!r[vt(a)]&&(i[vt(a)]=new Ge([],{}))}return Object.assign({},r,i)}function ft(t,e){var n={};n[Be]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&vt(o)!==Be&&(n[vt(o)]=new Ge([],{}))}return n}function mt(t,e,n){return n.some(function(n){return gt(t,e,n)&&vt(n)!==Be})}function yt(t,e,n){return n.some(function(n){return gt(t,e,n)})}function gt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function vt(t){return t.outlet||Be}function bt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=bt(t,r[n]);if(i)return i}return null}function _t(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=_t(t,r[n]);if(i.length)return i.unshift(e),i}return[]}function wt(t,e){var n=Ct(t,e),i=new r.BehaviorSubject([new We("",{})]),o=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new an(i,o,a,u,s,Be,e,n.root);return c.snapshot=n.root,new sn(new on(c,[]),n)}function Ct(t,e){var n=new un([],{},{},"",{},Be,e,null,t.root,-1,{});return new cn("",new on(n,[]))}function Et(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}function xt(t,e){e.value._routerState=t,e.children.forEach(function(e){return xt(t,e)})}function St(t){var e=t.children.length>0?" { "+t.children.map(St).join(", ")+" } ":"";return""+t.value+e}function Pt(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,M(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),M(e.params,n.params)||t.params.next(n.params),A(e.url,n.url)||t.url.next(n.url),M(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ot(t,e){var n=M(t.params,e.params)&&G(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||Ot(t.parent,e.parent))}function kt(t,e,n){var r=Tt(t,e._root,n?n._root:void 0);return new sn(r,e)}function Tt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){(i=n.value)._futureSnapshot=e.value;o=Mt(t,e,n);return new on(i,o)}if(t.retrieve(e.value)){var r=t.retrieve(e.value).route;return At(e,r),r}var i=Rt(e.value),o=e.children.map(function(e){return Tt(t,e)});return new on(i,o)}function At(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)At(t.children[n],e.children[n])}function Mt(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return Tt(t,e,o)}return Tt(t,e)})}function Rt(t){return new an(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function It(t,e,n,r,i){if(0===n.length)return Nt(e.root,e.root,e,r,i);var o=Lt(n);if(o.toRoot())return Nt(e.root,new Ge([],{}),e,r,i);var s=Ft(o,e,t),a=s.processChildren?zt(s.segmentGroup,s.index,o.commands):Ht(s.segmentGroup,s.index,o.commands);return Nt(s.segmentGroup,a,e,r,i)}function Dt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Nt(t,e,n,r,i){var o={};return r&&D(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new qe(e,o,i):new qe(jt(n.root,t,e),o,i)}function jt(t,e,n){var r={};return D(t.children,function(t,i){r[i]=t===e?n:jt(t,e,n)}),new Ge(t.segments,r)}function Lt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ln(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return D(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new ln(n,e,r)}function Ft(t,e,n){if(t.isAbsolute)return new pn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new pn(n.snapshot._urlSegment,!0,0);var r=Dt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return Vt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function Vt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new pn(r,!1,i-o)}function Bt(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Be]:""+t}function Ut(t){return"object"!=typeof t[0]?(e={},e[Be]=t,e):void 0===t[0].outlets?(n={},n[Be]=t,n):t[0].outlets;var e,n}function Ht(t,e,n){if(t||(t=new Ge([],{})),0===t.segments.length&&t.hasChildren())return zt(t,e,n);var r=qt(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new Ge(t.segments.slice(0,r.pathIndex),{});return o.children[Be]=new Ge(t.segments.slice(r.pathIndex),t.children),zt(o,0,i)}return r.match&&0===i.length?new Ge(t.segments,{}):r.match&&!t.hasChildren()?Gt(t,e,n):r.match?zt(t,0,i):Gt(t,e,n)}function zt(t,e,n){if(0===n.length)return new Ge(t.segments,{});var r=Ut(n),i={};return D(r,function(n,r){null!==n&&(i[r]=Ht(t.children[r],e,n))}),D(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new Ge(t.segments,i)}function qt(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=Bt(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!$t(a,u,s))return o;r+=2}else{if(!$t(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Gt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Wt(n[i].outlets);return new Ge(r,o)}if(0===i&&Dt(n[0])){var s=t.segments[e];r.push(new We(s.path,n[0])),i++}else{var a=Bt(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&Dt(u)?(r.push(new We(a,Kt(u))),i+=2):(r.push(new We(a,{})),i++)}}return new Ge(r,{})}function Wt(t){var e={};return D(t,function(t,n){null!==t&&(e[n]=Gt(new Ge([],{}),0,t))}),e}function Kt(t){var e={};return D(t,function(t,n){return e[n]=""+t}),e}function $t(t,e,n){return t==n.path&&M(e,n.parameters)}function Yt(t,e,n,r){return new dn(t,e,n,r).recognize()}function Xt(t){t.sort(function(t,e){return t.value.outlet===Be?-1:e.value.outlet===Be?1:t.value.outlet.localeCompare(e.value.outlet)})}function Qt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Jt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new hn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||P)(n,t,e);if(!r)throw new hn;var i={};D(r.posParams,function(t,e){i[e]=t.path});var o=Object.assign({},i,r.consumed[r.consumed.length-1].parameters);return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:o}}function Zt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function te(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ee(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ne(t,e,n,r){if(n.length>0&&oe(t,n,r)){var i=new Ge(e,ie(t,e,r,new Ge(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&se(t,n,r)){var o=new Ge(t.segments,re(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new Ge(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function re(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(ae(t,e,a)&&!r[ue(a)]){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[ue(a)]=u}}return Object.assign({},r,i)}function ie(t,e,n,r){var i={};i[Be]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&ue(a)!==Be){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[ue(a)]=u}}return i}function oe(t,e,n){return n.some(function(n){return ae(t,e,n)&&ue(n)!==Be})}function se(t,e,n){return n.some(function(n){return ae(t,e,n)})}function ae(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function ue(t){return t.outlet||Be}function ce(t){return t.data||{}}function le(t){return t.resolve||{}}function pe(t){throw t}function he(t){return s.of(null)}function de(t){Pt(t.value),t.children.forEach(de)}function fe(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function me(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function ye(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function ge(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function ve(t){return""===t||!!t}function be(){return new n.NgProbeToken("Router",_n)}function _e(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function we(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Ce(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:yn,multi:!0,useValue:t}]}function Ee(t,e,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var p=new _n(null,e,n,r,i,o,s,R(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=_.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function xe(t){return t.routerState.root}function Se(t){return t.appInitializer.bind(t)}function Pe(t){return t.bootstrapListener.bind(t)}function Oe(){return[Un,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Se,deps:[Un]},{provide:Hn,useFactory:Pe,deps:[Un]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Hn}]}var ke=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},Te=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}(),Ae=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Me=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),De=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Ne=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),je=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Le=function(){function t(t,e,n,r,i){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}return t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(),Fe=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Ve=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Be="primary",Ue=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}(),He="ngNavigationCancelingError",ze=function(){function t(t,e){this.routes=t,this.module=e}return t}(),qe=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=E(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ye.serialize(this)},t}(),Ge=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,D(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return $(this)},t}(),We=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=E(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return J(this)},t}(),Ke=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),$e=function(){function t(){}return t.prototype.parse=function(t){var e=new Ze(t);return new qe(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return""+("/"+Y(t.root,!0))+tt(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ye=new $e,Xe=/^[^\/()?;=&#]+/,Qe=/^[^=?&#]+/,Je=/^[^?&#]+/,Ze=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 Ge([],{}):new Ge([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Be]=new Ge(t,e)),n},t.prototype.parseSegment=function(){var t=et(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new We(Q(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=et(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=et(this.remaining);r&&(n=r,this.capture(n))}t[Q(e)]=Q(n)}},t.prototype.parseQueryParam=function(t){var e=nt(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=rt(this.remaining);r&&(n=r,this.capture(n))}var i=Q(e),o=Q(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=et(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=Be);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[Be]:new Ge([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),tn=function(){function t(t){this.segmentGroup=t||null}return t}(),en=function(){function t(t){this.urlTree=t}return t}(),nn=function(){function t(t,e,r,i,o){this.configLoader=e,this.urlSerializer=r,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Be),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return f._catch.call(n,function(e){if(e instanceof en)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof tn)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Be),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return f._catch.call(r,function(t){if(t instanceof tn)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ge([],(i={},i[Be]=t,i)):t;return new qe(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new Ge([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return N(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,i,o);return f._catch.call(c,function(t){if(t instanceof tn)return s.of(null);throw t})}),h=m.concatAll.call(p),d=c.first.call(h,function(t){return!!t});return f._catch.call(d,function(t,n){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,r,i))return s.of(new Ge([],{}));throw new tn(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return vt(r)!==o?it(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):it(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ot(o):p.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new Ge(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=lt(e,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return it(e);var d=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?ot(d):p.mergeMap.call(this.lineralizeSegments(r,d),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Ge(r,{})}):s.of(new Ge(r,{}));var o=lt(e,n,r),a=o.matched,u=o.consumedSegments,c=o.lastChild;if(!a)return it(e);var h=r.slice(c),d=this.getChildConfig(t,n);return p.mergeMap.call(d,function(t){var n=t.module,r=t.routes,o=pt(e,u,h,r),a=o.segmentGroup,c=o.slicedSegments;if(0===c.length&&a.hasChildren()){var p=i.expandChildren(n,r,a);return l.map.call(p,function(t){return new Ge(u,t)})}if(0===r.length&&0===c.length)return s.of(new Ge(u,{}));var d=i.expandSegment(n,a,r,c,Be,!0);return l.map.call(d,function(t){return new Ge(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new ze(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?s.of(e._loadedConfig):p.mergeMap.call(ct(t.injector,e),function(r){return r?l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):at(e)}):s.of(new ze([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Be])return st(t.redirectTo);r=r.children[Be]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new qe(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return D(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return D(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new Ge(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),rn=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=bt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=_t(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return _t(t,this._root).map(function(t){return t.value})},t}(),on=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),sn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,xt(r,e),r}return C(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(rn),an=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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 E(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 E(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),un=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,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=E(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=E(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},t}(),cn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,xt(r,n),r}return C(e,t),e.prototype.toString=function(){return St(this._root)},e}(rn),ln=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Dt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==I(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),hn=function(){function t(){}return t}(),dn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=ne(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Be),n=new un([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Be,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new on(n,e),i=new cn(this.url,r);return this.inheritParamsAndData(i._root),s.of(i)}catch(t){return new d.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Et(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=K(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Zt(r),Xt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof hn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new hn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new hn;if((t.outlet||Be)!==r)throw new hn;if("**"===t.path){var i=n.length>0?I(n).parameters:{},o=new un(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ce(t),r,t.component,t,te(e),ee(e)+n.length,le(t));return[new on(o,[])]}var s=Jt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Qt(t),h=ne(e,a,l,p),d=h.segmentGroup,f=h.slicedSegments,m=new un(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,ce(t),r,t.component,t,te(e),ee(e)+a.length,le(t));if(0===f.length&&d.hasChildren()){var y=this.processChildren(p,d);return[new on(m,y)]}if(0===p.length&&0===f.length)return[new on(m,[])];var g=this.processSegment(p,d,f,Be);return[new on(m,g)]},t}(),fn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),mn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),yn=new n.InjectionToken("ROUTES"),gn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new ze(R(i.injector.get(yn)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?g.fromPromise(this.loader.load(t)):p.mergeMap.call(L(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):g.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),vn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),bn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),_n=function(){function t(t,e,o,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=o,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new i.Subject,this.navigationId=0,this.errorHandler=pe,this.navigated=!1,this.hooks={beforePreactivation:he,afterPreactivation:he},this.urlHandlingStrategy=new bn,this.routeReuseStrategy=new mn;var h=function(t){return p.triggerEvent(new De(t))},d=function(t){return p.triggerEvent(new Ne(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=F(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new gn(u,c,h,d),this.currentRouterState=wt(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){O(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){void 0===e&&(e={});var r=e.relativeTo,i=e.queryParams,o=e.fragment,s=e.preserveQueryParams,a=e.queryParamsHandling,u=e.preserveFragment;n.isDevMode()&&s&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=r||this.routerState.root,l=u?this.currentUrlTree.fragment:o,p=null;if(a)switch(a){case"merge":p=Object.assign({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=s?this.currentUrlTree.queryParams:i||null;return It(c,this.currentUrlTree,t,p,l)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof qe?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),ge(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 qe)return V(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return V(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Te(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Te(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,wt(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,o){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Me(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(o)h=s.of({appliedUrl:t,snapshot:o});else{var d=ut(a.ngModule.injector,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call(Yt(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var f,m,y=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(y,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return(f=new En(n,a.currentRouterState.snapshot,r)).traverse(a.rootContexts),{appliedUrl:e,snapshot:n}}),v=p.mergeMap.call(g,function(e){var n=e.appliedUrl,r=e.snapshot;return a.navigationId!==i?s.of(!1):(a.triggerEvent(new je(i,a.serializeUrl(t),n,r)),l.map.call(f.checkGuards(),function(e){return a.triggerEvent(new Le(i,a.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),b=p.mergeMap.call(v,function(e){return a.navigationId!==i?s.of(!1):e.shouldActivate&&f.isActivating()?(a.triggerEvent(new Fe(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),l.map.call(f.resolveData(),function(){return a.triggerEvent(new Ve(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):s.of(e)}),_=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),w=l.map.call(_,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;return r?{appliedUrl:e,state:kt(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}:{appliedUrl:e,state:null,shouldActivate:r}}),C=a.currentRouterState,E=a.currentUrlTree;w.forEach(function(t){var o=t.appliedUrl,s=t.state;if(t.shouldActivate&&i===a.navigationId){if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new xn(a.routeReuseStrategy,s,C).activate(a.rootContexts),m=!0}else m=!1}).then(function(){m?(a.navigated=!0,a.routerEvents.next(new Ae(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Me(i,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Me(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new Re(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=C,a.currentUrlTree=E,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),wn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),Cn=function(){function t(t,e){this.component=t,this.route=e}return t}(),En=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())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(!this.isActivating())return s.of(null);var e=o.from(this.canActivateChecks),n=a.concatMap.call(e,function(e){return t.runResolve(e.route)});return h.reduce.call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=ye(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),D(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i._routeConfig===o._routeConfig){if(this.shouldRunGuardsAndResolvers(o,i,i._routeConfig.runGuardsAndResolvers)){this.canActivateChecks.push(new wn(r));var a=s.outlet;this.canDeactivateChecks.push(new Cn(a.component,o))}else i.data=o.data,i._resolvedData=o._resolvedData;i.component?this.traverseChildRoutes(t,e,s?s.children:null,r):this.traverseChildRoutes(t,e,n,r)}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new wn(r)),i.component?this.traverseChildRoutes(t,null,s?s.children:null,r):this.traverseChildRoutes(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Ot(t,e)||!M(t.queryParams,e.queryParams);case"paramsChange":default:return!Ot(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=ye(t),i=t.value;D(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new Cn(e.outlet.component,i)):this.canDeactivateChecks.push(new Cn(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=o.from(this.canDeactivateChecks),n=p.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=o.from(this.canActivateChecks),n=p.mergeMap.call(e,function(e){return j(o.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return u.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?j(l.map.call(o.from(n),function(n){var r,i=e.getToken(n,t);return r=L(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),c.first.call(r)})):s.of(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return j(l.map.call(o.from(r),function(t){return j(l.map.call(o.from(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=L(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),c.first.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var i=p.mergeMap.call(o.from(r),function(r){var i,o=n.getToken(r,e);return i=L(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),c.first.call(i)});return u.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object.assign({},t.data,Et(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return N(t,function(t,r){var i=n.getToken(r,e);return L(i.resolve?i.resolve(e,n.future):i(e,n.future))})},t.prototype.getToken=function(t,e){var n=me(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),xn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Pt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=ye(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),D(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=ye(t),o=t.value.component?r.children:e;D(i,function(t,e){n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=ye(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(Pt(r),r===i)if(r.component){o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),de(s.route)}else{var a=fe(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}(),Sn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:ve(this.skipLocationChange),replaceUrl:ve(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:ve(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ve(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sn.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],Sn.ctorParameters=function(){return[{type:_n},{type:an},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer2},{type:n.ElementRef}]},Sn.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Pn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Ae&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:ve(this.skipLocationChange),replaceUrl:ve(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:ve(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:ve(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Pn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Pn.ctorParameters=function(){return[{type:_n},{type:an},{type:e.LocationStrategy}]},Pn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var On=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Ae&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}),Promise.resolve(e).then(function(e){return t.active=e}))}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();On.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],On.ctorParameters=function(){return[{type:_n},{type:n.ElementRef},{type:n.Renderer2},{type:n.ChangeDetectorRef}]},On.propDecorators={links:[{type:n.ContentChildren,args:[Sn,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Pn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var kn=function(){function t(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Tn,this.attachRef=null}return t}(),Tn=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new kn,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),An=function(){function t(t,e,r,i,o){this.parentContexts=t,this.location=e,this.resolver=r,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,this.name=i||Be,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"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}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var n=t._futureSnapshot._routeConfig.component,r=(e=e||this.resolver).resolveComponentFactory(n),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Mn(t,i,this.location.injector);this.activated=this.location.createComponent(r,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}();An.decorators=[{type:n.Directive,args:[{selector:"router-outlet",exportAs:"outlet"}]}],An.ctorParameters=function(){return[{type:Tn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]},{type:n.ChangeDetectorRef}]},An.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var Mn=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===an?this.route:t===Tn?this.childContexts:this.parent.get(t,e)},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return f._catch.call(e(),function(){return s.of(null)})},t}(),Dn=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),Nn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;var o=function(e){return t.triggerEvent(new De(e))},s=function(e){return t.triggerEvent(new Ne(e))};this.loader=new gn(e,n,o,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof Ae});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var s=i[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return b.mergeAll.call(o.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();Nn.decorators=[{type:n.Injectable}],Nn.ctorParameters=function(){return[{type:_n},{type:n.NgModuleFactoryLoader},{type:n.Compiler},{type:n.Injector},{type:Rn}]};var jn=[An,Sn,Pn,On],Ln=new n.InjectionToken("ROUTER_CONFIGURATION"),Fn=new n.InjectionToken("ROUTER_FORROOT_GUARD"),Vn=[e.Location,{provide:Ke,useClass:$e},{provide:_n,useFactory:Ee,deps:[n.ApplicationRef,Ke,Tn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,yn,Ln,[vn,new n.Optional],[fn,new n.Optional]]},Tn,{provide:an,useFactory:xe,deps:[_n]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},Nn,Dn,In,{provide:Ln,useValue:{enableTracing:!1}}],Bn=function(){function t(t,e){}return t.forRoot=function(r,i){return{ngModule:t,providers:[Vn,Ce(r),{provide:Fn,useFactory:we,deps:[[_n,new n.Optional,new n.SkipSelf]]},{provide:Ln,useValue:i||{}},{provide:e.LocationStrategy,useFactory:_e,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],Ln]},{provide:Rn,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Dn},{provide:n.NgProbeToken,multi:!0,useFactory:be},Oe()]}},t.forChild=function(e){return{ngModule:t,providers:[Ce(e)]}},t}();Bn.decorators=[{type:n.NgModule,args:[{declarations:jn,exports:jn}]}],Bn.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Fn]}]},{type:_n,decorators:[{type:n.Optional}]}]};var Un=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new i.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(_n),i=t.injector.get(Ln);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Ln),r=this.injector.get(Nn),i=this.injector.get(_n),o=this.injector.get(n.ApplicationRef);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),r.setUpPreloading(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Un.decorators=[{type:n.Injectable}],Un.ctorParameters=function(){return[{type:n.Injector}]};var Hn=new n.InjectionToken("Router Initializer"),zn=new n.Version("4.3.0");t.RouterLink=Sn,t.RouterLinkWithHref=Pn,t.RouterLinkActive=On,t.RouterOutlet=An,t.GuardsCheckEnd=Le,t.GuardsCheckStart=je,t.NavigationCancel=Me,t.NavigationEnd=Ae,t.NavigationError=Re,t.NavigationStart=Te,t.ResolveEnd=Ve,t.ResolveStart=Fe,t.RouteConfigLoadEnd=Ne,t.RouteConfigLoadStart=De,t.RoutesRecognized=Ie,t.RouteReuseStrategy=fn,t.Router=_n,t.ROUTES=yn,t.ROUTER_CONFIGURATION=Ln,t.ROUTER_INITIALIZER=Hn,t.RouterModule=Bn,t.provideRoutes=Ce,t.ChildrenOutletContexts=Tn,t.OutletContext=kn,t.NoPreloading=Dn,t.PreloadAllModules=In,t.PreloadingStrategy=Rn,t.RouterPreloader=Nn,t.ActivatedRoute=an,t.ActivatedRouteSnapshot=un,t.RouterState=sn,t.RouterStateSnapshot=cn,t.PRIMARY_OUTLET=Be,t.convertToParamMap=E,t.UrlHandlingStrategy=vn,t.DefaultUrlSerializer=$e,t.UrlSegment=We,t.UrlSegmentGroup=Ge,t.UrlSerializer=Ke,t.UrlTree=qe,t.VERSION=zn,t.ɵROUTER_PROVIDERS=Vn,t.ɵflatten=R,t.ɵa=Fn,t.ɵg=Un,t.ɵh=Se,t.ɵi=Pe,t.ɵd=we,t.ɵc=_e,t.ɵj=Oe,t.ɵf=xe,t.ɵb=be,t.ɵe=Ee,t.ɵk=rn,t.ɵl=on,Object.defineProperty(t,"__esModule",{value:!0})})},{"@angular/common":29,"@angular/core":31,"@angular/platform-browser":37,"rxjs/BehaviorSubject":39,"rxjs/Observable":42,"rxjs/Subject":46,"rxjs/observable/from":62,"rxjs/observable/fromPromise":64,"rxjs/observable/of":66,"rxjs/operator/catch":69,"rxjs/operator/concatAll":71,"rxjs/operator/concatMap":72,"rxjs/operator/every":75,"rxjs/operator/filter":76,"rxjs/operator/first":78,"rxjs/operator/last":79,"rxjs/operator/map":80,"rxjs/operator/mergeAll":82,"rxjs/operator/mergeMap":83,"rxjs/operator/reduce":86,"rxjs/util/EmptyError":98}],39:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Subject"),o=t("./util/ObjectUnsubscribedError"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);n.BehaviorSubject=s},{"./Subject":46,"./util/ObjectUnsubscribedError":99}],40:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(t("./Subscriber").Subscriber);n.InnerSubscriber=i},{"./Subscriber":48}],41:[function(t,e,n){"use strict";var r=t("./Observable"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();n.Notification=i},{"./Observable":42}],42:[function(t,e,n){"use strict";var r=t("./util/root"),i=t("./util/toSubscriber"),o=t("./symbol/observable"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();n.Observable=s},{"./symbol/observable":96,"./util/root":108,"./util/toSubscriber":110}],43:[function(t,e,n){"use strict";n.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},{}],44:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(t("./Subscriber").Subscriber);n.OuterSubscriber=i},{"./Subscriber":48}],45:[function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();n.Scheduler=r},{}],46:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./Observable"),o=t("./Subscriber"),s=t("./Subscription"),a=t("./util/ObjectUnsubscribedError"),u=t("./SubjectSubscription"),c=t("./symbol/rxSubscriber"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);n.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(i.Observable);n.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);n.AnonymousSubject=h},{"./Observable":42,"./SubjectSubscription":47,"./Subscriber":48,"./Subscription":49,"./symbol/rxSubscriber":97,"./util/ObjectUnsubscribedError":99}],47:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(t("./Subscription").Subscription);n.SubjectSubscription=i},{"./Subscription":49}],48:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("./util/isFunction"),o=t("./Subscription"),s=t("./Observer"),a=t("./symbol/rxSubscriber"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);n.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var s,a=this;i.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,o=n.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},{"./Observer":43,"./Subscription":49,"./symbol/rxSubscriber":97,"./util/isFunction":104}],49:[function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=t("./util/isArray"),o=t("./util/isObject"),s=t("./util/isFunction"),a=t("./util/tryCatch"),u=t("./util/errorObject"),c=t("./util/UnsubscriptionError"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,d=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,m=p?p.length:0;l;)l.remove(this),l=++f<m&&p[f]||null;if(s.isFunction(h)&&(g=a.tryCatch(h).call(this))===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e])),i.isArray(d))for(f=-1,m=d.length;++f<m;){var y=d[f];if(o.isObject(y)){var g=a.tryCatch(y.unsubscribe).call(y);if(g===u.errorObject){e=!0,t=t||[];var v=u.errorObject.e;v instanceof c.UnsubscriptionError?t=t.concat(r(v.errors)):t.push(v)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new t)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();n.Subscription=l},{"./util/UnsubscriptionError":100,"./util/errorObject":101,"./util/isArray":102,"./util/isFunction":104,"./util/isObject":105,"./util/tryCatch":111}],50:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;i.closed||(n>=r?i.complete():(i.next(e[n]),t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);n.ArrayLikeObservable=a},{"../Observable":42,"./EmptyObservable":53,"./ScalarObservable":60}],51:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./ScalarObservable"),s=t("./EmptyObservable"),a=t("../util/isScheduler"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);n.ArrayObservable=u},{"../Observable":42,"../util/isScheduler":107,"./EmptyObservable":53,"./ScalarObservable":60}],52:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Subject"),o=t("../Observable"),s=t("../Subscriber"),a=t("../Subscription"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||((t=this._connection=new a.Subscription).add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(o.Observable);n.ConnectableObservable=u,n.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(s.Subscriber)},{"../Observable":42,"../Subject":46,"../Subscriber":48,"../Subscription":49}],53:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(t("../Observable").Observable);n.EmptyObservable=i},{"../Observable":42}],54:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(t("../Observable").Observable);n.ErrorObservable=i},{"../Observable":42}],55:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../Observable"),o=t("./EmptyObservable"),s=t("../util/isArray"),a=t("../util/subscribeToResult"),u=t("../OuterSubscriber"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);n.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,i=n.resultSelector,o=n.values,s=o.length;if(t._hasValue){if(++this.completed===s){if(r===s){var a=i?i.apply(this,o):o;e.next(a)}e.complete()}}else e.complete()},e}(u.OuterSubscriber)},{"../Observable":42,"../OuterSubscriber":44,"../util/isArray":102,"../util/subscribeToResult":109,"./EmptyObservable":53}],56:[function(t,e,n){"use strict";function r(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===f.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===f.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=t("../Observable"),l=t("../util/tryCatch"),p=t("../util/isFunction"),h=t("../util/errorObject"),d=t("../Subscription"),f=Object.prototype.toString,m=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return u(e,t),e.create=function(t,n,r,i){return p.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,u,c,l){var p;if(o(t)||s(t))for(var h=0,f=t.length;h<f;h++)e.setupSubscription(t[h],n,u,c,l);else if(a(t)){var m=t;t.addEventListener(n,u,l),p=function(){return m.removeEventListener(n,u)}}else if(i(t)){var y=t;t.on(n,u),p=function(){return y.off(n,u)}}else{if(!r(t))throw new TypeError("Invalid event target");var g=t;t.addListener(n,u),p=function(){return g.removeListener(n,u)}}c.add(new d.Subscription(p))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=l.tryCatch(o).apply(void 0,e);r===h.errorObject?t.error(h.errorObject.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,s,t,i)},e}(c.Observable);n.FromEventObservable=m},{"../Observable":42,"../Subscription":49,"../util/errorObject":101,"../util/isFunction":104,"../util/tryCatch":111}],57:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/isArray"),o=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"),d=t("../operator/observeOn"),f=t("../symbol/observable"),m=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[f.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[f.$$observable]().subscribe(t):e[f.$$observable]().subscribe(new d.ObserveOnSubscriber(t,n,0))},e}(h.Observable);n.FromObservable=m},{"../Observable":42,"../operator/observeOn":85,"../symbol/iterator":95,"../symbol/observable":96,"../util/isArray":102,"../util/isArrayLike":103,"../util/isPromise":106,"./ArrayLikeObservable":50,"./ArrayObservable":51,"./IteratorObservable":58,"./PromiseObservable":59}],58:[function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new d(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>f?f:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=t("../util/root"),c=t("../Observable"),l=t("../symbol/iterator"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)i.error(t.error);else{var o=r.next();o.done?i.complete():(i.next(o.value),t.index=e+1,i.closed?"function"==typeof r.return&&r.return():this.schedule(t))}},e.prototype._subscribe=function(t){var n=this,r=n.iterator,i=n.scheduler;if(i)return i.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);n.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),d=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),f=Math.pow(2,53)-1},{"../Observable":42,"../symbol/iterator":95,"../util/root":108}],59:[function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../util/root"),a=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(t("../Observable").Observable);n.PromiseObservable=a},{"../Observable":42,"../util/root":108}],60:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;e?r.complete():(r.next(n),r.closed||(t.done=!0,this.schedule(t)))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(t("../Observable").Observable);n.ScalarObservable=i},{"../Observable":42}],61:[function(t,e,n){"use strict";var r=t("./ForkJoinObservable");n.forkJoin=r.ForkJoinObservable.create},{"./ForkJoinObservable":55}],62:[function(t,e,n){"use strict";var r=t("./FromObservable");n.from=r.FromObservable.create},{"./FromObservable":57}],63:[function(t,e,n){"use strict";var r=t("./FromEventObservable");n.fromEvent=r.FromEventObservable.create},{"./FromEventObservable":56}],64:[function(t,e,n){"use strict";var r=t("./PromiseObservable");n.fromPromise=r.PromiseObservable.create},{"./PromiseObservable":59}],65:[function(t,e,n){"use strict";var r=t("../operator/merge");n.merge=r.mergeStatic},{"../operator/merge":81}],66:[function(t,e,n){"use strict";var r=t("./ArrayObservable");n.of=r.ArrayObservable.of},{"./ArrayObservable":51}],67:[function(t,e,n){"use strict";var r=t("./ErrorObservable");n._throw=r.ErrorObservable.create},{"./ErrorObservable":54}],68:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=s.async),this.lift(new u(t,e))}function i(t){t.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../scheduler/async"),a=t("../Subscriber");n.auditTime=r;var u=function(){function t(t,e){this.duration=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.duration,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.duration=n,this.scheduler=r,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0,this.throttled||this.add(this.throttled=this.scheduler.schedule(i,this.duration,this))},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e}(a.Subscriber)},{"../Subscriber":48,"../scheduler/async":94}],69:[function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},{"../OuterSubscriber":44,"../util/subscribeToResult":109}],70:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,r=t;return s.isScheduler(r[t.length-1])&&(n=r.pop()),null===n&&1===t.length&&t[0]instanceof o.Observable?t[0]:new a.ArrayObservable(t,n).lift(new u.MergeAllOperator(1))}var o=t("../Observable"),s=t("../util/isScheduler"),a=t("../observable/ArrayObservable"),u=t("./mergeAll");n.concat=r,n.concatStatic=i},{"../Observable":42,"../observable/ArrayObservable":51,"../util/isScheduler":107,"./mergeAll":82}],71:[function(t,e,n){"use strict";function r(){return this.lift(new i.MergeAllOperator(1))}var i=t("./mergeAll");n.concatAll=r},{"./mergeAll":82}],72:[function(t,e,n){"use strict";function r(t,e){return this.lift(new i.MergeMapOperator(t,e,1))}var i=t("./mergeMap");n.concatMap=r},{"./mergeMap":83}],73:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),this.lift(new u(t,e))}function i(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=t("../Subscriber"),a=t("../scheduler/async");n.debounceTime=r;var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},{"../Subscriber":48,"../scheduler/async":94}],74:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n._do=r;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e);var s=new o.Subscriber(n,r,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},{"../Subscriber":48}],75:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},{"../Subscriber":48}],76:[function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},{"../Subscriber":48}],77:[function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Subscription");n._finally=r;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,n){t.call(this,e),this.add(new s.Subscription(n))}return i(e,t),e}(o.Subscriber)},{"../Subscriber":48,"../Subscription":49}],78:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){this.resultSelector?this._tryResultSelector(t,e):this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},{"../Subscriber":48,"../util/EmptyError":98}],79:[function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../util/EmptyError");n.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},{"../Subscriber":48,"../util/EmptyError":98}],80:[function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();n.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},{"../Subscriber":48}],81:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(i.apply(void 0,[this].concat(t)))}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,i=t[t.length-1];return u.isScheduler(i)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof i&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof o.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var o=t("../Observable"),s=t("../observable/ArrayObservable"),a=t("./mergeAll"),u=t("../util/isScheduler");n.merge=r,n.mergeStatic=i},{"../Observable":42,"../observable/ArrayObservable":51,"../util/isScheduler":107,"./mergeAll":82}],82:[function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();n.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return i(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}(o.OuterSubscriber);n.MergeAllSubscriber=u},{"../OuterSubscriber":44,"../util/subscribeToResult":109}],83:[function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../util/subscribeToResult"),s=t("../OuterSubscriber");n.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();n.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);n.MergeMapSubscriber=u},{"../OuterSubscriber":44,"../util/subscribeToResult":109}],84:[function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new o(n,e));var r=Object.create(this,i.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var i=t("../observable/ConnectableObservable");n.multicast=r;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();n.MulticastOperator=o},{"../observable/ConnectableObservable":52}],85:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber"),s=t("../Notification");n.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();n.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);n.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();n.ObserveOnMessage=c},{"../Notification":41,"../Subscriber":48}],86:[function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../Subscriber");n.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();n.ReduceOperator=s;var a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.hasSeed=i,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return i(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(o.Subscriber);n.ReduceSubscriber=a},{"../Subscriber":48}],87:[function(t,e,n){"use strict";function r(){return new s.Subject}function i(){return o.multicast.call(this,r).refCount()}var o=t("./multicast"),s=t("../Subject");n.share=i},{"../Subject":46,"./multicast":84}],88:[function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];u.isScheduler(n)?t.pop():n=null;var r=t.length;return 1===r?a.concatStatic(new o.ScalarObservable(t[0],n),this):r>1?a.concatStatic(new i.ArrayObservable(t,n),this):a.concatStatic(new s.EmptyObservable(n),this)}var i=t("../observable/ArrayObservable"),o=t("../observable/ScalarObservable"),s=t("../observable/EmptyObservable"),a=t("./concat"),u=t("../util/isScheduler");n.startWith=r},{"../observable/ArrayObservable":51,"../observable/EmptyObservable":53,"../observable/ScalarObservable":60,"../util/isScheduler":107,"./concat":70}],89:[function(t,e,n){"use strict";function r(t,e){return this.lift(new a(t,e))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.switchMap=r;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(o.OuterSubscriber)},{"../OuterSubscriber":44,"../util/subscribeToResult":109}],90:[function(t,e,n){"use strict";function r(t){return this.lift(new a(t))}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=t("../OuterSubscriber"),s=t("../util/subscribeToResult");n.takeUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},{"../OuterSubscriber":44,"../util/subscribeToResult":109}],91:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(t("../Subscription").Subscription);n.Action=i},{"../Subscription":49}],92:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=t("../util/root"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null))},e}(t("./Action").Action);n.AsyncAction=o},{"../util/root":108,"./Action":91}],93:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(t("../Scheduler").Scheduler);n.AsyncScheduler=i},{"../Scheduler":45}],94:[function(t,e,n){"use strict";var r=t("./AsyncAction"),i=t("./AsyncScheduler");n.async=new i.AsyncScheduler(r.AsyncAction)},{"./AsyncAction":92,"./AsyncScheduler":93}],95:[function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=t("../util/root");n.symbolIteratorPonyfill=r,n.$$iterator=r(i.root)},{"../util/root":108}],96:[function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=t("../util/root");n.getSymbolObservable=r,n.$$observable=r(i.root)},{"../util/root":108}],97:[function(t,e,n){"use strict";var r=t("../util/root").root.Symbol;n.$$rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},{"../util/root":108}],98:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.EmptyError=i},{}],99:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);n.ObjectUnsubscribedError=i},{}],100:[function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);n.UnsubscriptionError=i},{}],101:[function(t,e,n){"use strict";n.errorObject={e:{}}},{}],102:[function(t,e,n){"use strict";n.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},{}],103:[function(t,e,n){"use strict";n.isArrayLike=function(t){return t&&"number"==typeof t.length}},{}],104:[function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.isFunction=r},{}],105:[function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.isObject=r},{}],106:[function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.isPromise=r},{}],107:[function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}n.isScheduler=r},{}],108:[function(t,e,n){(function(t){"use strict";if(n.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t,!n.root)throw new Error("RxJS could not find any global context (window, self, global)")}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],109:[function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(o.isArrayLike(e)){for(var d=0,f=e.length;d<f&&!h.closed;d++)h.next(e[d]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var m=e[c.$$iterator]();;){var y=m.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var g=e[p.$$observable]();if("function"==typeof g.subscribe)return g.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v="You provided "+(a.isObject(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(v))}}return null}var i=t("./root"),o=t("./isArrayLike"),s=t("./isPromise"),a=t("./isObject"),u=t("../Observable"),c=t("../symbol/iterator"),l=t("../InnerSubscriber"),p=t("../symbol/observable");n.subscribeToResult=r},{"../InnerSubscriber":40,"../Observable":42,"../symbol/iterator":95,"../symbol/observable":96,"./isArrayLike":103,"./isObject":105,"./isPromise":106,"./root":108}],110:[function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.$$rxSubscriber])return t[o.$$rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=t("../Subscriber"),o=t("../symbol/rxSubscriber"),s=t("../Observer");n.toSubscriber=r},{"../Observer":43,"../Subscriber":48,"../symbol/rxSubscriber":97}],111:[function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=t("./errorObject");n.tryCatch=i},{"./errorObject":101}],112:[function(t,e,n){(function(t){var n,r,i,o,s,a,u,c,l,p,h,d,f,m,y,g;!function(n){function r(t,e){return function(n,r){return t[n]=e?e(n,r):r}}var i="object"==typeof t?t:"object"==typeof self?self:"object"==typeof this?this:{};n("object"==typeof e&&"object"==typeof e.exports?r(i,r(e.exports)):r(i))}(function(t){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};n=function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)},r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},i=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]]);return n},o=function(t,e,n,r){var i,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(o<3?i(s):o>3?i(e,n,s):i(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},s=function(t,e){return function(n,r){e(n,r,t)}},a=function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},u=function(t,e,n,r){return new(n||(n=Promise))(function(i,o){function s(t){try{u(r.next(t))}catch(t){o(t)}}function a(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){t.done?i(t.value):new n(function(e){e(t.value)}).then(s,a)}u((r=r.apply(t,e||[])).next())})},c=function(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(s=o[2&n[0]?"return":n[0]?"throw":"next"])&&!(s=s.call(o,n[1])).done)return s;switch(o=0,s&&(n=[0,s.value]),n[0]){case 0:case 1:s=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,o=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(s=u.trys,!(s=s.length>0&&s[s.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!s||n[1]>s[0]&&n[1]<s[3])){u.label=n[1];break}if(6===n[0]&&u.label<s[1]){u.label=s[1],s=n;break}if(s&&u.label<s[2]){u.label=s[2],u.ops.push(n);break}s[2]&&u.ops.pop(),u.trys.pop();continue}n=e.call(t,u)}catch(t){n=[6,t],o=0}finally{i=s=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,s,a,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return a={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a},l=function(t,e){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n])},p=function(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}},h=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s},d=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(h(arguments[e]));return t},f=function(t){return this instanceof f?(this.v=t,this):new f(t)},m=function(t,e,n){function r(t){l[t]&&(c[t]=function(e){return new Promise(function(n,r){p.push([t,e,n,r])>1||i(t,e)})})}function i(t,e){try{o(l[t](e))}catch(t){u(p[0][3],t)}}function o(t){t.value instanceof f?Promise.resolve(t.value.v).then(s,a):u(p[0][2],t)}function s(t){i("next",t)}function a(t){i("throw",t)}function u(t,e){t(e),p.shift(),p.length&&i(p[0][0],p[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,l=n.apply(t,e||[]),p=[];return c={},r("next"),r("throw"),r("return"),c[Symbol.asyncIterator]=function(){return this},c},y=function(t){function e(e,i){t[e]&&(n[e]=function(n){return(r=!r)?{value:f(t[e](n)),done:"return"===e}:i?i(n):n})}var n,r;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n},g=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof p?p(t):t[Symbol.iterator]()},t("__extends",n),t("__assign",r),t("__rest",i),t("__decorate",o),t("__param",s),t("__metadata",a),t("__awaiter",u),t("__generator",c),t("__exportStar",l),t("__values",p),t("__read",h),t("__spread",d),t("__await",f),t("__asyncGenerator",m),t("__asyncDelegator",y),t("__asyncValues",g)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[24])(24)}); \ No newline at end of file