(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{0:function(e,t,n){e.exports=n("zUnb")},"1DaH":function(e,t,n){"use strict";function r(e){return e}n.d(t,"a",function(){return r})},"3LUQ":function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,"a",function(){return r})},"3nG1":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("Cpcn"),i=n("6pC9");function a(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);nMathematica and The Rockefeller Foundation, is designed to help schools and public health agencies make these decisions. The results shown were produced by an agent-based model (ABM) created to assess the potential value of routine testing in K-12 schools, above and beyond other mitigation strategies.','Answer a few questions and then select different routine testing strategies to compare how well they each perform relative to one another and a "baseline" in which a school offers only diagnostic testing and masking.*','Update 11/8/2021: Underlying ABM updated to assume all SARS-CoV-2 virus in the model is of the Delta (B.1.617.2) variant given its widespread prevalence. Additional questions were added to present results based on varying vaccination rates among (1) students and (2) teachers and staff. An additional question was added to present results with varying student opt-in rates to routine testing. All teachers and staff are assumed to comply with routine testing.','Insights','',"For further inquiries about the use of this impact estimator, please reach out to Divya Vohra (dvohra@mathematica-mpr.com) and John Hotchkiss (jhotchkiss@mathematica-mpr.com)."]},school:{title:"Select a school type",shortDescription:[""],description:["Our model was developed based on typical numbers of students, teachers, and staff in elementary and middle/high schools in the United States. Key findings and insights are therefore applicable to a range of K-12 school settings.","In this option, we assume:","\u2022 Students attend grades K\u20135 for elementary school, 6\u20138 for middle school, and 9\u201312 for high school.","\u2022 Each elementary student is assigned a single class, while middle and high school students are assigned six classes that they attend each day.","\u2022 All classes contain the same number of students.","\u2022 Middle and high school students are as susceptible as adults, while elementary students have half the susceptibility of adults (Park et al., 2020)."],placeholder:"Select type",abbreviation:"School type"},quar:{title:"Select a quarantine policy",shortDescription:["Which students and staff are quarantined when there\u2019s a positive case?"],description:["The model allows flexibility in selecting a middle/high school\u2019s policy for quarantining those who come into contact with a person who has a positive test result. There are innumerable ways to choose whom to quarantine, but three common policies are provided here. Elementary schools are always modeled with podded school populations, so they always use the \u201cAll classroom and bus contacts\u201d option.","\u201cOnly close contacts within 6 feet\u201d assumes that students on average are within 6 feet of two other students for at least 15 minutes per class or on a bus."],placeholder:"Select policy",abbreviation:"Quarantine policy"},adultVax:{title:"Select a vaccination rate for teachers and staff",shortDescription:["What percentage of teachers and staff are vaccinated?"],description:["More explanation","Another line even"],placeholder:"Select rate",abbreviation:"Vaccination rate of teachers and staff"},studVax:{title:"Select a vaccination rate for students",shortDescription:["What percentage of students are vaccinated?"],description:["More explanation","Another line even"],placeholder:"Select rate",abbreviation:"Vaccination rate of students"},adhere:{title:"Select a routine testing opt-in rate",shortDescription:["What percentage of students opt-in to routine testing?"],description:["More explanation","Another line even"],placeholder:"Select rate",abbreviation:"Routine testing adherence rate"},commInf:{title:"Select a community incidence rate",placeholder:"Select rate",shortDescription:['Provide the total number of people infected per 100,000 in the past 7 days. To find your community incidence rate, use the CDC county-level case tracker.'],description:["Community incidence rate options are given as the number of cases per 100,000 people over the course of the past 7 days. They are based on rates observed in a range of communities across the United States. They are collected from existing literature or, where feasible, city- or state-level resources. The community incidence rate determines how frequently a student, teacher, or staff in the model becomes infected outside of the school.","To find your community incidence rate, use the CDC county-level case tracker. Under \u201cCovid-19 Integrated County View\u201d select your state and county. Under \u201cMap Data\u201d select \u201cCases\u201d in the first dropdown menu and \u201cReported cases per 100,000 population\u201d in the second dropdown menu. Use the map view or scroll down to the \u201c7 Day Average\u201d section to view results for your county.","While testing may still be effective at lower community incidence rates, total infections and within-school transmissions may be so low that the effective strategies as determined by the outcomes presented differ in part due to random chance."],abbreviation:"Community incidence rate"},outcomes:{title:"Select a priority outcome",placeholder:"",shortDescription:[],description:["Select the metric that is your highest priority for decision making. Results will be displayed for all metrics, but will be organized based on this selection."],abbreviation:"Priority Metric"},testingStrat:{title:"Select screening testing strategies to compare",placeholder:"Select strategy",shortDescription:["Pick the strategies you would like to compare. You can compare as few or as many combinations as you would like. For more information, see the info button for Test Type."],description:["Select the testing populations and testing frequencies you would like to compare. The results will appear side-by-side, so we recommend selecting multiple options in each category for comparison.","These are not all the possible ways that schools might test during the pandemic, but they capture a wide range of approaches. The results of each of these scenarios will be presented relative to diagnostic testing only.","All strategies have been selected by default, uncheck any to remove those strategies from the display.","Combinations of population, frequency, and test type that are invalid due to model assumptions will not be displayed."],abbreviation:"Testing Strategies"}}},I1zG:function(e,t,n){"use strict";n.d(t,"a",function(){return h});var r=n("saeC"),i=n("ywnY"),a=n("Wskk"),o=n("ZQq2"),s=n("OHTZ"),u=n("u/2e"),c=n("1DaH");function l(e){return 0===e.length?c.a:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}var f=n("Nom/"),h=function(){var e=function(){function e(t){Object(r.a)(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return Object(i.a)(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof a.a)return e;if(e[o.a])return e[o.a]()}return e||t||n?new a.a(e,t,n):new a.a(s.a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||f.a.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),f.a.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){f.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof a.a?t:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=d(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}},r,t)})}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:u.a,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(O.a),E=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r){var i;return Object(d.a)(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return Object(h.a)(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new g.a).add(this.source.subscribe(new x(this.getSubject(),this))),e.closed&&(this._connection=null,e=g.a.EMPTY)),e}},{key:"refCount",value:function(){return j()(this)}}]),n}(b.a),T=function(){var e=E.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}}(),x=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r){var i;return Object(d.a)(this,n),(i=t.call(this,e)).connectable=r,i}return Object(h.a)(n,[{key:"_error",value:function(e){this._unsubscribe(),Object(r.a)(Object(i.a)(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),Object(r.a)(Object(i.a)(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(m.b);function A(){return new m.a}function P(e){for(var t in e)if(e[t]===P)return t;throw Error("Could not find renamed property on target object.")}function I(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function R(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(R).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return"".concat(e.overriddenName);if(e.name)return"".concat(e.name);var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function N(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var D=P({__forward_ref__:P});function F(e){return e.__forward_ref__=F,e.toString=function(){return R(this())},e}function M(e){return U(e)?e():e}function U(e){return"function"==typeof e&&e.hasOwnProperty(D)&&e.__forward_ref__===F}function L(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function H(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function V(e){return q(e,Q)||q(e,W)}function q(e,t){return e.hasOwnProperty(t)?e[t]:null}function z(e){return e&&(e.hasOwnProperty(G)||e.hasOwnProperty(K))?e[G]:null}var B,Q=P({"\u0275prov":P}),G=P({"\u0275inj":P}),W=P({ngInjectableDef:P}),K=P({ngInjectorDef:P}),Z=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function Y(){return B}function J(e){var t=B;return B=e,t}function $(e,t,n){var r=V(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&Z.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(R(e),"]"))}function X(e){return{toString:e}.toString()}var ee=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),te=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),ne="undefined"!=typeof globalThis&&globalThis,re="undefined"!=typeof window&&window,ie="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ae="undefined"!=typeof global&&global,oe=ne||ae||re||ie,se={},ue=[],ce=P({"\u0275cmp":P}),le=P({"\u0275dir":P}),fe=P({"\u0275pipe":P}),he=P({"\u0275mod":P}),de=P({"\u0275loc":P}),ve=P({"\u0275fac":P}),pe=P({__NG_ELEMENT_ID__:P}),ye=0;function ge(e){return X(function(){var t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ee.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ue,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||te.Emulated,id:"c",styles:e.styles||ue,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,a=e.pipes;return n.id+=ye++,n.inputs=Oe(e.inputs,t),n.outputs=Oe(e.outputs),i&&i.forEach(function(e){return e(n)}),n.directiveDefs=r?function(){return("function"==typeof r?r():r).map(me)}:null,n.pipeDefs=a?function(){return("function"==typeof a?a():a).map(be)}:null,n})}function me(e){return Ce(e)||function(e){return e[le]||null}(e)}function be(e){return function(e){return e[fe]||null}(e)}var _e={};function ke(e){var t={type:e.type,bootstrap:e.bootstrap||ue,declarations:e.declarations||ue,imports:e.imports||ue,exports:e.exports||ue,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&X(function(){_e[e.id]=e.type}),t}function we(e,t){return X(function(){var n=Ee(e,!0);n.declarations=t.declarations||ue,n.imports=t.imports||ue,n.exports=t.exports||ue})}function Oe(e,t){if(null==e)return se;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],a=i;Array.isArray(i)&&(a=i[1],i=i[0]),n[i]=r,t&&(t[i]=a)}return n}var je=ge;function Se(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ce(e){return e[ce]||null}function Ee(e,t){var n=e[he]||null;if(!n&&!0===t)throw new Error("Type ".concat(R(e)," does not have '\u0275mod' property."));return n}var Te=20,xe=10;function Ae(e){return Array.isArray(e)&&"object"==typeof e[1]}function Pe(e){return Array.isArray(e)&&!0===e[1]}function Ie(e){return 0!=(8&e.flags)}function Re(e){return 2==(2&e.flags)}function Ne(e){return 1==(1&e.flags)}function De(e){return null!==e.template}function Fe(e,t){return e.hasOwnProperty(ve)?e[ve]:null}var Me=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r){var i;return Object(d.a)(this,n),(i=t.call(this,function(e,t){var n=e?"NG0".concat(e,": "):"";return"".concat(n).concat(t)}(e,r))).code=e,i}return n}(y(Error));function Ue(e){return"string"==typeof e?e:null==e?"":String(e)}function Le(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Ue(e)}function He(e,t){var n=t?" in ".concat(t):"";throw new Me("201","No provider for ".concat(Le(e)," found").concat(n))}var Ve=function(){function e(t,n,r){Object(d.a)(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return Object(h.a)(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function qe(){return ze}function ze(e){return e.type.prototype.ngOnChanges&&(e.setInput=Qe),Be}function Be(){var e=Ge(this),t=null==e?void 0:e.current;if(t){var n=e.previous;if(n===se)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Qe(e,t,n,r){var i=Ge(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:se,current:null}),a=i.current||(i.current={}),o=i.previous,s=this.declaredInputs[n],u=o[s];a[s]=new Ve(u&&u.currentValue,t,o===se),e[r]=t}function Ge(e){return e.__ngSimpleChanges__||null}qe.ngInherit=!0;var We=void 0;function Ke(e){We=e}function Ze(){return void 0!==We?We:"undefined"!=typeof document?document:void 0}function Ye(e){return!!e.listen}var Je={createRenderer:function(e,t){return Ze()}};function $e(e){for(;Array.isArray(e);)e=e[0];return e}function Xe(e,t){return $e(t[e])}function et(e,t){return $e(t[e.index])}function tt(e,t){return e.data[t]}function nt(e,t){var n=t[e];return Ae(n)?n:n[0]}function rt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function it(e){return 4==(4&e[2])}function at(e){return 128==(128&e[2])}function ot(e,t){return null==t?null:e[t]}function st(e){e[18]=0}function ut(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var ct={lFrame:Pt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function lt(){return ct.bindingsEnabled}function ft(){return ct.lFrame.lView}function ht(){return ct.lFrame.tView}function dt(e){ct.lFrame.contextLView=e}function vt(){for(var e=pt();null!==e&&64===e.type;)e=e.parent;return e}function pt(){return ct.lFrame.currentTNode}function yt(e,t){var n=ct.lFrame;n.currentTNode=e,n.isParent=t}function gt(){return ct.lFrame.isParent}function mt(){ct.lFrame.isParent=!1}function bt(){return ct.isInCheckNoChangesMode}function _t(e){ct.isInCheckNoChangesMode=e}function kt(){var e=ct.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function wt(){return ct.lFrame.bindingIndex++}function Ot(e){var t=ct.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jt(e){ct.lFrame.currentDirectiveIndex=e}function St(){return ct.lFrame.currentQueryIndex}function Ct(e){ct.lFrame.currentQueryIndex=e}function Et(e){var t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Tt(e,t,n){if(n&Z.SkipSelf){for(var r=t,i=e;!(null!==(r=r.parent)||n&Z.Host||null===(r=Et(i))||(i=i[15],10&r.type)););if(null===r)return!1;t=r,e=i}var a=ct.lFrame=At();return a.currentTNode=t,a.lView=e,!0}function xt(e){var t=At(),n=e[1];ct.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function At(){var e=ct.lFrame,t=null===e?null:e.child;return null===t?Pt(e):t}function Pt(e){var t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function It(){var e=ct.lFrame;return ct.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var Rt=It;function Nt(){var e=It();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Dt(e){return(ct.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,ct.lFrame.contextLView))[8]}function Ft(){return ct.lFrame.selectedIndex}function Mt(e){ct.lFrame.selectedIndex=e}function Ut(){var e=ct.lFrame;return tt(e.tView,e.selectedIndex)}function Lt(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,a.call(o)):a.call(o)}var Qt=-1,Gt=function e(t,n,r){Object(d.a)(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function Wt(e,t,n){for(var r=Ye(e),i=0;it){o=a-1;break}}}for(;a>16,r=t;n>0;)r=r[15],n--;return r}var tn=!0;function nn(e){var t=tn;return tn=e,t}var rn=0;function an(e,t){var n=sn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,on(r.data,e),on(t,null),on(r.blueprint,null));var i=un(e,t),a=e.injectorIndex;if($t(i))for(var o=Xt(i),s=en(i,t),u=s[1].data,c=0;c<8;c++)t[a+c]=s[o+c]|u[o+c];return t[a+8]=i,a}function on(e,t){e.push(0,0,0,0,0,0,0,0,t)}function sn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function un(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=0,r=null,i=t;null!==i;){var a=i[1],o=a.type;if(null===(r=2===o?a.declTNode:1===o?i[6]:null))return Qt;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qt}function cn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(pe)&&(r=n[pe]),null==r&&(r=n[pe]=rn++);var i=255&r,a=1<3&&void 0!==arguments[3]?arguments[3]:Z.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var a=mn(n);if("function"==typeof a){if(!Tt(t,e,r))return r&Z.Host?ln(i,n,r):fn(t,n,r,i);try{var o=a();if(null!=o||r&Z.Optional)return o;He(n)}finally{Rt()}}else if("number"==typeof a){var s=null,u=sn(e,t),c=Qt,l=r&Z.Host?t[16][6]:null;for((-1===u||r&Z.SkipSelf)&&((c=-1===u?un(e,t):t[u+8])!==Qt&&_n(r,!1)?(s=t[1],u=Xt(c),t=en(c,t)):u=-1);-1!==u;){var f=t[1];if(bn(a,u,f.data)){var h=pn(u,t,n,s,r,l);if(h!==dn)return h}(c=t[u+8])!==Qt&&_n(r,t[1].data[u+8]===l)&&bn(a,u,t)?(s=f,u=Xt(c),t=en(c,t)):u=-1}}}return fn(t,n,r,i)}var dn={};function vn(){return new kn(vt(),ft())}function pn(e,t,n,r,i,a){var o=t[1],s=o.data[e+8],u=yn(s,o,n,null==r?Re(s)&&tn:r!=o&&0!=(3&s.type),i&Z.Host&&a===s);return null!==u?gn(t,o,u,s):dn}function yn(e,t,n,r,i){for(var a=e.providerIndexes,o=t.data,s=1048575&a,u=e.directiveStart,c=a>>20,l=i?s+c:e.directiveEnd,f=r?s:s+c;f=u&&h.type===n)return f}if(i){var d=o[u];if(d&&De(d)&&d.type===n)return u}return null}function gn(e,t,n,r){var i=e[n],a=t.data;if(i instanceof Gt){var o=i;o.resolving&&function(e,t){throw new Me("200","Circular dependency in DI detected for ".concat(e).concat(""))}(Le(a[n]));var s=nn(o.canSeeViewProviders);o.resolving=!0;var u=o.injectImpl?J(o.injectImpl):null;Tt(e,r,Z.Default);try{i=e[n]=o.factory(void 0,a,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.type.prototype,i=r.ngOnInit,a=r.ngDoCheck;if(r.ngOnChanges){var o=ze(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a))}(n,a[n],t)}finally{null!==u&&J(u),nn(s),o.resolving=!1,Rt()}}return i}function mn(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(pe)?e[pe]:void 0;return"number"==typeof t?t>=0?255&t:vn:t}function bn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<=e.length?e.push(n):e.splice(t,0,n)}function Rn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Nn(e,t){for(var n=[],r=0;r=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Fn(e,t){var n=Mn(e,t);if(n>=0)return e[1|n]}function Mn(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var a=r+(i-r>>1),o=e[a<<1];if(t===o)return a<<1;o>t?i=a:r=a+1}return~(i<<1)}(e,t)}var Un={},Ln=/\n/gm,Hn="__source",Vn=P({provide:String,useValue:P}),qn=void 0;function zn(e){var t=qn;return qn=e,t}function Bn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z.Default;if(void 0===qn)throw new Error("inject() must be called from an injection context");return null===qn?$(e,void 0,t):qn.get(e,t&Z.Optional?null:void 0,t)}function Qn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z.Default;return(Y()||Bn)(M(e),t)}var Gn=Qn;function Wn(e){for(var t=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=R(t);if(Array.isArray(t))i=t.map(R).join(" -> ");else if("object"==typeof t){var a=[];for(var o in t)if(t.hasOwnProperty(o)){var s=t[o];a.push(o+":"+("string"==typeof s?JSON.stringify(s):R(s)))}i="{".concat(a.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Ln,"\n "))}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}var Yn,Jn,$n=Kn(Cn("Inject",function(e){return{token:e}}),-1),Xn=Kn(Cn("Optional"),8),er=Kn(Cn("SkipSelf"),4);function tr(e){var t;return(null===(t=function(){if(void 0===Yn&&(Yn=null,oe.trustedTypes))try{Yn=oe.trustedTypes.createPolicy("angular",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Yn}())||void 0===t?void 0:t.createHTML(e))||e}function nr(e){var t;return(null===(t=function(){if(void 0===Jn&&(Jn=null,oe.trustedTypes))try{Jn=oe.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(e){return e},createScript:function(e){return e},createScriptURL:function(e){return e}})}catch(t){}return Jn}())||void 0===t?void 0:t.createHTML(e))||e}var rr=function(){function e(t){Object(d.a)(this,e),this.changingThisBreaksApplicationSecurity=t}return Object(h.a)(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),e}(),ir=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(rr),ar=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(rr),or=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(rr),sr=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(rr),ur=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){return Object(d.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(rr);function cr(e){return e instanceof rr?e.changingThisBreaksApplicationSecurity:e}function lr(e,t){var n=fr(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error("Required a safe ".concat(t,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===t}function fr(e){return e instanceof rr&&e.getTypeName()||null}function hr(e){return new ir(e)}function dr(e){return new ar(e)}function vr(e){return new or(e)}function pr(e){return new sr(e)}function yr(e){return new ur(e)}var gr=function(){function e(t){Object(d.a)(this,e),this.inertDocumentHelper=t}return Object(h.a)(e,[{key:"getInertBodyElement",value:function(e){e=""+e;try{var t=(new window.DOMParser).parseFromString(tr(e),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(e):(t.removeChild(t.firstChild),t)}catch(n){return null}}}]),e}(),mr=function(){function e(t){if(Object(d.a)(this,e),this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var r=this.inertDocument.createElement("body");n.appendChild(r)}}return Object(h.a)(e,[{key:"getInertBodyElement",value:function(e){var t=this.inertDocument.createElement("template");if("content"in t)return t.innerHTML=tr(e),t;var n=this.inertDocument.createElement("body");return n.innerHTML=tr(e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(e){for(var t=e.attributes,n=t.length-1;0"),!0}},{key:"endElement",value:function(e){var t=e.nodeName.toLowerCase();xr.hasOwnProperty(t)&&!Sr.hasOwnProperty(t)&&(this.buf.push(""))}},{key:"chars",value:function(e){this.buf.push(Mr(e))}},{key:"checkClobberedElement",value:function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(e.outerHTML));return t}}]),e}(),Dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/([^\#-~ |!])/g;function Mr(e){return e.replace(/&/g,"&").replace(Dr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Fr,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(//g,">")}function Ur(e,t){var n=null;try{jr=jr||function(e){var t=new mr(e);return function(){try{return!!(new window.DOMParser).parseFromString(tr(""),"text/html")}catch(e){return!1}}()?new gr(t):t}(e);var r=t?String(t):"";n=jr.getInertBodyElement(r);var i=5,a=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=a,a=n.innerHTML,n=jr.getInertBodyElement(r)}while(r!==a);return tr((new Nr).sanitizeChildren(Lr(n)||n))}finally{if(n)for(var o=Lr(n)||n;o.firstChild;)o.removeChild(o.firstChild)}}function Lr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Hr=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Vr(e){var t=zr();return t?nr(t.sanitize(Hr.HTML,e)||""):lr(e,"HTML")?nr(cr(e)):Ur(Ze(),Ue(e))}function qr(e){var t=zr();return t?t.sanitize(Hr.URL,e)||"":lr(e,"URL")?cr(e):kr(Ue(e))}function zr(){var e=ft();return e&&e[12]}function Br(e){return e.ngDebugContext}function Qr(e){return e.ngOriginalError}function Gr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&(e[r-1][4]=i[4]);var o=Rn(e,xe+t);ki(i[1],n=i,n[11],2,null,null),n[0]=null,n[6]=null;var s=o[19];null!==s&&s.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function ui(e,t){if(!(256&t[2])){var n=t[11];Ye(n)&&n.destroyNode&&ki(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return ci(e[1],e);for(;t;){var n=null;if(Ae(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Ae(t)&&ci(t[1],t),t=t[3];null===t&&(t=e),Ae(t)&&ci(t[1],t),n=t&&t[4]}t=n}}(t)}}function ci(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[i=c]():r[i=-c].unsubscribe(),a+=2}else{var l=r[i=n[a+1]];n[a].call(l)}if(null!==r){for(var f=i+1;fa?"":i[l+1].toLowerCase();var h=8&r?f:null;if(h&&-1!==Ci(h,c,0)||2&r&&c!==f){if(Ii(r))return!1;o=!0}}}}else{if(!o&&!Ii(r)&&!Ii(u))return!1;if(o&&Ii(u))continue;o=!1,r=u|1&r}}return Ii(r)||o}function Ii(e){return 0==(1&e)}function Ri(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var a=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+s+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||Ii(o)||(t+=Fi(a,i),i=""),r=o,a=a||!Ii(r);n++}return""!==i&&(t+=Fi(a,i)),t}var Ui={};function Li(e){Hi(ht(),ft(),Ft()+e,bt())}function Hi(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&Ht(t,i,n)}else{var a=e.preOrderHooks;null!==a&&Vt(t,a,0,n)}Mt(n)}function Vi(e,t){return e<<17|t<<2}function qi(e){return e>>17&32767}function zi(e){return 2|e}function Bi(e){return(131068&e)>>2}function Qi(e,t){return-131069&e|t<<2}function Gi(e){return 1|e}function Wi(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;rTe&&Hi(e,t,Te,bt()),n(r,i)}finally{Mt(a)}}function ta(e,t,n){if(Ie(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:et,r=t.localNames;if(null!==r)for(var i=t.index+1,a=0;a0;){var n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=u&&s.push(u),s.push(r,i,o)}}function fa(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ha(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function da(e,t,n){if(n){if(t.exportAs)for(var r=0;r0&&ka(n)}}function ka(e){for(var t=ei(e);null!==t;t=ti(t))for(var n=xe;n0&&ka(r)}var a=e[1].components;if(null!==a)for(var o=0;o0&&ka(s)}}function wa(e,t){var n=nt(t,e),r=n[1];!function(e,t){for(var n=t.length;n1&&void 0!==arguments[1]?arguments[1]:Un;if(t===Un){var n=new Error("NullInjectorError: No provider for ".concat(R(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),Fa=new En("Set Injector scope."),Ma={},Ua={},La=[],Ha=void 0;function Va(){return void 0===Ha&&(Ha=new Da),Ha}function qa(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new za(e,n,t||Va(),r)}var za=function(){function e(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;Object(d.a)(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];n&&Pn(n,function(e){return i.processProvider(e,t,n)}),Pn([t],function(e){return i.processInjectorType(e,[],o)}),this.records.set(Na,Ga(void 0,this));var s=this.records.get(Fa);this.scope=null!=s?s.value:null,this.source=a||("object"==typeof t?null:R(t))}return Object(h.a)(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(e){return e.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Un,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.Default;this.assertNotDestroyed();var r=zn(this);try{if(!(n&Z.SkipSelf)){var i=this.records.get(e);if(void 0===i){var a=Za(e)&&V(e);i=a&&this.injectableDefInScope(a)?Ga(Ba(e),Ma):null,this.records.set(e,i)}if(null!=i)return this.hydrate(e,i)}var o=n&Z.Self?Va():this.parent;return o.get(e,t=n&Z.Optional&&t===Un?null:t)}catch(u){if("NullInjectorError"===u.name){var s=u.ngTempTokenPath=u.ngTempTokenPath||[];if(s.unshift(R(e)),r)throw u;return Zn(u,e,"R3InjectorError",this.source)}throw u}finally{zn(r)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach(function(t){return e.get(t)})}},{key:"toString",value:function(){var e=[];return this.records.forEach(function(t,n){return e.push(R(n))}),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=M(e)))return!1;var i=z(e),a=null==i&&e.ngModule||void 0,o=void 0===a?e:a,s=-1!==n.indexOf(o);if(void 0!==a&&(i=z(a)),null==i)return!1;if(null!=i.imports&&!s){var u;n.push(o);try{Pn(i.imports,function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))})}finally{}if(void 0!==u)for(var c=function(e){var t=u[e],n=t.ngModule,i=t.providers;Pn(i,function(e){return r.processProvider(e,n,i||La)})},l=0;l0){var n=Nn(t,"?");throw new Error("Can't resolve all parameters for ".concat(R(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[Q]||e[W]);if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Qa(e,t,n){var r,i=void 0;if(Ka(e)){var a=M(e);return Fe(a)||Ba(a)}if(Wa(e))i=function(){return M(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,Object(u.a)(Wn(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Qn(M(e.useExisting))};else{var o=M(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Fe(o)||Ba(o);i=function(){return f(o,Object(u.a)(Wn(e.deps)))}}return i}function Ga(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function Wa(e){return null!==e&&"object"==typeof e&&Vn in e}function Ka(e){return"function"==typeof e}function Za(e){return"function"==typeof e||"object"==typeof e&&e instanceof En}var Ya=function(e,t,n){return function(e){var t=qa(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return t._resolveInjectorDefTypes(),t}({name:n},t,e,n)},Ja=function(){var e=function(){function e(){Object(d.a)(this,e)}return Object(h.a)(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?Ya(e,t,""):Ya(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Un,e.NULL=new Da,e.\u0275prov=L({token:e,providedIn:"any",factory:function(){return Qn(Na)}}),e.__NG_ELEMENT_ID__=-1,e}();function $a(e,t){Lt(rt(e)[1],vt())}function Xa(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(De(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var a=e;a.inputs=eo(e.inputs),a.declaredInputs=eo(e.declaredInputs),a.outputs=eo(e.outputs);var o=i.hostBindings;o&&ro(e,o);var s=i.viewQuery,u=i.contentQueries;if(s&&to(e,s),u&&no(e,u),I(e.inputs,i.inputs),I(e.declaredInputs,i.declaredInputs),I(e.outputs,i.outputs),De(i)&&i.data.animation){var c=e.data;c.animation=(c.animation||[]).concat(i.data.animation)}}var l=i.features;if(l)for(var f=0;f=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Yt(i.hostAttrs,n=Yt(n,i.hostAttrs))}}(r)}function eo(e){return e===se?{}:e===ue?[]:e}function to(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function no(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ro(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var io=null;function ao(){if(!io){var e=oe.Symbol;if(e&&e.iterator)io=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:Z.Default,n=ft();if(null===n)return Qn(e,t);var r=vt();return hn(r,n,M(e),t)}function yo(e,t,n){var r=ft();return co(r,wt(),t)&&ua(ht(),Ut(),r,e,t,r[11],n,!1),yo}function go(e,t,n,r,i){var a=i?"class":"style";Ia(e,n,t.inputs[a],a,r)}function mo(e,t,n,r){var i=ft(),a=ht(),o=Te+e,s=i[11],u=i[o]=ai(s,t,ct.lFrame.currentNamespace),c=a.firstCreatePass?function(e,t,n,r,i,a,o){var s=t.consts,u=Zi(t,e,2,i,ot(s,a));return ca(t,n,u,ot(s,o)),null!==u.attrs&&Ra(u,u.attrs,!1),null!==u.mergedAttrs&&Ra(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(o,a,i,0,t,n,r):a.data[o];yt(c,!0);var l=c.mergedAttrs;null!==l&&Wt(s,u,l);var f=c.classes;null!==f&&Si(s,u,f);var h=c.styles;null!==h&&ji(s,u,h),64!=(64&c.flags)&&gi(a,i,u,c),0===ct.lFrame.elementDepthCount&&Kr(u,i),ct.lFrame.elementDepthCount++,Ne(c)&&(na(a,i,c),ta(a,c,i)),null!==r&&ra(i,c)}function bo(){var e=vt();gt()?mt():yt(e=e.parent,!1);var t=e;ct.lFrame.elementDepthCount--;var n=ht();n.firstCreatePass&&(Lt(n,e),Ie(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&go(n,t,ft(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&go(n,t,ft(),t.stylesWithoutHost,!1)}function _o(e,t,n,r){mo(e,t,n,r),bo()}function ko(e,t,n){var r=ft(),i=ht(),a=e+Te,o=i.firstCreatePass?function(e,t,n,r,i){var a=t.consts,o=ot(a,r),s=Zi(t,e,8,"ng-container",o);return null!==o&&Ra(s,o,!0),ca(t,n,s,ot(a,i)),null!==t.queries&&t.queries.elementStart(t,s),s}(a,i,r,t,n):i.data[a];yt(o,!0);var s=r[a]=r[11].createComment("");gi(i,r,s,o),Kr(s,r),Ne(o)&&(na(i,r,o),ta(i,o,r)),null!=n&&ra(r,o)}function wo(){var e=vt(),t=ht();gt()?mt():yt(e=e.parent,!1),t.firstCreatePass&&(Lt(t,e),Ie(e)&&t.queries.elementEnd(e))}function Oo(e,t,n){ko(e,t,n),wo()}function jo(){return ft()}function So(e){return!!e&&"function"==typeof e.then}function Co(e){return!!e&&"function"==typeof e.subscribe}var Eo=Co;function To(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=ft(),a=ht(),o=vt();return Ao(a,i,i[11],o,e,t,n,r),To}function xo(e,t,n,r){var i=e.cleanup;if(null!=i)for(var a=0;au?s[u]:null}"string"==typeof o&&(a+=2)}return null}function Ao(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,u=Ne(r),c=e.firstCreatePass,l=c&&Aa(e),f=xa(t),h=!0;if(3&r.type){var d=et(r,t),v=s?s(d):se,p=v.target||d,y=f.length,g=s?function(e){return s($e(e[r.index])).target}:r.index;if(Ye(n)){var m=null;if(!s&&u&&(m=xo(e,t,i,r.index)),null!==m){var b=m.__ngLastListenerFn__||m;b.__ngNextListenerFn__=a,m.__ngLastListenerFn__=a,h=!1}else{a=Io(r,t,a,!1);var _=n.listen(v.name||p,i,a);f.push(a,_),l&&l.push(i,g,y,y+1)}}else a=Io(r,t,a,!0),p.addEventListener(i,a,o),f.push(a),l&&l.push(i,g,y,o)}else a=Io(r,t,a,!1);var k,w=r.outputs;if(h&&null!==w&&(k=w[i])){var O=k.length;if(O)for(var j=0;j0&&void 0!==arguments[0]?arguments[0]:1;return Dt(e)}function No(e,t){for(var n=null,r=function(e){var t=e.attrs;if(null!=t){var n=t.indexOf(5);if(0==(1&n))return t[n+1]}return null}(e),i=0;i1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=ft(),i=ht(),a=Zi(i,Te+e,16,null,n||null);null===a.projection&&(a.projection=t),mt(),64!=(64&a.flags)&&wi(i,r,a)}var Mo=[];function Uo(e,t,n,r,i){for(var a=e[n+1],o=null===t,s=r?qi(a):Bi(a),u=!1;0!==s&&(!1===u||o);){var c=e[s+1];Lo(e[s],t)&&(u=!0,e[s+1]=r?Gi(c):zi(c)),s=r?qi(c):Bi(c)}u&&(e[n+1]=r?zi(a):Gi(a))}function Lo(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Mn(e,t)>=0}var Ho={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Vo(e){return e.substring(Ho.key,Ho.keyEnd)}function qo(e,t){var n=Ho.textEnd;return n===t?-1:(t=Ho.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ho.key=t,n),zo(e,t,n))}function zo(e,t,n){for(;t=0;n=qo(t,n))Dn(e,Vo(t),!0)}function Ko(e,t,n,r){var i=ft(),a=ht(),o=Ot(2);a.firstUpdatePass&&Yo(a,e,o,r),t!==Ui&&co(i,o,t)&&Xo(a,a.data[Ft()],i,i[11],e,i[o+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=R(cr(e)))),e}(t,n),r,o)}function Zo(e,t){return t>=e.expandoStartIndex}function Yo(e,t,n,r){var i=e.data;if(null===i[n+1]){var a=i[Ft()],o=Zo(e,n);ns(a,r)&&null===t&&!o&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=ct.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),a=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=$o(n=Jo(null,e,t,n,r),t.attrs,r),a=null);else{var o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=Jo(i,e,t,n,r),null===a){var s=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==Bi(r))return e[qi(r)]}(e,t,r);void 0!==s&&Array.isArray(s)&&function(e,t,n,r){e[qi(n?t.classBindings:t.styleBindings)]=r}(e,t,r,s=$o(s=Jo(null,e,t,s[1],r),t.attrs,r))}else a=function(e,t,n){for(var r=void 0,i=t.directiveEnd,a=1+t.directiveStylingLast;a0)&&(l=!0):c=n,i)if(0!==u){var f=qi(e[s+1]);e[r+1]=Vi(f,s),0!==f&&(e[f+1]=Qi(e[f+1],r)),e[s+1]=131071&e[s+1]|r<<17}else e[r+1]=Vi(s,0),0!==s&&(e[s+1]=Qi(e[s+1],r)),s=r;else e[r+1]=Vi(u,0),0===s?s=r:e[u+1]=Qi(e[u+1],r),u=r;l&&(e[r+1]=zi(e[r+1])),Uo(e,c,r,!0),Uo(e,c,r,!1),function(e,t,n,r,i){var a=i?e.residualClasses:e.residualStyles;null!=a&&"string"==typeof t&&Mn(a,t)>=0&&(n[r+1]=Gi(n[r+1]))}(t,c,e,r,a),o=Vi(s,u),a?t.classBindings=o:t.styleBindings=o}(i,a,t,n,o,r)}}function Jo(e,t,n,r,i){var a=null,o=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=e[i],c=Array.isArray(u),l=c?u[1]:u,f=null===l,h=n[i+1];h===Ui&&(h=f?Mo:void 0);var d=f?Fn(h,r):l===r?h:void 0;if(c&&!ts(d)&&(d=Fn(u,r)),ts(d)&&(s=d,o))return s;var v=e[i+1];i=o?qi(v):Bi(v)}if(null!==t){var p=a?t.residualClasses:t.residualStyles;null!=p&&(s=Fn(p,r))}return s}function ts(e){return void 0!==e}function ns(e,t){return 0!=(e.flags&(t?16:32))}function rs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=ft(),r=ht(),i=e+Te,a=r.firstCreatePass?Zi(r,i,1,t,null):r.data[i],o=n[i]=ii(n[11],t);gi(r,n,o,a),yt(a,!1)}function is(e){return as("",e,""),is}function as(e,t,n){var r=ft(),i=function(e,t,n,r){return co(e,wt(),n)?t+Ue(n)+r:Ui}(r,e,t,n);return i!==Ui&&function(e,t,n){var r=Xe(t,e);!function(e,t,n){Ye(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}(r,Ft(),i),as}function os(e,t,n){var r=ft();return co(r,wt(),t)&&ua(ht(),Ut(),r,e,t,r[11],n,!0),os}var ss=void 0,us=["en",[["a","p"],["AM","PM"],ss],[["AM","PM"],ss,ss],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],ss,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],ss,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",ss,"{1} 'at' {0}",ss],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],cs={};function ls(e,t,n){"string"!=typeof t&&(n=t,t=e[ps.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),cs[t]=e,n&&(cs[t][ps.ExtraData]=n)}function fs(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=vs(t);if(n)return n;var r=t.split("-")[0];if(n=vs(r))return n;if("en"===r)return us;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}function hs(e){return fs(e)[ps.CurrencyCode]||null}function ds(e){return fs(e)[ps.PluralCase]}function vs(e){return e in cs||(cs[e]=oe.ng&&oe.ng.common&&oe.ng.common.locales&&oe.ng.common.locales[e]),cs[e]}var ps=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({}),ys="en-US";function gs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: ".concat(e)+" [Expected=> ".concat(null," ").concat("!="," ").concat(t," <=Actual]"))}(n,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}function ms(e,t,n){var r=ht();if(r.firstCreatePass){var i=De(e);bs(n,r.data,r.blueprint,i,!0),bs(t,r.data,r.blueprint,i,!1)}}function bs(e,t,n,r,i){if(e=M(e),Array.isArray(e))for(var a=0;a>20;if(Ka(e)||!e.multi){var v=new Gt(c,i,po),p=ws(u,t,i?f:f+d,h);-1===p?(cn(an(l,s),o,u),_s(o,e,t.length),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(v),s.push(v)):(n[p]=v,s[p]=v)}else{var y=ws(u,t,f+d,h),g=ws(u,t,f,f+d),m=g>=0&&n[g];if(i&&!m||!i&&!(y>=0&&n[y])){cn(an(l,s),o,u);var b=function(e,t,n,r,i){var a=new Gt(e,n,po);return a.multi=[],a.index=t,a.componentProviders=0,ks(a,i,r&&!n),a}(i?js:Os,n.length,i,r,c);!i&&m&&(n[g].providerFactory=b),_s(o,e,t.length,0),t.push(u),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(b),s.push(b)}else _s(o,e,y>-1?y:g,ks(n[i?g:y],c,!i&&r));!i&&r&&m&&n[g].componentProviders++}}}function _s(e,t,n,r){var i=Ka(t);if(i||t.useClass){var a=(t.useClass||t).prototype.ngOnDestroy;if(a){var o=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var s=o.indexOf(n);-1===s?o.push(n,[r,a]):o[s+1].push(r,a)}else o.push(n,a)}}}function ks(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function ws(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return ms(n,r?r(e):e,t)}}}var Es=function e(){Object(d.a)(this,e)},Ts=function e(){Object(d.a)(this,e)},xs=function(){function e(){Object(d.a)(this,e)}return Object(h.a)(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(R(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),As=function(){var e=function e(){Object(d.a)(this,e)};return e.NULL=new xs,e}();function Ps(){}function Is(e,t){return new Ns(et(e,t))}var Rs=function(){return Is(vt(),ft())},Ns=function(){var e=function e(t){Object(d.a)(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=Rs,e}();function Ds(e){return e instanceof Ns?e.nativeElement:e}var Fs=function e(){Object(d.a)(this,e)},Ms=function(){var e=function e(){Object(d.a)(this,e)};return e.__NG_ELEMENT_ID__=function(){return Us()},e}(),Us=function(){var e=ft(),t=nt(vt().index,e);return function(e){return e[11]}(Ae(t)?t:e)},Ls=function(){var e=function e(){Object(d.a)(this,e)};return e.\u0275prov=L({token:e,providedIn:"root",factory:function(){return null}}),e}(),Hs=function e(t){Object(d.a)(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")},Vs=new Hs("11.1.0"),qs=function(){function e(){Object(d.a)(this,e)}return Object(h.a)(e,[{key:"supports",value:function(e){return oo(e)}},{key:"create",value:function(e){return new Bs(e)}}]),e}(),zs=function(e,t){return t},Bs=function(){function e(t){Object(d.a)(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||zs}return Object(h.a)(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var a=!n||t&&t.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var a=t[n.index];if(null!==a&&r.push($e(a)),Pe(a))for(var o=xe;o-1&&(si(e,n),Rn(t,n))}this._attachedToViewContainer=!1}ui(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){oa(this._lView[1],this._lView,null,e)}},{key:"markForCheck",value:function(){ja(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){Sa(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){_t(!0);try{Sa(e,t,n)}finally{_t(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,ki(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return nu(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),iu=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(d.a)(this,n),(r=t.call(this,e))._view=e,r}return Object(h.a)(n,[{key:"detectChanges",value:function(){Ca(this._view)}},{key:"checkNoChanges",value:function(){!function(e){_t(!0);try{Ca(e)}finally{_t(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(ru),au=su,ou=function(){var e=function e(){Object(d.a)(this,e)};return e.__NG_ELEMENT_ID__=au,e.__ChangeDetectorRef__=!0,e}();function su(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return uu(vt(),ft(),e)}function uu(e,t,n){if(!n&&Re(e)){var r=nt(e.index,t);return new ru(r,r)}return 47&e.type?new ru(t[16],t):null}var cu=[new Zs],lu=new Xs([new qs]),fu=new tu(cu),hu=function(){return pu(vt(),ft())},du=function(){var e=function e(){Object(d.a)(this,e)};return e.__NG_ELEMENT_ID__=hu,e}(),vu=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r,i){var a;return Object(d.a)(this,n),(a=t.call(this))._declarationLView=e,a._declarationTContainer=r,a.elementRef=i,a}return Object(h.a)(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Ki(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var r=this._declarationLView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Ji(t,n,e),new ru(n)}}]),n}(du);function pu(e,t){return 4&e.type?new vu(t,e,Is(e,t)):null}var yu=function e(){Object(d.a)(this,e)},gu=function e(){Object(d.a)(this,e)},mu=function(){return Ou(vt(),ft())},bu=function(){var e=function e(){Object(d.a)(this,e)};return e.__NG_ELEMENT_ID__=mu,e}(),_u=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r,i){var a;return Object(d.a)(this,n),(a=t.call(this))._lContainer=e,a._hostTNode=r,a._hostLView=i,a}return Object(h.a)(n,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){var t=ku(this._lContainer);return null!==t&&t[e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var a=n||this.parentInjector;if(!i&&null==e.ngModule&&a){var o=a.get(yu,null);o&&(i=o)}var s=e.create(a,r,void 0,i);return this.insert(s.hostView,t),s}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(Pe(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var a=n[3],o=new _u(a,a[6],a[3]);o.detach(o.indexOf(e))}}var s=this._adjustIndex(t),u=this._lContainer;!function(e,t,n,r){var i=xe+r,a=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"element",get:function(){return Is(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new kn(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var e=un(this._hostTNode,this._hostLView);if($t(e)){var t=en(e,this._hostLView),n=Xt(e);return new kn(t[1].data[n+8],t)}return new kn(null,this._hostLView)}},{key:"length",get:function(){return this._lContainer.length-xe}}]),n}(bu);function ku(e){return e[8]}function wu(e){return e[8]||(e[8]=[])}function Ou(e,t){var n,r=t[e.index];if(Pe(r))n=r;else{var i;if(8&e.type)i=$e(r);else{var a=t[11];i=a.createComment("");var o=et(e,t);fi(a,vi(a,o),i,function(e,t){return Ye(e)?e.nextSibling(t):t.nextSibling}(a,o),!1)}t[e.index]=n=ba(r,t,i,e),Oa(t,n)}return new _u(n,e,t)}var ju={},Su=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e){var r;return Object(d.a)(this,n),(r=t.call(this)).ngModule=e,r}return Object(h.a)(n,[{key:"resolveComponentFactory",value:function(e){var t=Ce(e);return new Tu(t,this.ngModule)}}]),n}(As);function Cu(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Eu=new En("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Zr}}),Tu=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e,r){var i;return Object(d.a)(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Mi).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return Object(h.a)(n,[{key:"create",value:function(e,t,n,r){var i,a,o=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var a=e.get(n,ju,i);return a!==ju||r===ju?a:t.get(n,r,i)}}}(e,r.injector):e,s=o.get(Fs,Je),u=o.get(Ls,null),c=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",f=n?function(e,t,n){if(Ye(e))return e.selectRootElement(t,n===te.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(c,n,this.componentDef.encapsulation):ai(s.createRenderer(null,this.componentDef),l,function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:Zr,clean:Ta,playerHandler:null,flags:0},v=aa(0,null,null,1,0,null,null,null,null,null),p=Ki(null,v,d,h,null,null,s,c,u,o);xt(p);try{var y=function(e,t,n,r,i,a){var o=n[1];n[20]=e;var s=Zi(o,20,2,"#host",null),u=s.mergedAttrs=t.hostAttrs;null!==u&&(Ra(s,u,!0),null!==e&&(Wt(i,e,u),null!==s.classes&&Si(i,e,s.classes),null!==s.styles&&ji(i,e,s.styles)));var c=r.createRenderer(e,t),l=Ki(n,ia(t),null,t.onPush?64:16,n[20],s,r,c,null,null);return o.firstCreatePass&&(cn(an(s,n),o,t.type),ha(o,s),va(s,n.length,1)),Oa(n,l),n[20]=l}(f,this.componentDef,p,s,c);if(f)if(n)Wt(c,f,["ng-version",Vs.full]);else{var g=function(e){for(var t=[],n=[],r=1,i=2;r0&&Si(c,f,b.join(" "))}if(a=tt(v,Te),void 0!==t)for(var _=a.projection=[],k=0;k1&&void 0!==arguments[1]?arguments[1]:Ja.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Z.Default;return e===Ja||e===yu||e===Na?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(yu),Iu=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(e){var r,i,a;return Object(d.a)(this,n),(r=t.call(this)).moduleType=e,null!==Ee(e)&&(i=e,a=new Set,function e(t){var n=Ee(t,!0),r=n.id;null!==r&&(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(R(t)," vs ").concat(R(t.name)))}(r,Au.get(r),t),Au.set(r,t));var i,o=Yr(n.imports),u=Object(s.a)(o);try{for(u.s();!(i=u.n()).done;){var c=i.value;a.has(c)||(a.add(c),e(c))}}catch(l){u.e(l)}finally{u.f()}}(i)),r}return Object(h.a)(n,[{key:"create",value:function(e){return new Pu(this.moduleType,e)}}]),n}(gu);function Ru(e,t,n,r){return function(e,t,n,r,i,a){var o=t+n;return co(e,o,i)?uo(e,o+1,a?r.call(a,i):r(i)):Mu(e,o+1)}(ft(),kt(),e,t,n,r)}function Nu(e,t,n,r,i){return function(e,t,n,r,i,a,o){var s=t+n;return lo(e,s,i,a)?uo(e,s+2,o?r.call(o,i,a):r(i,a)):Mu(e,s+2)}(ft(),kt(),e,t,n,r,i)}function Du(e,t,n,r,i,a){return function(e,t,n,r,i,a,o,s){var u=t+n;return function(e,t,n,r,i){var a=lo(e,t,n,r);return co(e,t+2,i)||a}(e,u,i,a,o)?uo(e,u+3,s?r.call(s,i,a,o):r(i,a,o)):Mu(e,u+3)}(ft(),kt(),e,t,n,r,i,a)}function Fu(e,t,n,r,i,a,o){return function(e,t,n,r,i,a,o,s,u){var c=t+n;return function(e,t,n,r,i,a){var o=lo(e,t,n,r);return lo(e,t+2,i,a)||o}(e,c,i,a,o,s)?uo(e,c+4,u?r.call(u,i,a,o,s):r(i,a,o,s)):Mu(e,c+4)}(ft(),kt(),e,t,n,r,i,a,o)}function Mu(e,t){var n=e[t];return n===Ui?void 0:n}var Uu=function(e){Object(v.a)(n,e);var t=Object(p.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object(d.a)(this,n),(e=t.call(this)).__isAsync=r,e}return Object(h.a)(n,[{key:"emit",value:function(e){Object(r.a)(Object(i.a)(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,a){var o,s=function(e){return null},u=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(s=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(u=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},t&&(s=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)}),a&&(u=this.__isAsync?function(){setTimeout(function(){return a()})}:function(){a()}));var c=Object(r.a)(Object(i.a)(n.prototype),"subscribe",this).call(this,o,s,u);return e instanceof g.a&&e.add(c),c}}]),n}(m.a);function Lu(){return this._results[ao()]()}var Hu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(d.a)(this,e),this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=ao(),r=e.prototype;r[n]||(r[n]=Lu)}return Object(h.a)(e,[{key:"get",value:function(e){return this._results[e]}},{key:"map",value:function(e){return this._results.map(e)}},{key:"filter",value:function(e){return this._results.filter(e)}},{key:"find",value:function(e){return this._results.find(e)}},{key:"reduce",value:function(e,t){return this._results.reduce(e,t)}},{key:"forEach",value:function(e){this._results.forEach(e)}},{key:"some",value:function(e){return this._results.some(e)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(e,t){var n=this;n.dirty=!1;var r=An(e);(this._changesDetected=!function(e,t,n){if(e.length!==t.length)return!1;for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:[];Object(d.a)(this,e),this.queries=t}return Object(h.a)(e,[{key:"createEmbeddedView",value:function(t){var n=t.queries;if(null!==n){for(var r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[],a=0;a2&&void 0!==arguments[2]?arguments[2]:null;Object(d.a)(this,e),this.predicate=t,this.flags=n,this.read=r},Bu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];Object(d.a)(this,e),this.queries=t}return Object(h.a)(e,[{key:"elementStart",value:function(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;Object(d.a)(this,e),this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return Object(h.a)(e,[{key:"elementStart",value:function(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}},{key:"elementEnd",value:function(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(e,t){this.elementStart(e,t)}},{key:"embeddedTView",value:function(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new e(this.metadata)):null}},{key:"isApplyingToNode",value:function(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var t=this._declarationNodeIndex,n=e.parent;null!==n&&8&n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(e,t){var n=this.metadata.predicate;if(Array.isArray(n))for(var r=0;r0)r.push(o[s/2]);else{for(var c=a[s+1],l=t[-u],f=xe;f0&&void 0!==arguments[0]?arguments[0]:Z.Default,t=su(!0);if(null!=t||e&Z.Optional)return t;He("ChangeDetectorRef")}var ac=new En("Application Initializer"),oc=function(){var e=function(){function e(t){var n=this;Object(d.a)(this,e),this.appInits=t,this.resolve=Ps,this.reject=Ps,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,t){n.resolve=e,n.reject=t})}return Object(h.a)(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Qn(Cc))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e}(),Nc=function(){var e=function(){function e(){Object(d.a)(this,e),this._applications=new Map,Mc.addToWindow(this)}return Object(h.a)(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Mc.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e}();function Dc(e){Mc=e}var Fc,Mc=new(function(){function e(){Object(d.a)(this,e)}return Object(h.a)(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Uc=!0,Lc=!1;function Hc(){return Lc=!0,Uc}function Vc(){if(Lc)throw new Error("Cannot enable prod mode after platform setup.");Uc=!1}var qc=function(e,t,n){var r=new Iu(n);return Promise.resolve(r)},zc=new En("AllowMultipleToken"),Bc=function e(t,n){Object(d.a)(this,e),this.name=t,this.token=n};function Qc(e){if(Fc&&!Fc.destroyed&&!Fc.injector.get(zc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fc=e.get(Zc);var t=e.get(lc,null);return t&&t.forEach(function(e){return e()}),Fc}function Gc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: ".concat(t),i=new En(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],a=Kc();if(!a||a.injector.get(zc,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var o=n.concat(t).concat({provide:i,useValue:!0},{provide:Fa,useValue:"platform"});Qc(Ja.create({providers:o,name:r}))}return Wc(i)}}function Wc(e){var t=Kc();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function Kc(){return Fc&&!Fc.destroyed?Fc:null}var Zc=function(){var e=function(){function e(t){Object(d.a)(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return Object(h.a)(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,a=(r={ngZoneEventCoalescing:t&&t.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:t&&t.ngZoneRunCoalescing||!1},"noop"===(n=t?t.ngZone:void 0)?new Ic:("zone.js"===n?void 0:n)||new Cc({enableLongStackTrace:Hc(),shouldCoalesceEventChangeDetection:!!(null==r?void 0:r.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==r?void 0:r.ngZoneRunCoalescing)})),o=[{provide:Cc,useValue:a}];return a.run(function(){var t=Ja.create({providers:o,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Wr,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(function(){var e=a.onError.subscribe({next:function(e){r.handleError(e)}});n.onDestroy(function(){$c(i._modules,n),e.unsubscribe()})}),function(e,t,r){try{var a=((o=n.injector.get(oc)).runInitializers(),o.donePromise.then(function(){return gs(n.injector.get(vc,ys)||ys),i._moduleDoBootstrap(n),n}));return So(a)?a.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):a}catch(s){throw t.runOutsideAngular(function(){return e.handleError(s)}),s}var o}(r,a)})}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Yc({},n);return qc(0,0,e).then(function(e){return t.bootstrapModuleFactory(e,r)})}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(Jc);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(R(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. ')+"Please define one of these.");e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Qn(Ja))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e}();function Yc(e,t){return Array.isArray(t)?t.reduce(Yc,e):Object.assign(Object.assign({},e),t)}var Jc=function(){var e=function(){function e(t,n,r,i,a,o){var s=this;Object(d.a)(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=a,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new b.a(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),c=new b.a(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Cc.assertNotInAngularZone(),Sc(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Cc.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=Number.POSITIVE_INFINITY,t=null,n=arguments.length,r=new Array(n),i=0;i1&&"number"==typeof r[r.length-1]&&(e=r.pop())):"number"==typeof a&&(e=r.pop()),null===t&&1===r.length&&r[0]instanceof b.a?r[0]:Object(k.a)(e)(Object(w.a)(r,t))}(u,c.pipe(function(e){return j()((t=A,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,T);return r.source=e,r.subjectFactory=n,r})(e));var t}))}return Object(h.a)(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Ts?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(yu),a=n.create(Ja.NULL,[],t||n.selector,i),o=a.location.nativeElement,s=a.injector.get(Rc,null),u=s&&a.injector.get(Nc);return s&&u&&u.registerApplication(o,s),a.onDestroy(function(){r.detachView(a.hostView),$c(r.components,a),u&&u.unregisterApplication(o)}),this._loadComponent(a),Hc()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),a}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=Object(s.a)(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(r){n.e(r)}finally{n.f()}}catch(i){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(i)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;$c(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(hc,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(e){return e.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Qn(Cc),Qn(dc),Qn(Ja),Qn(Wr),Qn(As),Qn(oc))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e}();function $c(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Xc=function e(){Object(d.a)(this,e)},el=function e(){Object(d.a)(this,e)},tl={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},nl=function(){var e=function(){function e(t,n){Object(d.a)(this,e),this._compiler=t,this._config=n||tl}return Object(h.a)(e,[{key:"load",value:function(e){return this.loadAndCompile(e)}},{key:"loadAndCompile",value:function(e){var t=this,r=e.split("#"),i=Object(o.a)(r,2),a=i[0],s=i[1];return void 0===s&&(s="default"),n("zn8P")(a).then(function(e){return e[s]}).then(function(e){return rl(e,a,s)}).then(function(e){return t._compiler.compileModuleAsync(e)})}},{key:"loadFactory",value:function(e){var t=e.split("#"),r=Object(o.a)(t,2),i=r[0],a=r[1],s="NgFactory";return void 0===a&&(a="default",s=""),n("zn8P")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(e){return e[a+s]}).then(function(e){return rl(e,i,a)})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Qn(Oc),Qn(el,8))},e.\u0275prov=L({token:e,factory:e.\u0275fac}),e}();function rl(e,t,n){if(!e)throw new Error("Cannot find '".concat(n,"' in '").concat(t,"'"));return e}var il=function(e){return null},al=Gc(null,"core",[{provide:fc,useValue:"unknown"},{provide:Zc,deps:[Ja]},{provide:Nc,deps:[]},{provide:dc,deps:[]}]),ol=[{provide:Jc,useClass:Jc,deps:[Cc,dc,Ja,Wr,As,oc]},{provide:Eu,deps:[Cc],useFactory:function(e){var t=[];return e.onStable.subscribe(function(){for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:oc,useClass:oc,deps:[[new Xn,ac]]},{provide:Oc,useClass:Oc,deps:[]},uc,{provide:Xs,useFactory:function(){return lu},deps:[]},{provide:tu,useFactory:function(){return fu},deps:[]},{provide:vc,useFactory:function(e){return gs(e=e||"undefined"!=typeof $localize&&$localize.locale||ys),e},deps:[[new $n(vc),new Xn,new er]]},{provide:pc,useValue:"USD"}],sl=function(){var e=function e(t){Object(d.a)(this,e)};return e.\u0275mod=ke({type:e}),e.\u0275inj=H({factory:function(t){return new(t||e)(Qn(Jc))},providers:ol}),e}()},"Nom/":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else r&&console.log("RxJS: Back to a better error behavior. Thank you. <3");r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},OHTZ:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("Nom/"),i=n("G1mq"),a={closed:!0,next:function(e){},error:function(e){if(r.a.useDeprecatedSynchronousErrorHandling)throw e;Object(i.a)(e)},complete:function(){}}},Qg0e:function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return G}),n.d(t,"c",function(){return v}),n.d(t,"d",function(){return T}),n.d(t,"e",function(){return g}),n.d(t,"f",function(){return x}),n.d(t,"g",function(){return j}),n.d(t,"h",function(){return M}),n.d(t,"i",function(){return L}),n.d(t,"j",function(){return V}),n.d(t,"k",function(){return B}),n.d(t,"l",function(){return Q}),n.d(t,"m",function(){return E}),n.d(t,"n",function(){return p}),n.d(t,"o",function(){return Z}),n.d(t,"p",function(){return K}),n.d(t,"q",function(){return d}),n.d(t,"r",function(){return W}),n.d(t,"s",function(){return f}),n.d(t,"t",function(){return F}),n.d(t,"u",function(){return h});var r=n("gB58"),i=n("AfsY"),a=n("ywnY"),o=n("8anW"),s=n("59Gi"),u=n("saeC"),c=n("NmAN"),l=null;function f(){return l}function h(e){l||(l=e)}var d=function e(){Object(u.a)(this,e)},v=new c.r("DocumentToken"),p=function(){var e=function e(){Object(u.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(c.Gb)({factory:y,token:e,providedIn:"platform"}),e}();function y(){return Object(c.Ub)(m)}var g=new c.r("Location Initialized"),m=function(){var e=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this))._doc=e,r._init(),r}return Object(a.a)(n,[{key:"_init",value:function(){this.location=f().getLocation(),this._history=f().getHistory()}},{key:"getBaseHrefFromDOM",value:function(){return f().getBaseHref(this._doc)}},{key:"onPopState",value:function(e){f().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)}},{key:"onHashChange",value:function(e){f().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)}},{key:"pushState",value:function(e,t,n){b()?this._history.pushState(e,t,n):this.location.hash=n}},{key:"replaceState",value:function(e,t,n){b()?this._history.replaceState(e,t,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"getState",value:function(){return this._history.state}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(e){this.location.pathname=e}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}}]),n}(p);return e.\u0275fac=function(t){return new(t||e)(c.Ub(v))},e.\u0275prov=Object(c.Gb)({factory:_,token:e,providedIn:"platform"}),e}();function b(){return!!window.history.pushState}function _(){return new m(Object(c.Ub)(v))}function k(e,t){if(0==e.length)return t;if(0==t.length)return e;var n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function w(e){var t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function O(e){return e&&"?"!==e[0]?"?"+e:e}var j=function(){var e=function e(){Object(u.a)(this,e)};return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=Object(c.Gb)({factory:S,token:e,providedIn:"root"}),e}();function S(e){var t=Object(c.Ub)(v).location;return new E(Object(c.Ub)(p),t&&t.origin||"")}var C=new c.r("appBaseHref"),E=function(){var e=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;if(Object(u.a)(this,n),(i=t.call(this))._platformLocation=e,null==r&&(r=i._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=r,i}return Object(a.a)(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(e){return k(this._baseHref,e)}},{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this._platformLocation.pathname+O(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?"".concat(t).concat(n):t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+O(r));this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+O(r));this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(j);return e.\u0275fac=function(t){return new(t||e)(c.Ub(p),c.Ub(C,8))},e.\u0275prov=c.Gb({token:e,factory:e.\u0275fac}),e}(),T=function(){var e=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e,r){var i;return Object(u.a)(this,n),(i=t.call(this))._platformLocation=e,i._baseHref="",null!=r&&(i._baseHref=r),i}return Object(a.a)(n,[{key:"onPopState",value:function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}},{key:"prepareExternalUrl",value:function(e){var t=k(this._baseHref,e);return t.length>0?"#"+t:t}},{key:"pushState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+O(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)}},{key:"replaceState",value:function(e,t,n,r){var i=this.prepareExternalUrl(n+O(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}}]),n}(j);return e.\u0275fac=function(t){return new(t||e)(c.Ub(p),c.Ub(C,8))},e.\u0275prov=c.Gb({token:e,factory:e.\u0275fac}),e}(),x=function(){var e=function(){function e(t,n){var r=this;Object(u.a)(this,e),this._subject=new c.n,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=w(P(i)),this._platformStrategy.onPopState(function(e){r._subject.emit({url:r.path(!0),pop:!0,state:e.state,type:e.type})})}return Object(a.a)(e,[{key:"path",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(e))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(e+O(t))}},{key:"normalize",value:function(t){return e.stripTrailingSlash(function(e,t){return e&&t.startsWith(e)?t.substring(e.length):t}(this._baseHref,P(t)))}},{key:"prepareExternalUrl",value:function(e){return e&&"/"!==e[0]&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)}},{key:"go",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+O(t)),n)}},{key:"replaceState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+O(t)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"onUrlChange",value:function(e){var t=this;this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(e){t._notifyUrlChangeListeners(e.url,e.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(e,t)})}},{key:"subscribe",value:function(e,t,n){return this._subject.subscribe({next:e,error:t,complete:n})}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Ub(j),c.Ub(p))},e.normalizeQueryParams=O,e.joinWithSlash=k,e.stripTrailingSlash=w,e.\u0275prov=Object(c.Gb)({factory:A,token:e,providedIn:"root"}),e}();function A(){return new x(Object(c.Ub)(j),Object(c.Ub)(p))}function P(e){return e.replace(/\/index.html$/,"")}var I=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),R=c.lb,N=function e(){Object(u.a)(this,e)},D=function(){var e=function(e){Object(o.a)(n,e);var t=Object(s.a)(n);function n(e){var r;return Object(u.a)(this,n),(r=t.call(this)).locale=e,r}return Object(a.a)(n,[{key:"getPluralCategory",value:function(e,t){switch(R(t||this.locale)(e)){case I.Zero:return"zero";case I.One:return"one";case I.Two:return"two";case I.Few:return"few";case I.Many:return"many";default:return"other"}}}]),n}(N);return e.\u0275fac=function(t){return new(t||e)(c.Ub(c.v))},e.\u0275prov=c.Gb({token:e,factory:e.\u0275fac}),e}();function F(e,t){t=encodeURIComponent(t);var n,a=Object(r.a)(e.split(";"));try{for(a.s();!(n=a.n()).done;){var o=n.value,s=o.indexOf("="),u=-1==s?[o,""]:[o.slice(0,s),o.slice(s+1)],c=Object(i.a)(u,2),l=c[1];if(c[0].trim()===t)return decodeURIComponent(l)}}catch(f){a.e(f)}finally{a.f()}return null}var M=function(){var e=function(){function e(t,n,r,i){Object(u.a)(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object(a.a)(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem(function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Object(c.ub)(e.item)));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!0)}):Object.keys(e).forEach(function(n){return t._toggleClass(n,!!e[n])}))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return t._toggleClass(e,!1)}):Object.keys(e).forEach(function(e){return t._toggleClass(e,!1)}))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach(function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)})}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(Object(c.ob)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(c.Kb(c.t),c.Kb(c.u),c.Kb(c.l),c.Kb(c.E))},e.\u0275dir=c.Fb({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e}(),U=function(){function e(t,n,r,i){Object(u.a)(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return Object(a.a)(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),L=function(){var e=function(){function e(t,n,r){Object(u.a)(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return Object(a.a)(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation(function(e,r,i){if(null==e.previousIndex){var a=t._viewContainer.createEmbeddedView(t._template,new U(null,t._ngForOf,-1,-1),null===i?void 0:i),o=new H(e,a);n.push(o)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var s=t._viewContainer.get(r);t._viewContainer.move(s,i);var u=new H(e,s);n.push(u)}});for(var r=0;r-1},e.\u0275prov=r.Gb({token:e,factory:e.\u0275fac=function(t){return new(t||e)},providedIn:"root"}),e}()},SPKZ:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("4O0I");function i(e,t){if(e){if("string"==typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},"Vb/G":function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("I1zG"),i=n("YDgo"),a=n("zzox"),o=n("u/2e"),s=n("bvHI"),u=n("gRpl"),c=n("zEvv"),l=n("cknx");function f(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[o.a]}(e))return function(e,t){return new r.a(function(n){var r=new a.a;return r.add(t.schedule(function(){var i=e[o.a]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Object(c.a)(e))return function(e,t){return new r.a(function(n){var r=new a.a;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r})}(e,t);if(Object(l.a)(e))return Object(s.a)(e,t);if(function(e){return e&&"function"==typeof e[u.a]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new r.a(function(n){var r,i=new a.a;return i.add(function(){r&&"function"==typeof r.return&&r.return()}),i.add(t.schedule(function(){r=e[u.a](),i.add(t.schedule(function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(a){return void n.error(a)}t?n.complete():(n.next(e),this.schedule())}}))})),i})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof r.a?e:new r.a(Object(i.a)(e))}},VtdW:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,"a",function(){return r})},Wskk:function(e,t,n){"use strict";n.d(t,"a",function(){return y});var r=n("saeC"),i=n("ywnY"),a=n("QkNn"),o=n("tM4w"),s=n("Y36k"),u=n("8anW"),c=n("59Gi"),l=n("lPEm"),f=n("OHTZ"),h=n("zzox"),d=n("ZQq2"),v=n("Nom/"),p=n("G1mq"),y=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,i,o){var s;switch(Object(r.a)(this,n),(s=t.call(this)).syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,arguments.length){case 0:s.destination=f.a;break;case 1:if(!e){s.destination=f.a;break}if("object"==typeof e){e instanceof n?(s.syncErrorThrowable=e.syncErrorThrowable,s.destination=e,e.add(Object(a.a)(s))):(s.syncErrorThrowable=!0,s.destination=new g(Object(a.a)(s),e));break}default:s.syncErrorThrowable=!0,s.destination=new g(Object(a.a)(s),e,i,o)}return s}return Object(i.a)(n,[{key:d.a,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,Object(o.a)(Object(s.a)(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(h.a),g=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,i,o,s){var u,c;Object(r.a)(this,n),(u=t.call(this))._parentSubscriber=e;var h=Object(a.a)(u);return Object(l.a)(i)?c=i:i&&(c=i.next,o=i.error,s=i.complete,i!==f.a&&(h=Object.create(i),Object(l.a)(h.unsubscribe)&&u.add(h.unsubscribe.bind(h)),h.unsubscribe=u.unsubscribe.bind(Object(a.a)(u)))),u._context=h,u._next=c,u._error=o,u._complete=s,u}return Object(i.a)(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;v.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=v.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Object(p.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(p.a)(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};v.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),v.a.useDeprecatedSynchronousErrorHandling)throw n;Object(p.a)(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!v.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return v.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(Object(p.a)(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(y)},Y36k:function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",function(){return r})},YDgo:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("wzHu"),i=n("G1mq"),a=n("gRpl"),o=n("u/2e"),s=n("cknx"),u=n("zEvv"),c=n("K2ft"),l=function(e){if(e&&"function"==typeof e[o.a])return l=e,function(e){var t=l[o.a]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(Object(s.a)(e))return Object(r.a)(e);if(Object(u.a)(e))return n=e,function(e){return n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,i.a),e};if(e&&"function"==typeof e[a.a])return t=e,function(e){for(var n=t[a.a]();;){var r=void 0;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(function(){n.return&&n.return()}),e};var t,n,l,f=Object(c.a)(e)?"an invalid object":"'".concat(e,"'"),h="You provided ".concat(f," where a stream was expected.")+" You can provide an Observable, Promise, Array, or Iterable.";throw new TypeError(h)}},YS7j:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},ZQq2:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}()},aqgX:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",function(){return r})},bC5c:function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return a});var r=n("I1zG"),i=new r.a(function(e){return e.complete()});function a(e){return e?function(e){return new r.a(function(t){return e.schedule(function(){return t.complete()})})}(e):i}},bvHI:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("I1zG"),i=n("zzox");function a(e,t){return new r.a(function(n){var r=new i.a,a=0;return r.add(t.schedule(function(){a!==e.length?(n.next(e[a++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},cknx:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},dqE0:function(e,t,n){"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}n.d(t,"a",function(){return r})},"e/Nk":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("I1zG"),i=n("wzHu"),a=n("bvHI");function o(e,t){return t?Object(a.a)(e,t):new r.a(Object(i.a)(e))}},gB58:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("SPKZ");function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}},gRpl:function(e,t,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(t,"a",function(){return i});var i=r()},hzPW:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("saeC"),i=n("ywnY"),a=n("tM4w"),o=n("Y36k"),s=n("8anW"),u=n("59Gi"),c=n("kwJu"),l=n("YS7j"),f=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e){var i;return Object(r.a)(this,n),(i=t.call(this))._value=e,i}return Object(i.a)(n,[{key:"_subscribe",value:function(e){var t=Object(a.a)(Object(o.a)(n.prototype),"_subscribe",this).call(this,e);return t&&!t.closed&&e.next(this._value),t}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new l.a;return this._value}},{key:"next",value:function(e){Object(a.a)(Object(o.a)(n.prototype),"next",this).call(this,this._value=e)}},{key:"value",get:function(){return this.getValue()}}]),n}(c.a)},iXkb:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("4O0I"),i=n("wr0H"),a=n("SPKZ");function o(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||Object(i.a)(e)||Object(a.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},ig18:function(e,t,n){"use strict";n.d(t,"a",function(){return c});var r=n("QkNn"),i=n("8anW"),a=n("59Gi"),o=n("saeC"),s=n("ywnY"),u=n("Wskk");function c(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new l(e,t))}}var l=function(){function e(t,n){Object(o.a)(this,e),this.project=t,this.thisArg=n}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new f(e,this.project,this.thisArg))}}]),e}(),f=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e,i,a){var s;return Object(o.a)(this,n),(s=t.call(this,e)).project=i,s.count=0,s.thisArg=a||Object(r.a)(s),s}return Object(s.a)(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(u.a)},jaJ9:function(e,t,n){"use strict";n.d(t,"a",function(){return jt}),n.d(t,"b",function(){return Yn}),n.d(t,"c",function(){return cr}),n.d(t,"d",function(){return $n});var r=n("aqgX"),i=n("QkNn"),a=n("gB58"),o=n("iXkb"),s=n("ywnY"),u=n("8anW"),c=n("59Gi"),l=n("saeC"),f=n("Qg0e"),h=n("NmAN"),d=n("Vb/G"),v=n("zlYR"),p=n("hzPW"),y=n("6pC9"),g=n("xyXv"),m=n("Wskk"),b=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){return Object(l.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(m.a),_=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(l.a)(this,n),(a=t.call(this)).parent=e,a.outerValue=r,a.outerIndex=i,a.index=0,a}return Object(s.a)(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(m.a),k=n("YDgo"),w=n("I1zG");function O(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new _(e,n,r);if(!i.closed)return t instanceof w.a?t.subscribe(i):Object(k.a)(t)(i)}var j=n("e/Nk"),S={},C=function(){function e(t){Object(l.a)(this,e),this.resultSelector=t}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new E(e,this.resultSelector))}}]),e}(),E=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(l.a)(this,n),(i=t.call(this,e)).resultSelector=r,i.active=0,i.values=[],i.observables=[],i}return Object(s.a)(n,[{key:"_next",value:function(e){this.values.push(S),this.observables.push(e)}},{key:"_complete",value:function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n=2&&(n=!0),function(r){return r.lift(new V(e,t,n))}}var V=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(l.a)(this,e),this.accumulator=t,this.seed=n,this.hasSeed=r}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new q(e,this.accumulator,this.seed,this.hasSeed))}}]),e}(),q=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(l.a)(this,n),(o=t.call(this,e)).accumulator=r,o._seed=i,o.hasSeed=a,o.index=0,o}return Object(s.a)(n,[{key:"_next",value:function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(r){this.destination.error(r)}this.seed=t,this.destination.next(t)}},{key:"seed",get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e}}]),n}(m.a),z=n("6wul"),B=n("tM4w"),Q=n("Y36k"),G=n("K2jr");function W(e){return function(t){var n=new K(e),r=t.lift(n);return n.caught=r}}var K=function(){function e(t){Object(l.a)(this,e),this.selector=t}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new Z(e,this.selector,this.caught))}}]),e}(),Z=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(l.a)(this,n),(a=t.call(this,e)).selector=r,a.caught=i,a}return Object(s.a)(n,[{key:"error",value:function(e){if(!this.isStopped){var t;try{t=this.selector(e,this.caught)}catch(a){return void Object(B.a)(Object(Q.a)(n.prototype),"error",this).call(this,a)}this._unsubscribeAndRecycle();var r=new G.a(this);this.add(r);var i=Object(G.c)(t,r);i!==r&&this.add(i)}}}]),n}(G.b),Y=n("tcZp");function J(e,t){return Object(Y.a)(e,t,1)}function $(e){return function(t){return 0===e?Object(A.b)():t.lift(new X(e))}}var X=function(){function e(t){if(Object(l.a)(this,e),this.total=t,this.total<0)throw new D}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ee(e,this.total))}}]),e}(),ee=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(l.a)(this,n),(i=t.call(this,e)).total=r,i.ring=new Array,i.count=0,i}return Object(s.a)(n,[{key:"_next",value:function(e){var t=this.ring,n=this.total,r=this.count++;t.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i0&&void 0!==arguments[0]?arguments[0]:ie;return function(t){return t.lift(new ne(e))}}var ne=function(){function e(t){Object(l.a)(this,e),this.errorFactory=t}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new re(e,this.errorFactory))}}]),e}(),re=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(l.a)(this,n),(i=t.call(this,e)).errorFactory=r,i.hasValue=!1,i}return Object(s.a)(n,[{key:"_next",value:function(e){this.hasValue=!0,this.destination.next(e)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}]),n}(m.a);function ie(){return new T}function ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(t){return t.lift(new oe(e))}}var oe=function(){function e(t){Object(l.a)(this,e),this.defaultValue=t}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new se(e,this.defaultValue))}}]),e}(),se=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(l.a)(this,n),(i=t.call(this,e)).defaultValue=r,i.isEmpty=!0,i}return Object(s.a)(n,[{key:"_next",value:function(e){this.isEmpty=!1,this.destination.next(e)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(m.a),ue=n("1DaH");function ce(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?Object(z.a)(function(t,n){return e(t,n,r)}):ue.a,F(1),n?ae(t):te(function(){return new T}))}}function le(){}var fe=n("lPEm");function he(e,t,n){return function(r){return r.lift(new de(e,t,n))}}var de=function(){function e(t,n,r){Object(l.a)(this,e),this.nextOrObserver=t,this.error=n,this.complete=r}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ve(e,this.nextOrObserver,this.error,this.complete))}}]),e}(),ve=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,a,o){var s;return Object(l.a)(this,n),(s=t.call(this,e))._tapNext=le,s._tapError=le,s._tapComplete=le,s._tapError=a||le,s._tapComplete=o||le,Object(fe.a)(r)?(s._context=Object(i.a)(s),s._tapNext=r):r&&(s._context=r,s._tapNext=r.next||le,s._tapError=r.error||le,s._tapComplete=r.complete||le),s}return Object(s.a)(n,[{key:"_next",value:function(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}},{key:"_error",value:function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}]),n}(m.a),pe=n("zzox"),ye=function(){function e(t){Object(l.a)(this,e),this.callback=t}return Object(s.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new ge(e,this.callback))}}]),e}(),ge=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(l.a)(this,n),(i=t.call(this,e)).add(new pe.a(r)),i}return n}(m.a),me=n("qbMl"),be=function e(t,n){Object(l.a)(this,e),this.id=t,this.url=n},_e=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return Object(l.a)(this,n),(i=t.call(this,e,r)).navigationTrigger=a,i.restoredState=o,i}return Object(s.a)(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(be),ke=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(l.a)(this,n),(a=t.call(this,e,r)).urlAfterRedirects=i,a}return Object(s.a)(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(be),we=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(l.a)(this,n),(a=t.call(this,e,r)).reason=i,a}return Object(s.a)(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(be),Oe=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){var a;return Object(l.a)(this,n),(a=t.call(this,e,r)).error=i,a}return Object(s.a)(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(be),je=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(l.a)(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return Object(s.a)(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(be),Se=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(l.a)(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return Object(s.a)(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(be),Ce=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a,o){var s;return Object(l.a)(this,n),(s=t.call(this,e,r)).urlAfterRedirects=i,s.state=a,s.shouldActivate=o,s}return Object(s.a)(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(be),Ee=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(l.a)(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return Object(s.a)(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(be),Te=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var o;return Object(l.a)(this,n),(o=t.call(this,e,r)).urlAfterRedirects=i,o.state=a,o}return Object(s.a)(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(be),xe=function(){function e(t){Object(l.a)(this,e),this.route=t}return Object(s.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),e}(),Ae=function(){function e(t){Object(l.a)(this,e),this.route=t}return Object(s.a)(e,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),e}(),Pe=function(){function e(t){Object(l.a)(this,e),this.snapshot=t}return Object(s.a)(e,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ie=function(){function e(t){Object(l.a)(this,e),this.snapshot=t}return Object(s.a)(e,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Re=function(){function e(t){Object(l.a)(this,e),this.snapshot=t}return Object(s.a)(e,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),Ne=function(){function e(t){Object(l.a)(this,e),this.snapshot=t}return Object(s.a)(e,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),e}(),De=function(){function e(t,n,r){Object(l.a)(this,e),this.routerEvent=t,this.position=n,this.anchor=r}return Object(s.a)(e,[{key:"toString",value:function(){var e=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(e,"')")}}]),e}(),Fe="primary",Me=function(){function e(t){Object(l.a)(this,e),this.params=t||{}}return Object(s.a)(e,[{key:"has",value:function(e){return Object.prototype.hasOwnProperty.call(this.params,e)}},{key:"get",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t[0]:t}return null}},{key:"getAll",value:function(e){if(this.has(e)){var t=this.params[e];return Array.isArray(t)?t:[t]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),e}();function Ue(e){return new Me(e)}function Le(e){var t=Error("NavigationCancelingError: "+e);return t.ngNavigationCancelingError=!0,t}function He(e,t,n){var r=n.path.split("/");if(r.length>e.length)return null;if("full"===n.pathMatch&&(t.hasChildren()||r.length0?e[e.length-1]:null}function Qe(e,t){for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)}function Ge(e){return Object(h.pb)(e)?e:Object(h.qb)(e)?Object(d.a)(Promise.resolve(e)):Object(v.a)(e)}function We(e,t,n){return n?function(e,t){return Ve(e,t)}(e.queryParams,t.queryParams)&&Ke(e.root,t.root):function(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(function(n){return qe(e[n],t[n])})}(e.queryParams,t.queryParams)&&Ze(e.root,t.root)}function Ke(e,t){if(!et(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var n in t.children){if(!e.children[n])return!1;if(!Ke(e.children[n],t.children[n]))return!1}return!0}function Ze(e,t){return Ye(e,t,t.segments)}function Ye(e,t,n){if(e.segments.length>n.length)return!!et(e.segments.slice(0,n.length),n)&&!t.hasChildren();if(e.segments.length===n.length){if(!et(e.segments,n))return!1;for(var r in t.children){if(!e.children[r])return!1;if(!Ze(e.children[r],t.children[r]))return!1}return!0}var i=n.slice(0,e.segments.length),a=n.slice(e.segments.length);return!!et(e.segments,i)&&!!e.children.primary&&Ye(e.children.primary,t,a)}var Je=function(){function e(t,n,r){Object(l.a)(this,e),this.root=t,this.queryParams=n,this.fragment=r}return Object(s.a)(e,[{key:"toString",value:function(){return rt.serialize(this)}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}}]),e}(),$e=function(){function e(t,n){var r=this;Object(l.a)(this,e),this.segments=t,this.children=n,this.parent=null,Qe(n,function(e,t){return e.parent=r})}return Object(s.a)(e,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"toString",value:function(){return it(this)}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}}]),e}(),Xe=function(){function e(t,n){Object(l.a)(this,e),this.path=t,this.parameters=n}return Object(s.a)(e,[{key:"toString",value:function(){return ft(this)}},{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Ue(this.parameters)),this._parameterMap}}]),e}();function et(e,t){return e.length===t.length&&e.every(function(e,n){return e.path===t[n].path})}var tt=function e(){Object(l.a)(this,e)},nt=function(){function e(){Object(l.a)(this,e)}return Object(s.a)(e,[{key:"parse",value:function(e){var t=new yt(e);return new Je(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}},{key:"serialize",value:function(e){var t,n,r="/".concat(at(e.root,!0)),i=(t=e.queryParams,(n=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return"".concat(st(e),"=").concat(st(t))}).join("&"):"".concat(st(e),"=").concat(st(n))})).length?"?".concat(n.join("&")):""),a="string"==typeof e.fragment?"#".concat(encodeURI(e.fragment)):"";return"".concat(r).concat(i).concat(a)}}]),e}(),rt=new nt;function it(e){return e.segments.map(function(e){return ft(e)}).join("/")}function at(e,t){if(!e.hasChildren())return it(e);if(t){var n=e.children.primary?at(e.children.primary,!1):"",r=[];return Qe(e.children,function(e,t){t!==Fe&&r.push("".concat(t,":").concat(at(e,!1)))}),r.length>0?"".concat(n,"(").concat(r.join("//"),")"):n}var i=function(e,t){var n=[];return Qe(e.children,function(e,r){r===Fe&&(n=n.concat(t(e,r)))}),Qe(e.children,function(e,r){r!==Fe&&(n=n.concat(t(e,r)))}),n}(e,function(t,n){return n===Fe?[at(e.children.primary,!1)]:["".concat(n,":").concat(at(t,!1))]});return 1===Object.keys(e.children).length&&null!=e.children.primary?"".concat(it(e),"/").concat(i[0]):"".concat(it(e),"/(").concat(i.join("//"),")")}function ot(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(e){return ot(e).replace(/%3B/gi,";")}function ut(e){return ot(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ct(e){return decodeURIComponent(e)}function lt(e){return ct(e.replace(/\+/g,"%20"))}function ft(e){return"".concat(ut(e.path)).concat((t=e.parameters,Object.keys(t).map(function(e){return";".concat(ut(e),"=").concat(ut(t[e]))}).join("")));var t}var ht=/^[^\/()?;=#]+/;function dt(e){var t=e.match(ht);return t?t[0]:""}var vt=/^[^=?&#]+/,pt=/^[^?&#]+/,yt=function(){function e(t){Object(l.a)(this,e),this.url=t,this.remaining=t}return Object(s.a)(e,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new $e([],{}):new $e([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n.primary=new $e(e,t)),n}},{key:"parseSegment",value:function(){var e=dt(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(e),new Xe(ct(e),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var e={};this.consumeOptional(";");)this.parseParam(e);return e}},{key:"parseParam",value:function(e){var t=dt(this.remaining);if(t){this.capture(t);var n="";if(this.consumeOptional("=")){var r=dt(this.remaining);r&&this.capture(n=r)}e[ct(t)]=ct(n)}}},{key:"parseQueryParam",value:function(e){var t,n=(t=this.remaining.match(vt))?t[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(e){var t=e.match(pt);return t?t[0]:""}(this.remaining);i&&this.capture(r=i)}var a=lt(n),o=lt(r);if(e.hasOwnProperty(a)){var s=e[a];Array.isArray(s)||(e[a]=s=[s]),s.push(o)}else e[a]=o}}},{key:"parseParens",value:function(e){var t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=dt(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '".concat(this.url,"'"));var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=Fe);var a=this.parseChildren();t[i]=1===Object.keys(a).length?a.primary:new $e([],a),this.consumeOptional("//")}return t}},{key:"peekStartsWith",value:function(e){return this.remaining.startsWith(e)}},{key:"consumeOptional",value:function(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}},{key:"capture",value:function(e){if(!this.consumeOptional(e))throw new Error('Expected "'.concat(e,'".'))}}]),e}(),gt=function(){function e(t){Object(l.a)(this,e),this._root=t}return Object(s.a)(e,[{key:"parent",value:function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}},{key:"children",value:function(e){var t=mt(e,this._root);return t?t.children.map(function(e){return e.value}):[]}},{key:"firstChild",value:function(e){var t=mt(e,this._root);return t&&t.children.length>0?t.children[0].value:null}},{key:"siblings",value:function(e){var t=bt(e,this._root);return t.length<2?[]:t[t.length-2].children.map(function(e){return e.value}).filter(function(t){return t!==e})}},{key:"pathFromRoot",value:function(e){return bt(e,this._root).map(function(e){return e.value})}},{key:"root",get:function(){return this._root.value}}]),e}();function mt(e,t){if(e===t.value)return t;var n,r=Object(a.a)(t.children);try{for(r.s();!(n=r.n()).done;){var i=mt(e,n.value);if(i)return i}}catch(o){r.e(o)}finally{r.f()}return null}function bt(e,t){if(e===t.value)return[t];var n,r=Object(a.a)(t.children);try{for(r.s();!(n=r.n()).done;){var i=bt(e,n.value);if(i.length)return i.unshift(t),i}}catch(o){r.e(o)}finally{r.f()}return[]}var _t=function(){function e(t,n){Object(l.a)(this,e),this.value=t,this.children=n}return Object(s.a)(e,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),e}();function kt(e){var t={};return e&&e.children.forEach(function(e){return t[e.value.outlet]=e}),t}var wt=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(l.a)(this,n),(a=t.call(this,e)).snapshot=r,xt(Object(i.a)(a),e),a}return Object(s.a)(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(gt);function Ot(e,t){var n=function(e,t){var n=new Et([],{},{},"",{},Fe,t,null,e.root,-1,{});return new Tt("",new _t(n,[]))}(e,t),r=new p.a([new Xe("",{})]),i=new p.a({}),a=new p.a({}),o=new p.a({}),s=new p.a(""),u=new jt(r,i,o,s,a,Fe,t,n.root);return u.snapshot=n.root,new wt(new _t(u,[]),n)}var jt=function(){function e(t,n,r,i,a,o,s,u){Object(l.a)(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this._futureSnapshot=u}return Object(s.a)(e,[{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}},{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(Object(R.a)(function(e){return Ue(e)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(R.a)(function(e){return Ue(e)}))),this._queryParamMap}}]),e}();function St(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=e.pathFromRoot,r=0;if("always"!==t)for(r=n.length-1;r>=1;){var i=n[r],a=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(a.component)break;r--}}return Ct(n.slice(r))}function Ct(e){return e.reduce(function(e,t){return{params:Object.assign(Object.assign({},e.params),t.params),data:Object.assign(Object.assign({},e.data),t.data),resolve:Object.assign(Object.assign({},e.resolve),t._resolvedData)}},{params:{},data:{},resolve:{}})}var Et=function(){function e(t,n,r,i,a,o,s,u,c,f,h){Object(l.a)(this,e),this.url=t,this.params=n,this.queryParams=r,this.fragment=i,this.data=a,this.outlet=o,this.component=s,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=f,this._resolve=h}return Object(s.a)(e,[{key:"toString",value:function(){var e=this.url.map(function(e){return e.toString()}).join("/"),t=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(e,"', path:'").concat(t,"')")}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Ue(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ue(this.queryParams)),this._queryParamMap}}]),e}(),Tt=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var a;return Object(l.a)(this,n),(a=t.call(this,r)).url=e,xt(Object(i.a)(a),r),a}return Object(s.a)(n,[{key:"toString",value:function(){return At(this._root)}}]),n}(gt);function xt(e,t){t.value._routerState=e,t.children.forEach(function(t){return xt(e,t)})}function At(e){var t=e.children.length>0?" { ".concat(e.children.map(At).join(", ")," } "):"";return"".concat(e.value).concat(t)}function Pt(e){if(e.snapshot){var t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,Ve(t.queryParams,n.queryParams)||e.queryParams.next(n.queryParams),t.fragment!==n.fragment&&e.fragment.next(n.fragment),Ve(t.params,n.params)||e.params.next(n.params),function(e,t){if(e.length!==t.length)return!1;for(var n=0;ni;){if(a-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new Vt(r,!1,i-a)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,e.numberOfDoubleDots)}(a,t,e),u=s.processChildren?zt(s.segmentGroup,s.index,a.commands):qt(s.segmentGroup,s.index,a.commands);return Ut(s.segmentGroup,u,t,r,i)}function Ft(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Mt(e){return"object"==typeof e&&null!=e&&e.outlets}function Ut(e,t,n,r,i){var a={};return r&&Qe(r,function(e,t){a[t]=Array.isArray(e)?e.map(function(e){return"".concat(e)}):"".concat(e)}),new Je(n.root===e?t:Lt(n.root,e,t),a,i)}function Lt(e,t,n){var r={};return Qe(e.children,function(e,i){r[i]=e===t?n:Lt(e,t,n)}),new $e(e.segments,r)}var Ht=function(){function e(t,n,r){if(Object(l.a)(this,e),this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Ft(r[0]))throw new Error("Root segment cannot have matrix parameters");var i=r.find(Mt);if(i&&i!==Be(r))throw new Error("{outlets:{}} has to be the last command")}return Object(s.a)(e,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),e}(),Vt=function e(t,n,r){Object(l.a)(this,e),this.segmentGroup=t,this.processChildren=n,this.index=r};function qt(e,t,n){if(e||(e=new $e([],{})),0===e.segments.length&&e.hasChildren())return zt(e,t,n);var r=function(e,t,n){for(var r=0,i=t,a={match:!1,pathIndex:0,commandIndex:0};i=n.length)return a;var o=e.segments[i],s=n[r];if(Mt(s))break;var u="".concat(s),c=r0&&void 0===u)break;if(u&&c&&"object"==typeof c&&void 0===c.outlets){if(!Wt(u,c,o))return a;r+=2}else{if(!Wt(u,{},o))return a;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(e,t,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},cn):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var i=(t.matcher||He)(n,e,t);if(!i)return Object.assign({},cn);var a={};Qe(i.posParams,function(e,t){a[t]=e.path});var o=i.consumed.length>0?Object.assign(Object.assign({},a),i.consumed[i.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function fn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&vn(e,n,r)){var a=new $e(t,dn(e,t,r,new $e(n,e.children)));return a._sourceSegment=e,a._segmentIndexShift=t.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&pn(e,n,r)){var o=new $e(e.segments,hn(e,t,n,r,e.children,i));return o._sourceSegment=e,o._segmentIndexShift=t.length,{segmentGroup:o,slicedSegments:n}}var s=new $e(e.segments,e.children);return s._sourceSegment=e,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:n}}function hn(e,t,n,r,i,o){var s,u={},c=Object(a.a)(r);try{for(c.s();!(s=c.n()).done;){var l=s.value;if(yn(e,n,l)&&!i[sn(l)]){var f=new $e([],{});f._sourceSegment=e,f._segmentIndexShift="legacy"===o?e.segments.length:t.length,u[sn(l)]=f}}}catch(h){c.e(h)}finally{c.f()}return Object.assign(Object.assign({},i),u)}function dn(e,t,n,r){var i={};i.primary=r,r._sourceSegment=e,r._segmentIndexShift=t.length;var o,s=Object(a.a)(n);try{for(s.s();!(o=s.n()).done;){var u=o.value;if(""===u.path&&sn(u)!==Fe){var c=new $e([],{});c._sourceSegment=e,c._segmentIndexShift=t.length,i[sn(u)]=c}}}catch(l){s.e(l)}finally{s.f()}return i}function vn(e,t,n){return n.some(function(n){return yn(e,t,n)&&sn(n)!==Fe})}function pn(e,t,n){return n.some(function(n){return yn(e,t,n)})}function yn(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}function gn(e,t,n,r){return!!(sn(e)===r||r!==Fe&&yn(t,n,e))&&("**"===e.path||ln(t,e,n).matched)}function mn(e,t,n){return 0===t.length&&!e.children[n]}var bn=function e(t){Object(l.a)(this,e),this.segmentGroup=t||null},_n=function e(t){Object(l.a)(this,e),this.urlTree=t};function kn(e){return new w.a(function(t){return t.error(new bn(e))})}function wn(e){return new w.a(function(t){return t.error(new _n(e))})}function On(e){return new w.a(function(t){return t.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(e,"'")))})}var jn=function(){function e(t,n,r,i,a){Object(l.a)(this,e),this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=a,this.allowRedirects=!0,this.ngModule=t.get(h.y)}return Object(s.a)(e,[{key:"apply",value:function(){var e=this,t=fn(this.urlTree.root,[],[],this.config).segmentGroup,n=new $e(t.segments,t.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Fe).pipe(Object(R.a)(function(t){return e.createUrlTree(Sn(t),e.urlTree.queryParams,e.urlTree.fragment)})).pipe(W(function(t){if(t instanceof _n)return e.allowRedirects=!1,e.match(t.urlTree);if(t instanceof bn)throw e.noMatchError(t);throw t}))}},{key:"match",value:function(e){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,e.root,Fe).pipe(Object(R.a)(function(n){return t.createUrlTree(Sn(n),e.queryParams,e.fragment)})).pipe(W(function(e){if(e instanceof bn)throw t.noMatchError(e);throw e}))}},{key:"noMatchError",value:function(e){return new Error("Cannot match any routes. URL Segment: '".concat(e.segmentGroup,"'"))}},{key:"createUrlTree",value:function(e,t,n){var i=e.segments.length>0?new $e([],Object(r.a)({},Fe,e)):e;return new Je(i,t,n)}},{key:"expandSegmentGroup",value:function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).pipe(Object(R.a)(function(e){return new $e([],e)})):this.expandSegment(e,n,t,n.segments,r,!0)}},{key:"expandChildren",value:function(e,t,n){for(var r=this,i=[],a=0,o=Object.keys(n.children);a=2;return function(r){return r.pipe(e?Object(z.a)(function(t,n){return e(t,n,r)}):ue.a,$(1),n?ae(t):te(function(){return new T}))}}())}},{key:"expandSegment",value:function(e,t,n,r,i,a){var o=this;return Object(d.a)(n).pipe(J(function(s){return o.expandSegmentAgainstRoute(e,t,n,s,r,i,a).pipe(W(function(e){if(e instanceof bn)return Object(v.a)(null);throw e}))}),ce(function(e){return!!e}),W(function(e,n){if(e instanceof T||"EmptyError"===e.name){if(mn(t,r,i))return Object(v.a)(new $e([],{}));throw new bn(t)}throw e}))}},{key:"expandSegmentAgainstRoute",value:function(e,t,n,r,i,a,o){return gn(r,t,i,a)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i,a):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a):kn(t):kn(t)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,a):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,a)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(e,t,n,r){var i=this,a=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?wn(a):this.lineralizeSegments(n,a).pipe(Object(Y.a)(function(n){var a=new $e(n,{});return i.expandSegment(e,a,t,n,r,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(e,t,n,r,i,a){var o=this,s=ln(t,r,i),u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!s.matched)return kn(t);var f=this.applyRedirectCommands(u,r.redirectTo,l);return r.redirectTo.startsWith("/")?wn(f):this.lineralizeSegments(r,f).pipe(Object(Y.a)(function(r){return o.expandSegment(e,t,n,r.concat(i.slice(c)),a,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(e,t,n,r,i){var a=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(e.injector,n).pipe(Object(R.a)(function(e){return n._loadedConfig=e,new $e(r,{})})):Object(v.a)(new $e(r,{}));var o=ln(t,n,r),s=o.consumedSegments,u=o.lastChild;if(!o.matched)return kn(t);var c=r.slice(u);return this.getChildConfig(e,n,r).pipe(Object(Y.a)(function(e){var r=e.module,o=e.routes,u=fn(t,s,c,o),l=u.segmentGroup,f=u.slicedSegments,h=new $e(l.segments,l.children);if(0===f.length&&h.hasChildren())return a.expandChildren(r,o,h).pipe(Object(R.a)(function(e){return new $e(s,e)}));if(0===o.length&&0===f.length)return Object(v.a)(new $e(s,{}));var d=sn(n)===i;return a.expandSegment(r,h,o,f,d?Fe:i,!0).pipe(Object(R.a)(function(e){return new $e(s.concat(e.segments),e.children)}))}))}},{key:"getChildConfig",value:function(e,t,n){var r=this;return t.children?Object(v.a)(new Yt(t.children,e)):t.loadChildren?void 0!==t._loadedConfig?Object(v.a)(t._loadedConfig):this.runCanLoadGuards(e.injector,t,n).pipe(Object(Y.a)(function(n){return n?r.configLoader.load(e.injector,t).pipe(Object(R.a)(function(e){return t._loadedConfig=e,e})):function(e){return new w.a(function(t){return t.error(Le("Cannot load children because the guard of the route \"path: '".concat(e.path,"'\" returned false")))})}(t)})):Object(v.a)(new Yt([],e))}},{key:"runCanLoadGuards",value:function(e,t,n){var r=this,i=t.canLoad;if(!i||0===i.length)return Object(v.a)(!0);var a=i.map(function(r){var i,a=e.get(r);if(function(e){return e&&Jt(e.canLoad)}(a))i=a.canLoad(t,n);else{if(!Jt(a))throw new Error("Invalid CanLoad guard");i=a(t,n)}return Ge(i)});return Object(v.a)(a).pipe(en(),he(function(e){if($t(e)){var t=Le('Redirecting to "'.concat(r.urlSerializer.serialize(e),'"'));throw t.url=e,t}}),Object(R.a)(function(e){return!0===e}))}},{key:"lineralizeSegments",value:function(e,t){for(var n=[],r=t.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(v.a)(n);if(r.numberOfChildren>1||!r.children.primary)return On(e.redirectTo);r=r.children.primary}}},{key:"applyRedirectCommands",value:function(e,t,n){return this.applyRedirectCreatreUrlTree(t,this.urlSerializer.parse(t),e,n)}},{key:"applyRedirectCreatreUrlTree",value:function(e,t,n,r){var i=this.createSegmentGroup(e,t.root,n,r);return new Je(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}},{key:"createQueryParams",value:function(e,t){var n={};return Qe(e,function(e,r){if("string"==typeof e&&e.startsWith(":")){var i=e.substring(1);n[r]=t[i]}else n[r]=e}),n}},{key:"createSegmentGroup",value:function(e,t,n,r){var i=this,a=this.createSegments(e,t.segments,n,r),o={};return Qe(t.children,function(t,a){o[a]=i.createSegmentGroup(e,t,n,r)}),new $e(a,o)}},{key:"createSegments",value:function(e,t,n,r){var i=this;return t.map(function(t){return t.path.startsWith(":")?i.findPosParam(e,t,r):i.findOrReturn(t,n)})}},{key:"findPosParam",value:function(e,t,n){var r=n[t.path.substring(1)];if(!r)throw new Error("Cannot redirect to '".concat(e,"'. Cannot find '").concat(t.path,"'."));return r}},{key:"findOrReturn",value:function(e,t){var n,r=0,i=Object(a.a)(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.path===e.path)return t.splice(r),o;r++}}catch(s){i.e(s)}finally{i.f()}return e}}]),e}();function Sn(e){for(var t={},n=0,r=Object.keys(e.children);n0||a.hasChildren())&&(t[i]=a)}return function(e){if(1===e.numberOfChildren&&e.children.primary){var t=e.children.primary;return new $e(e.segments.concat(t.segments),t.children)}return e}(new $e(e.segments,t))}var Cn=function e(t){Object(l.a)(this,e),this.path=t,this.route=this.path[this.path.length-1]},En=function e(t,n){Object(l.a)(this,e),this.component=t,this.route=n};function Tn(e,t,n){var r=function(e){if(!e)return null;for(var t=e.parent;t;t=t.parent){var n=t.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(t);return(r?r.module.injector:n).get(e)}function xn(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=kt(t);return e.children.forEach(function(e){An(e,a[e.value.outlet],n,r.concat([e.value]),i),delete a[e.value.outlet]}),Qe(a,function(e,t){return In(e,n.getContext(t),i)}),i}function An(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},a=e.value,o=t?t.value:null,s=n?n.getContext(e.value.outlet):null;if(o&&a.routeConfig===o.routeConfig){var u=Pn(o,a,a.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Cn(r)):(a.data=o.data,a._resolvedData=o._resolvedData),xn(e,t,a.component?s?s.children:null:n,r,i),u&&s&&s.outlet&&s.outlet.isActivated&&i.canDeactivateChecks.push(new En(s.outlet.component,o))}else o&&In(t,s,i),i.canActivateChecks.push(new Cn(r)),xn(e,null,a.component?s?s.children:null:n,r,i);return i}function Pn(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!et(e.url,t.url);case"pathParamsOrQueryParamsChange":return!et(e.url,t.url)||!Ve(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!It(e,t)||!Ve(e.queryParams,t.queryParams);case"paramsChange":default:return!It(e,t)}}function In(e,t,n){var r=kt(e),i=e.value;Qe(r,function(e,r){In(e,i.component?t?t.children.getContext(r):null:t,n)}),n.canDeactivateChecks.push(new En(i.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,i))}var Rn=function e(){Object(l.a)(this,e)};function Nn(e){return new w.a(function(t){return t.error(e)})}var Dn=function(){function e(t,n,r,i,a,o){Object(l.a)(this,e),this.rootComponentType=t,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=a,this.relativeLinkResolution=o}return Object(s.a)(e,[{key:"recognize",value:function(){var e=fn(this.urlTree.root,[],[],this.config.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution).segmentGroup,t=this.processSegmentGroup(this.config,e,Fe);if(null===t)return null;var n=new Et([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Fe,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new _t(n,t),i=new Tt(this.url,r);return this.inheritParamsAndData(i._root),i}},{key:"inheritParamsAndData",value:function(e){var t=this,n=e.value,r=St(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(function(e){return t.inheritParamsAndData(e)})}},{key:"processSegmentGroup",value:function(e,t,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t):this.processSegment(e,t,t.segments,n)}},{key:"processChildren",value:function(e,t){for(var n=[],r=0,i=Object.keys(t.children);r0?Be(n).parameters:{};i=new Et(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Un(e),sn(e),e.component,e,Fn(t),Mn(t)+n.length,Ln(e))}else{var u=ln(t,e,n);if(!u.matched)return null;a=u.consumedSegments,o=n.slice(u.lastChild),i=new Et(a,u.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Un(e),sn(e),e.component,e,Fn(t),Mn(t)+a.length,Ln(e))}var c=function(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}(e),l=fn(t,a,o,c.filter(function(e){return void 0===e.redirectTo}),this.relativeLinkResolution),f=l.segmentGroup,h=l.slicedSegments;if(0===h.length&&f.hasChildren()){var d=this.processChildren(c,f);return null===d?null:[new _t(i,d)]}if(0===c.length&&0===h.length)return[new _t(i,[])];var v=sn(e)===r,p=this.processSegment(c,f,h,v?Fe:r);return null===p?null:[new _t(i,p)]}}]),e}();function Fn(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function Mn(e){for(var t=e,n=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)n+=(t=t._sourceSegment)._segmentIndexShift?t._segmentIndexShift:0;return n-1}function Un(e){return e.data||{}}function Ln(e){return e.resolve||{}}function Hn(e){return Object(N.a)(function(t){var n=e(t);return n?Object(d.a)(n).pipe(Object(R.a)(function(){return t})):Object(v.a)(t)})}var Vn=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){return Object(l.a)(this,n),t.apply(this,arguments)}return n}(function(){function e(){Object(l.a)(this,e)}return Object(s.a)(e,[{key:"shouldDetach",value:function(e){return!1}},{key:"store",value:function(e,t){}},{key:"shouldAttach",value:function(e){return!1}},{key:"retrieve",value:function(e){return null}},{key:"shouldReuseRoute",value:function(e,t){return e.routeConfig===t.routeConfig}}]),e}()),qn=new h.r("ROUTES"),zn=function(){function e(t,n,r,i){Object(l.a)(this,e),this.loader=t,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}return Object(s.a)(e,[{key:"load",value:function(e,t){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(t),this.loadModuleFactory(t.loadChildren).pipe(Object(R.a)(function(r){n.onLoadEndListener&&n.onLoadEndListener(t);var i=r.create(e);return new Yt(ze(i.injector.get(qn,void 0,h.q.Self|h.q.Optional)).map(on),i)}))}},{key:"loadModuleFactory",value:function(e){var t=this;return"string"==typeof e?Object(d.a)(this.loader.load(e)):Ge(e()).pipe(Object(Y.a)(function(e){return e instanceof h.w?Object(v.a)(e):Object(d.a)(t.compiler.compileModuleAsync(e))}))}}]),e}(),Bn=function e(){Object(l.a)(this,e),this.outlet=null,this.route=null,this.resolver=null,this.children=new Qn,this.attachRef=null},Qn=function(){function e(){Object(l.a)(this,e),this.contexts=new Map}return Object(s.a)(e,[{key:"onChildOutletCreated",value:function(e,t){var n=this.getOrCreateContext(e);n.outlet=t,this.contexts.set(e,n)}},{key:"onChildOutletDestroyed",value:function(e){var t=this.getContext(e);t&&(t.outlet=null)}},{key:"onOutletDeactivated",value:function(){var e=this.contexts;return this.contexts=new Map,e}},{key:"onOutletReAttached",value:function(e){this.contexts=e}},{key:"getOrCreateContext",value:function(e){var t=this.getContext(e);return t||(t=new Bn,this.contexts.set(e,t)),t}},{key:"getContext",value:function(e){return this.contexts.get(e)||null}}]),e}(),Gn=function(){function e(){Object(l.a)(this,e)}return Object(s.a)(e,[{key:"shouldProcessUrl",value:function(e){return!0}},{key:"extract",value:function(e){return e}},{key:"merge",value:function(e,t){return e}}]),e}();function Wn(e){throw e}function Kn(e,t,n){return t.parse("/")}function Zn(e,t){return Object(v.a)(null)}var Yn=function(){var e=function(){function e(t,n,r,i,a,o,s,u){var c=this;Object(l.a)(this,e),this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=r,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new I.a,this.errorHandler=Wn,this.malformedUriErrorHandler=Kn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Zn,afterPreactivation:Zn},this.urlHandlingStrategy=new Gn,this.routeReuseStrategy=new Vn,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.ngModule=a.get(h.y),this.console=a.get(h.X);var f=a.get(h.A);this.isNgZoneEnabled=f instanceof h.A&&h.A.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Je(new $e([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new zn(o,s,function(e){return c.triggerEvent(new xe(e))},function(e){return c.triggerEvent(new Ae(e))}),this.routerState=Ot(this.currentUrlTree,this.rootComponentType),this.transitions=new p.a({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return Object(s.a)(e,[{key:"setupNavigations",value:function(e){var t=this,n=this.events;return e.pipe(Object(z.a)(function(e){return 0!==e.id}),Object(R.a)(function(e){return Object.assign(Object.assign({},e),{extractedUrl:t.urlHandlingStrategy.extract(e.rawUrl)})}),Object(N.a)(function(e){var r,i,a,o,s=!1,u=!1;return Object(v.a)(e).pipe(he(function(e){t.currentNavigation={id:e.id,initialUrl:e.currentRawUrl,extractedUrl:e.extractedUrl,trigger:e.source,extras:e.extras,previousNavigation:t.lastSuccessfulNavigation?Object.assign(Object.assign({},t.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(N.a)(function(e){var r,i,a,o,s=!t.navigated||e.extractedUrl.toString()!==t.browserUrlTree.toString();if(("reload"===t.onSameUrlNavigation||s)&&t.urlHandlingStrategy.shouldProcessUrl(e.rawUrl))return Object(v.a)(e).pipe(Object(N.a)(function(e){var r=t.transitions.getValue();return n.next(new _e(e.id,t.serializeUrl(e.extractedUrl),e.source,e.restoredState)),r!==t.transitions.getValue()?A.a:Promise.resolve(e)}),(r=t.ngModule.injector,i=t.configLoader,a=t.urlSerializer,o=t.config,Object(N.a)(function(e){return function(e,t,n,r,i){return new jn(e,t,n,r,i).apply()}(r,i,a,e.extractedUrl,o).pipe(Object(R.a)(function(t){return Object.assign(Object.assign({},e),{urlAfterRedirects:t})}))})),he(function(e){t.currentNavigation=Object.assign(Object.assign({},t.currentNavigation),{finalUrl:e.urlAfterRedirects})}),function(e,n,r,i,a){return Object(Y.a)(function(r){return function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var o=new Dn(e,t,n,r,i,a).recognize();return null===o?Nn(new Rn):Object(v.a)(o)}catch(s){return Nn(s)}}(e,n,r.urlAfterRedirects,(o=r.urlAfterRedirects,t.serializeUrl(o)),i,a).pipe(Object(R.a)(function(e){return Object.assign(Object.assign({},r),{targetSnapshot:e})}));var o})}(t.rootComponentType,t.config,0,t.paramsInheritanceStrategy,t.relativeLinkResolution),he(function(e){"eager"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(e.urlAfterRedirects,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects);var r=new je(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);n.next(r)}));if(s&&t.rawUrlTree&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){var u=e.extractedUrl,c=e.source,l=e.restoredState,f=e.extras,h=new _e(e.id,t.serializeUrl(u),c,l);n.next(h);var d=Ot(u,t.rootComponentType).snapshot;return Object(v.a)(Object.assign(Object.assign({},e),{targetSnapshot:d,urlAfterRedirects:u,extras:Object.assign(Object.assign({},f),{skipLocationChange:!1,replaceUrl:!1})}))}return t.rawUrlTree=e.rawUrl,t.browserUrlTree=e.urlAfterRedirects,e.resolve(null),A.a}),Hn(function(e){var n=e.extras;return t.hooks.beforePreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),he(function(e){var n=new Se(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(R.a)(function(e){return Object.assign(Object.assign({},e),{guards:(n=e.targetSnapshot,r=e.currentSnapshot,i=t.rootContexts,a=n._root,xn(a,r?r._root:null,i,[a.value]))});var n,r,i,a}),function(e,t){return Object(Y.a)(function(n){var r=n.targetSnapshot,i=n.currentSnapshot,a=n.guards,o=a.canActivateChecks,s=a.canDeactivateChecks;return 0===s.length&&0===o.length?Object(v.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(e,t,n,r){return Object(d.a)(e).pipe(Object(Y.a)(function(e){return function(e,t,n,r,i){var a=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!a||0===a.length)return Object(v.a)(!0);var o=a.map(function(a){var o,s=Tn(a,t,i);if(function(e){return e&&Jt(e.canDeactivate)}(s))o=Ge(s.canDeactivate(e,t,n,r));else{if(!Jt(s))throw new Error("Invalid CanDeactivate guard");o=Ge(s(e,t,n,r))}return o.pipe(ce())});return Object(v.a)(o).pipe(en())}(e.component,e.route,n,t,r)}),ce(function(e){return!0!==e},!0))}(s,r,i,e).pipe(Object(Y.a)(function(n){return n&&"boolean"==typeof n?function(e,t,n,r){return Object(d.a)(t).pipe(J(function(t){return Object(x.a)(function(e,t){return null!==e&&t&&t(new Pe(e)),Object(v.a)(!0)}(t.route.parent,r),function(e,t){return null!==e&&t&&t(new Re(e)),Object(v.a)(!0)}(t.route,r),function(e,t,n){var r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(function(e){return function(e){var t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(e)}).filter(function(e){return null!==e}).map(function(t){return P(function(){var i=t.guards.map(function(i){var a,o=Tn(i,t.node,n);if(function(e){return e&&Jt(e.canActivateChild)}(o))a=Ge(o.canActivateChild(r,e));else{if(!Jt(o))throw new Error("Invalid CanActivateChild guard");a=Ge(o(r,e))}return a.pipe(ce())});return Object(v.a)(i).pipe(en())})});return Object(v.a)(i).pipe(en())}(e,t.path,n),function(e,t,n){var r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return Object(v.a)(!0);var i=r.map(function(r){return P(function(){var i,a=Tn(r,t,n);if(function(e){return e&&Jt(e.canActivate)}(a))i=Ge(a.canActivate(t,e));else{if(!Jt(a))throw new Error("Invalid CanActivate guard");i=Ge(a(t,e))}return i.pipe(ce())})});return Object(v.a)(i).pipe(en())}(e,t.route,n))}),ce(function(e){return!0!==e},!0))}(r,o,e,t):Object(v.a)(n)}),Object(R.a)(function(e){return Object.assign(Object.assign({},n),{guardsResult:e})}))})}(t.ngModule.injector,function(e){return t.triggerEvent(e)}),he(function(e){if($t(e.guardsResult)){var n=Le('Redirecting to "'.concat(t.serializeUrl(e.guardsResult),'"'));throw n.url=e.guardsResult,n}var r=new Ce(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot,!!e.guardsResult);t.triggerEvent(r)}),Object(z.a)(function(e){if(!e.guardsResult){t.resetUrlToCurrentUrlTree();var r=new we(e.id,t.serializeUrl(e.extractedUrl),"");return n.next(r),e.resolve(!1),!1}return!0}),Hn(function(e){if(e.guards.canActivateChecks.length)return Object(v.a)(e).pipe(he(function(e){var n=new Ee(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}),Object(N.a)(function(e){var r,i,a=!1;return Object(v.a)(e).pipe((r=t.paramsInheritanceStrategy,i=t.ngModule.injector,Object(Y.a)(function(e){var t=e.targetSnapshot,n=e.guards.canActivateChecks;if(!n.length)return Object(v.a)(e);var a=0;return Object(d.a)(n).pipe(J(function(e){return function(e,t,n,r){return function(e,t,n,r){var i=Object.keys(e);if(0===i.length)return Object(v.a)({});var a={};return Object(d.a)(i).pipe(Object(Y.a)(function(i){return function(e,t,n,r){var i=Tn(e,t,r);return Ge(i.resolve?i.resolve(t,n):i(t,n))}(e[i],t,n,r).pipe(he(function(e){a[i]=e}))}),$(1),Object(Y.a)(function(){return Object.keys(a).length===i.length?Object(v.a)(a):A.a}))}(e._resolve,e,t,r).pipe(Object(R.a)(function(t){return e._resolvedData=t,e.data=Object.assign(Object.assign({},e.data),St(e,n).resolve),null}))}(e.route,t,r,i)}),he(function(){return a++}),$(1),Object(Y.a)(function(t){return a===n.length?Object(v.a)(e):A.a}))})),he({next:function(){return a=!0},complete:function(){if(!a){var r=new we(e.id,t.serializeUrl(e.extractedUrl),"At least one route resolver didn't emit any value.");n.next(r),e.resolve(!1)}}}))}),he(function(e){var n=new Te(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(e.urlAfterRedirects),e.targetSnapshot);t.triggerEvent(n)}))}),Hn(function(e){var n=e.extras;return t.hooks.afterPreactivation(e.targetSnapshot,{navigationId:e.id,appliedUrlTree:e.extractedUrl,rawUrlTree:e.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),Object(R.a)(function(e){var n,r,i,a=(i=Rt(t.routeReuseStrategy,(n=e.targetSnapshot)._root,(r=e.currentRouterState)?r._root:void 0),new wt(i,n));return Object.assign(Object.assign({},e),{targetRouterState:a})}),he(function(e){t.currentUrlTree=e.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(t.currentUrlTree,e.rawUrl),t.routerState=e.targetRouterState,"deferred"===t.urlUpdateStrategy&&(e.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,!!e.extras.replaceUrl,e.id,e.extras.state),t.browserUrlTree=e.urlAfterRedirects)}),(i=t.rootContexts,a=t.routeReuseStrategy,o=function(e){return t.triggerEvent(e)},Object(R.a)(function(e){return new Kt(a,e.targetRouterState,e.currentRouterState,o).activate(i),e})),he({next:function(){s=!0},complete:function(){s=!0}}),(r=function(){if(!s&&!u){t.resetUrlToCurrentUrlTree();var r=new we(e.id,t.serializeUrl(e.extractedUrl),"Navigation ID ".concat(e.id," is not equal to the current navigation id ").concat(t.navigationId));n.next(r),e.resolve(!1)}t.currentNavigation=null},function(e){return e.lift(new ye(r))}),W(function(r){if(u=!0,(s=r)&&s.ngNavigationCancelingError){var i=$t(r.url);i||(t.navigated=!0,t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl));var a=new we(e.id,t.serializeUrl(e.extractedUrl),r.message);n.next(a),i?setTimeout(function(){var n=t.urlHandlingStrategy.merge(r.url,t.rawUrlTree);t.scheduleNavigation(n,"imperative",null,{skipLocationChange:e.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy},{resolve:e.resolve,reject:e.reject,promise:e.promise})},0):e.resolve(!1)}else{t.resetStateAndUrl(e.currentRouterState,e.currentUrlTree,e.rawUrl);var o=new Oe(e.id,t.serializeUrl(e.extractedUrl),r);n.next(o);try{e.resolve(t.errorHandler(r))}catch(c){e.reject(c)}}var s;return A.a}))}))}},{key:"resetRootComponentType",value:function(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var e=this.transitions.value;return e.urlAfterRedirects=this.browserUrlTree,e}},{key:"setTransition",value:function(e){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),e))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var e=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(t){var n=e.extractLocationChangeInfoFromEvent(t);e.shouldScheduleNavigation(e.lastLocationChangeInfo,n)&&setTimeout(function(){var t=n.source,r=n.state,i=n.urlTree,a={replaceUrl:!0};if(r){var o=Object.assign({},r);delete o.navigationId,0!==Object.keys(o).length&&(a.state=o)}e.scheduleNavigation(i,t,r,a)},0),e.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(e){var t;return{source:"popstate"===e.type?"popstate":"hashchange",urlTree:this.parseUrl(e.url),state:(null===(t=e.state)||void 0===t?void 0:t.navigationId)?e.state:null,transitionId:this.getTransition().id}}},{key:"shouldScheduleNavigation",value:function(e,t){if(!e)return!0;var n=t.urlTree.toString()===e.urlTree.toString();return!(t.transitionId===e.transitionId&&n&&("hashchange"===t.source&&"popstate"===e.source||"popstate"===t.source&&"hashchange"===e.source))}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(e){this.events.next(e)}},{key:"resetConfig",value:function(e){nn(e),this.config=e.map(on),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}},{key:"createUrlTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.relativeTo,r=t.queryParams,i=t.fragment,a=t.queryParamsHandling,o=t.preserveFragment,s=n||this.routerState.root,u=o?this.currentUrlTree.fragment:i,c=null;switch(a){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=r||null}return null!==c&&(c=this.removeEmptyProps(c)),Dt(s,this.currentUrlTree,e,c,u)}},{key:"navigateByUrl",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=$t(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,t)}},{key:"navigate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Jn(e),this.navigateByUrl(this.createUrlTree(e,t),t)}},{key:"serializeUrl",value:function(e){return this.urlSerializer.serialize(e)}},{key:"parseUrl",value:function(e){var t;try{t=this.urlSerializer.parse(e)}catch(n){t=this.malformedUriErrorHandler(n,this.urlSerializer,e)}return t}},{key:"isActive",value:function(e,t){if($t(e))return We(this.currentUrlTree,e,t);var n=this.parseUrl(e);return We(this.currentUrlTree,n,t)}},{key:"removeEmptyProps",value:function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return null!=r&&(t[n]=r),t},{})}},{key:"processNavigations",value:function(){var e=this;this.navigations.subscribe(function(t){e.navigated=!0,e.lastSuccessfulId=t.id,e.events.next(new ke(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(e.currentUrlTree))),e.lastSuccessfulNavigation=e.currentNavigation,e.currentNavigation=null,t.resolve(!0)},function(t){e.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(e,t,n,r,i){var a,o,s,u=this.getTransition(),c="imperative"!==t&&"imperative"===(null==u?void 0:u.source),l=(this.lastSuccessfulId===u.id||this.currentNavigation?u.rawUrl:u.urlAfterRedirects).toString()===e.toString();if(c&&l)return Promise.resolve(!0);i?(a=i.resolve,o=i.reject,s=i.promise):s=new Promise(function(e,t){a=e,o=t});var f=++this.navigationId;return this.setTransition({id:f,source:t,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:e,extras:r,resolve:a,reject:o,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(e){return Promise.reject(e)})}},{key:"setBrowserUrl",value:function(e,t,n,r){var i=this.urlSerializer.serialize(e);r=r||{},this.location.isCurrentPathEqualTo(i)||t?this.location.replaceState(i,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(i,"",Object.assign(Object.assign({},r),{navigationId:n}))}},{key:"resetStateAndUrl",value:function(e,t,n){this.routerState=e,this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.N),h.Ub(tt),h.Ub(Qn),h.Ub(f.f),h.Ub(h.s),h.Ub(h.x),h.Ub(h.i),h.Ub(void 0))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function Jn(e){for(var t=0;t2&&void 0!==arguments[2]?arguments[2]:{};Object(l.a)(this,e),this.router=t,this.viewportScroller=n,this.options=r,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},r.scrollPositionRestoration=r.scrollPositionRestoration||"disabled",r.anchorScrolling=r.anchorScrolling||"disabled"}return Object(s.a)(e,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof _e?(e.store[e.lastId]=e.viewportScroller.getScrollPosition(),e.lastSource=t.navigationTrigger,e.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof ke&&(e.lastId=t.id,e.scheduleScrollEvent(t,e.router.parseUrl(t.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var e=this;return this.router.events.subscribe(function(t){t instanceof De&&(t.position?"top"===e.options.scrollPositionRestoration?e.viewportScroller.scrollToPosition([0,0]):"enabled"===e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===e.options.anchorScrolling?e.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==e.options.scrollPositionRestoration&&e.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(e,t){this.router.triggerEvent(new De(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,t))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(Yn),h.Ub(f.o),h.Ub(void 0))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}(),ar=new h.r("ROUTER_CONFIGURATION"),or=new h.r("ROUTER_FORROOT_GUARD"),sr=[f.f,{provide:tt,useClass:nt},{provide:Yn,useFactory:function(e,t,n,r,i,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,l=new Yn(null,e,t,n,r,i,a,ze(o));if(u&&(l.urlHandlingStrategy=u),c&&(l.routeReuseStrategy=c),vr(s,l),s.enableTracing){var h=Object(f.s)();l.events.subscribe(function(e){h.logGroup("Router Event: ".concat(e.constructor.name)),h.log(e.toString()),h.log(e),h.logGroupEnd()})}return l},deps:[tt,Qn,f.f,h.s,h.x,h.i,qn,ar,[function e(){Object(l.a)(this,e)},new h.B],[function e(){Object(l.a)(this,e)},new h.B]]},Qn,{provide:jt,useFactory:function(e){return e.routerState.root},deps:[Yn]},{provide:h.x,useClass:h.K},rr,nr,tr,{provide:ar,useValue:{enableTracing:!1}}];function ur(){return new h.z("Router",Yn)}var cr=function(){var e=function(){function e(t,n){Object(l.a)(this,e)}return Object(s.a)(e,null,[{key:"forRoot",value:function(t,n){return{ngModule:e,providers:[sr,dr(t),{provide:or,useFactory:hr,deps:[[Yn,new h.B,new h.J]]},{provide:ar,useValue:n||{}},{provide:f.g,useFactory:fr,deps:[f.n,[new h.p(f.a),new h.B],ar]},{provide:ir,useFactory:lr,deps:[Yn,f.o,ar]},{provide:er,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:nr},{provide:h.z,multi:!0,useFactory:ur},[pr,{provide:h.d,multi:!0,useFactory:yr,deps:[pr]},{provide:mr,useFactory:gr,deps:[pr]},{provide:h.b,multi:!0,useExisting:mr}]]}}},{key:"forChild",value:function(t){return{ngModule:e,providers:[dr(t)]}}}]),e}();return e.\u0275mod=h.Ib({type:e}),e.\u0275inj=h.Hb({factory:function(t){return new(t||e)(h.Ub(or,8),h.Ub(Yn,8))}}),e}();function lr(e,t,n){return n.scrollOffset&&t.setOffset(n.scrollOffset),new ir(e,t,n)}function fr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new f.d(e,t):new f.m(e,t)}function hr(e){return"guarded"}function dr(e){return[{provide:h.a,multi:!0,useValue:e},{provide:qn,multi:!0,useValue:e}]}function vr(e,t){e.errorHandler&&(t.errorHandler=e.errorHandler),e.malformedUriErrorHandler&&(t.malformedUriErrorHandler=e.malformedUriErrorHandler),e.onSameUrlNavigation&&(t.onSameUrlNavigation=e.onSameUrlNavigation),e.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=e.paramsInheritanceStrategy),e.relativeLinkResolution&&(t.relativeLinkResolution=e.relativeLinkResolution),e.urlUpdateStrategy&&(t.urlUpdateStrategy=e.urlUpdateStrategy)}var pr=function(){var e=function(){function e(t){Object(l.a)(this,e),this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new I.a}return Object(s.a)(e,[{key:"appInitializer",value:function(){var e=this;return this.injector.get(f.e,Promise.resolve(null)).then(function(){var t=null,n=new Promise(function(e){return t=e}),r=e.injector.get(Yn),i=e.injector.get(ar);return"disabled"===i.initialNavigation?(r.setUpLocationChangeListener(),t(!0)):"enabled"===i.initialNavigation||"enabledBlocking"===i.initialNavigation?(r.hooks.afterPreactivation=function(){return e.initNavigation?Object(v.a)(null):(e.initNavigation=!0,t(!0),e.resultOfPreactivationDone)},r.initialNavigation()):t(!0),n})}},{key:"bootstrapListener",value:function(e){var t=this.injector.get(ar),n=this.injector.get(rr),r=this.injector.get(ir),i=this.injector.get(Yn),a=this.injector.get(h.g);e===a.components[0]&&("enabledNonBlocking"!==t.initialNavigation&&void 0!==t.initialNavigation||i.initialNavigation(),n.setUpPreloading(),r.init(),i.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}}]),e}();return e.\u0275fac=function(t){return new(t||e)(h.Ub(h.s))},e.\u0275prov=h.Gb({token:e,factory:e.\u0275fac}),e}();function yr(e){return e.appInitializer.bind(e)}function gr(e){return e.bootstrapListener.bind(e)}var mr=new h.r("Router Initializer")},kufj:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"i",function(){return d}),n.d(t,"j",function(){return u}),n.d(t,"k",function(){return y}),n.d(t,"l",function(){return g});var r=n("ywnY"),i=n("saeC"),a=function e(){Object(i.a)(this,e)},o=function e(){Object(i.a)(this,e)},s="*";function u(e,t){return{type:7,name:e,definitions:t,options:{}}}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:t,timings:e}}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:e,options:t}}function f(e){return{type:6,styles:e,offset:null}}function h(e,t,n){return{type:0,name:e,styles:t,options:n}}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:e,animation:t,options:n}}function v(e){Promise.resolve(null).then(e)}var p=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Object(i.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+n}return Object(r.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var e=this;v(function(){return e._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){}},{key:"setPosition",value:function(e){this._position=this.totalTime?e*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),y=function(){function e(t){var n=this;Object(i.a)(this,e),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var r=0,a=0,o=0,s=this.players.length;0==s?v(function(){return n._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++r==s&&n._onFinish()}),e.onDestroy(function(){++a==s&&n._onDestroy()}),e.onStart(function(){++o==s&&n._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return Object(r.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(e){return e.init()})}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})}},{key:"pause",value:function(){this.players.forEach(function(e){return e.pause()})}},{key:"restart",value:function(){this.players.forEach(function(e){return e.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}},{key:"getPosition",value:function(){var e=this.players.reduce(function(e,t){return null===e||t.totalTime>e.totalTime?t:e},null);return null!=e?e.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}}]),e}(),g="!"},kwJu:function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return y});var r=n("ywnY"),i=n("tM4w"),a=n("Y36k"),o=n("saeC"),s=n("8anW"),u=n("59Gi"),c=n("I1zG"),l=n("Wskk"),f=n("zzox"),h=n("YS7j"),d=n("7MFY"),v=n("ZQq2"),p=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(e){var r;return Object(o.a)(this,n),(r=t.call(this,e)).destination=e,r}return n}(l.a),y=function(){var e=function(e){Object(s.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return Object(r.a)(n,[{key:v.a,value:function(){return new p(this)}},{key:"lift",value:function(e){var t=new g(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new h.a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return Object(r.a)(i.a,e)}},saeC:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",function(){return r})},tM4w:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("Y36k");function i(e,t,n){return(i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(r.a)(e)););return e}(e,t);if(i){var a=Object.getOwnPropertyDescriptor(i,t);return a.get?a.get.call(n):a.value}})(e,t,n||e)}},tcZp:function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("8anW"),i=n("59Gi"),a=n("saeC"),o=n("ywnY"),s=n("ig18"),u=n("Vb/G"),c=n("K2jr");function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof t?function(r){return r.pipe(l(function(n,r){return Object(u.a)(e(n,r)).pipe(Object(s.a)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new f(e,n))})}var f=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;Object(a.a)(this,e),this.project=t,this.concurrent=n}return Object(o.a)(e,[{key:"call",value:function(e,t){return t.subscribe(new h(e,this.project,this.concurrent))}}]),e}(),h=function(e){Object(r.a)(n,e);var t=Object(i.a)(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return Object(a.a)(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return Object(o.a)(n,[{key:"_next",value:function(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(c.b)},"u/2e":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}()},wr0H:function(e,t,n){"use strict";function r(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}n.d(t,"a",function(){return r})},wzHu:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){return function(t){for(var n=0,r=e.length;n1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},f.nb.getAllAngularTestabilities=function(){return e.getAllTestabilities()},f.nb.getAllAngularRootElements=function(){return e.getAllRootElements()},f.nb.frameworkStabilizers||(f.nb.frameworkStabilizers=[]),f.nb.frameworkStabilizers.push(function(e){var t=f.nb.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(i)})})}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Object(l.s)().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){Object(f.W)(new e)}}]),e}(),g=new f.r("EventManagerPlugins"),m=function(){var e=function(){function e(t,n){var r=this;Object(o.a)(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(e){return e.manager=r}),this._plugins=t.slice().reverse()}return Object(s.a)(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),a+=e+".")}),a+=i,0!=t.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=a,o}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&F.hasOwnProperty(t)&&(t=F[t]))}return D[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),N.forEach(function(r){r!=n&&(0,M[r])(e)&&(t+=r+".")}),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded(function(){return t(i)})}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(b);return e.\u0275fac=function(t){return new(t||e)(f.Ub(l.c))},e.\u0275prov=f.Gb({token:e,factory:e.\u0275fac}),e}(),L=[{provide:f.C,useValue:l.r},{provide:f.D,useValue:function(){h.makeCurrent(),y.init()},multi:!0},{provide:l.c,useFactory:function(){return Object(f.tb)(document),document},deps:[]}],H=Object(f.R)(f.V,"browser",L),V=[[],{provide:f.Y,useValue:"root"},{provide:f.m,useFactory:function(){return new f.m},deps:[]},{provide:g,useClass:R,multi:!0,deps:[l.c,f.A,f.C]},{provide:g,useClass:U,multi:!0,deps:[l.c]},[],{provide:x,useClass:x,deps:[m,k,f.c]},{provide:f.F,useExisting:x},{provide:_,useExisting:k},{provide:k,useClass:k,deps:[l.c]},{provide:f.M,useClass:f.M,deps:[f.A]},{provide:m,useClass:m,deps:[g,f.A]},[]],q=function(){var e=function(){function e(t){if(Object(o.a)(this,e),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 Object(s.a)(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:f.c,useValue:t.appId},{provide:v,useExisting:f.c},p]}}}]),e}();return e.\u0275mod=f.Ib({type:e}),e.\u0275inj=f.Hb({factory:function(t){return new(t||e)(f.Ub(e,12))},providers:V,imports:[l.b,f.f]}),e}();"undefined"!=typeof window&&window;var z=n("AfsY"),B=n("kufj"),Q=n("gB58"),G=n("iXkb");function W(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function K(e){switch(e.length){case 0:return new B.d;case 1:return e[0];default:return new B.k(e)}}function Z(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=[],s=[],u=-1,c=null;if(r.forEach(function(e){var n=e.offset,r=n==u,l=r&&c||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),s){case B.l:s=i[n];break;case B.a:s=a[n];break;default:s=t.normalizeStyleValue(n,r,s,o)}l[r]=s}),r||s.push(l),c=l,u=n}),o.length){var l="\n - ";throw new Error("Unable to animate due to the following errors:".concat(l).concat(o.join(l)))}return s}function Y(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&J(n,"start",e))});break;case"done":e.onDone(function(){return r(n&&J(n,"done",e))});break;case"destroy":e.onDestroy(function(){return r(n&&J(n,"destroy",e))})}}function J(e,t,n){var r=n.totalTime,i=$(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),a=e._data;return null!=a&&(i._data=a),i}function $(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6?arguments[6]:void 0;return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:a,disabled:!!o}}function X(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function ee(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var te=function(e,t){return!1},ne=function(e,t){return!1},re=function(e,t,n){return[]},ie=W();(ie||"undefined"!=typeof Element)&&(te=function(e,t){return e.contains(t)},ne=function(){if(ie||Element.prototype.matches)return function(e,t){return e.matches(t)};var e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?function(e,n){return t.apply(e,[n])}:ne}(),re=function(e,t,n){var r=[];if(n)for(var i=e.querySelectorAll(t),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function je(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t)for(var r in e)n[r]=e[r];else Oe(e,n);return n}function Se(e,t,n){return n?t+":"+n+";":""}function Ce(e){for(var t="",n=0;n *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t) *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var i=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'.concat(e,'" is not supported')),t;var a=i[1],o=i[2],s=i[3];t.push(ze(a,s)),"<"!=o[0]||a==He&&s==He||t.push(ze(s,a))}(e,i,r)}):i.push(n),i),animation:a,queryCount:t.queryCount,depCount:t.depCount,options:Ye(e.options)}}},{key:"visitSequence",value:function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Ue(n,e,t)}),options:Ye(e.options)}}},{key:"visitGroup",value:function(e,t){var n=this,r=t.currentTime,i=0,a=e.steps.map(function(e){t.currentTime=r;var a=Ue(n,e,t);return i=Math.max(i,t.currentTime),a});return t.currentTime=i,{type:3,steps:a,options:Ye(e.options)}}},{key:"visitAnimate",value:function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return Je(we(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var i=Je(0,0,"");return i.dynamic=!0,i.strValue=r,i}return Je((n=n||we(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var i=e.styles?e.styles:Object(B.h)({});if(5==i.type)n=this.visitKeyframes(i,t);else{var a=e.styles,o=!1;if(!a){o=!0;var s={};r.easing&&(s.easing=r.easing),a=Object(B.h)(s)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(a,t);u.isEmptyStep=o,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}}},{key:"visitStyle",value:function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}},{key:"_makeStyleAst",value:function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==B.a?n.push(e):t.errors.push("The provided style string value ".concat(e," is not allowed.")):n.push(e)}):n.push(e.styles);var r=!1,i=null;return n.forEach(function(e){if(Ze(e)){var t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(var a in t)if(t[a].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}},{key:"_validateStyleAst",value:function(e,t){var n=this,r=t.currentAnimateTimings,i=t.currentTime,a=t.currentTime;r&&a>0&&(a-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var o,s,u,c=t.collectedStyles[t.currentQuerySelector],l=c[r],f=!0;l&&(a!=i&&a>=l.startTime&&i<=l.endTime&&(t.errors.push('The CSS property "'.concat(r,'" that exists between the times of "').concat(l.startTime,'ms" and "').concat(l.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(a,'ms" and "').concat(i,'ms"')),f=!1),a=l.startTime),f&&(c[r]={startTime:a,endTime:i}),t.options&&(o=t.errors,s=t.options.params||{},(u=Pe(e[r])).length&&u.forEach(function(e){s.hasOwnProperty(e)||o.push("Unable to resolve the local animation param ".concat(e," in the given list of values"))}))}else t.errors.push('The provided animation property "'.concat(r,'" is not a supported CSS property for animations'))})})}},{key:"visitKeyframes",value:function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,a=[],o=!1,s=!1,u=0,c=e.steps.map(function(e){var r=n._makeStyleAst(e,t),c=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Ze(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Ze(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),s=s||l<0||l>1,o=o||l0&&i0?i==h?1:f*i:a[i],s=o*p;t.currentTime=d+v.delay+s,v.duration=s,n._validateStyleAst(e,t),e.offset=o,r.styles.push(e)}),r}},{key:"visitReference",value:function(e,t){return{type:8,animation:Ue(this,xe(e.animation),t),options:Ye(e.options)}}},{key:"visitAnimateChild",value:function(e,t){return t.depCount++,{type:9,options:Ye(e.options)}}},{key:"visitAnimateRef",value:function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Ye(e.options)}}},{key:"visitQuery",value:function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var i=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return e==Be});return t&&(e=e.replace(Qe,"")),[e=e.replace(/@\*/g,ge).replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,be),t]}(e.selector),a=Object(z.a)(i,2),o=a[0],s=a[1];t.currentQuerySelector=n.length?n+" "+o:o,X(t.collectedStyles,t.currentQuerySelector,{});var u=Ue(this,xe(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:u,originalSelector:e.selector,options:Ye(e.options)}}},{key:"visitStagger",value:function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:we(e.timings,t.errors,!0);return{type:12,animation:Ue(this,xe(e.animation),t),timings:n,options:null}}}]),e}(),Ke=function e(t){Object(o.a)(this,e),this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Ze(e){return!Array.isArray(e)&&"object"==typeof e}function Ye(e){var t;return e?(e=Oe(e)).params&&(e.params=(t=e.params)?Oe(t):null):e={},e}function Je(e,t,n){return{duration:e,delay:t,easing:n}}function $e(e,t,n,r,i,a){var o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:a,totalTime:i+a,easing:o,subTimeline:s}}var Xe=function(){function e(){Object(o.a)(this,e),this._map=new Map}return Object(s.a)(e,[{key:"consume",value:function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t}},{key:"append",value:function(e,t){var n,r=this._map.get(e);r||this._map.set(e,r=[]),(n=r).push.apply(n,Object(G.a)(t))}},{key:"has",value:function(e){return this._map.has(e)}},{key:"clear",value:function(){this._map.clear()}}]),e}(),et=new RegExp(":enter","g"),tt=new RegExp(":leave","g");function nt(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,u=arguments.length>8?arguments[8]:void 0,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new rt).buildKeyframes(e,t,n,r,i,a,o,s,u,c)}var rt=function(){function e(){Object(o.a)(this,e)}return Object(s.a)(e,[{key:"buildKeyframes",value:function(e,t,n,r,i,a,o,s,u){var c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];u=u||new Xe;var l=new at(e,t,u,r,i,c,[]);l.options=s,l.currentTimeline.setStyles([a],null,l.errors,s),Ue(this,n,l);var f=l.timelines.filter(function(e){return e.containsAnimation()});if(f.length&&Object.keys(o).length){var h=f[f.length-1];h.allowOnlyTimelineStyles()||h.setStyles([o],null,l.errors,s)}return f.length?f.map(function(e){return e.buildKeyframes()}):[$e(t,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(e,t){}},{key:"visitState",value:function(e,t){}},{key:"visitTransition",value:function(e,t){}},{key:"visitAnimateChild",value:function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,a=this._visitSubInstructions(n,r,r.options);i!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}},{key:"visitAnimateRef",value:function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}},{key:"_visitSubInstructions",value:function(e,t,n){var r=t.currentTimeline.currentTime,i=null!=n.duration?_e(n.duration):null,a=null!=n.delay?_e(n.delay):null;return 0!==i&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,i,a);r=Math.max(r,n.duration+n.delay)}),r}},{key:"visitReference",value:function(e,t){t.updateOptions(e.options,!0),Ue(this,e.animation,t),t.previousNode=e}},{key:"visitSequence",value:function(e,t){var n=this,r=t.subContextCount,i=t,a=e.options;if(a&&(a.params||a.delay)&&((i=t.createSubContext(a)).transformIntoNewTimeline(),null!=a.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=it);var o=_e(a.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(function(e){return Ue(n,e,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),t.previousNode=e}},{key:"visitGroup",value:function(e,t){var n=this,r=[],i=t.currentTimeline.currentTime,a=e.options&&e.options.delay?_e(e.options.delay):0;e.steps.forEach(function(o){var s=t.createSubContext(e.options);a&&s.delayNextStep(a),Ue(n,o,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(i),t.previousNode=e}},{key:"_visitTiming",value:function(e,t){if(e.dynamic){var n=e.strValue;return we(t.params?Ie(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}},{key:"visitAnimate",value:function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}},{key:"visitStyle",value:function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}},{key:"visitKeyframes",value:function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,a=t.createSubContext().currentTimeline;a.easing=n.easing,e.styles.forEach(function(e){a.forwardTime((e.offset||0)*i),a.setStyles(e.styles,e.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+i),t.previousNode=e}},{key:"visitQuery",value:function(e,t){var n=this,r=t.currentTimeline.currentTime,i=e.options||{},a=i.delay?_e(i.delay):0;a&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=it);var o=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=s.length;var u=null;s.forEach(function(r,i){t.currentQueryIndex=i;var s=t.createSubContext(e.options,r);a&&s.delayNextStep(a),r===t.element&&(u=s.currentTimeline),Ue(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}},{key:"visitStagger",value:function(e,t){var n=t.parentContext,r=t.currentTimeline,i=e.timings,a=Math.abs(i.duration),o=a*(t.currentQueryTotal-1),s=a*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=o-s;break;case"full":s=n.currentStaggerTime}var u=t.currentTimeline;s&&u.delayNextStep(s);var c=u.currentTime;Ue(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)}}]),e}(),it={},at=function(){function e(t,n,r,i,a,s,u,c){Object(o.a)(this,e),this._driver=t,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=a,this.errors=s,this.timelines=u,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=it,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=c||new ot(this._driver,n,0),u.push(this.currentTimeline)}return Object(s.a)(e,[{key:"updateOptions",value:function(e,t){var n=this;if(e){var r=e,i=this.options;null!=r.duration&&(i.duration=_e(r.duration)),null!=r.delay&&(i.delay=_e(r.delay));var a=r.params;if(a){var o=i.params;o||(o=this.options.params={}),Object.keys(a).forEach(function(e){t&&o.hasOwnProperty(e)||(o[e]=Ie(a[e],o,n.errors))})}}}},{key:"_copyOptions",value:function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e}},{key:"createSubContext",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n||this.element,a=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(t),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}},{key:"transformIntoNewTimeline",value:function(e){return this.previousNode=it,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new st(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}},{key:"incrementTime",value:function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}},{key:"delayNextStep",value:function(e){e>0&&this.currentTimeline.delayNextStep(e)}},{key:"invokeQuery",value:function(e,t,n,r,i,a){var o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(et,"."+this._enterClassName)).replace(tt,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),o.push.apply(o,Object(G.a)(s))}return i||0!=o.length||a.push('`query("'.concat(t,'")` returned zero elements. (Use `query("').concat(t,'", { optional: true })` if you wish to allow this.)')),o}},{key:"params",get:function(){return this.options.params}}]),e}(),ot=function(){function e(t,n,r,i){Object(o.a)(this,e),this._driver=t,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return Object(s.a)(e,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"delayNextStep",value:function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}},{key:"fork",value:function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value: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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}},{key:"_updateStyle",value:function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||B.a,t._currentKeyframe[e]=B.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(e,t,n,r){var i=this;t&&(this._previousKeyframe.easing=t);var a=r&&r.params||{},o=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=B.a}):je(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(o).forEach(function(e){var t=Ie(o[e],a,n);i._pendingStyles[e]=t,i._localTimelineStyles.hasOwnProperty(e)||(i._backFill[e]=i._globalTimelineStyles.hasOwnProperty(e)?i._globalTimelineStyles[e]:B.a),i._updateStyle(e,t)})}},{key:"applyStylesToKeyframe",value:function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))}},{key:"snapshotCurrentStyles",value:function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"mergeTimelineCollectedStyles",value:function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&t._updateStyle(n,i.value)})}},{key:"buildKeyframes",value:function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(a,o){var s=je(a,!0);Object.keys(s).forEach(function(e){var r=s[e];r==B.l?t.add(e):r==B.a&&n.add(e)}),r||(s.offset=o/e.duration),i.push(s)});var a=t.size?Re(t.values()):[],o=n.size?Re(n.values()):[];if(r){var s=i[0],u=Oe(s);s.offset=0,u.offset=1,i=[s,u]}return $e(this.element,i,a,o,this.duration,this.startTime,this.easing,!1)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"properties",get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e}}]),e}(),st=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a,s,u){var c,l=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return Object(o.a)(this,n),(c=t.call(this,e,r,u.delay)).element=r,c.keyframes=i,c.preStyleProps=a,c.postStyleProps=s,c._stretchStartingKeyframe=l,c.timings={duration:u.duration,delay:u.delay,easing:u.easing},c}return Object(s.a)(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,i=t.easing;if(this._stretchStartingKeyframe&&n){var a=[],o=r+n,s=n/o,u=je(e[0],!1);u.offset=0,a.push(u);var c=je(e[0],!1);c.offset=ut(s),a.push(c);for(var l=e.length-1,f=1;f<=l;f++){var h=je(e[f],!1);h.offset=ut((n+h.offset*r)/o),a.push(h)}r=o,n=0,i="",e=a}return $e(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}]),n}(ot);function ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,t-1);return Math.round(e*n)/n}var ct=function e(){Object(o.a)(this,e)},lt=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(s.a)(n,[{key:"normalizePropertyName",value:function(e,t){return De(e)}},{key:"normalizeStyleValue",value:function(e,t,n,r){var i="",a=n.toString().trim();if(ft[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&r.push("Please provide a CSS unit value for ".concat(e,":").concat(n))}return a+i}}]),n}(ct),ft=function(){return 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(","),t={},e.forEach(function(e){return t[e]=!0}),t;var e,t}();function ht(e,t,n,r,i,a,o,s,u,c,l,f,h){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:a,toState:r,toStyles:o,timelines:s,queriedElements:u,preStyleProps:c,postStyleProps:l,totalTime:f,errors:h}}var dt={},vt=function(){function e(t,n,r){Object(o.a)(this,e),this._triggerName=t,this.ast=n,this._stateStyles=r}return Object(s.a)(e,[{key:"match",value:function(e,t,n,r){return function(e,t,n,r,i){return e.some(function(e){return e(t,n,r,i)})}(this.ast.matchers,e,t,n,r)}},{key:"buildStyles",value:function(e,t,n){var r=this._stateStyles["*"],i=this._stateStyles[e],a=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):a}},{key:"build",value:function(e,t,n,r,i,a,o,s,u,c){var l=[],f=this.ast.options&&this.ast.options.params||dt,h=this.buildStyles(n,o&&o.params||dt,l),d=s&&s.params||dt,v=this.buildStyles(r,d,l),p=new Set,y=new Map,g=new Map,m="void"===r,b={params:Object.assign(Object.assign({},f),d)},_=c?[]:nt(e,t,this.ast.animation,i,a,h,v,b,u,l),k=0;if(_.forEach(function(e){k=Math.max(e.duration+e.delay,k)}),l.length)return ht(t,this._triggerName,n,r,m,h,v,[],[],y,g,k,l);_.forEach(function(e){var n=e.element,r=X(y,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var i=X(g,n,{});e.postStyleProps.forEach(function(e){return i[e]=!0}),n!==t&&p.add(n)});var w=Re(p.values());return ht(t,this._triggerName,n,r,m,h,v,_,w,y,g,k)}}]),e}(),pt=function(){function e(t,n){Object(o.a)(this,e),this.styles=t,this.defaultParams=n}return Object(s.a)(e,[{key:"buildStyles",value:function(e,t){var n={},r=Oe(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var i=e;Object.keys(i).forEach(function(e){var a=i[e];a.length>1&&(a=Ie(a,r,t)),n[e]=a})}}),n}}]),e}(),yt=function(){function e(t,n){var r=this;Object(o.a)(this,e),this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(e){r.states[e.name]=new pt(e.style,e.options&&e.options.params||{})}),gt(this.states,"true","1"),gt(this.states,"false","0"),n.transitions.forEach(function(e){r.transitionFactories.push(new vt(t,e,r.states))}),this.fallbackTransition=new vt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object(s.a)(e,[{key:"matchTransition",value:function(e,t,n,r){return this.transitionFactories.find(function(i){return i.match(e,t,n,r)})||null}},{key:"matchStyles",value:function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}},{key:"containsQueries",get:function(){return this.ast.queryCount>0}}]),e}();function gt(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var mt=new Xe,bt=function(){function e(t,n,r){Object(o.a)(this,e),this.bodyNode=t,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}return Object(s.a)(e,[{key:"register",value:function(e,t){var n=[],r=Ge(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[e]=r}},{key:"_buildPlayer",value:function(e,t,n){var r=e.element,i=Z(this._driver,this._normalizer,r,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}},{key:"create",value:function(e,t){var n,r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=[],o=this._animations[e],s=new Map;if(o?(n=nt(this._driver,t,o,ve,pe,{},{},i,mt,a)).forEach(function(e){var t=X(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(a.push("The requested animation doesn't exist or has already been destroyed"),n=[]),a.length)throw new Error("Unable to create the animation due to the following errors: ".concat(a.join("\n")));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,B.a)})});var u=n.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}),c=K(u);return this._playersById[e]=c,c.onDestroy(function(){return r.destroy(e)}),this.players.push(c),c}},{key:"destroy",value:function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by ".concat(e));return t}},{key:"listen",value:function(e,t,n,r){var i=$(t,"","","");return Y(this._getPlayer(e),n,i,r),function(){}}},{key:"command",value:function(e,t,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])}}]),e}(),_t="ng-animate-queued",kt="ng-animate-disabled",wt=".ng-animate-disabled",Ot="ng-star-inserted",jt=[],St={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ct={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Et=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";Object(o.a)(this,e),this.namespaceId=n;var r=t&&t.hasOwnProperty("value"),i=r?t.value:t;if(this.value=Rt(i),r){var a=Oe(t);delete a.value,this.options=a}else this.options={};this.options.params||(this.options.params={})}return Object(s.a)(e,[{key:"absorbOptions",value:function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}}},{key:"params",get:function(){return this.options.params}}]),e}(),Tt="void",xt=new Et(Tt),At=function(){function e(t,n,r){Object(o.a)(this,e),this.id=t,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Ut(n,this._hostClassName)}return Object(s.a)(e,[{key:"listen",value:function(e,t,n,r){var i,a=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(t,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(t,'" because the provided event is undefined!'));if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(t,'" is not supported!'));var o=X(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};o.push(s);var u=X(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Ut(e,ye),Ut(e,"ng-trigger-"+t),u[t]=xt),function(){a._engine.afterFlush(function(){var e=o.indexOf(s);e>=0&&o.splice(e,1),a._triggers[t]||delete u[t]})}}},{key:"register",value:function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}},{key:"_getTrigger",value:function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'.concat(e,'" has not been registered!'));return t}},{key:"trigger",value:function(e,t,n){var r=this,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=this._getTrigger(t),o=new It(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Ut(e,ye),Ut(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var u=s[t],c=new Et(n,this.id),l=n&&n.hasOwnProperty("value");!l&&u&&c.absorbOptions(u.options),s[t]=c,u||(u=xt);var f=c.value===Tt;if(f||u.value!==c.value){var h=X(this._engine.playersByElement,e,[]);h.forEach(function(e){e.namespaceId==r.id&&e.triggerName==t&&e.queued&&e.destroy()});var d=a.matchTransition(u.value,c.value,e,c.params),v=!1;if(!d){if(!i)return;d=a.fallbackTransition,v=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:d,fromState:u,toState:c,player:o,isFallbackTransition:v}),v||(Ut(e,_t),o.onStart(function(){Lt(e,_t)})),o.onDone(function(){var t=r.players.indexOf(o);t>=0&&r.players.splice(t,1);var n=r._engine.playersByElement.get(e);if(n){var i=n.indexOf(o);i>=0&&n.splice(i,1)}}),this.players.push(o),h.push(o),o}if(!qt(u.params,c.params)){var p=[],y=a.matchStyles(u.value,u.params,p),g=a.matchStyles(c.value,c.params,p);p.length?this._engine.reportError(p):this._engine.afterFlush(function(){Te(e,y),Ee(e,g)})}}},{key:"deregister",value:function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})}},{key:"clearElementCache",value:function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))}},{key:"_signalRemovalForInnerTriggers",value:function(e,t){var n=this,r=this._engine.driver.query(e,ge,!0);r.forEach(function(e){if(!e.__ng_removed){var r=n._engine.fetchNamespacesByElement(e);r.size?r.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):n.clearElementCache(e)}}),this._engine.afterFlushAnimationsDone(function(){return r.forEach(function(e){return n.clearElementCache(e)})})}},{key:"triggerLeaveAnimation",value:function(e,t,n,r){var i=this,a=this._engine.statesByElement.get(e);if(a){var o=[];if(Object.keys(a).forEach(function(t){if(i._triggers[t]){var n=i.trigger(e,t,Tt,r);n&&o.push(n)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&K(o).onDone(function(){return i._engine.processLeaveNode(e)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(e){var t=this,n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){var i=new Set;n.forEach(function(n){var a=n.name;if(!i.has(a)){i.add(a);var o=t._triggers[a].fallbackTransition,s=r[a]||xt,u=new Et(Tt),c=new It(t.id,a,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:a,transition:o,fromState:s,toState:u,player:c,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),!this.triggerLeaveAnimation(e,t,!0)){var i=!1;if(r.totalAnimations){var a=r.players.length?r.playersByQueriedElement.get(e):[];if(a&&a.length)i=!0;else for(var o=e;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,t);else{var s=e.__ng_removed;s&&s!==St||(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}}}},{key:"insertNode",value:function(e,t){Ut(e,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(e){var t=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var a=r.element,o=t._elementListeners.get(a);o&&o.forEach(function(t){if(t.name==r.triggerName){var n=$(a,r.triggerName,r.fromState.value,r.toState.value);n._data=e,Y(r.player,t.phase,n,t.callback)}}),i.markedForDestroy?t._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:t._engine.driver.containsElement(e.element,n.element)?1:-1})}},{key:"destroy",value:function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)}},{key:"elementContainsData",value:function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t}}]),e}(),Pt=function(){function e(t,n,r){Object(o.a)(this,e),this.bodyNode=t,this.driver=n,this._normalizer=r,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(e,t){}}return Object(s.a)(e,[{key:"_onRemovalComplete",value:function(e,t){this.onRemovalComplete(e,t)}},{key:"createNamespace",value:function(e,t){var n=new At(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}},{key:"_balanceNamespaceList",value:function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}},{key:"register",value:function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}},{key:"registerTrigger",value:function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}},{key:"destroy",value:function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}}},{key:"_fetchNamespace",value:function(e){return this._namespaceLookup[e]}},{key:"fetchNamespacesByElement",value:function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(a,1)}if(e){var o=this._fetchNamespace(e);o&&o.insertNode(t,n)}r&&this.collectEnterElement(t)}}},{key:"collectEnterElement",value:function(e){this.collectedEnterElements.push(e)}},{key:"markElementAsDisabled",value:function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Ut(e,kt)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Lt(e,kt))}},{key:"removeNode",value:function(e,t,n,r){if(Nt(t)){var i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){var a=this.namespacesByHostElement.get(t);a&&a.id!==e&&a.removeNode(t,r)}}else this._onRemovalComplete(t,r)}},{key:"markElementAsRemoved",value:function(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(e,t,n,r,i){return Nt(t)?this._fetchNamespace(e).listen(t,n,r,i):function(){}}},{key:"_buildInstruction",value:function(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}},{key:"destroyInnerAnimations",value:function(e){var t=this,n=this.driver.query(e,ge,!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,be,!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})}},{key:"destroyActiveAnimationsForElement",value:function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})}},{key:"whenRenderingDone",value:function(){var e=this;return new Promise(function(t){if(e.players.length)return K(e.players).onDone(function(){return t()});t()})}},{key:"processLeaveNode",value:function(e){var t=this,n=e.__ng_removed;if(n&&n.setForRemoval){if(e.__ng_removed=St,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,wt)&&this.markElementAsDisabled(e,!1),this.driver.query(e,wt,!0).forEach(function(e){t.markElementAsDisabled(e,!1)})}},{key:"flush",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(function(e){var t=e.player,a=e.element;if(j.push(t),n.collectedEnterElements.length){var l=a.__ng_removed;if(l&&l.setForMove)return void t.destroy()}var h=!f||!n.driver.containsElement(f,a),d=w.get(a),p=v.get(a),y=n._buildInstruction(e,r,p,d,h);if(y.errors&&y.errors.length)S.push(y);else{if(h)return t.onStart(function(){return Te(a,y.fromStyles)}),t.onDestroy(function(){return Ee(a,y.toStyles)}),void i.push(t);if(e.isFallbackTransition)return t.onStart(function(){return Te(a,y.fromStyles)}),t.onDestroy(function(){return Ee(a,y.toStyles)}),void i.push(t);y.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(a,y.timelines),o.push({instruction:y,player:t,element:a}),y.queriedElements.forEach(function(e){return X(s,e,[]).push(t)}),y.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),y.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=c.get(t);r||c.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}});if(S.length){var E=[];S.forEach(function(e){E.push("@".concat(e.triggerName," has failed due to:\n")),e.errors.forEach(function(e){return E.push("- ".concat(e,"\n"))})}),j.forEach(function(e){return e.destroy()}),this.reportError(E)}var T=new Map,x=new Map;o.forEach(function(e){var t=e.element;r.has(t)&&(x.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,T))}),i.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){X(T,t,[]).push(e),e.destroy()})});var A=y.filter(function(e){return zt(e,u,c)}),P=new Map;Ft(P,this.driver,m,c,B.a).forEach(function(e){zt(e,u,c)&&A.push(e)});var I=new Map;d.forEach(function(e,t){Ft(I,n.driver,new Set(e),u,B.l)}),A.forEach(function(e){var t=P.get(e),n=I.get(e);P.set(e,Object.assign(Object.assign({},t),n))});var R=[],N=[],D={};o.forEach(function(e){var t=e.element,o=e.player,s=e.instruction;if(r.has(t)){if(l.has(t))return o.onDestroy(function(){return Ee(t,s.toStyles)}),o.disabled=!0,o.overrideTotalTime(s.totalTime),void i.push(o);var u=D;if(x.size>1){for(var c=t,f=[];c=c.parentNode;){var h=x.get(c);if(h){u=h;break}f.push(c)}f.forEach(function(e){return x.set(e,u)})}var d=n._buildAnimation(o.namespaceId,s,T,a,I,P);if(o.setRealPlayer(d),u===D)R.push(o);else{var v=n.playersByElement.get(u);v&&v.length&&(o.parentPlayer=K(v)),i.push(o)}}else Te(t,s.fromStyles),o.onDestroy(function(){return Ee(t,s.toStyles)}),N.push(o),l.has(t)&&i.push(o)}),N.forEach(function(e){var t=a.get(e.element);if(t&&t.length){var n=K(t);e.setRealPlayer(n)}}),i.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var F=0;F0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new B.d(e.duration,e.delay)}},{key:"queuedPlayers",get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e}}]),e}(),It=function(){function e(t,n,r){Object(o.a)(this,e),this.namespaceId=t,this.triggerName=n,this.element=r,this._player=new B.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return Object(s.a)(e,[{key:"setRealPlayer",value:function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Y(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(e){this.totalTime=e}},{key:"syncPlayerEvents",value:function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})}},{key:"_queueEvent",value:function(e,t){X(this._queuedCallbacks,e,[]).push(t)}},{key:"onDone",value:function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}},{key:"onStart",value:function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}},{key:"onDestroy",value:function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(e){this.queued||this._player.setPosition(e)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)}}]),e}();function Rt(e){return null!=e?e:null}function Nt(e){return e&&1===e.nodeType}function Dt(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Ft(e,t,n,r,i){var a=[];n.forEach(function(e){return a.push(Dt(e))});var o=[];r.forEach(function(n,r){var a={};n.forEach(function(e){var n=a[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=Ct,o.push(r))}),e.set(r,a)});var s=0;return n.forEach(function(e){return Dt(e,a[s++])}),o}function Mt(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),i=new Map;function a(e){if(!e)return 1;var t=i.get(e);if(t)return t;var o=e.parentNode;return t=n.has(o)?o:r.has(o)?1:a(o),i.set(e,t),t}return t.forEach(function(e){var t=a(e);1!==t&&n.get(t).push(e)}),n}function Ut(e,t){if(e.classList)e.classList.add(t);else{var n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Lt(e,t){if(e.classList)e.classList.remove(t);else{var n=e.$$classes;n&&delete n[t]}}function Ht(e,t,n){K(n).onDone(function(){return e.processLeaveNode(t)})}function Vt(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(e)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}}]),e}();function Qt(e,t){var n=null,r=null;return Array.isArray(t)&&t.length?(n=Wt(t[0]),t.length>1&&(r=Wt(t[t.length-1]))):t&&(n=Wt(t)),n||r?new Gt(e,n,r):null}var Gt=function(){var e=function(){function e(t,n,r){Object(o.a)(this,e),this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;var i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}return Object(s.a)(e,[{key:"start",value:function(){this._state<1&&(this._startStyles&&Ee(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(Ee(this._element,this._initialStyles),this._endStyles&&(Ee(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Te(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Te(this._element,this._endStyles),this._endStyles=null),Ee(this._element,this._initialStyles),this._state=3)}}]),e}();return e.initialStylesByElement=new WeakMap,e}();function Wt(e){for(var t=null,n=Object.keys(e),r=0;r=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),tn(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var e,t,n,r;this._destroyed||(this._destroyed=!0,this.finish(),t=this._name,(r=en(n=rn(e=this._element,"").split(","),t))>=0&&(n.splice(r,1),nn(e,"",n.join(","))))}}]),e}();function $t(e,t,n){nn(e,"PlayState",n,Xt(e,t))}function Xt(e,t){var n=rn(e,"");return n.indexOf(",")>0?en(n.split(","),t):en([n],t)}function en(e,t){for(var n=0;n=0)return n;return-1}function tn(e,t,n){n?e.removeEventListener(Yt,t):e.addEventListener(Yt,t)}function nn(e,t,n,r){var i=Zt+t;if(null!=r){var a=e.style[i];if(a.length){var o=a.split(",");o[r]=n,n=o.join(",")}}e.style[i]=n}function rn(e,t){return e.style[Zt+t]||""}var an=function(){function e(t,n,r,i,a,s,u,c){Object(o.a)(this,e),this.element=t,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=a,this._finalStyles=u,this._specialStyles=c,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=i+a,this._buildStyler()}return Object(s.a)(e,[{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(e){this._styler.setPosition(e)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var e=this;this._styler=new Jt(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return e.finish()})}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"beforeDestroy",value:function(){var e=this;this.init();var t={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(t[r]=n?e._finalStyles[r]:Le(e.element,r))})}this.currentSnapshot=t}}]),e}(),on=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this)).element=e,i._startingStyles={},i.__initialized=!1,i._styles=fe(r),i}return Object(s.a)(n,[{key:"init",value:function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),Object(i.a)(Object(a.a)(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),Object(i.a)(Object(a.a)(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,Object(i.a)(Object(a.a)(n.prototype),"destroy",this).call(this))}}]),n}(B.d),sn="gen_css_kf_",un=function(){function e(){Object(o.a)(this,e),this._count=0,this._head=document.querySelector("head")}return Object(s.a)(e,[{key:"validateStyleProperty",value:function(e){return se(e)}},{key:"matchesElement",value:function(e,t){return ue(e,t)}},{key:"containsElement",value:function(e,t){return ce(e,t)}},{key:"query",value:function(e,t,n){return le(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"buildKeyframeElement",value:function(e,t,n){n=n.map(function(e){return fe(e)});var r="@keyframes ".concat(t," {\n"),i="";n.forEach(function(e){i=" ";var t=parseFloat(e.offset);r+="".concat(i).concat(100*t,"% {\n"),i+=" ",Object.keys(e).forEach(function(t){var n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+="".concat(i,"animation-timing-function: ").concat(n,";\n")));default:return void(r+="".concat(i).concat(t,": ").concat(n,";\n"))}}),r+="".concat(i,"}\n")}),r+="}\n";var a=document.createElement("style");return a.textContent=r,a}},{key:"animate",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=a.filter(function(e){return e instanceof an}),s={};Fe(n,r)&&o.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return s[e]=t[e]})});var u=cn(t=Me(e,t,s));if(0==n)return new on(e,u);var c="".concat(sn).concat(this._count++),l=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(l);var f=Qt(e,t),h=new an(e,t,c,n,r,i,u,f);return h.onDestroy(function(){return ln(l)}),h}}]),e}();function cn(e){var t={};return e&&(Array.isArray(e)?e:[e]).forEach(function(e){Object.keys(e).forEach(function(n){"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}function ln(e){e.parentNode.removeChild(e)}var fn=function(){function e(t,n,r,i){Object(o.a)(this,e),this.element=t,this.keyframes=n,this.options=r,this._specialStyles=i,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.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}return Object(s.a)(e,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(e,t,n){return e.animate(t,n)}},{key:"onStart",value:function(e){this._onStartFns.push(e)}},{key:"onDone",value:function(e){this._onDoneFns.push(e)}},{key:"onDestroy",value:function(e){this._onDestroyFns.push(e)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(e){this.domPlayer.currentTime=e*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"beforeDestroy",value:function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:Le(e.element,n))}),this.currentSnapshot=t}},{key:"triggerCallback",value:function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0}},{key:"totalTime",get:function(){return this._delay+this._duration}}]),e}(),hn=function(){function e(){Object(o.a)(this,e),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(dn().toString()),this._cssKeyframesDriver=new un}return Object(s.a)(e,[{key:"validateStyleProperty",value:function(e){return se(e)}},{key:"matchesElement",value:function(e,t){return ue(e,t)}},{key:"containsElement",value:function(e,t){return ce(e,t)}},{key:"query",value:function(e,t,n){return le(e,t,n)}},{key:"computeStyle",value:function(e,t,n){return window.getComputedStyle(e)[t]}},{key:"overrideWebAnimationsSupport",value:function(e){this._isNativeImpl=e}},{key:"animate",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],o=arguments.length>6?arguments[6]:void 0,s=!o&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(e,t,n,r,i,a);var u=0==r?"both":"forwards",c={duration:n,delay:r,fill:u};i&&(c.easing=i);var l={},f=a.filter(function(e){return e instanceof fn});Fe(n,r)&&f.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return l[e]=t[e]})});var h=Qt(e,t=Me(e,t=t.map(function(e){return je(e,!1)}),l));return new fn(e,t,c,h)}}]),e}();function dn(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var vn=function(){var e=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._nextAnimationId=0,i._renderer=e.createRenderer(r.body,{id:"0",encapsulation:f.Q.None,styles:[],data:{animation:[]}}),i}return Object(s.a)(n,[{key:"build",value:function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?Object(B.f)(e):e;return gn(this._renderer,null,t,"register",[n]),new pn(t,this._renderer)}}]),n}(B.b);return e.\u0275fac=function(t){return new(t||e)(f.Ub(f.F),f.Ub(l.c))},e.\u0275prov=f.Gb({token:e,factory:e.\u0275fac}),e}(),pn=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r){var i;return Object(o.a)(this,n),(i=t.call(this))._id=e,i._renderer=r,i}return Object(s.a)(n,[{key:"create",value:function(e,t){return new yn(this._id,e,t||{},this._renderer)}}]),n}(B.c),yn=function(){function e(t,n,r,i){Object(o.a)(this,e),this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}return Object(s.a)(e,[{key:"_listen",value:function(e,t){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(e),t)}},{key:"_command",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0&&e3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,r)}},{key:"removeChild",value:function(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}},{key:"selectRootElement",value:function(e,t){return this.delegate.selectRootElement(e,t)}},{key:"parentNode",value:function(e){return this.delegate.parentNode(e)}},{key:"nextSibling",value:function(e){return this.delegate.nextSibling(e)}},{key:"setAttribute",value:function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}},{key:"removeAttribute",value:function(e,t,n){this.delegate.removeAttribute(e,t,n)}},{key:"addClass",value:function(e,t){this.delegate.addClass(e,t)}},{key:"removeClass",value:function(e,t){this.delegate.removeClass(e,t)}},{key:"setStyle",value:function(e,t,n,r){this.delegate.setStyle(e,t,n,r)}},{key:"removeStyle",value:function(e,t,n){this.delegate.removeStyle(e,t,n)}},{key:"setProperty",value:function(e,t,n){t.charAt(0)==mn&&t==bn?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}},{key:"setValue",value:function(e,t){this.delegate.setValue(e,t)}},{key:"listen",value:function(e,t,n){return this.delegate.listen(e,t,n)}},{key:"disableAnimations",value:function(e,t){this.engine.disableAnimations(e,t)}},{key:"data",get:function(){return this.delegate.data}}]),e}(),wn=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i,a){var s;return Object(o.a)(this,n),(s=t.call(this,r,i,a)).factory=e,s.namespaceId=r,s}return Object(s.a)(n,[{key:"setProperty",value:function(e,t,n){t.charAt(0)==mn?"."==t.charAt(1)&&t==bn?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}},{key:"listen",value:function(e,t,n){var r,i,a=this;if(t.charAt(0)==mn){var o=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),s=t.substr(1),u="";if(s.charAt(0)!=mn){var c=(i=(r=s).indexOf("."),[r.substring(0,i),r.substr(i+1)]),l=Object(z.a)(c,2);s=l[0],u=l[1]}return this.engine.listen(this.namespaceId,o,s,u,function(e){a.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}]),n}(kn),On=function(){var e=function(e){Object(u.a)(n,e);var t=Object(c.a)(n);function n(e,r,i){return Object(o.a)(this,n),t.call(this,e.body,r,i)}return n}(Bt);return e.\u0275fac=function(t){return new(t||e)(f.Ub(l.c),f.Ub(de),f.Ub(ct))},e.\u0275prov=f.Gb({token:e,factory:e.\u0275fac}),e}(),jn=new f.r("AnimationModuleType"),Sn=[{provide:B.b,useClass:vn},{provide:ct,useFactory:function(){return new lt}},{provide:Bt,useClass:On},{provide:f.F,useFactory:function(e,t,n){return new _n(e,t,n)},deps:[x,Bt,f.A]}],Cn=[{provide:de,useFactory:function(){return"function"==typeof dn()?new hn:new un}},{provide:jn,useValue:"BrowserAnimations"}].concat(Sn),En=([{provide:de,useClass:he},{provide:jn,useValue:"NoopAnimations"}].concat(Sn),function(){var e=function e(){Object(o.a)(this,e)};return e.\u0275mod=f.Ib({type:e}),e.\u0275inj=f.Hb({factory:function(t){return new(t||e)},providers:Cn,imports:[q]}),e}()),Tn=function(){function e(){}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=f.Eb({type:e,selectors:[["app-compatibility"]],decls:4,vars:0,consts:[[1,"title"],[1,"text"]],template:function(e,t){1&e&&(f.Qb(0,"p",0),f.qc(1,"Browser Compatibility"),f.Pb(),f.Qb(2,"p",1),f.qc(3," It looks like you are using Internet Explorer. Our site does not support this browser. Please use Firefox, Microsoft Edge, Google Chrome, or Safari.\n"),f.Pb())},styles:[".title[_ngcontent-%COMP%]{font-weight:700;padding-bottom:4px}.text[_ngcontent-%COMP%], .title[_ngcontent-%COMP%]{font-size:12px}"]}),e}(),xn=n("jaJ9"),An=[{path:"",redirectTo:"start",pathMatch:"full"},{path:"compatibility",component:Tn},{path:"start",loadChildren:function(){return Promise.all([n.e(1),n.e(7)]).then(n.bind(null,"ljv1")).then(function(e){return e.WalkThroughModule})}},{path:"chart",loadChildren:function(){return Promise.all([n.e(1),n.e(6)]).then(n.bind(null,"8Msa")).then(function(e){return e.ChartModule})}}],Pn=function(){function e(){}return e.\u0275mod=f.Ib({type:e}),e.\u0275inj=f.Hb({factory:function(t){return new(t||e)},imports:[[xn.c.forRoot(An),l.b],xn.c]}),e}(),In=n("H/aS"),Rn=n("S90Z"),Nn=function(){function e(e,t){this.router=e,this.service=t,this.title="rockefeller-abm-interactive",this.labels=In.a}return e.prototype.ngOnInit=function(){this.service.isIE()&&this.router.navigate(["compatibility"])},e.prototype.navToWalkthrough=function(){this.service.isIE()&&this.router.navigate(["compatibility"]),this.router.navigate(["start"])},e.\u0275fac=function(t){return new(t||e)(f.Kb(xn.b),f.Kb(Rn.a))},e.\u0275cmp=f.Eb({type:e,selectors:[["app-root"]],decls:13,vars:1,consts:[[1,"header",3,"click"],[1,"project-title"],[1,"logo-container"],["href","https://www.rockefellerfoundation.org/","target","_blank",1,"logo-link"],["src","../../assets/images/rf-reverse.png",1,"logo","rf","full"],["src","../../assets/images/rf-reverse-logo.png",1,"logo","rf","icon"],["href","https://mathematica.org","target","_blank",1,"logo-link"],["src","../../assets/images/mpr-reverse.png",1,"logo","mpr","full"],["src","../../assets/images/mpr-reverse-logo.png",1,"logo","mpr","icon"],["id","app-container",1,"app-container"],[1,"footer"]],template:function(e,t){1&e&&(f.Qb(0,"div",0),f.Xb("click",function(){return t.navToWalkthrough()}),f.Qb(1,"h1",1),f.qc(2),f.Pb(),f.Qb(3,"div",2),f.Qb(4,"a",3),f.Lb(5,"img",4),f.Lb(6,"img",5),f.Pb(),f.Qb(7,"a",6),f.Lb(8,"img",7),f.Lb(9,"img",8),f.Pb(),f.Pb(),f.Pb(),f.Qb(10,"div",9),f.Lb(11,"router-outlet"),f.Lb(12,"div",10),f.Pb()),2&e&&(f.zb(2),f.rc(t.labels.title))},directives:[xn.d],styles:[".header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{font-family:Roboto Slab,serif;font-weight:700}[_nghost-%COMP%]{height:100%}.header[_ngcontent-%COMP%]{height:72px;background-color:#67b790;width:100%;margin:0;padding:0 4%;color:#fff;display:flex;flex-direction:row;align-items:center;justify-content:space-between}.header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{cursor:pointer;font-size:30px;line-height:32px;width:800px}@supports not (-ms-high-contrast:none){@media screen and (max-width:576px){.header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{font-size:18px;line-height:21px}}}@supports not (-ms-high-contrast:none){@media screen and (min-width:576px) and (max-width:768px){.header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{font-size:18px;line-height:21px}}}@supports not (-ms-high-contrast:none){@media screen and (min-width:768px) and (max-width:992px){.header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{font-size:21px;line-height:24px}}}@supports not (-ms-high-contrast:none){@media screen and (min-width:992px) and (max-width:1200px){.header[_ngcontent-%COMP%] .project-title[_ngcontent-%COMP%]{font-size:24px;line-height:28px}}}.logo-container[_ngcontent-%COMP%]{display:flex;align-items:center;padding-left:4%}.logo-container[_ngcontent-%COMP%] .logo-link[_ngcontent-%COMP%]:first-of-type{padding-right:27px}.logo-container[_ngcontent-%COMP%] .logo.full.mpr[_ngcontent-%COMP%]{width:172px}@supports not (-ms-high-contrast:none){@media screen and (min-width:576px) and (max-width:768px){.logo-container[_ngcontent-%COMP%] .logo.full.mpr[_ngcontent-%COMP%]{width:137.6px}}}.logo-container[_ngcontent-%COMP%] .logo.full.rf[_ngcontent-%COMP%]{width:160px}@supports not (-ms-high-contrast:none){@media screen and (min-width:576px) and (max-width:768px){.logo-container[_ngcontent-%COMP%] .logo.full.rf[_ngcontent-%COMP%]{width:128px}}}@supports not (-ms-high-contrast:none){@media screen and (max-width:576px){.logo-container[_ngcontent-%COMP%] .logo.full[_ngcontent-%COMP%]{display:none}}}.logo-container[_ngcontent-%COMP%] .logo.icon.mpr[_ngcontent-%COMP%]{width:40px}.logo-container[_ngcontent-%COMP%] .logo.icon.rf[_ngcontent-%COMP%]{width:36px}@supports not (-ms-high-contrast:none){@media screen and (min-width:576px){.logo-container[_ngcontent-%COMP%] .logo.icon[_ngcontent-%COMP%]{display:none}}}.app-container[_ngcontent-%COMP%]{height:calc(100% - 72px);justify-content:space-between;overflow-y:auto;overflow-x:hidden;max-width:100%}.app-container[_ngcontent-%COMP%], .footer[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.footer[_ngcontent-%COMP%]{width:100%;border-bottom:36px solid #67b790;flex-shrink:0;margin-top:36px}"]}),e}(),Dn=function(){function e(){}return e.\u0275mod=f.Ib({type:e,bootstrap:[Nn]}),e.\u0275inj=f.Hb({factory:function(t){return new(t||e)},providers:[],imports:[[q,En,Pn]]}),e}();Object(f.S)(),H().bootstrapModule(Dn).catch(function(e){return console.error(e)})},zlYR:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6pC9"),i=n("e/Nk"),a=n("bvHI");function o(){for(var e=arguments.length,t=new Array(e),n=0;n