(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{0:function(t,e,n){t.exports=n("zUnb")},"0EUg":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("bHdf");function s(){return Object(r.a)(1)}},"0QMH":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("fXoL");function s(t,e){let n;t.hot.accept(),e().then(t=>n=t).catch(t=>console.error(t)),t.hot.dispose(()=>{const t=function(t){const e=Array.prototype.map.call(t,function(t){const e=document.createElement(t.tagName),n=t.parentNode,r=e.style.display;return e.style.display="none",n.insertBefore(e,t),function(){e.style.display=r;try{n.removeChild(t)}catch(s){}}});return function(){e.forEach(t=>t())}}(n.injector.get(r.g).components.map(t=>t.location.nativeElement));n.destroy(),t()})}},"1G5W":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("zx2A");function s(t){return e=>e.lift(new i(t))}class i{constructor(t){this.notifier=t}call(t,e){const n=new o(t),s=Object(r.c)(this.notifier,new r.a(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class o extends r.b{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}},"1kSV":function(t,e,n){"use strict";n.d(e,"a",function(){return Ae}),n.d(e,"b",function(){return Pe}),n.d(e,"c",function(){return $e}),n.d(e,"d",function(){return es}),n.d(e,"e",function(){return cr}),n.d(e,"f",function(){return or}),n.d(e,"g",function(){return ar}),n.d(e,"h",function(){return lr}),n.d(e,"i",function(){return pr}),n.d(e,"j",function(){return Un}),n.d(e,"k",function(){return xe}),n.d(e,"l",function(){return De}),n.d(e,"m",function(){return Oe}),n.d(e,"n",function(){return ke}),n.d(e,"o",function(){return Ur});var r=n("fXoL"),s=n("ofXK"),i=n("EY2u"),o=n("LRne"),a=n("XNiG"),c=n("xgIS"),l=n("PqYM"),u=n("DH7j"),h=n("yCtX"),d=n("l7GE"),f=n("ZUHj");function p(...t){if(1===t.length){if(!Object(u.a)(t[0]))return t[0];t=t[0]}return Object(h.a)(t,void 0).lift(new m)}class m{call(t,e){return e.subscribe(new g(t))}}class g extends d.a{constructor(t){super(t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}_next(t){this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(let n=0;nthis.index}hasCompleted(){return this.array.length===this.index}}class D extends v.b{constructor(t,e,n){super(t),this.parent=e,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}[_.a](){return this}next(){const t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}}hasValue(){return this.buffer.length>0}hasCompleted(){return 0===this.buffer.length&&this.isComplete}notifyComplete(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()}notifyNext(t){this.buffer.push(t),this.parent.checkIterators()}subscribe(){return Object(v.c)(this.observable,new v.a(this))}}var x=n("VRyK"),A=n("HDdC"),k=n("GyhO"),T=n("1G5W"),j=n("pLZG"),I=n("IzEk"),P=n("lJxs"),R=n("JX91");class F{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new N(t,this.compare,this.keySelector))}}class N extends y.a{constructor(t,e,n){super(t),this.keySelector=n,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:n}=this;e=n?n(t):t}catch(r){return this.destination.error(r)}let n=!1;if(this.hasKey)try{const{compare:t}=this;n=t(this.key,e)}catch(r){return this.destination.error(r)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))}}var M=n("eIep"),L=n("vkgz");function V(...t){return e=>{let n;return"function"==typeof t[t.length-1]&&(n=t.pop()),e.lift(new B(t,n))}}class B{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new H(t,this.observables,this.project))}}class H extends d.a{constructor(t,e,n){super(t),this.observables=e,this.project=n,this.toRespond=[];const r=e.length;this.values=new Array(r);for(let s=0;s0){const t=r.indexOf(n);-1!==t&&r.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}var U=n("3E0/"),z=n("5+tZ");class ${constructor(t){this.total=t}call(t,e){return e.subscribe(new K(t,this.total))}}class K extends y.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}var q=n("w1tV"),W=n("3Pt+");function G(t,e){}function X(t,e){if(1&t&&(r.Ac(0,"\n "),r.Pb(1,"button",3),r.Ac(2),r.yc(3,G,0,0,"ng-template",4),r.Ac(4,"\n "),r.Ob(),r.Ac(5,"\n ")),2&t){const t=e.$implicit;r.xb(1),r.jc("ngbPanelToggle",t),r.xb(1),r.Cc("\n ",t.title,""),r.xb(1),r.jc("ngTemplateOutlet",null==t.titleTpl?null:t.titleTpl.templateRef)}}function Q(t,e){}function Z(t,e){}function Y(t,e){if(1&t&&(r.Pb(0,"div",8),r.Ac(1,"\n "),r.Pb(2,"div",9),r.Ac(3,"\n "),r.yc(4,Z,0,0,"ng-template",4),r.Ac(5,"\n "),r.Ob(),r.Ac(6,"\n "),r.Ob()),2&t){const t=r.ec().$implicit;r.kc("id",t.id),r.yb("aria-labelledby",t.id+"-header"),r.xb(4),r.jc("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)}}const J=function(t,e){return{$implicit:t,opened:e}};function tt(t,e){if(1&t&&(r.Ac(0,"\n "),r.Pb(1,"div"),r.Ac(2,"\n "),r.Pb(3,"div",5),r.Ac(4,"\n "),r.yc(5,Q,0,0,"ng-template",6),r.Ac(6,"\n "),r.Ob(),r.Ac(7,"\n "),r.yc(8,Y,7,3,"div",7),r.Ac(9,"\n "),r.Ob(),r.Ac(10,"\n ")),2&t){const t=e.$implicit,n=r.ec(),s=r.rc(2);r.xb(1),r.zb("card "+(t.cardClass||"")),r.xb(2),r.zb("card-header "+(t.type?"bg-"+t.type:n.type?"bg-"+n.type:"")),r.lc("id","",t.id,"-header"),r.xb(2),r.jc("ngTemplateOutlet",(null==t.headerTpl?null:t.headerTpl.templateRef)||s)("ngTemplateOutletContext",r.oc(8,J,t,t.isOpen)),r.xb(3),r.jc("ngIf",!n.destroyOnHide||t.isOpen||t.transitionRunning)}}function et(t,e){if(1&t){const t=r.Qb();r.Pb(0,"button",1),r.Vb(1,2),r.ac("click",function(){return r.sc(t),r.ec().close()}),r.Ac(2,"\n "),r.Pb(3,"span",3),r.Ac(4,"\xd7"),r.Ob(),r.Ac(5,"\n "),r.Ob()}}const nt=["*"],rt=["defaultDayTemplate"],st=["content"];function it(t,e){if(1&t&&(r.Ac(0,"\n "),r.Pb(1,"div",7),r.Ac(2,"\n "),r.Ob(),r.Ac(3,"\n ")),2&t){const t=e.date,n=e.currentMonth,s=e.selected,i=e.disabled,o=e.focused;r.xb(1),r.jc("date",t)("currentMonth",n)("selected",s)("disabled",i)("focused",o)}}function ot(t,e){if(1&t&&(r.Pb(0,"div",12),r.Ac(1),r.Ob()),2&t){const t=r.ec().$implicit,e=r.ec(2);r.xb(1),r.Dc("\n ",e.i18n.getMonthFullName(t.number,t.year)," ",e.i18n.getYearNumerals(t.year),"\n ")}}function at(t,e){if(1&t&&(r.Pb(0,"div",9),r.Ac(1,"\n "),r.yc(2,ot,2,2,"div",10),r.Ac(3,"\n "),r.Lb(4,"ngb-datepicker-month",11),r.Ac(5,"\n "),r.Ob()),2&t){const t=e.$implicit,n=r.ec(2);r.xb(2),r.jc("ngIf","none"===n.navigation||n.displayMonths>1&&"select"===n.navigation),r.xb(2),r.jc("month",t.firstDate)}}function ct(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,at,6,2,"div",8),r.Ac(2,"\n ")),2&t){const t=r.ec();r.xb(1),r.jc("ngForOf",t.model.months)}}function lt(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ngb-datepicker-navigation",13),r.ac("navigate",function(e){return r.sc(t),r.ec().onNavigateEvent(e)})("select",function(e){return r.sc(t),r.ec().onNavigateDateSelect(e)}),r.Ac(1,"\n "),r.Ob()}if(2&t){const t=r.ec();r.jc("date",t.model.firstDate)("months",t.model.months)("disabled",t.model.disabled)("showSelect","select"===t.model.navigation)("prevDisabled",t.model.prevDisabled)("nextDisabled",t.model.nextDisabled)("selectBoxes",t.model.selectBoxes)}}function ut(t,e){}function ht(t,e){}function dt(t,e){1&t&&r.Lb(0,"div",5)}function ft(t,e){if(1&t&&(r.Pb(0,"div",6),r.Ac(1),r.Ob()),2&t){const t=e.$implicit,n=r.ec(2);r.xb(1),r.Cc("\n ",n.i18n.getWeekdayShortName(t),"\n ")}}function pt(t,e){if(1&t&&(r.Pb(0,"div",2),r.Ac(1,"\n "),r.yc(2,dt,1,0,"div",3),r.Ac(3,"\n "),r.yc(4,ft,2,1,"div",4),r.Ac(5,"\n "),r.Ob()),2&t){const t=r.ec();r.xb(2),r.jc("ngIf",t.datepicker.showWeekNumbers),r.xb(2),r.jc("ngForOf",t.viewModel.weekdays)}}function mt(t,e){if(1&t&&(r.Pb(0,"div",11),r.Ac(1),r.Ob()),2&t){const t=r.ec(2).$implicit,e=r.ec();r.xb(1),r.Bc(e.i18n.getWeekNumerals(t.number))}}function gt(t,e){}function bt(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,gt,0,0,"ng-template",14),r.Ac(2,"\n ")),2&t){const t=r.ec().$implicit,e=r.ec(3);r.xb(1),r.jc("ngTemplateOutlet",e.datepicker.dayTemplate)("ngTemplateOutletContext",t.context)}}function yt(t,e){if(1&t){const t=r.Qb();r.Pb(0,"div",12),r.ac("click",function(n){r.sc(t);const s=e.$implicit;return r.ec(3).doSelect(s),n.preventDefault()}),r.Ac(1,"\n "),r.yc(2,bt,3,2,"ng-template",13),r.Ac(3,"\n "),r.Ob()}if(2&t){const t=e.$implicit;r.Cb("disabled",t.context.disabled)("hidden",t.hidden)("ngb-dp-today",t.context.today),r.jc("tabindex",t.tabindex),r.yb("aria-label",t.ariaLabel),r.xb(2),r.jc("ngIf",!t.hidden)}}function _t(t,e){if(1&t&&(r.Pb(0,"div",8),r.Ac(1,"\n "),r.yc(2,mt,2,1,"div",9),r.Ac(3,"\n "),r.yc(4,yt,4,9,"div",10),r.Ac(5,"\n "),r.Ob()),2&t){const t=r.ec().$implicit,e=r.ec();r.xb(2),r.jc("ngIf",e.datepicker.showWeekNumbers),r.xb(2),r.jc("ngForOf",t.days)}}function vt(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,_t,6,2,"div",7),r.Ac(2,"\n ")),2&t){const t=e.$implicit;r.xb(1),r.jc("ngIf",!t.collapsed)}}function wt(t,e){if(1&t){const t=r.Qb();r.Pb(0,"ngb-datepicker-navigation-select",8),r.ac("select",function(e){return r.sc(t),r.ec().select.emit(e)}),r.Ac(1,"\n "),r.Ob()}if(2&t){const t=r.ec();r.jc("date",t.date)("disabled",t.disabled)("months",t.selectBoxes.months)("years",t.selectBoxes.years)}}function Ct(t,e){1&t&&r.Lb(0,"div",0)}function Et(t,e){1&t&&r.Lb(0,"div",0)}function Ot(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,Ct,1,0,"div",10),r.Ac(2,"\n "),r.Pb(3,"div",11),r.Ac(4),r.Ob(),r.Ac(5,"\n "),r.yc(6,Et,1,0,"div",10),r.Ac(7,"\n ")),2&t){const t=e.$implicit,n=e.index,s=r.ec(2);r.xb(1),r.jc("ngIf",n>0),r.xb(3),r.Dc("\n ",s.i18n.getMonthFullName(t.number,t.year)," ",s.i18n.getYearNumerals(t.year),"\n "),r.xb(2),r.jc("ngIf",n!==s.months.length-1)}}function St(t,e){if(1&t&&r.yc(0,Ot,8,4,"ng-template",9),2&t){const t=r.ec();r.jc("ngForOf",t.months)}}const Dt=["ngbDatepickerDayView",""],xt=["month"],At=["year"];function kt(t,e){if(1&t&&(r.Pb(0,"option",6),r.Ac(1),r.Ob()),2&t){const t=e.$implicit,n=r.ec();r.jc("value",t),r.yb("aria-label",n.i18n.getMonthFullName(t,null==n.date?null:n.date.year)),r.xb(1),r.Bc(n.i18n.getMonthShortName(t,null==n.date?null:n.date.year))}}function Tt(t,e){if(1&t&&(r.Pb(0,"option",6),r.Ac(1),r.Ob()),2&t){const t=e.$implicit,n=r.ec();r.jc("value",t),r.xb(1),r.Bc(n.i18n.getYearNumerals(t))}}const jt=["dialog"],It=["ngbNavOutlet",""];function Pt(t,e){}const Rt=function(t){return{$implicit:t}};function Ft(t,e){if(1&t&&(r.Pb(0,"div",2),r.Ac(1,"\n "),r.yc(2,Pt,0,0,"ng-template",3),r.Ac(3,"\n "),r.Ob()),2&t){const t=r.ec().$implicit,e=r.ec();r.jc("item",t)("nav",e.nav)("role",e.paneRole),r.xb(2),r.jc("ngTemplateOutlet",(null==t.contentTpl?null:t.contentTpl.templateRef)||null)("ngTemplateOutletContext",r.nc(5,Rt,t.active||e.isPanelTransitioning(t)))}}function Nt(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,Ft,4,7,"div",1),r.Ac(2,"\n ")),2&t){const t=e.$implicit,n=r.ec();r.xb(1),r.jc("ngIf",t.isPanelInDom()||n.isPanelTransitioning(t))}}function Mt(t,e){1&t&&r.Ac(0),2&t&&r.Bc(100===e.fill?"\u2605":"\u2606")}function Lt(t,e){1&t&&r.Ac(0,"\n ")}function Vt(t,e){if(1&t){const t=r.Qb();r.Ac(0,"\n "),r.Pb(1,"span",2),r.Ac(2),r.Ob(),r.Ac(3,"\n "),r.Pb(4,"span",3),r.ac("mouseenter",function(){r.sc(t);const n=e.index;return r.ec().enter(n+1)})("click",function(){r.sc(t);const n=e.index;return r.ec().handleClick(n+1)}),r.Ac(5,"\n "),r.yc(6,Lt,1,0,"ng-template",4),r.Ac(7,"\n "),r.Ob(),r.Ac(8,"\n ")}if(2&t){const t=e.index,n=r.ec(),s=r.rc(2);r.xb(2),r.Cc("(",t=12)("ngIfElse",t)}}function Yt(t,e){if(1&t&&(r.Pb(0,"span"),r.Ac(1),r.Ob()),2&t){const t=r.ec().$implicit,e=r.ec();r.zb(e.highlightClass),r.xb(1),r.Bc(t)}}function Jt(t,e){if(1&t&&r.Ac(0),2&t){const t=r.ec().$implicit;r.Bc(t)}}function te(t,e){if(1&t&&(r.yc(0,Yt,2,3,"span",1),r.yc(1,Jt,1,1,"ng-template",null,2,r.zc)),2&t){const t=e.odd,n=r.rc(2);r.jc("ngIf",t)("ngIfElse",n)}}function ee(t,e){if(1&t&&(r.Ac(0,"\n "),r.Lb(1,"ngb-highlight",2),r.Ac(2,"\n ")),2&t){const t=e.result,n=e.term,s=e.formatter;r.xb(1),r.jc("result",s(t))("term",n)}}function ne(t,e){}const re=function(t,e,n){return{result:t,term:e,formatter:n}};function se(t,e){if(1&t){const t=r.Qb();r.Ac(0,"\n "),r.Pb(1,"button",3),r.ac("mouseenter",function(){r.sc(t);const n=e.index;return r.ec().markActive(n)})("click",function(){r.sc(t);const n=e.$implicit;return r.ec().select(n)}),r.Ac(2,"\n "),r.yc(3,ne,0,0,"ng-template",4),r.Ac(4,"\n "),r.Ob(),r.Ac(5,"\n ")}if(2&t){const t=e.$implicit,n=e.index,s=r.ec(),i=r.rc(2);r.xb(1),r.Cb("active",n===s.activeIdx),r.jc("id",s.id+"-"+n),r.xb(2),r.jc("ngTemplateOutlet",s.resultTemplate||i)("ngTemplateOutletContext",r.pc(5,re,t,s.term,s.formatter))}}function ie(t){return parseInt(""+t,10)}function oe(t){return null!=t?""+t:""}function ae(t,e,n=0){return Math.max(Math.min(t,e),n)}function ce(t){return"string"==typeof t}function le(t){return!isNaN(ie(t))}function ue(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}function he(t){return null!=t}function de(t){return le(t)?("0"+t).slice(-2):""}function fe(t,e){return t&&t.className&&t.className.split&&t.className.split(/\s+/).indexOf(e)>=0}function pe(t){return(t||document.body).offsetHeight}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});const me={animation:!0,transitionTimerDelayMs:5};let ge=(()=>{class t{constructor(){this.animation=me.animation}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),be=(()=>{class t{constructor(t){this.closeOthers=!1,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})();const ye=()=>{},{transitionTimerDelayMs:_e}=me,ve=new Map,we=(t,e,n)=>{let r=n.context||{};const s=ve.get(t);if(s)switch(n.runningTransition){case"continue":return i.a;case"stop":s.transition$.complete(),r=Object.assign(s.context,r),ve.delete(t)}pe(t);const u=e(t,r)||ye;if(!n.animation||"none"===window.getComputedStyle(t).transitionProperty)return u(),Object(o.a)(void 0);const h=new a.a,d=h.pipe(function(...t){return e=>Object(k.a)(e,Object(o.a)(...t))}(!0));ve.set(t,{transition$:h,context:r});const f=function(t){const{transitionDelay:e,transitionDuration:n}=window.getComputedStyle(t);return 1e3*(parseFloat(e)+parseFloat(n))}(t),m=Object(c.a)(t,"transitionend").pipe(Object(T.a)(d),Object(j.a)(({target:e})=>e===t));return p(Object(l.a)(f+_e).pipe(Object(T.a)(d)),m).pipe(Object(T.a)(d)).subscribe(()=>{ve.delete(t),u(),h.next(),h.complete()}),h.asObservable()},Ce=(t,e)=>{let{direction:n,maxHeight:r}=e;const{classList:s}=t;return r||(r=function(t){if("undefined"==typeof navigator)return"0px";const{classList:e}=t,n=e.contains("show");n||e.add("show"),t.style.height="";const r=t.getBoundingClientRect().height+"px";return n||e.remove("show"),r}(t),e.maxHeight=r,t.style.height="show"!==n?r:"0px",s.remove("collapse"),s.remove("collapsing"),s.remove("show"),pe(t),s.add("collapsing")),t.style.height="show"===n?r:"0px",()=>{s.remove("collapsing"),s.add("collapse"),"show"===n?s.add("show"):s.remove("show"),t.style.height=""}};let Ee=0,Oe=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["ng-template","ngbPanelHeader",""]]}),t})(),Se=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["ng-template","ngbPanelTitle",""]]}),t})(),De=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["ng-template","ngbPanelContent",""]]}),t})(),xe=(()=>{class t{constructor(){this.disabled=!1,this.id="ngb-panel-"+Ee++,this.isOpen=!1,this.initClassDone=!1,this.transitionRunning=!1,this.shown=new r.n,this.hidden=new r.n}ngAfterContentChecked(){this.titleTpl=this.titleTpls.first,this.headerTpl=this.headerTpls.first,this.contentTpl=this.contentTpls.first}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t,selectors:[["ngb-panel"]],contentQueries:function(t,e,n){var s;1&t&&(r.Db(n,Se,!1),r.Db(n,Oe,!1),r.Db(n,De,!1)),2&t&&(r.qc(s=r.bc())&&(e.titleTpls=s),r.qc(s=r.bc())&&(e.headerTpls=s),r.qc(s=r.bc())&&(e.contentTpls=s))},inputs:{disabled:"disabled",id:"id",title:"title",type:"type",cardClass:"cardClass"},outputs:{shown:"shown",hidden:"hidden"}}),t})(),Ae=(()=>{class t{constructor(t,e,n,s){this._element=e,this._ngZone=n,this._changeDetector=s,this.activeIds=[],this.destroyOnHide=!0,this.panelChange=new r.n,this.shown=new r.n,this.hidden=new r.n,this.animation=t.animation,this.type=t.type,this.closeOtherPanels=t.closeOthers}isExpanded(t){return this.activeIds.indexOf(t)>-1}expand(t){this._changeOpenState(this._findPanelById(t),!0)}expandAll(){this.closeOtherPanels?0===this.activeIds.length&&this.panels.length&&this._changeOpenState(this.panels.first,!0):this.panels.forEach(t=>this._changeOpenState(t,!0))}collapse(t){this._changeOpenState(this._findPanelById(t),!1)}collapseAll(){this.panels.forEach(t=>{this._changeOpenState(t,!1)})}toggle(t){const e=this._findPanelById(t);e&&this._changeOpenState(e,!e.isOpen)}ngAfterContentChecked(){ce(this.activeIds)&&(this.activeIds=this.activeIds.split(/\s*,\s*/)),this.panels.forEach(t=>{t.isOpen=!t.disabled&&this.activeIds.indexOf(t.id)>-1}),this.activeIds.length>1&&this.closeOtherPanels&&(this._closeOthers(this.activeIds[0],!1),this._updateActiveIds()),this._ngZone.onStable.pipe(Object(I.a)(1)).subscribe(()=>{this.panels.forEach(t=>{const e=this._getPanelElement(t.id);if(e){if(!t.initClassDone){t.initClassDone=!0;const{classList:n}=e;n.add("collapse"),t.isOpen&&n.add("show")}}else t.initClassDone=!1})})}_changeOpenState(t,e){if(null!=t&&!t.disabled&&t.isOpen!==e){let n=!1;this.panelChange.emit({panelId:t.id,nextState:e,preventDefault:()=>{n=!0}}),n||(t.isOpen=e,t.transitionRunning=!0,e&&this.closeOtherPanels&&this._closeOthers(t.id),this._updateActiveIds(),this._runTransitions(this.animation))}}_closeOthers(t,e=!0){this.panels.forEach(n=>{n.id!==t&&n.isOpen&&(n.isOpen=!1,n.transitionRunning=e)})}_findPanelById(t){return this.panels.find(e=>e.id===t)||null}_updateActiveIds(){this.activeIds=this.panels.filter(t=>t.isOpen&&!t.disabled).map(t=>t.id)}_runTransitions(t,e=!0){this._changeDetector.detectChanges(),this.panels.forEach(n=>{if(n.transitionRunning){const r=this._getPanelElement(n.id);we(r,Ce,{animation:t,runningTransition:"stop",context:{direction:n.isOpen?"show":"hide"}}).subscribe(()=>{if(n.transitionRunning=!1,e){const{id:t}=n;n.isOpen?(n.shown.emit(),this.shown.emit(t)):(n.hidden.emit(),this.hidden.emit(t))}})}})}_getPanelElement(t){return this._element.nativeElement.querySelector("#"+t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(be),r.Kb(r.l),r.Kb(r.z),r.Kb(r.h))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-accordion"]],contentQueries:function(t,e,n){var s;1&t&&r.Db(n,xe,!1),2&t&&r.qc(s=r.bc())&&(e.panels=s)},hostAttrs:["role","tablist",1,"accordion"],hostVars:1,hostBindings:function(t,e){2&t&&r.yb("aria-multiselectable",!e.closeOtherPanels)},inputs:{activeIds:"activeIds",destroyOnHide:"destroyOnHide",animation:"animation",type:"type",closeOtherPanels:["closeOthers","closeOtherPanels"]},outputs:{panelChange:"panelChange",shown:"shown",hidden:"hidden"},exportAs:["ngbAccordion"],decls:6,vars:1,consts:[["ngbPanelHeader",""],["t",""],["ngFor","",3,"ngForOf"],[1,"btn","btn-link",3,"ngbPanelToggle"],[3,"ngTemplateOutlet"],["role","tab",3,"id"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["role","tabpanel",3,"id",4,"ngIf"],["role","tabpanel",3,"id"],[1,"card-body"]],template:function(t,e){1&t&&(r.Ac(0,"\n "),r.yc(1,X,6,3,"ng-template",0,1,r.zc),r.Ac(3,"\n "),r.yc(4,tt,11,11,"ng-template",2),r.Ac(5,"\n ")),2&t&&(r.xb(4),r.jc("ngForOf",e.panels))},directives:function(){return[Oe,s.k,ke,s.m,s.l]},encapsulation:2}),t})(),ke=(()=>{class t{constructor(t,e){this.accordion=t,this.panel=e}set ngbPanelToggle(t){t&&(this.panel=t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(Ae),r.Kb(xe,9))},t.\u0275dir=r.Fb({type:t,selectors:[["button","ngbPanelToggle",""]],hostAttrs:["type","button"],hostVars:5,hostBindings:function(t,e){1&t&&r.ac("click",function(){return e.accordion.toggle(e.panel.id)}),2&t&&(r.Sb("disabled",e.panel.disabled),r.yb("aria-expanded",e.panel.isOpen)("aria-controls",e.panel.id),r.Cb("collapsed",!e.panel.isOpen))},inputs:{ngbPanelToggle:"ngbPanelToggle"}}),t})(),Te=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),je=(()=>{class t{constructor(t){this.dismissible=!0,this.type="warning",this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})();const Ie=({classList:t})=>{t.remove("show")};let Pe=(()=>{class t{constructor(t,e,n){this._renderer=e,this._element=n,this.closed=new r.n,this.dismissible=t.dismissible,this.type=t.type,this.animation=t.animation}close(){const t=we(this._element.nativeElement,Ie,{animation:this.animation,runningTransition:"continue"});return t.subscribe(()=>this.closed.emit()),t}ngOnChanges(t){const e=t.type;e&&!e.firstChange&&(this._renderer.removeClass(this._element.nativeElement,"alert-"+e.previousValue),this._renderer.addClass(this._element.nativeElement,"alert-"+e.currentValue))}ngOnInit(){this._renderer.addClass(this._element.nativeElement,"alert-"+this.type)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(je),r.Kb(r.D),r.Kb(r.l))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-alert"]],hostAttrs:["role","alert",1,"alert","show"],hostVars:4,hostBindings:function(t,e){2&t&&r.Cb("fade",e.animation)("alert-dismissible",e.dismissible)},inputs:{dismissible:"dismissible",type:"type",animation:"animation"},outputs:{closed:"closed"},exportAs:["ngbAlert"],features:[r.vb],ngContentSelectors:nt,decls:5,vars:1,consts:function(){return[["type","button","class","close",3,"click",4,"ngIf",6,"aria-label"],["type","button",1,"close",3,"click",6,"aria-label"],["aria-label",$localize`:@@ngb.alert.close␟f4e529ae5ffd73001d1ff4bbdeeb0a72e342e5c8␟7819314041543176992:Close`],["aria-hidden","true"]]},template:function(t,e){1&t&&(r.ic(),r.Ac(0,"\n "),r.hc(1),r.Ac(2,"\n "),r.yc(3,et,6,0,"button",0),r.Ac(4,"\n ")),2&t&&(r.xb(3),r.jc("ngIf",e.dismissible))},directives:[s.l],styles:["ngb-alert{display:block}"],encapsulation:2,changeDetection:0}),t})(),Re=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),Fe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbButtonLabel",""]],hostVars:8,hostBindings:function(t,e){2&t&&r.Cb("btn",!0)("active",e.active)("disabled",e.disabled)("focus",e.focused)}}),t})();const Ne={provide:W.h,useExisting:Object(r.S)(()=>Me),multi:!0};let Me=(()=>{class t{constructor(t,e){this._label=t,this._cd=e,this.disabled=!1,this.valueChecked=!0,this.valueUnChecked=!1,this.onChange=t=>{},this.onTouched=()=>{}}set focused(t){this._label.focused=t,t||this.onTouched()}onInputChange(t){const e=t.target.checked?this.valueChecked:this.valueUnChecked;this.onChange(e),this.onTouched(),this.writeValue(e)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t,this._label.disabled=t}writeValue(t){this.checked=t===this.valueChecked,this._label.active=this.checked,this._cd.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(Fe),r.Kb(r.h))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbButton","","type","checkbox"]],hostVars:2,hostBindings:function(t,e){1&t&&r.ac("change",function(t){return e.onInputChange(t)})("focus",function(){return e.focused=!0})("blur",function(){return e.focused=!1}),2&t&&r.Sb("checked",e.checked)("disabled",e.disabled)},inputs:{disabled:"disabled",valueChecked:"valueChecked",valueUnChecked:"valueUnChecked"},features:[r.wb([Ne])]}),t})();const Le={provide:W.h,useExisting:Object(r.S)(()=>Be),multi:!0};let Ve=0,Be=(()=>{class t{constructor(){this._radios=new Set,this._value=null,this.name="ngb-radio-"+Ve++,this.onChange=t=>{},this.onTouched=()=>{}}get disabled(){return this._disabled}set disabled(t){this.setDisabledState(t)}onRadioChange(t){this.writeValue(t.value),this.onChange(t.value)}onRadioValueUpdate(){this._updateRadiosValue()}register(t){this._radios.add(t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._disabled=t,this._updateRadiosDisabled()}unregister(t){this._radios.delete(t)}writeValue(t){this._value=t,this._updateRadiosValue()}_updateRadiosValue(){this._radios.forEach(t=>t.updateValue(this._value))}_updateRadiosDisabled(){this._radios.forEach(t=>t.updateDisabled())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbRadioGroup",""]],hostAttrs:["role","radiogroup"],inputs:{name:"name"},features:[r.wb([Le])]}),t})(),He=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})(),Ue=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),ze=(()=>{class t{constructor(t){this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})(),$e=(()=>{class t{constructor(t,e){this._element=t,this.animation=!1,this.collapsed=!1,this.ngbCollapseChange=new r.n,this.shown=new r.n,this.hidden=new r.n,this.animation=e.animation}ngOnInit(){this._element.nativeElement.classList.add("collapse"),this._runTransition(this.collapsed,!1,!1)}ngOnChanges({collapsed:t}){t.firstChange||this._runTransition(this.collapsed,this.animation)}toggle(t=this.collapsed){this.collapsed=!t,this.ngbCollapseChange.next(this.collapsed),this._runTransition(this.collapsed,this.animation)}_runTransition(t,e,n=!0){we(this._element.nativeElement,Ce,{animation:e,runningTransition:"stop",context:{direction:t?"hide":"show"}}).subscribe(()=>{n&&(t?this.hidden.emit():this.shown.emit())})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(ze))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbCollapse",""]],inputs:{animation:"animation",collapsed:["ngbCollapse","collapsed"]},outputs:{ngbCollapseChange:"ngbCollapseChange",shown:"shown",hidden:"hidden"},exportAs:["ngbCollapse"],features:[r.vb]}),t})(),Ke=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})();class qe{constructor(t,e,n){this.year=ue(t)?t:null,this.month=ue(e)?e:null,this.day=ue(n)?n:null}static from(t){return t instanceof qe?t:t?new qe(t.year,t.month,t.day):null}equals(t){return null!=t&&this.year===t.year&&this.month===t.month&&this.day===t.day}before(t){return!!t&&(this.year===t.year?this.month===t.month?this.day!==t.day&&this.dayt.day:this.month>t.month:this.year>t.year)}}function We(t){return new qe(t.getFullYear(),t.getMonth()+1,t.getDate())}function Ge(t){const e=new Date(t.year,t.month-1,t.day,12);return isNaN(e.getTime())||e.setFullYear(t.year),e}function Xe(){return new Ze}let Qe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:Xe,token:t,providedIn:"root"}),t})(),Ze=(()=>{class t extends Qe{getDaysPerWeek(){return 7}getMonths(){return[1,2,3,4,5,6,7,8,9,10,11,12]}getWeeksPerMonth(){return 6}getNext(t,e="d",n=1){let r=Ge(t),s=!0,i=r.getMonth();switch(e){case"y":r.setFullYear(r.getFullYear()+n);break;case"m":i+=n,r.setMonth(i),i%=12,i<0&&(i+=12);break;case"d":r.setDate(r.getDate()+n),s=!1;break;default:return t}return s&&r.getMonth()!==i&&r.setDate(0),We(r)}getPrev(t,e="d",n=1){return this.getNext(t,e,-n)}getWeekday(t){let e=Ge(t).getDay();return 0===e?7:e}getWeekNumber(t,e){7===e&&(e=0);const n=Ge(t[(11-e)%7]);n.setDate(n.getDate()+4-(n.getDay()||7));const r=n.getTime();return n.setMonth(0),n.setDate(1),Math.floor(Math.round((r-n.getTime())/864e5)/7)+1}getToday(){return We(new Date)}isValid(t){if(!(t&&ue(t.year)&&ue(t.month)&&ue(t.day)))return!1;if(0===t.year)return!1;const e=Ge(t);return!isNaN(e.getTime())&&e.getFullYear()===t.year&&e.getMonth()+1===t.month&&e.getDate()===t.day}}return t.\u0275fac=function(e){return Ye(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const Ye=r.Rb(Ze);function Je(t,e){return!function(t,e){return!t&&!e||!!t&&!!e&&t.equals(e)}(t,e)}function tn(t,e){return!(!t&&!e||t&&e&&t.year===e.year&&t.month===e.month)}function en(t,e,n){return t&&e&&t.before(e)?e:t&&n&&t.after(n)?n:t||null}function nn(t,e){const{minDate:n,maxDate:r,disabled:s,markDisabled:i}=e;return!(null==t||s||i&&i(t,{year:t.year,month:t.month})||n&&t.before(n)||r&&t.after(r))}let rn=(()=>{class t{getDayNumerals(t){return""+t.day}getWeekNumerals(t){return""+t}getYearNumerals(t){return""+t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return t=Object(r.Xb)(r.u),new sn(t);var t},token:t,providedIn:"root"}),t})(),sn=(()=>{class t extends rn{constructor(t){super(),this._locale=t;const e=Object(s.u)(t,s.d.Standalone,s.r.Short);this._weekdaysShort=e.map((t,n)=>e[(n+1)%7]),this._monthsShort=Object(s.w)(t,s.d.Standalone,s.r.Abbreviated),this._monthsFull=Object(s.w)(t,s.d.Standalone,s.r.Wide)}getWeekdayShortName(t){return this._weekdaysShort[t-1]||""}getMonthShortName(t){return this._monthsShort[t-1]||""}getMonthFullName(t){return this._monthsFull[t-1]||""}getDayAriaLabel(t){const e=new Date(t.year,t.month-1,t.day);return Object(s.t)(e,"fullDate",this._locale)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.u))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),on=(()=>{class t{constructor(t,e){this._calendar=t,this._i18n=e,this._VALIDATORS={dayTemplateData:t=>{if(this._state.dayTemplateData!==t)return{dayTemplateData:t}},displayMonths:t=>{if(ue(t=ie(t))&&t>0&&this._state.displayMonths!==t)return{displayMonths:t}},disabled:t=>{if(this._state.disabled!==t)return{disabled:t}},firstDayOfWeek:t=>{if(ue(t=ie(t))&&t>=0&&this._state.firstDayOfWeek!==t)return{firstDayOfWeek:t}},focusVisible:t=>{if(this._state.focusVisible!==t&&!this._state.disabled)return{focusVisible:t}},markDisabled:t=>{if(this._state.markDisabled!==t)return{markDisabled:t}},maxDate:t=>{const e=this.toValidDate(t,null);if(Je(this._state.maxDate,e))return{maxDate:e}},minDate:t=>{const e=this.toValidDate(t,null);if(Je(this._state.minDate,e))return{minDate:e}},navigation:t=>{if(this._state.navigation!==t)return{navigation:t}},outsideDays:t=>{if(this._state.outsideDays!==t)return{outsideDays:t}}},this._model$=new a.a,this._dateSelect$=new a.a,this._state={dayTemplateData:null,markDisabled:null,maxDate:null,minDate:null,disabled:!1,displayMonths:1,firstDate:null,firstDayOfWeek:1,lastDate:null,focusDate:null,focusVisible:!1,months:[],navigation:"select",outsideDays:"visible",prevDisabled:!1,nextDisabled:!1,selectedDate:null,selectBoxes:{years:[],months:[]}}}get model$(){return this._model$.pipe(Object(j.a)(t=>t.months.length>0))}get dateSelect$(){return this._dateSelect$.pipe(Object(j.a)(t=>null!==t))}set(t){let e=Object.keys(t).map(e=>this._VALIDATORS[e](t[e])).reduce((t,e)=>Object.assign(Object.assign({},t),e),{});Object.keys(e).length>0&&this._nextState(e)}focus(t){const e=this.toValidDate(t,null);null!=e&&!this._state.disabled&&Je(this._state.focusDate,e)&&this._nextState({focusDate:t})}focusSelect(){nn(this._state.focusDate,this._state)&&this.select(this._state.focusDate,{emitEvent:!0})}open(t){const e=this.toValidDate(t,this._calendar.getToday());null==e||this._state.disabled||this._state.firstDate&&!tn(this._state.firstDate,e)||this._nextState({firstDate:e})}select(t,e={}){const n=this.toValidDate(t,null);null==n||this._state.disabled||(Je(this._state.selectedDate,n)&&this._nextState({selectedDate:n}),e.emitEvent&&nn(n,this._state)&&this._dateSelect$.next(n))}toValidDate(t,e){const n=qe.from(t);return void 0===e&&(e=this._calendar.getToday()),this._calendar.isValid(n)?n:e}getMonth(t){for(let e of this._state.months)if(t.month===e.number&&t.year===e.year)return e;throw new Error(`month ${t.month} of year ${t.year} not found`)}_nextState(t){const e=this._updateState(t);this._patchContexts(e),this._state=e,this._model$.next(this._state)}_patchContexts(t){const{months:e,displayMonths:n,selectedDate:r,focusDate:s,focusVisible:i,disabled:o,outsideDays:a}=t;t.months.forEach(t=>{t.weeks.forEach(c=>{c.days.forEach(c=>{s&&(c.context.focused=s.equals(c.date)&&i),c.tabindex=!o&&s&&c.date.equals(s)&&s.month===t.number?0:-1,!0===o&&(c.context.disabled=!0),void 0!==r&&(c.context.selected=null!==r&&r.equals(c.date)),t.number!==c.date.month&&(c.hidden="hidden"===a||"collapsed"===a||n>1&&c.date.after(e[0].firstDate)&&c.date.before(e[n-1].lastDate))})})})}_updateState(t){const e=Object.assign({},this._state,t);let n=e.firstDate;if(("minDate"in t||"maxDate"in t)&&(function(t,e){if(e&&t&&e.before(t))throw new Error(`'maxDate' ${e} should be greater than 'minDate' ${t}`)}(e.minDate,e.maxDate),e.focusDate=en(e.focusDate,e.minDate,e.maxDate),e.firstDate=en(e.firstDate,e.minDate,e.maxDate),n=e.focusDate),"disabled"in t&&(e.focusVisible=!1),"selectedDate"in t&&0===this._state.months.length&&(n=e.selectedDate),"focusVisible"in t)return e;if("focusDate"in t&&(e.focusDate=en(e.focusDate,e.minDate,e.maxDate),n=e.focusDate,0!==e.months.length&&e.focusDate&&!e.focusDate.before(e.firstDate)&&!e.focusDate.after(e.lastDate)))return e;if("firstDate"in t&&(e.firstDate=en(e.firstDate,e.minDate,e.maxDate),n=e.firstDate),n){const r=function(t,e,n,r,s){const{displayMonths:i,months:o}=n,a=o.splice(0,o.length);return Array.from({length:i},(n,r)=>{const i=Object.assign(t.getNext(e,"m",r),{day:1});if(o[r]=null,!s){const t=a.findIndex(t=>t.firstDate.equals(i));-1!==t&&(o[r]=a.splice(t,1)[0])}return i}).forEach((e,s)=>{null===o[s]&&(o[s]=function(t,e,n,r,s={}){const{dayTemplateData:i,minDate:o,maxDate:a,firstDayOfWeek:c,markDisabled:l,outsideDays:u}=n,h=t.getToday();s.firstDate=null,s.lastDate=null,s.number=e.month,s.year=e.year,s.weeks=s.weeks||[],s.weekdays=s.weekdays||[],e=function(t,e,n){const r=t.getDaysPerWeek(),s=new qe(e.year,e.month,1),i=t.getWeekday(s)%r;return t.getPrev(s,"d",(r+i-n)%r)}(t,e,c);for(let d=0;dt.date),c),n.collapsed="collapsed"===u&&f[0].date.month!==s.number&&f[f.length-1].date.month!==s.number}return s}(t,e,n,r,a.shift()||{}))}),o}(this._calendar,n,e,this._i18n,"dayTemplateData"in t||"firstDayOfWeek"in t||"markDisabled"in t||"minDate"in t||"maxDate"in t||"disabled"in t||"outsideDays"in t);e.months=r,e.firstDate=r[0].firstDate,e.lastDate=r[r.length-1].lastDate,"selectedDate"in t&&!nn(e.selectedDate,e)&&(e.selectedDate=null),"firstDate"in t&&(!e.focusDate||e.focusDate.before(e.firstDate)||e.focusDate.after(e.lastDate))&&(e.focusDate=n);const s=!this._state.firstDate||this._state.firstDate.year!==e.firstDate.year,i=!this._state.firstDate||this._state.firstDate.month!==e.firstDate.month;"select"===e.navigation?(("minDate"in t||"maxDate"in t||0===e.selectBoxes.years.length||s)&&(e.selectBoxes.years=function(t,e,n){if(!t)return[];const r=e?Math.max(e.year,t.year-500):t.year-10,s=(n?Math.min(n.year,t.year+500):t.year+10)-r+1,i=Array(s);for(let o=0;ot===n.month);s=s.slice(t)}if(r&&e.year===r.year){const t=s.findIndex(t=>t===r.month);s=s.slice(0,t+1)}return s}(this._calendar,e.firstDate,e.minDate,e.maxDate))):e.selectBoxes={years:[],months:[]},"arrows"!==e.navigation&&"select"!==e.navigation||!(i||s||"minDate"in t||"maxDate"in t||"disabled"in t)||(e.prevDisabled=e.disabled||function(t,e,n){const r=Object.assign(t.getPrev(e,"m"),{day:1});return null!=n&&(r.year===n.year&&r.month{class t{constructor(){this.displayMonths=1,this.firstDayOfWeek=1,this.navigation="select",this.outsideDays="visible",this.showWeekdays=!0,this.showWeekNumbers=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();function ln(){return new hn}let un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:ln,token:t,providedIn:"root"}),t})(),hn=(()=>{class t extends un{fromModel(t){return t&&ue(t.year)&&ue(t.month)&&ue(t.day)?{year:t.year,month:t.month,day:t.day}:null}toModel(t){return t&&ue(t.year)&&ue(t.month)&&ue(t.day)?{year:t.year,month:t.month,day:t.day}:null}}return t.\u0275fac=function(e){return dn(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const dn=r.Rb(hn),fn={provide:W.h,useExisting:Object(r.S)(()=>mn),multi:!0};let pn=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["ng-template","ngbDatepickerContent",""]]}),t})(),mn=(()=>{class t{constructor(t,e,n,s,i,o,c,l){this._service=t,this._calendar=e,this.i18n=n,this._elementRef=o,this._ngbDateAdapter=c,this._ngZone=l,this._controlValue=null,this._destroyed$=new a.a,this._publicState={},this.navigate=new r.n,this.dateSelect=new r.n,this.onChange=t=>{},this.onTouched=()=>{},["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showWeekdays","showWeekNumbers","startDate"].forEach(t=>this[t]=s[t]),t.dateSelect$.pipe(Object(T.a)(this._destroyed$)).subscribe(t=>{this.dateSelect.emit(t)}),t.model$.pipe(Object(T.a)(this._destroyed$)).subscribe(t=>{const e=t.firstDate,n=this.model?this.model.firstDate:null;this._publicState={maxDate:t.maxDate,minDate:t.minDate,firstDate:t.firstDate,lastDate:t.lastDate,focusedDate:t.focusDate,months:t.months.map(t=>t.firstDate)};let r=!1;if(!e.equals(n)&&(this.navigate.emit({current:n?{year:n.year,month:n.month}:null,next:{year:e.year,month:e.month},preventDefault:()=>r=!0}),r&&null!==n))return void this._service.open(n);const s=t.selectedDate,o=t.focusDate,a=this.model?this.model.focusDate:null;this.model=t,Je(s,this._controlValue)&&(this._controlValue=s,this.onTouched(),this.onChange(this._ngbDateAdapter.toModel(s))),Je(o,a)&&a&&t.focusVisible&&this.focus(),i.markForCheck()})}get state(){return this._publicState}get calendar(){return this._calendar}focusDate(t){this._service.focus(qe.from(t))}focusSelect(){this._service.focusSelect()}focus(){this._ngZone.onStable.asObservable().pipe(Object(I.a)(1)).subscribe(()=>{const t=this._elementRef.nativeElement.querySelector('div.ngb-dp-day[tabindex="0"]');t&&t.focus()})}navigateTo(t){this._service.open(qe.from(t?t.day?t:Object.assign(Object.assign({},t),{day:1}):null))}ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{const t=Object(c.a)(this._contentEl.nativeElement,"focusin"),e=Object(c.a)(this._contentEl.nativeElement,"focusout"),{nativeElement:n}=this._elementRef;Object(x.a)(t,e).pipe(Object(j.a)(({target:t,relatedTarget:e})=>!(fe(t,"ngb-dp-day")&&fe(e,"ngb-dp-day")&&n.contains(t)&&n.contains(e))),Object(T.a)(this._destroyed$)).subscribe(({type:t})=>this._ngZone.run(()=>this._service.set({focusVisible:"focusin"===t})))})}ngOnDestroy(){this._destroyed$.next()}ngOnInit(){if(void 0===this.model){const t={};["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].forEach(e=>t[e]=this[e]),this._service.set(t),this.navigateTo(this.startDate)}this.dayTemplate||(this.dayTemplate=this._defaultDayTemplate)}ngOnChanges(t){const e={};if(["dayTemplateData","displayMonths","markDisabled","firstDayOfWeek","navigation","minDate","maxDate","outsideDays"].filter(e=>e in t).forEach(t=>e[t]=this[t]),this._service.set(e),"startDate"in t){const{currentValue:e,previousValue:n}=t.startDate;tn(n,e)&&this.navigateTo(this.startDate)}}onDateSelect(t){this._service.focus(t),this._service.select(t,{emitEvent:!0})}onNavigateDateSelect(t){this._service.open(t)}onNavigateEvent(t){switch(t){case an.PREV:this._service.open(this._calendar.getPrev(this.model.firstDate,"m",1));break;case an.NEXT:this._service.open(this._calendar.getNext(this.model.firstDate,"m",1))}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._service.set({disabled:t})}writeValue(t){this._controlValue=qe.from(this._ngbDateAdapter.fromModel(t)),this._service.select(this._controlValue)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(on),r.Kb(Qe),r.Kb(rn),r.Kb(cn),r.Kb(r.h),r.Kb(r.l),r.Kb(un),r.Kb(r.z))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-datepicker"]],contentQueries:function(t,e,n){var s;1&t&&r.vc(n,pn,!0),2&t&&r.qc(s=r.bc())&&(e.contentTemplate=s.first)},viewQuery:function(t,e){var n;1&t&&(r.wc(rt,!0),r.wc(st,!0)),2&t&&(r.qc(n=r.bc())&&(e._defaultDayTemplate=n.first),r.qc(n=r.bc())&&(e._contentEl=n.first))},inputs:{dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",maxDate:"maxDate",minDate:"minDate",navigation:"navigation",outsideDays:"outsideDays",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate"},outputs:{navigate:"navigate",dateSelect:"dateSelect"},exportAs:["ngbDatepicker"],features:[r.wb([fn,on]),r.vb],decls:20,vars:5,consts:[["defaultDayTemplate",""],["defaultContentTemplate",""],[1,"ngb-dp-header"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select",4,"ngIf"],[1,"ngb-dp-content"],["content",""],[3,"ngTemplateOutlet"],["ngbDatepickerDayView","",3,"date","currentMonth","selected","disabled","focused"],["class","ngb-dp-month",4,"ngFor","ngForOf"],[1,"ngb-dp-month"],["class","ngb-dp-month-name",4,"ngIf"],[3,"month"],[1,"ngb-dp-month-name"],[3,"date","months","disabled","showSelect","prevDisabled","nextDisabled","selectBoxes","navigate","select"]],template:function(t,e){if(1&t&&(r.Ac(0,"\n "),r.yc(1,it,4,5,"ng-template",null,0,r.zc),r.Ac(3,"\n\n "),r.yc(4,ct,3,1,"ng-template",null,1,r.zc),r.Ac(6,"\n\n "),r.Pb(7,"div",2),r.Ac(8,"\n "),r.yc(9,lt,2,7,"ngb-datepicker-navigation",3),r.Ac(10,"\n "),r.Ob(),r.Ac(11,"\n\n "),r.Pb(12,"div",4,5),r.Ac(14,"\n "),r.yc(15,ut,0,0,"ng-template",6),r.Ac(16,"\n "),r.Ob(),r.Ac(17,"\n\n "),r.yc(18,ht,0,0,"ng-template",6),r.Ac(19,"\n ")),2&t){const t=r.rc(5);r.xb(9),r.jc("ngIf","none"!==e.navigation),r.xb(3),r.Cb("ngb-dp-months",!e.contentTemplate),r.xb(3),r.jc("ngTemplateOutlet",(null==e.contentTemplate?null:e.contentTemplate.templateRef)||t),r.xb(3),r.jc("ngTemplateOutlet",e.footerTemplate)}},directives:function(){return[s.l,s.m,Vn,s.k,yn,_n]},styles:["ngb-datepicker{border:1px solid #dfdfdf;border-radius:.25rem;display:inline-block}ngb-datepicker-month{pointer-events:auto}ngb-datepicker.dropdown-menu{padding:0}.ngb-dp-body{z-index:1050}.ngb-dp-header{background-color:#f8f9fa;background-color:var(--light);border-bottom:0;border-radius:.25rem .25rem 0 0;padding-top:.25rem}.ngb-dp-months{display:-ms-flexbox;display:flex}.ngb-dp-month{pointer-events:none}.ngb-dp-month-name{background-color:#f8f9fa;background-color:var(--light);font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-month+.ngb-dp-month .ngb-dp-month-name,.ngb-dp-month+.ngb-dp-month .ngb-dp-week{padding-left:1rem}.ngb-dp-month:last-child .ngb-dp-week{padding-right:.25rem}.ngb-dp-month:first-child .ngb-dp-week{padding-left:.25rem}.ngb-dp-month .ngb-dp-week:last-child{padding-bottom:.25rem}"],encapsulation:2,changeDetection:0}),t})();var gn=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});let bn=(()=>{class t{processKey(t,e){const{state:n,calendar:r}=e;switch(t.which){case gn.PageUp:e.focusDate(r.getPrev(n.focusedDate,t.shiftKey?"y":"m",1));break;case gn.PageDown:e.focusDate(r.getNext(n.focusedDate,t.shiftKey?"y":"m",1));break;case gn.End:e.focusDate(t.shiftKey?n.maxDate:n.lastDate);break;case gn.Home:e.focusDate(t.shiftKey?n.minDate:n.firstDate);break;case gn.ArrowLeft:e.focusDate(r.getPrev(n.focusedDate,"d",1));break;case gn.ArrowUp:e.focusDate(r.getPrev(n.focusedDate,"d",r.getDaysPerWeek()));break;case gn.ArrowRight:e.focusDate(r.getNext(n.focusedDate,"d",1));break;case gn.ArrowDown:e.focusDate(r.getNext(n.focusedDate,"d",r.getDaysPerWeek()));break;case gn.Enter:case gn.Space:e.focusSelect();break;default:return}t.preventDefault(),t.stopPropagation()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})(),yn=(()=>{class t{constructor(t,e,n,r){this.i18n=t,this.datepicker=e,this._keyboardService=n,this._service=r}set month(t){this.viewModel=this._service.getMonth(t)}onKeyDown(t){this._keyboardService.processKey(t,this.datepicker)}doSelect(t){t.context.disabled||t.hidden||this.datepicker.onDateSelect(t.date)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(rn),r.Kb(mn),r.Kb(bn),r.Kb(on))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-datepicker-month"]],hostAttrs:["role","grid"],hostBindings:function(t,e){1&t&&r.ac("keydown",function(t){return e.onKeyDown(t)})},inputs:{month:"month"},decls:5,vars:2,consts:[["class","ngb-dp-week ngb-dp-weekdays","role","row",4,"ngIf"],["ngFor","",3,"ngForOf"],["role","row",1,"ngb-dp-week","ngb-dp-weekdays"],["class","ngb-dp-weekday ngb-dp-showweek",4,"ngIf"],["class","ngb-dp-weekday small","role","columnheader",4,"ngFor","ngForOf"],[1,"ngb-dp-weekday","ngb-dp-showweek"],["role","columnheader",1,"ngb-dp-weekday","small"],["class","ngb-dp-week","role","row",4,"ngIf"],["role","row",1,"ngb-dp-week"],["class","ngb-dp-week-number small text-muted",4,"ngIf"],["class","ngb-dp-day","role","gridcell",3,"disabled","tabindex","hidden","ngb-dp-today","click",4,"ngFor","ngForOf"],[1,"ngb-dp-week-number","small","text-muted"],["role","gridcell",1,"ngb-dp-day",3,"tabindex","click"],[3,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(r.Ac(0,"\n "),r.yc(1,pt,6,2,"div",0),r.Ac(2,"\n "),r.yc(3,vt,3,1,"ng-template",1),r.Ac(4,"\n ")),2&t&&(r.xb(1),r.jc("ngIf",e.datepicker.showWeekdays),r.xb(2),r.jc("ngForOf",e.viewModel.weeks))},directives:[s.l,s.k,s.m],styles:['ngb-datepicker-month{display:block}.ngb-dp-week-number,.ngb-dp-weekday{font-style:italic;line-height:2rem;text-align:center}.ngb-dp-weekday{color:#5bc0de;color:var(--info)}.ngb-dp-week{border-radius:.25rem;display:-ms-flexbox;display:flex}.ngb-dp-weekdays{background-color:#f8f9fa;background-color:var(--light);border-bottom:1px solid rgba(0,0,0,.125);border-radius:0}.ngb-dp-day,.ngb-dp-week-number,.ngb-dp-weekday{height:2rem;width:2rem}.ngb-dp-day{cursor:pointer}.ngb-dp-day.disabled,.ngb-dp-day.hidden{cursor:default;pointer-events:none}.ngb-dp-day[tabindex="0"]{z-index:1}'],encapsulation:2}),t})(),_n=(()=>{class t{constructor(t){this.i18n=t,this.navigation=an,this.months=[],this.navigate=new r.n,this.select=new r.n}onClickPrev(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.PREV)}onClickNext(t){t.currentTarget.focus(),this.navigate.emit(this.navigation.NEXT)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(rn))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-datepicker-navigation"]],inputs:{months:"months",date:"date",disabled:"disabled",showSelect:"showSelect",prevDisabled:"prevDisabled",nextDisabled:"nextDisabled",selectBoxes:"selectBoxes"},outputs:{navigate:"navigate",select:"select"},decls:23,vars:4,consts:function(){return[[1,"ngb-dp-arrow"],["type","button",1,"btn","btn-link","ngb-dp-arrow-btn",3,"disabled","click",6,"aria-label","title"],["aria-label",$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`,"title",$localize`:@@ngb.datepicker.previous-month␟c3b08b07b5ab98e7cdcf18df39355690ab7d3884␟8586908745456864217:Previous month`],[1,"ngb-dp-navigation-chevron"],["class","ngb-dp-navigation-select",3,"date","disabled","months","years","select",4,"ngIf"],[4,"ngIf"],[1,"ngb-dp-arrow","right"],["aria-label",$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`,"title",$localize`:@@ngb.datepicker.next-month␟4bd046985cfe13040d5ef0cd881edce0968a111a␟3628374603023447227:Next month`],[1,"ngb-dp-navigation-select",3,"date","disabled","months","years","select"],["ngFor","",3,"ngForOf"],["class","ngb-dp-arrow",4,"ngIf"],[1,"ngb-dp-month-name"]]},template:function(t,e){1&t&&(r.Ac(0,"\n "),r.Pb(1,"div",0),r.Ac(2,"\n "),r.Pb(3,"button",1),r.Vb(4,2),r.ac("click",function(t){return e.onClickPrev(t)}),r.Ac(5,"\n "),r.Lb(6,"span",3),r.Ac(7,"\n "),r.Ob(),r.Ac(8,"\n "),r.Ob(),r.Ac(9,"\n "),r.yc(10,wt,2,4,"ngb-datepicker-navigation-select",4),r.Ac(11,"\n\n "),r.yc(12,St,1,1,void 0,5),r.Ac(13,"\n "),r.Pb(14,"div",6),r.Ac(15,"\n "),r.Pb(16,"button",1),r.Vb(17,7),r.ac("click",function(t){return e.onClickNext(t)}),r.Ac(18,"\n "),r.Lb(19,"span",3),r.Ac(20,"\n "),r.Ob(),r.Ac(21,"\n "),r.Ob(),r.Ac(22,"\n ")),2&t&&(r.xb(3),r.jc("disabled",e.prevDisabled),r.xb(7),r.jc("ngIf",e.showSelect),r.xb(2),r.jc("ngIf",!e.showSelect),r.xb(4),r.jc("disabled",e.nextDisabled))},directives:function(){return[s.l,Bn,s.k]},styles:["ngb-datepicker-navigation{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-dp-navigation-chevron{-webkit-transform:rotate(-135deg);border-style:solid;border-width:.2em .2em 0 0;display:inline-block;height:.75em;margin-left:.25em;margin-right:.15em;transform:rotate(-135deg);width:.75em}.right .ngb-dp-navigation-chevron{-webkit-transform:rotate(45deg);margin-left:.15em;margin-right:.25em;transform:rotate(45deg)}.ngb-dp-arrow{-ms-flex:1 1 auto;display:-ms-flexbox;display:flex;flex:1 1 auto;height:2rem;margin:0;padding-left:0;padding-right:0;width:2rem}.ngb-dp-arrow.right{-ms-flex-pack:end;justify-content:flex-end}.ngb-dp-arrow-btn{background-color:transparent;border:none;margin:0 .5rem;padding:0 .25rem;z-index:1}.ngb-dp-arrow-btn:focus{outline-style:auto;outline-width:1px}@media (-ms-high-contrast:active),(-ms-high-contrast:none){.ngb-dp-arrow-btn:focus{outline-style:solid}}.ngb-dp-month-name{font-size:larger;height:2rem;line-height:2rem;text-align:center}.ngb-dp-navigation-select{-ms-flex:1 1 9rem;display:-ms-flexbox;display:flex;flex:1 1 9rem}"],encapsulation:2,changeDetection:0}),t})();const vn=(t,e)=>!!e&&e.some(e=>e.contains(t)),wn=(t,e)=>!e||null!=function(t,e){return e?void 0===t.closest?null:t.closest(e):null}(t,e),Cn="undefined"!=typeof navigator&&!!navigator.userAgent&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>2||/Android/.test(navigator.userAgent));function En(t,e,n,r,s,i,o,a){var l;n&&t.runOutsideAngular((l=()=>{const l=Object(c.a)(e,"keydown").pipe(Object(T.a)(s),Object(j.a)(t=>t.which===gn.Escape),Object(L.a)(t=>t.preventDefault())),u=Object(c.a)(e,"mousedown").pipe(Object(P.a)(t=>{const e=t.target;return 2!==t.button&&!vn(e,o)&&("inside"===n?vn(e,i)&&wn(e,a):"outside"===n?!vn(e,i):wn(e,a)||!vn(e,i))}),Object(T.a)(s)),h=Object(c.a)(e,"mouseup").pipe(V(u),Object(j.a)(([t,e])=>e),Object(U.a)(0),Object(T.a)(s));p([l.pipe(Object(P.a)(t=>0)),h.pipe(Object(P.a)(t=>1))]).subscribe(e=>t.run(()=>r(e)))},Cn?()=>setTimeout(()=>l(),100):l))}const On=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Sn(t){const e=Array.from(t.querySelectorAll(On)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}const Dn=(t,e,n,r=!1)=>{t.runOutsideAngular(()=>{const t=Object(c.a)(e,"focusin").pipe(Object(T.a)(n),Object(P.a)(t=>t.target));Object(c.a)(e,"keydown").pipe(Object(T.a)(n),Object(j.a)(t=>t.which===gn.Tab),V(t)).subscribe(([t,n])=>{const[r,s]=Sn(e);n!==r&&n!==e||!t.shiftKey||(s.focus(),t.preventDefault()),n!==s||t.shiftKey||(r.focus(),t.preventDefault())}),r&&Object(c.a)(e,"click").pipe(Object(T.a)(n),V(t),Object(P.a)(t=>t[1])).subscribe(t=>t.focus())})},xn=/\s+/,An=new class{getAllStyles(t){return window.getComputedStyle(t)}getStyle(t,e){return this.getAllStyles(t)[e]}isStaticPositioned(t){return"static"===(this.getStyle(t,"position")||"static")}offsetParent(t){let e=t.offsetParent||document.documentElement;for(;e&&e!==document.documentElement&&this.isStaticPositioned(e);)e=e.offsetParent;return e||document.documentElement}position(t,e=!0){let n,r={width:0,height:0,top:0,bottom:0,left:0,right:0};if("fixed"===this.getStyle(t,"position"))n=t.getBoundingClientRect(),n={top:n.top,bottom:n.bottom,left:n.left,right:n.right,height:n.height,width:n.width};else{const e=this.offsetParent(t);n=this.offset(t,!1),e!==document.documentElement&&(r=this.offset(e,!1)),r.top+=e.clientTop,r.left+=e.clientLeft}return n.top-=r.top,n.bottom-=r.top,n.left-=r.left,n.right-=r.left,e&&(n.top=Math.round(n.top),n.bottom=Math.round(n.bottom),n.left=Math.round(n.left),n.right=Math.round(n.right)),n}offset(t,e=!0){const n=t.getBoundingClientRect(),r=window.pageYOffset-document.documentElement.clientTop,s=window.pageXOffset-document.documentElement.clientLeft;let i={height:n.height||t.offsetHeight,width:n.width||t.offsetWidth,top:n.top+r,bottom:n.bottom+r,left:n.left+s,right:n.right+s};return e&&(i.height=Math.round(i.height),i.width=Math.round(i.width),i.top=Math.round(i.top),i.bottom=Math.round(i.bottom),i.left=Math.round(i.left),i.right=Math.round(i.right)),i}positionElements(t,e,n,r){const[s="top",i="center"]=n.split("-"),o=r?this.offset(t,!1):this.position(t,!1),a=this.getAllStyles(e),c=parseFloat(a.marginTop),l=parseFloat(a.marginBottom),u=parseFloat(a.marginLeft),h=parseFloat(a.marginRight);let d=0,f=0;switch(s){case"top":d=o.top-(e.offsetHeight+c+l);break;case"bottom":d=o.top+o.height;break;case"left":f=o.left-(e.offsetWidth+u+h);break;case"right":f=o.left+o.width}switch(i){case"top":d=o.top;break;case"bottom":d=o.top+o.height-e.offsetHeight;break;case"left":f=o.left;break;case"right":f=o.left+o.width-e.offsetWidth;break;case"center":"top"===s||"bottom"===s?f=o.left+o.width/2-e.offsetWidth/2:d=o.top+o.height/2-e.offsetHeight/2}e.style.transform=`translate(${Math.round(f)}px, ${Math.round(d)}px)`;const p=e.getBoundingClientRect(),m=document.documentElement,g=window.innerHeight||m.clientHeight,b=window.innerWidth||m.clientWidth;return p.left>=0&&p.top>=0&&p.right<=b&&p.bottom<=g}};function kn(t,e,n,r,s){let i=Array.isArray(n)?n:n.split(xn);const o=["top","bottom","left","right","top-left","top-right","bottom-left","bottom-right","left-top","left-bottom","right-top","right-bottom"],a=e.classList,c=t=>{const[e,n]=t.split("-"),r=[];return s&&(r.push(`${s}-${e}`),n&&r.push(`${s}-${e}-${n}`),r.forEach(t=>{a.add(t)})),r};s&&o.forEach(t=>{a.remove(`${s}-${t}`)});let l=i.findIndex(t=>"auto"===t);l>=0&&o.forEach(function(t){null==i.find(e=>-1!==e.search("^"+t))&&i.splice(l++,1,t)});const u=e.style;u.position="absolute",u.top="0",u.left="0",u["will-change"]="transform";let h=null,d=!1;for(h of i){let n=c(h);if(An.positionElements(t,e,h,r)){d=!0;break}s&&n.forEach(t=>{a.remove(t)})}return d||(h=i[0],c(h),An.positionElements(t,e,h,r)),h}function Tn(){return new In}let jn=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:Tn,token:t,providedIn:"root"}),t})(),In=(()=>{class t extends jn{parse(t){if(null!=t){const e=t.trim().split("-");if(1===e.length&&le(e[0]))return{year:ie(e[0]),month:null,day:null};if(2===e.length&&le(e[0])&&le(e[1]))return{year:ie(e[0]),month:ie(e[1]),day:null};if(3===e.length&&le(e[0])&&le(e[1])&&le(e[2]))return{year:ie(e[0]),month:ie(e[1]),day:ie(e[2])}}return null}format(t){return t?`${t.year}-${le(t.month)?de(t.month):""}-${le(t.day)?de(t.day):""}`:""}}return t.\u0275fac=function(e){return Pn(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const Pn=r.Rb(In);let Rn=(()=>{class t extends cn{constructor(){super(...arguments),this.autoClose=!0,this.placement=["bottom-left","bottom-right","top-left","top-right"],this.restoreFocus=!0}}return t.\u0275fac=function(e){return Fn(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Fn=r.Rb(Rn),Nn={provide:W.h,useExisting:Object(r.S)(()=>Ln),multi:!0},Mn={provide:W.g,useExisting:Object(r.S)(()=>Ln),multi:!0};let Ln=(()=>{class t{constructor(t,e,n,s,i,o,a,c,l,u,h){this._parserFormatter=t,this._elRef=e,this._vcRef=n,this._renderer=s,this._cfr=i,this._ngZone=o,this._calendar=a,this._dateAdapter=c,this._document=l,this._changeDetector=u,this._cRef=null,this._disabled=!1,this._elWithFocus=null,this._model=null,this.dateSelect=new r.n,this.navigate=new r.n,this.closed=new r.n,this._onChange=t=>{},this._onTouched=()=>{},this._validatorChange=()=>{},["autoClose","container","positionTarget","placement"].forEach(t=>this[t]=h[t]),this._zoneSubscription=o.onStable.subscribe(()=>this._updatePopupPosition())}get disabled(){return this._disabled}set disabled(t){this._disabled=""===t||t&&"false"!==t,this.isOpen()&&this._cRef.instance.setDisabledState(this._disabled)}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}registerOnValidatorChange(t){this._validatorChange=t}setDisabledState(t){this.disabled=t}validate(t){const{value:e}=t;if(null!=e){const t=this._fromDateStruct(this._dateAdapter.fromModel(e));if(!t)return{ngbDate:{invalid:e}};if(this.minDate&&t.before(qe.from(this.minDate)))return{ngbDate:{minDate:{minDate:this.minDate,actual:e}}};if(this.maxDate&&t.after(qe.from(this.maxDate)))return{ngbDate:{maxDate:{maxDate:this.maxDate,actual:e}}}}return null}writeValue(t){this._model=this._fromDateStruct(this._dateAdapter.fromModel(t)),this._writeModelValue(this._model)}manualDateChange(t,e=!1){const n=t!==this._inputValue;n&&(this._inputValue=t,this._model=this._fromDateStruct(this._parserFormatter.parse(t))),!n&&e||this._onChange(this._model?this._dateAdapter.toModel(this._model):""===t?null:t),e&&this._model&&this._writeModelValue(this._model)}isOpen(){return!!this._cRef}open(){if(!this.isOpen()){const t=this._cfr.resolveComponentFactory(mn);this._cRef=this._vcRef.createComponent(t),this._applyPopupStyling(this._cRef.location.nativeElement),this._applyDatepickerInputs(this._cRef.instance),this._subscribeForDatepickerOutputs(this._cRef.instance),this._cRef.instance.ngOnInit(),this._cRef.instance.writeValue(this._dateAdapter.toModel(this._model)),this._cRef.instance.registerOnChange(t=>{this.writeValue(t),this._onChange(t),this._onTouched()}),this._cRef.changeDetectorRef.detectChanges(),this._cRef.instance.setDisabledState(this.disabled),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._cRef.location.nativeElement),this._elWithFocus=this._document.activeElement,Dn(this._ngZone,this._cRef.location.nativeElement,this.closed,!0),this._cRef.instance.focus(),En(this._ngZone,this._document,this.autoClose,()=>this.close(),this.closed,[],[this._elRef.nativeElement,this._cRef.location.nativeElement])}}close(){if(this.isOpen()){this._vcRef.remove(this._vcRef.indexOf(this._cRef.hostView)),this._cRef=null,this.closed.emit(),this._changeDetector.markForCheck();let t=this._elWithFocus;ce(this.restoreFocus)?t=this._document.querySelector(this.restoreFocus):void 0!==this.restoreFocus&&(t=this.restoreFocus),t&&t.focus?t.focus():this._document.body.focus()}}toggle(){this.isOpen()?this.close():this.open()}navigateTo(t){this.isOpen()&&this._cRef.instance.navigateTo(t)}onBlur(){this._onTouched()}onFocus(){this._elWithFocus=this._elRef.nativeElement}ngOnChanges(t){(t.minDate||t.maxDate)&&(this._validatorChange(),this.isOpen()&&(t.minDate&&(this._cRef.instance.minDate=this.minDate),t.maxDate&&(this._cRef.instance.maxDate=this.maxDate),this._cRef.instance.ngOnChanges(t)))}ngOnDestroy(){this.close(),this._zoneSubscription.unsubscribe()}_applyDatepickerInputs(t){["dayTemplate","dayTemplateData","displayMonths","firstDayOfWeek","footerTemplate","markDisabled","minDate","maxDate","navigation","outsideDays","showNavigation","showWeekdays","showWeekNumbers"].forEach(e=>{void 0!==this[e]&&(t[e]=this[e])}),t.startDate=this.startDate||this._model}_applyPopupStyling(t){this._renderer.addClass(t,"dropdown-menu"),this._renderer.addClass(t,"show"),"body"===this.container&&this._renderer.addClass(t,"ngb-dp-body")}_subscribeForDatepickerOutputs(t){t.navigate.subscribe(t=>this.navigate.emit(t)),t.dateSelect.subscribe(t=>{this.dateSelect.emit(t),!0!==this.autoClose&&"inside"!==this.autoClose||this.close()})}_writeModelValue(t){const e=this._parserFormatter.format(t);this._inputValue=e,this._renderer.setProperty(this._elRef.nativeElement,"value",e),this.isOpen()&&(this._cRef.instance.writeValue(this._dateAdapter.toModel(t)),this._onTouched())}_fromDateStruct(t){const e=t?new qe(t.year,t.month,t.day):null;return this._calendar.isValid(e)?e:null}_updatePopupPosition(){if(!this._cRef)return;let t;if(t=ce(this.positionTarget)?this._document.querySelector(this.positionTarget):this.positionTarget instanceof HTMLElement?this.positionTarget:this._elRef.nativeElement,this.positionTarget&&!t)throw new Error("ngbDatepicker could not find element declared in [positionTarget] to position against.");kn(t,this._cRef.location.nativeElement,this.placement,"body"===this.container)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(jn),r.Kb(r.l),r.Kb(r.O),r.Kb(r.D),r.Kb(r.j),r.Kb(r.z),r.Kb(Qe),r.Kb(un),r.Kb(s.c),r.Kb(r.h),r.Kb(Rn))},t.\u0275dir=r.Fb({type:t,selectors:[["input","ngbDatepicker",""]],hostVars:1,hostBindings:function(t,e){1&t&&r.ac("input",function(t){return e.manualDateChange(t.target.value)})("change",function(t){return e.manualDateChange(t.target.value,!0)})("focus",function(){return e.onFocus()})("blur",function(){return e.onBlur()}),2&t&&r.Sb("disabled",e.disabled)},inputs:{disabled:"disabled",autoClose:"autoClose",dayTemplate:"dayTemplate",dayTemplateData:"dayTemplateData",displayMonths:"displayMonths",firstDayOfWeek:"firstDayOfWeek",footerTemplate:"footerTemplate",markDisabled:"markDisabled",minDate:"minDate",maxDate:"maxDate",navigation:"navigation",outsideDays:"outsideDays",placement:"placement",restoreFocus:"restoreFocus",showWeekdays:"showWeekdays",showWeekNumbers:"showWeekNumbers",startDate:"startDate",container:"container",positionTarget:"positionTarget"},outputs:{dateSelect:"dateSelect",navigate:"navigate",closed:"closed"},exportAs:["ngbDatepicker"],features:[r.wb([Nn,Mn,{provide:cn,useExisting:Rn}]),r.vb]}),t})(),Vn=(()=>{class t{constructor(t){this.i18n=t}isMuted(){return!this.selected&&(this.date.month!==this.currentMonth||this.disabled)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(rn))},t.\u0275cmp=r.Eb({type:t,selectors:[["","ngbDatepickerDayView",""]],hostAttrs:[1,"btn-light"],hostVars:10,hostBindings:function(t,e){2&t&&r.Cb("bg-primary",e.selected)("text-white",e.selected)("text-muted",e.isMuted())("outside",e.isMuted())("active",e.focused)},inputs:{currentMonth:"currentMonth",date:"date",disabled:"disabled",focused:"focused",selected:"selected"},attrs:Dt,decls:1,vars:1,template:function(t,e){1&t&&r.Ac(0),2&t&&r.Bc(e.i18n.getDayNumerals(e.date))},styles:["[ngbDatepickerDayView]{background:transparent;border-radius:.25rem;height:2rem;line-height:2rem;text-align:center;width:2rem}[ngbDatepickerDayView].outside{opacity:.5}"],encapsulation:2,changeDetection:0}),t})(),Bn=(()=>{class t{constructor(t,e){this.i18n=t,this._renderer=e,this.select=new r.n,this._month=-1,this._year=-1}changeMonth(t){this.select.emit(new qe(this.date.year,ie(t),1))}changeYear(t){this.select.emit(new qe(ie(t),this.date.month,1))}ngAfterViewChecked(){this.date&&(this.date.month!==this._month&&(this._month=this.date.month,this._renderer.setProperty(this.monthSelect.nativeElement,"value",this._month)),this.date.year!==this._year&&(this._year=this.date.year,this._renderer.setProperty(this.yearSelect.nativeElement,"value",this._year)))}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(rn),r.Kb(r.D))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-datepicker-navigation-select"]],viewQuery:function(t,e){var n;1&t&&(r.wc(xt,!0,r.l),r.wc(At,!0,r.l)),2&t&&(r.qc(n=r.bc())&&(e.monthSelect=n.first),r.qc(n=r.bc())&&(e.yearSelect=n.first))},inputs:{date:"date",disabled:"disabled",months:"months",years:"years"},outputs:{select:"select"},decls:14,vars:4,consts:function(){return[[1,"custom-select",3,"disabled","change",6,"aria-label","title"],["month",""],["aria-label",$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`,"title",$localize`:@@ngb.datepicker.select-month␟1dbc84807f35518112f62e5775d1daebd3d8462b␟2253869508135064750:Select month`],[3,"value",4,"ngFor","ngForOf"],["year",""],["aria-label",$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`,"title",$localize`:@@ngb.datepicker.select-year␟8ceb09d002bf0c5d1cac171dfbffe1805d2b3962␟8852264961585484321:Select year`],[3,"value"]]},template:function(t,e){1&t&&(r.Ac(0,"\n "),r.Pb(1,"select",0,1),r.Vb(3,2),r.ac("change",function(t){return e.changeMonth(t.target.value)}),r.Ac(4,"\n "),r.yc(5,kt,2,3,"option",3),r.Ac(6,"\n "),r.Ob(),r.Pb(7,"select",0,4),r.Vb(9,5),r.ac("change",function(t){return e.changeYear(t.target.value)}),r.Ac(10,"\n "),r.yc(11,Tt,2,2,"option",3),r.Ac(12,"\n "),r.Ob(),r.Ac(13,"\n ")),2&t&&(r.xb(1),r.jc("disabled",e.disabled),r.xb(4),r.jc("ngForOf",e.months),r.xb(2),r.jc("disabled",e.disabled),r.xb(4),r.jc("ngForOf",e.years))},directives:[s.k,W.m,W.p],styles:["ngb-datepicker-navigation-select>.custom-select{-ms-flex:1 1 auto;flex:1 1 auto;font-size:.875rem;height:1.85rem;padding:0 .5rem}ngb-datepicker-navigation-select>.custom-select:focus{z-index:1}ngb-datepicker-navigation-select>.custom-select::-ms-value{background-color:transparent!important}"],encapsulation:2,changeDetection:0}),t})();new Date(1882,10,12),new Date(2174,10,25);let Hn=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b,W.f]]}),t})(),Un=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t,selectors:[["",8,"navbar"]]}),t})(),zn=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})(),$n=(()=>{class t{constructor(t){this.backdrop=!0,this.keyboard=!0,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})();class Kn{constructor(t,e,n){this.nodes=t,this.viewRef=e,this.componentRef=n}}class qn{constructor(t,e,n,r,s,i,o){this._type=t,this._injector=e,this._viewContainerRef=n,this._renderer=r,this._ngZone=s,this._componentFactoryResolver=i,this._applicationRef=o,this._windowRef=null,this._contentRef=null}open(t,e,n=!1){this._windowRef||(this._contentRef=this._getContentRef(t,e),this._windowRef=this._viewContainerRef.createComponent(this._componentFactoryResolver.resolveComponentFactory(this._type),this._viewContainerRef.length,this._injector,this._contentRef.nodes));const{nativeElement:r}=this._windowRef.location,s=this._ngZone.onStable.asObservable().pipe(Object(I.a)(1)).pipe(Object(z.a)(()=>we(r,({classList:t})=>t.add("show"),{animation:n,runningTransition:"continue"})));return{windowRef:this._windowRef,transition$:s}}close(t=!1){return this._windowRef?we(this._windowRef.location.nativeElement,({classList:t})=>t.remove("show"),{animation:t,runningTransition:"stop"}).pipe(Object(L.a)(()=>{var t;this._windowRef&&(this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._windowRef.hostView)),this._windowRef=null),(null===(t=this._contentRef)||void 0===t?void 0:t.viewRef)&&(this._applicationRef.detachView(this._contentRef.viewRef),this._contentRef.viewRef.destroy(),this._contentRef=null)})):Object(o.a)(void 0)}_getContentRef(t,e){if(t){if(t instanceof r.K){const n=t.createEmbeddedView(e);return this._applicationRef.attachView(n),new Kn([n.rootNodes],n)}return new Kn([[this._renderer.createText(""+t)]])}return new Kn([])}}const Wn=()=>{};let Gn=(()=>{class t{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):Wn}_adjustBody(t){const e=this._document.body,n=e.style.paddingRight,r=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=r+t+"px",()=>e.style["padding-right"]=n}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),n}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.c))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(s.c))},token:t,providedIn:"root"}),t})(),Xn=(()=>{class t{constructor(t,e){this._el=t,this._zone=e}ngOnInit(){this._zone.onStable.asObservable().pipe(Object(I.a)(1)).subscribe(()=>{we(this._el.nativeElement,({classList:t})=>t.add("show"),{animation:this.animation,runningTransition:"continue"})})}hide(){return we(this._el.nativeElement,({classList:t})=>t.remove("show"),{animation:this.animation,runningTransition:"stop"})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(r.z))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:6,hostBindings:function(t,e){2&t&&(r.zb("modal-backdrop"+(e.backdropClass?" "+e.backdropClass:"")),r.Cb("show",!e.animation)("fade",e.animation))},inputs:{animation:"animation",backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class Qn{close(t){}dismiss(t){}}class Zn{constructor(t,e,n,r){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=n,this._beforeDismiss=r,this._closed=new a.a,this._dismissed=new a.a,this._hidden=new a.a,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}get closed(){return this._closed.asObservable().pipe(Object(T.a)(this._hidden))}get dismissed(){return this._dismissed.asObservable().pipe(Object(T.a)(this._hidden))}get hidden(){return this._hidden.asObservable()}get shown(){return this._windowCmptRef.instance.shown.asObservable()}close(t){this._windowCmptRef&&(this._closed.next(t),this._resolve(t),this._removeModalElements())}_dismiss(t){this._dismissed.next(t),this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.instance.hide(),e=this._backdropCmptRef?this._backdropCmptRef.instance.hide():Object(o.a)(void 0);t.subscribe(()=>{const{nativeElement:t}=this._windowCmptRef.location;t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._contentRef=null}),e.subscribe(()=>{if(this._backdropCmptRef){const{nativeElement:t}=this._backdropCmptRef.location;t.parentNode.removeChild(t),this._backdropCmptRef.destroy(),this._backdropCmptRef=null}}),w(t,e).subscribe(()=>{this._hidden.next(),this._hidden.complete()})}}var Yn=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let Jn=(()=>{class t{constructor(t,e,n){this._document=t,this._elRef=e,this._zone=n,this._closed$=new a.a,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new r.n,this.shown=new a.a,this.hidden=new a.a}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){this._show()}ngOnDestroy(){this._disableEventHandling()}hide(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"stop"},n=w(we(t,()=>t.classList.remove("show"),e),we(this._dialogEl.nativeElement,()=>{},e));return n.subscribe(()=>{this.hidden.next(),this.hidden.complete()}),this._disableEventHandling(),this._restoreFocus(),n}_show(){const{nativeElement:t}=this._elRef,e={animation:this.animation,runningTransition:"continue"};w(we(t,()=>t.classList.add("show"),e),we(this._dialogEl.nativeElement,()=>{},e)).subscribe(()=>{this.shown.next(),this.shown.complete()}),this._enableEventHandling(),this._setFocus()}_enableEventHandling(){const{nativeElement:t}=this._elRef;this._zone.runOutsideAngular(()=>{Object(c.a)(t,"keydown").pipe(Object(T.a)(this._closed$),Object(j.a)(t=>t.which===gn.Escape)).subscribe(t=>{this.keyboard?requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(Yn.ESC))}):"static"===this.backdrop&&this._bumpBackdrop()});let e=!1;Object(c.a)(this._dialogEl.nativeElement,"mousedown").pipe(Object(T.a)(this._closed$),Object(L.a)(()=>e=!1),Object(M.a)(()=>Object(c.a)(t,"mouseup").pipe(Object(T.a)(this._closed$),Object(I.a)(1))),Object(j.a)(({target:e})=>t===e)).subscribe(()=>{e=!0}),Object(c.a)(t,"click").pipe(Object(T.a)(this._closed$)).subscribe(({target:n})=>{t===n&&("static"===this.backdrop?this._bumpBackdrop():!0!==this.backdrop||e||this._zone.run(()=>this.dismiss(Yn.BACKDROP_CLICK))),e=!1})})}_disableEventHandling(){this._closed$.next()}_setFocus(){const{nativeElement:t}=this._elRef;if(!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),n=Sn(t)[0];(e||n||t).focus()}}_restoreFocus(){const t=this._document.body,e=this._elWithFocus;let n;n=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>n.focus()),this._elWithFocus=null})}_bumpBackdrop(){"static"===this.backdrop&&we(this._elRef.nativeElement,({classList:t})=>(t.add("modal-static"),()=>t.remove("modal-static")),{animation:this.animation,runningTransition:"continue"})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(s.c),r.Kb(r.l),r.Kb(r.z))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var n;1&t&&r.wc(jt,!0),2&t&&r.qc(n=r.bc())&&(e._dialogEl=n.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:7,hostBindings:function(t,e){2&t&&(r.yb("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),r.zb("modal d-block"+(e.windowClass?" "+e.windowClass:"")),r.Cb("fade",e.animation))},inputs:{backdrop:"backdrop",keyboard:"keyboard",animation:"animation",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:nt,decls:8,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(r.ic(),r.Ac(0,"\n "),r.Pb(1,"div",0,1),r.Ac(3,"\n "),r.Pb(4,"div",2),r.hc(5),r.Ob(),r.Ac(6,"\n "),r.Ob(),r.Ac(7,"\n ")),2&t&&(r.xb(1),r.zb("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":"")))},styles:["ngb-modal-window .component-host-scrollable{-ms-flex-direction:column;display:-ms-flexbox;display:flex;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),tr=(()=>{class t{constructor(t,e,n,s,i,o){this._applicationRef=t,this._injector=e,this._document=n,this._scrollBar=s,this._rendererFactory=i,this._ngZone=o,this._activeWindowCmptHasChanged=new a.a,this._ariaHiddenValues=new Map,this._backdropAttributes=["animation","backdropClass"],this._modalRefs=[],this._windowAttributes=["animation","ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new r.n,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];Dn(this._ngZone,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,n,r){const s=r.container instanceof HTMLElement?r.container:he(r.container)?this._document.querySelector(r.container):this._document.body,i=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(i.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!s)throw new Error(`The specified modal container "${r.container||"body"}" was not found in the DOM.`);const c=new Qn,l=this._getContentRef(t,r.injector||e,n,c,r);let u=!1!==r.backdrop?this._attachBackdrop(t,s):void 0,h=this._attachWindowComponent(t,s,l),d=new Zn(h,l,u,r.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(h),d.result.then(o,o),d.result.then(a,a),c.close=t=>{d.close(t)},c.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(h.instance,r),1===this._modalRefs.length&&i.addClass(this._document.body,"modal-open"),u&&u.instance&&this._applyBackdropOptions(u.instance,r),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let n=t.resolveComponentFactory(Xn).create(this._injector);return this._applicationRef.attachView(n.hostView),e.appendChild(n.location.nativeElement),n}_attachWindowComponent(t,e,n){let r=t.resolveComponentFactory(Jn).create(this._injector,n.nodes);return this._applicationRef.attachView(r.hostView),e.appendChild(r.location.nativeElement),r}_applyWindowOptions(t,e){this._windowAttributes.forEach(n=>{he(e[n])&&(t[n]=e[n])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(n=>{he(e[n])&&(t[n]=e[n])})}_getContentRef(t,e,n,s,i){return n?n instanceof r.K?this._createFromTemplateRef(n,s):ce(n)?this._createFromString(n):this._createFromComponent(t,e,n,s,i):new Kn([])}_createFromTemplateRef(t,e){const n=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(n),new Kn([n.rootNodes],n)}_createFromString(t){const e=this._document.createTextNode(""+t);return new Kn([[e]])}_createFromComponent(t,e,n,s,i){const o=t.resolveComponentFactory(n),a=r.r.create({providers:[{provide:Qn,useValue:s}],parent:e}),c=o.create(a),l=c.location.nativeElement;return i.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(c.hostView),new Kn([[l]],c.hostView,c)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.g),r.Xb(r.r),r.Xb(s.c),r.Xb(Gn),r.Xb(r.E),r.Xb(r.z))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(r.g),Object(r.Xb)(r.o),Object(r.Xb)(s.c),Object(r.Xb)(Gn),Object(r.Xb)(r.E),Object(r.Xb)(r.z))},token:t,providedIn:"root"}),t})(),er=(()=>{class t{constructor(t,e,n,r){this._moduleCFR=t,this._injector=e,this._modalStack=n,this._config=r}open(t,e={}){const n=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,n)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.j),r.Xb(r.r),r.Xb(tr),r.Xb($n))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(r.j),Object(r.Xb)(r.o),Object(r.Xb)(tr),Object(r.Xb)($n))},token:t,providedIn:"root"}),t})(),nr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[er]}),t})(),rr=(()=>{class t{constructor(t){this.destroyOnHide=!0,this.orientation="horizontal",this.roles="tablist",this.keyboard=!1,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})();const sr=t=>he(t)&&""!==t;let ir=0,or=(()=>{class t{constructor(t){this.templateRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["ng-template","ngbNavContent",""]]}),t})(),ar=(()=>{class t{constructor(t,e){this.elementRef=e,this.disabled=!1,this.shown=new r.n,this.hidden=new r.n,this._nav=t}ngAfterContentChecked(){this.contentTpl=this.contentTpls.first}ngOnInit(){he(this.domId)||(this.domId="ngb-nav-"+ir++)}get active(){return this._nav.activeId===this.id}get id(){return sr(this._id)?this._id:this.domId}get panelDomId(){return this.domId+"-panel"}isPanelInDom(){return(he(this.destroyOnHide)?!this.destroyOnHide:!this._nav.destroyOnHide)||this.active}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(Object(r.S)(()=>cr)),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbNavItem",""]],contentQueries:function(t,e,n){var s;1&t&&r.Db(n,or,!1),2&t&&r.qc(s=r.bc())&&(e.contentTpls=s)},hostVars:2,hostBindings:function(t,e){2&t&&r.Cb("nav-item",!0)},inputs:{disabled:"disabled",domId:"domId",destroyOnHide:"destroyOnHide",_id:["ngbNavItem","_id"]},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbNavItem"]}),t})(),cr=(()=>{class t{constructor(t,e,n,s){this.role=t,this._cd=n,this._document=s,this.activeIdChange=new r.n,this.shown=new r.n,this.hidden=new r.n,this.navItemChange$=new a.a,this.navChange=new r.n,this.animation=e.animation,this.destroyOnHide=e.destroyOnHide,this.orientation=e.orientation,this.roles=e.roles,this.keyboard=e.keyboard}click(t){t.disabled||this._updateActiveId(t.id)}onKeyDown(t){if("tablist"!==this.roles||!this.keyboard)return;const e=t.which,n=this.links.filter(t=>!t.navItem.disabled),{length:r}=n;let s=-1;if(n.forEach((t,e)=>{t.elRef.nativeElement===this._document.activeElement&&(s=e)}),r){switch(e){case gn.ArrowLeft:if("vertical"===this.orientation)return;s=(s-1+r)%r;break;case gn.ArrowRight:if("vertical"===this.orientation)return;s=(s+1)%r;break;case gn.ArrowDown:if("horizontal"===this.orientation)return;s=(s+1)%r;break;case gn.ArrowUp:if("horizontal"===this.orientation)return;s=(s-1+r)%r;break;case gn.Home:s=0;break;case gn.End:s=r-1}"changeWithArrows"===this.keyboard&&this.select(n[s].navItem.id),n[s].elRef.nativeElement.focus(),t.preventDefault()}}select(t){this._updateActiveId(t,!1)}ngAfterContentInit(){if(!he(this.activeId)){const t=this.items.first?this.items.first.id:null;sr(t)&&(this._updateActiveId(t,!1),this._cd.detectChanges())}}ngOnChanges({activeId:t}){t&&!t.firstChange&&this._notifyItemChanged(t.currentValue)}_updateActiveId(t,e=!0){if(this.activeId!==t){let n=!1;e&&this.navChange.emit({activeId:this.activeId,nextId:t,preventDefault:()=>{n=!0}}),n||(this.activeId=t,this.activeIdChange.emit(t),this._notifyItemChanged(t))}}_notifyItemChanged(t){this.navItemChange$.next(this._getItemById(t))}_getItemById(t){return this.items&&this.items.find(e=>e.id===t)||null}}return t.\u0275fac=function(e){return new(e||t)(r.Yb("role"),r.Kb(rr),r.Kb(r.h),r.Kb(s.c))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbNav",""]],contentQueries:function(t,e,n){var s;1&t&&(r.Db(n,ar,!1),r.Db(n,lr,!0)),2&t&&(r.qc(s=r.bc())&&(e.items=s),r.qc(s=r.bc())&&(e.links=s))},hostVars:6,hostBindings:function(t,e){1&t&&r.ac("keydown.arrowLeft",function(t){return e.onKeyDown(t)})("keydown.arrowRight",function(t){return e.onKeyDown(t)})("keydown.arrowDown",function(t){return e.onKeyDown(t)})("keydown.arrowUp",function(t){return e.onKeyDown(t)})("keydown.Home",function(t){return e.onKeyDown(t)})("keydown.End",function(t){return e.onKeyDown(t)}),2&t&&(r.yb("aria-orientation","vertical"===e.orientation&&"tablist"===e.roles?"vertical":void 0)("role",e.role?e.role:e.roles?"tablist":void 0),r.Cb("nav",!0)("flex-column","vertical"===e.orientation))},inputs:{animation:"animation",destroyOnHide:"destroyOnHide",orientation:"orientation",roles:"roles",keyboard:"keyboard",activeId:"activeId"},outputs:{activeIdChange:"activeIdChange",shown:"shown",hidden:"hidden",navChange:"navChange"},exportAs:["ngbNav"],features:[r.vb]}),t})(),lr=(()=>{class t{constructor(t,e,n,r){this.role=t,this.navItem=e,this.nav=n,this.elRef=r}hasNavItemClass(){return this.navItem.elementRef.nativeElement.nodeType===Node.COMMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(r.Yb("role"),r.Kb(ar),r.Kb(cr),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["a","ngbNavLink",""]],hostAttrs:["href",""],hostVars:14,hostBindings:function(t,e){1&t&&r.ac("click",function(t){return e.nav.click(e.navItem),t.preventDefault()}),2&t&&(r.Sb("id",e.navItem.domId),r.yb("role",e.role?e.role:e.nav.roles?"tab":void 0)("tabindex",e.navItem.disabled?-1:void 0)("aria-controls",e.navItem.isPanelInDom()?e.navItem.panelDomId:null)("aria-selected",e.navItem.active)("aria-disabled",e.navItem.disabled),r.Cb("nav-link",!0)("nav-item",e.hasNavItemClass())("active",e.navItem.active)("disabled",e.navItem.disabled))}}),t})();const ur=({classList:t})=>(t.remove("show"),()=>t.remove("active")),hr=t=>{t.classList.add("active"),pe(t),t.classList.add("show")},dr=t=>{t.classList.add("active"),t.classList.add("show")};let fr=(()=>{class t{constructor(t){this.elRef=t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbNavPane",""]],hostAttrs:[1,"tab-pane"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Sb("id",e.item.panelDomId),r.yb("role",e.role?e.role:e.nav.roles?"tabpanel":void 0)("aria-labelledby",e.item.domId),r.Cb("fade",e.nav.animation))},inputs:{item:"item",nav:"nav",role:"role"}}),t})(),pr=(()=>{class t{constructor(t){this._cd=t,this._activePane=null}isPanelTransitioning(t){var e;return(null===(e=this._activePane)||void 0===e?void 0:e.item)===t}ngAfterViewInit(){var t,e,n;this._activePane=this._getActivePane(),null===(t=this._activePane)||void 0===t||t.elRef.nativeElement.classList.add("show"),null===(e=this._activePane)||void 0===e||e.elRef.nativeElement.classList.add("active"),this.nav.navItemChange$.pipe(Object(R.a)((null===(n=this._activePane)||void 0===n?void 0:n.item)||null),t=>t.lift(new F(undefined,undefined)),t=>t.lift(new $(1))).subscribe(t=>{const e={animation:this.nav.animation,runningTransition:"stop"};this._activePane&&we(this._activePane.elRef.nativeElement,ur,e).subscribe(()=>{var n;const r=null===(n=this._activePane)||void 0===n?void 0:n.item;this._cd.detectChanges(),this._activePane=this._getPaneForItem(t),this._activePane&&we(this._activePane.elRef.nativeElement,this.nav.animation?hr:dr,e).subscribe(()=>{t&&(t.shown.emit(),this.nav.shown.emit(t.id))}),r&&(r.hidden.emit(),this.nav.hidden.emit(r.id))})})}_getPaneForItem(t){return this._panes&&this._panes.find(e=>e.item===t)||null}_getActivePane(){return this._panes&&this._panes.find(t=>t.item.active)||null}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.h))},t.\u0275cmp=r.Eb({type:t,selectors:[["","ngbNavOutlet",""]],viewQuery:function(t,e){var n;1&t&&r.Ec(fr,!0),2&t&&r.qc(n=r.bc())&&(e._panes=n)},hostVars:2,hostBindings:function(t,e){2&t&&r.Cb("tab-content",!0)},inputs:{paneRole:"paneRole",nav:["ngbNavOutlet","nav"]},attrs:It,decls:3,vars:1,consts:[["ngFor","",3,"ngForOf"],["ngbNavPane","",3,"item","nav","role",4,"ngIf"],["ngbNavPane","",3,"item","nav","role"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(r.Ac(0,"\n "),r.yc(1,Nt,3,1,"ng-template",0),r.Ac(2,"\n ")),2&t&&(r.xb(1),r.jc("ngForOf",e.nav.items))},directives:[s.k,s.l,fr,s.m],encapsulation:2}),t})(),mr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),gr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})();class br{constructor(t,e){this.open=t,this.close=e,e||(this.close=t)}isManual(){return"manual"===this.open||"manual"===this.close}}const yr={hover:["mouseenter","mouseleave"],focus:["focusin","focusout"]},_r=t=>t>0?Object(U.a)(t):t=>t;let vr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),wr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),Cr=(()=>{class t{constructor(){this.max=10,this.readonly=!1,this.resettable=!1}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Er={provide:W.h,useExisting:Object(r.S)(()=>Or),multi:!0};let Or=(()=>{class t{constructor(t,e){this._changeDetectorRef=e,this.contexts=[],this.disabled=!1,this.hover=new r.n,this.leave=new r.n,this.rateChange=new r.n(!0),this.onChange=t=>{},this.onTouched=()=>{},this.max=t.max,this.readonly=t.readonly}ariaValueText(){return`${this.nextRate} out of ${this.max}`}isInteractive(){return!this.readonly&&!this.disabled}enter(t){this.isInteractive()&&this._updateState(t),this.hover.emit(t)}handleBlur(){this.onTouched()}handleClick(t){this.isInteractive()&&this.update(this.resettable&&this.rate===t?0:t)}handleKeyDown(t){switch(t.which){case gn.ArrowDown:case gn.ArrowLeft:this.update(this.rate-1);break;case gn.ArrowUp:case gn.ArrowRight:this.update(this.rate+1);break;case gn.Home:this.update(0);break;case gn.End:this.update(this.max);break;default:return}t.preventDefault()}ngOnChanges(t){t.rate&&this.update(this.rate)}ngOnInit(){this.contexts=Array.from({length:this.max},(t,e)=>({fill:0,index:e})),this._updateState(this.rate)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}reset(){this.leave.emit(this.nextRate),this._updateState(this.rate)}setDisabledState(t){this.disabled=t}update(t,e=!0){const n=ae(t,this.max,0);this.isInteractive()&&this.rate!==n&&(this.rate=n,this.rateChange.emit(this.rate)),e&&(this.onChange(this.rate),this.onTouched()),this._updateState(this.rate)}writeValue(t){this.update(t,!1),this._changeDetectorRef.markForCheck()}_updateState(t){this.nextRate=t,this.contexts.forEach((e,n)=>e.fill=Math.round(100*ae(t-n,1,0)))}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(Cr),r.Kb(r.h))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-rating"]],contentQueries:function(t,e,n){var s;1&t&&r.Db(n,r.K,!0),2&t&&r.qc(s=r.bc())&&(e.starTemplateFromContent=s.first)},hostAttrs:["role","slider","aria-valuemin","0",1,"d-inline-flex"],hostVars:5,hostBindings:function(t,e){1&t&&r.ac("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)})("mouseleave",function(){return e.reset()}),2&t&&(r.Sb("tabindex",e.disabled?-1:0),r.yb("aria-valuemax",e.max)("aria-valuenow",e.nextRate)("aria-valuetext",e.ariaValueText())("aria-disabled",!!e.readonly||null))},inputs:{max:"max",readonly:"readonly",rate:"rate",resettable:"resettable",starTemplate:"starTemplate"},outputs:{hover:"hover",leave:"leave",rateChange:"rateChange"},features:[r.wb([Er]),r.vb],decls:6,vars:1,consts:[["t",""],["ngFor","",3,"ngForOf"],[1,"sr-only"],[3,"mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(r.Ac(0,"\n "),r.yc(1,Mt,1,1,"ng-template",null,0,r.zc),r.Ac(3,"\n "),r.yc(4,Vt,9,5,"ng-template",1),r.Ac(5,"\n ")),2&t&&(r.xb(4),r.jc("ngForOf",e.contexts))},directives:[s.k,s.m],encapsulation:2,changeDetection:0}),t})(),Sr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})();class Dr{constructor(t,e,n){this.hour=ie(t),this.minute=ie(e),this.second=ie(n)}changeHour(t=1){this.updateHour((isNaN(this.hour)?0:this.hour)+t)}updateHour(t){this.hour=le(t)?(t<0?24+t:t)%24:NaN}changeMinute(t=1){this.updateMinute((isNaN(this.minute)?0:this.minute)+t)}updateMinute(t){le(t)?(this.minute=t%60<0?60+t%60:t%60,this.changeHour(Math.floor(t/60))):this.minute=NaN}changeSecond(t=1){this.updateSecond((isNaN(this.second)?0:this.second)+t)}updateSecond(t){le(t)?(this.second=t<0?60+t%60:t%60,this.changeMinute(Math.floor(t/60))):this.second=NaN}isValid(t=!0){return le(this.hour)&&le(this.minute)&&(!t||le(this.second))}toString(){return`${this.hour||0}:${this.minute||0}:${this.second||0}`}}let xr=(()=>{class t{constructor(){this.meridian=!1,this.spinners=!0,this.seconds=!1,this.hourStep=1,this.minuteStep=1,this.secondStep=1,this.disabled=!1,this.readonlyInputs=!1,this.size="medium"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();function Ar(){return new Tr}let kr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:Ar,token:t,providedIn:"root"}),t})(),Tr=(()=>{class t extends kr{fromModel(t){return t&&ue(t.hour)&&ue(t.minute)?{hour:t.hour,minute:t.minute,second:ue(t.second)?t.second:null}:null}toModel(t){return t&&ue(t.hour)&&ue(t.minute)?{hour:t.hour,minute:t.minute,second:ue(t.second)?t.second:null}:null}}return t.\u0275fac=function(e){return jr(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const jr=r.Rb(Tr);let Ir=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return t=Object(r.Xb)(r.u),new Pr(t);var t},token:t,providedIn:"root"}),t})(),Pr=(()=>{class t extends Ir{constructor(t){super(),this._periods=Object(s.v)(t,s.d.Standalone,s.r.Narrow)}getMorningPeriod(){return this._periods[0]}getAfternoonPeriod(){return this._periods[1]}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.u))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const Rr=/[^0-9]/g,Fr={provide:W.h,useExisting:Object(r.S)(()=>Nr),multi:!0};let Nr=(()=>{class t{constructor(t,e,n,r){this._config=t,this._ngbTimeAdapter=e,this._cd=n,this.i18n=r,this.onChange=t=>{},this.onTouched=()=>{},this.meridian=t.meridian,this.spinners=t.spinners,this.seconds=t.seconds,this.hourStep=t.hourStep,this.minuteStep=t.minuteStep,this.secondStep=t.secondStep,this.disabled=t.disabled,this.readonlyInputs=t.readonlyInputs,this.size=t.size}set hourStep(t){this._hourStep=ue(t)?t:this._config.hourStep}get hourStep(){return this._hourStep}set minuteStep(t){this._minuteStep=ue(t)?t:this._config.minuteStep}get minuteStep(){return this._minuteStep}set secondStep(t){this._secondStep=ue(t)?t:this._config.secondStep}get secondStep(){return this._secondStep}writeValue(t){const e=this._ngbTimeAdapter.fromModel(t);this.model=e?new Dr(e.hour,e.minute,e.second):new Dr,this.seconds||e&&le(e.second)||(this.model.second=0),this._cd.markForCheck()}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}changeHour(t){this.model.changeHour(t),this.propagateModelChange()}changeMinute(t){this.model.changeMinute(t),this.propagateModelChange()}changeSecond(t){this.model.changeSecond(t),this.propagateModelChange()}updateHour(t){const e=this.model.hour>=12,n=ie(t);this.model.updateHour(this.meridian&&(e&&n<12||!e&&12===n)?n+12:n),this.propagateModelChange()}updateMinute(t){this.model.updateMinute(ie(t)),this.propagateModelChange()}updateSecond(t){this.model.updateSecond(ie(t)),this.propagateModelChange()}toggleMeridian(){this.meridian&&this.changeHour(12)}formatInput(t){t.value=t.value.replace(Rr,"")}formatHour(t){return le(t)?de(this.meridian?t%12==0?12:t%12:t%24):de(NaN)}formatMinSec(t){return de(le(t)?t:NaN)}get isSmallSize(){return"small"===this.size}get isLargeSize(){return"large"===this.size}ngOnChanges(t){t.seconds&&!this.seconds&&this.model&&!le(this.model.second)&&(this.model.second=0,this.propagateModelChange(!1))}propagateModelChange(t=!0){t&&this.onTouched(),this.model.isValid(this.seconds)?this.onChange(this._ngbTimeAdapter.toModel({hour:this.model.hour,minute:this.model.minute,second:this.model.second})):this.onChange(this._ngbTimeAdapter.toModel(null))}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(xr),r.Kb(kr),r.Kb(r.h),r.Kb(Ir))},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-timepicker"]],inputs:{meridian:"meridian",spinners:"spinners",seconds:"seconds",hourStep:"hourStep",minuteStep:"minuteStep",secondStep:"secondStep",readonlyInputs:"readonlyInputs",size:"size"},features:[r.wb([Fr]),r.vb],decls:38,vars:25,consts:function(){return[[3,"disabled"],[1,"ngb-tp"],[1,"ngb-tp-input-container","ngb-tp-hour"],["tabindex","-1","type","button","class","btn btn-link",3,"btn-sm","btn-lg","disabled","click",4,"ngIf"],["type","text","maxlength","2","inputmode","numeric",1,"ngb-tp-input","form-control",3,"value","readOnly","disabled","change","input","keydown.ArrowUp","keydown.ArrowDown",6,"placeholder","aria-label"],["placeholder",$localize`:@@ngb.timepicker.HH␟ce676ab1d6d98f85c836381cf100a4a91ef95a1f␟4043638465245303811:HH`,"aria-label",$localize`:@@ngb.timepicker.hours␟3bbce5fef7e1151da052a4e529453edb340e3912␟8070396816726827304:Hours`],[1,"ngb-tp-spacer"],[1,"ngb-tp-input-container","ngb-tp-minute"],["placeholder",$localize`:@@ngb.timepicker.MM␟72c8edf6a50068a05bde70991e36b1e881f4ca54␟1647282246509919852:MM`,"aria-label",$localize`:@@ngb.timepicker.minutes␟41e62daa962947c0d23ded0981975d1bddf0bf38␟5531237363767747080:Minutes`],["class","ngb-tp-spacer",4,"ngIf"],["class","ngb-tp-input-container ngb-tp-second",4,"ngIf"],["class","ngb-tp-meridian",4,"ngIf"],["tabindex","-1","type","button",1,"btn","btn-link",3,"disabled","click"],[1,"chevron","ngb-tp-chevron"],[1,"sr-only"],$localize`:@@ngb.timepicker.increment-hours␟cb74bc1d625a6c1742f0d7d47306cf495780c218␟5939278348542933629:Increment hours`,[1,"chevron","ngb-tp-chevron","bottom"],$localize`:@@ngb.timepicker.decrement-hours␟147c7a19429da7d999e247d22e33fee370b1691b␟3651829882940481818:Decrement hours`,$localize`:@@ngb.timepicker.increment-minutes␟f5a4a3bc05e053f6732475d0e74875ec01c3a348␟180147720391025024:Increment minutes`,$localize`:@@ngb.timepicker.decrement-minutes␟c1a6899e529c096da5b660385d4e77fe1f7ad271␟7447789825403243588:Decrement minutes`,[1,"ngb-tp-input-container","ngb-tp-second"],["placeholder",$localize`:@@ngb.timepicker.SS␟ebe38d36a40a2383c5fefa9b4608ffbda08bd4a3␟3628127143071124194:SS`,"aria-label",$localize`:@@ngb.timepicker.seconds␟4f2ed9e71a7c981db3e50ae2fedb28aff2ec4e6c␟8874012390997067175:Seconds`],$localize`:@@ngb.timepicker.increment-seconds␟912322ecee7d659d04dcf494a70e22e49d334b26␟5364772110539092174:Increment seconds`,$localize`:@@ngb.timepicker.decrement-seconds␟5db47ac104294243a70eb9124fbea9d0004ddf69␟753633511487974857:Decrement seconds`,[1,"ngb-tp-meridian"],["type","button",1,"btn","btn-outline-primary",3,"disabled","click"],[4,"ngIf","ngIfElse"],["am",""],$localize`:@@ngb.timepicker.PM␟8d6e691e10306c1b34c6b26805151aaea320ef7f␟3564199131264287502:${"\ufffd0\ufffd"}:INTERPOLATION:`,$localize`:@@ngb.timepicker.AM␟69a1f176a93998876952adac57c3bc3863b6105e␟4592818992509942761:${"\ufffd0\ufffd"}:INTERPOLATION:`]},template:function(t,e){1&t&&(r.Ac(0,"\n "),r.Pb(1,"fieldset",0),r.Ac(2,"\n "),r.Pb(3,"div",1),r.Ac(4,"\n "),r.Pb(5,"div",2),r.Ac(6,"\n "),r.yc(7,Bt,7,7,"button",3),r.Ac(8,"\n "),r.Pb(9,"input",4),r.Vb(10,5),r.ac("change",function(t){return e.updateHour(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeHour(e.hourStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeHour(-e.hourStep),t.preventDefault()}),r.Ob(),r.Ac(11,"\n "),r.yc(12,Ht,7,7,"button",3),r.Ac(13,"\n "),r.Ob(),r.Ac(14,"\n "),r.Pb(15,"div",6),r.Ac(16,":"),r.Ob(),r.Ac(17,"\n "),r.Pb(18,"div",7),r.Ac(19,"\n "),r.yc(20,Ut,7,7,"button",3),r.Ac(21,"\n "),r.Pb(22,"input",4),r.Vb(23,8),r.ac("change",function(t){return e.updateMinute(t.target.value)})("input",function(t){return e.formatInput(t.target)})("keydown.ArrowUp",function(t){return e.changeMinute(e.minuteStep),t.preventDefault()})("keydown.ArrowDown",function(t){return e.changeMinute(-e.minuteStep),t.preventDefault()}),r.Ob(),r.Ac(24,"\n "),r.yc(25,zt,7,7,"button",3),r.Ac(26,"\n "),r.Ob(),r.Ac(27,"\n "),r.yc(28,$t,2,0,"div",9),r.Ac(29,"\n "),r.yc(30,Wt,9,9,"div",10),r.Ac(31,"\n "),r.yc(32,Gt,1,0,"div",9),r.Ac(33,"\n "),r.yc(34,Zt,10,9,"div",11),r.Ac(35,"\n "),r.Ob(),r.Ac(36,"\n "),r.Ob(),r.Ac(37,"\n ")),2&t&&(r.xb(1),r.Cb("disabled",e.disabled),r.jc("disabled",e.disabled),r.xb(6),r.jc("ngIf",e.spinners),r.xb(2),r.Cb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),r.jc("value",e.formatHour(null==e.model?null:e.model.hour))("readOnly",e.readonlyInputs)("disabled",e.disabled),r.xb(3),r.jc("ngIf",e.spinners),r.xb(8),r.jc("ngIf",e.spinners),r.xb(2),r.Cb("form-control-sm",e.isSmallSize)("form-control-lg",e.isLargeSize),r.jc("value",e.formatMinSec(null==e.model?null:e.model.minute))("readOnly",e.readonlyInputs)("disabled",e.disabled),r.xb(3),r.jc("ngIf",e.spinners),r.xb(3),r.jc("ngIf",e.seconds),r.xb(2),r.jc("ngIf",e.seconds),r.xb(2),r.jc("ngIf",e.meridian),r.xb(2),r.jc("ngIf",e.meridian))},directives:[s.l],styles:['ngb-timepicker{font-size:1rem}.ngb-tp{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.ngb-tp-input-container{width:4em}.ngb-tp-chevron:before{-webkit-transform:rotate(-45deg);border-style:solid;border-width:.29em .29em 0 0;content:"";display:inline-block;height:.69em;left:.05em;position:relative;top:.15em;transform:rotate(-45deg);vertical-align:middle;width:.69em}.ngb-tp-chevron.bottom:before{-webkit-transform:rotate(135deg);top:-.3em;transform:rotate(135deg)}.ngb-tp-input{text-align:center}.ngb-tp-hour,.ngb-tp-meridian,.ngb-tp-minute,.ngb-tp-second{-ms-flex-align:center;-ms-flex-direction:column;-ms-flex-pack:distribute;align-items:center;display:-ms-flexbox;display:flex;flex-direction:column;justify-content:space-around}.ngb-tp-spacer{text-align:center;width:1em}'],encapsulation:2}),t})(),Mr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),Lr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})(),Vr=(()=>{class t{constructor(t){this.autoClose=!0,this.placement="auto",this.triggers="hover focus",this.disableTooltip=!1,this.openDelay=0,this.closeDelay=0,this.animation=t.animation}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(ge))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(ge))},token:t,providedIn:"root"}),t})(),Br=0,Hr=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-tooltip-window"]],hostAttrs:["role","tooltip"],hostVars:5,hostBindings:function(t,e){2&t&&(r.Sb("id",e.id),r.zb("tooltip"+(e.tooltipClass?" "+e.tooltipClass:"")),r.Cb("fade",e.animation))},inputs:{animation:"animation",id:"id",tooltipClass:"tooltipClass"},ngContentSelectors:nt,decls:3,vars:0,consts:[[1,"arrow"],[1,"tooltip-inner"]],template:function(t,e){1&t&&(r.ic(),r.Lb(0,"div",0),r.Pb(1,"div",1),r.hc(2),r.Ob())},styles:["ngb-tooltip-window.bs-tooltip-bottom .arrow,ngb-tooltip-window.bs-tooltip-top .arrow{left:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-bottom-left .arrow,ngb-tooltip-window.bs-tooltip-top-left .arrow{left:1em}ngb-tooltip-window.bs-tooltip-bottom-right .arrow,ngb-tooltip-window.bs-tooltip-top-right .arrow{left:auto;right:.8rem}ngb-tooltip-window.bs-tooltip-left .arrow,ngb-tooltip-window.bs-tooltip-right .arrow{top:calc(50% - .4rem)}ngb-tooltip-window.bs-tooltip-left-top .arrow,ngb-tooltip-window.bs-tooltip-right-top .arrow{top:.4rem}ngb-tooltip-window.bs-tooltip-left-bottom .arrow,ngb-tooltip-window.bs-tooltip-right-bottom .arrow{bottom:.4rem;top:auto}"],encapsulation:2,changeDetection:0}),t})(),Ur=(()=>{class t{constructor(t,e,n,s,i,o,a,c,l,u){this._elementRef=t,this._renderer=e,this._ngZone=a,this._document=c,this._changeDetector=l,this.shown=new r.n,this.hidden=new r.n,this._ngbTooltipWindowId="ngb-tooltip-"+Br++,this._windowRef=null,this.animation=o.animation,this.autoClose=o.autoClose,this.placement=o.placement,this.triggers=o.triggers,this.container=o.container,this.disableTooltip=o.disableTooltip,this.tooltipClass=o.tooltipClass,this.openDelay=o.openDelay,this.closeDelay=o.closeDelay,this._popupService=new qn(Hr,n,i,e,this._ngZone,s,u),this._zoneSubscription=a.onStable.subscribe(()=>{this._windowRef&&kn(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container,"bs-tooltip")})}set ngbTooltip(t){this._ngbTooltip=t,!t&&this._windowRef&&this.close()}get ngbTooltip(){return this._ngbTooltip}open(t){if(!this._windowRef&&this._ngbTooltip&&!this.disableTooltip){const{windowRef:e,transition$:n}=this._popupService.open(this._ngbTooltip,t,this.animation);this._windowRef=e,this._windowRef.instance.animation=this.animation,this._windowRef.instance.tooltipClass=this.tooltipClass,this._windowRef.instance.id=this._ngbTooltipWindowId,this._renderer.setAttribute(this._elementRef.nativeElement,"aria-describedby",this._ngbTooltipWindowId),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._windowRef.changeDetectorRef.detectChanges(),this._windowRef.changeDetectorRef.markForCheck(),En(this._ngZone,this._document,this.autoClose,()=>this.close(),this.hidden,[this._windowRef.location.nativeElement]),n.subscribe(()=>this.shown.emit())}}close(){null!=this._windowRef&&(this._renderer.removeAttribute(this._elementRef.nativeElement,"aria-describedby"),this._popupService.close(this.animation).subscribe(()=>{this._windowRef=null,this.hidden.emit(),this._changeDetector.markForCheck()}))}toggle(){this._windowRef?this.close():this.open()}isOpen(){return null!=this._windowRef}ngOnInit(){this._unregisterListenersFn=function(t,e,n,r,s,i,o=0,a=0){const c=function(t,e=yr){const n=(t||"").trim();if(0===n.length)return[];const r=n.split(/\s+/).map(t=>t.split(":")).map(t=>{let n=e[t[0]]||t;return new br(n[0],n[1])}),s=r.filter(t=>t.isManual());if(s.length>1)throw"Triggers parse error: only one manual trigger is allowed";if(1===s.length&&r.length>1)throw"Triggers parse error: manual trigger can't be mixed with other triggers";return r}(n);if(1===c.length&&c[0].isManual())return()=>{};const l=function(t,e,n,r){return new A.a(s=>{const i=[],o=()=>s.next(!0),a=()=>s.next(!1),c=()=>s.next(!r());return n.forEach(n=>{n.open===n.close?i.push(t.listen(e,n.open,c)):i.push(t.listen(e,n.open,o),t.listen(e,n.close,a))}),()=>{i.forEach(t=>t())}})}(t,e,c,r).pipe(function(t,e,n){return r=>{let s=null;const i=r.pipe(Object(P.a)(t=>({open:t})),Object(j.a)(t=>{const e=n();return e===t.open||s&&s.open!==e?(s&&s.open!==t.open&&(s=null),!1):(s=t,!0)}),Object(q.a)()),o=i.pipe(Object(j.a)(t=>t.open),_r(t)),a=i.pipe(Object(j.a)(t=>!t.open),_r(e));return Object(x.a)(o,a).pipe(Object(j.a)(t=>t===s&&(s=null,t.open!==n())),Object(P.a)(t=>t.open))}}(o,a,r)).subscribe(t=>t?s():i());return()=>l.unsubscribe()}(this._renderer,this._elementRef.nativeElement,this.triggers,this.isOpen.bind(this),this.open.bind(this),this.close.bind(this),+this.openDelay,+this.closeDelay)}ngOnChanges({tooltipClass:t}){t&&this.isOpen()&&(this._windowRef.instance.tooltipClass=t.currentValue)}ngOnDestroy(){this.close(),this._unregisterListenersFn&&this._unregisterListenersFn(),this._zoneSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(r.D),r.Kb(r.r),r.Kb(r.j),r.Kb(r.O),r.Kb(Vr),r.Kb(r.z),r.Kb(s.c),r.Kb(r.h),r.Kb(r.g))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngbTooltip",""]],inputs:{animation:"animation",autoClose:"autoClose",placement:"placement",triggers:"triggers",container:"container",disableTooltip:"disableTooltip",tooltipClass:"tooltipClass",openDelay:"openDelay",closeDelay:"closeDelay",ngbTooltip:"ngbTooltip"},outputs:{shown:"shown",hidden:"hidden"},exportAs:["ngbTooltip"],features:[r.vb]}),t})(),zr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})(),$r=(()=>{class t{constructor(){this.highlightClass="ngb-highlight"}ngOnChanges(t){const e=oe(this.result),n=(Array.isArray(this.term)?this.term:[this.term]).map(t=>oe(t).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")).filter(t=>t);this.parts=n.length?e.split(new RegExp(`(${n.join("|")})`,"gmi")):[e]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-highlight"]],inputs:{highlightClass:"highlightClass",result:"result",term:"term"},features:[r.vb],decls:1,vars:1,consts:[["ngFor","",3,"ngForOf"],[3,"class",4,"ngIf","ngIfElse"],["even",""]],template:function(t,e){1&t&&r.yc(0,te,3,2,"ng-template",0),2&t&&r.jc("ngForOf",e.parts)},directives:[s.k,s.l],styles:[".ngb-highlight{font-weight:700}"],encapsulation:2,changeDetection:0}),t})(),Kr=(()=>{class t{constructor(){this.activeIdx=0,this.focusFirst=!0,this.formatter=oe,this.selectEvent=new r.n,this.activeChangeEvent=new r.n}hasActive(){return this.activeIdx>-1&&this.activeIdx=0?this.id+"-"+this.activeIdx:void 0)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Eb({type:t,selectors:[["ngb-typeahead-window"]],hostAttrs:["role","listbox",1,"dropdown-menu","show"],hostVars:1,hostBindings:function(t,e){1&t&&r.ac("mousedown",function(t){return t.preventDefault()}),2&t&&r.Sb("id",e.id)},inputs:{focusFirst:"focusFirst",formatter:"formatter",id:"id",results:"results",term:"term",resultTemplate:"resultTemplate"},outputs:{selectEvent:"select",activeChangeEvent:"activeChange"},exportAs:["ngbTypeaheadWindow"],decls:6,vars:1,consts:[["rt",""],["ngFor","",3,"ngForOf"],[3,"result","term"],["type","button","role","option",1,"dropdown-item",3,"id","mouseenter","click"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,e){1&t&&(r.Ac(0,"\n "),r.yc(1,ee,3,2,"ng-template",null,0,r.zc),r.Ac(3,"\n "),r.yc(4,se,6,9,"ng-template",1),r.Ac(5,"\n ")),2&t&&(r.xb(4),r.jc("ngForOf",e.results))},directives:[s.k,$r,s.m],encapsulation:2}),t})();const qr=new r.q("live announcer delay",{providedIn:"root",factory:function(){return 100}});function Wr(t,e=!1){let n=t.body.querySelector("#ngb-live");return null==n&&e&&(n=t.createElement("div"),n.setAttribute("id","ngb-live"),n.setAttribute("aria-live","polite"),n.setAttribute("aria-atomic","true"),n.classList.add("sr-only"),t.body.appendChild(n)),n}let Gr=(()=>{class t{constructor(t,e){this._document=t,this._delay=e}ngOnDestroy(){const t=Wr(this._document);t&&t.parentElement.removeChild(t)}say(t){const e=Wr(this._document,!0),n=this._delay;if(null!=e){e.textContent="";const r=()=>e.textContent=t;null===n?r():setTimeout(r,n)}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(s.c),r.Xb(qr))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(s.c),Object(r.Xb)(qr))},token:t,providedIn:"root"}),t})(),Xr=(()=>{class t{constructor(){this.editable=!0,this.focusFirst=!0,this.showHint=!1,this.placement=["bottom-left","bottom-right","top-left","top-right"]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:function(){return new t},token:t,providedIn:"root"}),t})();const Qr={provide:W.h,useExisting:Object(r.S)(()=>Yr),multi:!0};let Zr=0,Yr=(()=>{class t{constructor(t,e,n,s,i,o,l,u,h,d,f,p){this._elementRef=t,this._renderer=n,this._live=u,this._document=h,this._ngZone=d,this._changeDetector=f,this._subscription=null,this._closed$=new a.a,this._inputValueBackup=null,this._windowRef=null,this.autocomplete="off",this.placement="bottom-left",this.selectItem=new r.n,this.activeDescendant=null,this.popupId="ngb-typeahead-"+Zr++,this._onTouched=()=>{},this._onChange=t=>{},this.container=o.container,this.editable=o.editable,this.focusFirst=o.focusFirst,this.showHint=o.showHint,this.placement=o.placement,this._valueChanges=Object(c.a)(t.nativeElement,"input").pipe(Object(P.a)(t=>t.target.value)),this._resubscribeTypeahead=new b.a(null),this._popupService=new qn(Kr,s,e,n,this._ngZone,i,p),this._zoneSubscription=l.onStable.subscribe(()=>{this.isPopupOpen()&&kn(this._elementRef.nativeElement,this._windowRef.location.nativeElement,this.placement,"body"===this.container)})}ngOnInit(){const t=this._valueChanges.pipe(Object(L.a)(t=>{this._inputValueBackup=this.showHint?t:null,this._onChange(this.editable?t:void 0)})).pipe(this.ngbTypeahead),e=this._resubscribeTypeahead.pipe(Object(M.a)(()=>t));this._subscription=this._subscribeToUserInput(e)}ngOnDestroy(){this._closePopup(),this._unsubscribeFromUserInput(),this._zoneSubscription.unsubscribe()}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}writeValue(t){this._writeInputValue(this._formatItemForInput(t)),this.showHint&&(this._inputValueBackup=t)}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}dismissPopup(){this.isPopupOpen()&&(this._resubscribeTypeahead.next(null),this._closePopup(),this.showHint&&null!==this._inputValueBackup&&this._writeInputValue(this._inputValueBackup),this._changeDetector.markForCheck())}isPopupOpen(){return null!=this._windowRef}handleBlur(){this._resubscribeTypeahead.next(null),this._onTouched()}handleKeyDown(t){if(this.isPopupOpen())switch(t.which){case gn.ArrowDown:t.preventDefault(),this._windowRef.instance.next(),this._showHint();break;case gn.ArrowUp:t.preventDefault(),this._windowRef.instance.prev(),this._showHint();break;case gn.Enter:case gn.Tab:const e=this._windowRef.instance.getActive();he(e)&&(t.preventDefault(),t.stopPropagation(),this._selectResult(e)),this._closePopup()}}_openPopup(){if(!this.isPopupOpen()){this._inputValueBackup=this._elementRef.nativeElement.value;const{windowRef:t}=this._popupService.open();this._windowRef=t,this._windowRef.instance.id=this.popupId,this._windowRef.instance.selectEvent.subscribe(t=>this._selectResultClosePopup(t)),this._windowRef.instance.activeChangeEvent.subscribe(t=>this.activeDescendant=t),"body"===this.container&&this._document.querySelector(this.container).appendChild(this._windowRef.location.nativeElement),this._changeDetector.markForCheck(),En(this._ngZone,this._document,"outside",()=>this.dismissPopup(),this._closed$,[this._elementRef.nativeElement,this._windowRef.location.nativeElement])}}_closePopup(){this._popupService.close().subscribe(()=>{this._closed$.next(),this._windowRef=null,this.activeDescendant=null})}_selectResult(t){let e=!1;this.selectItem.emit({item:t,preventDefault:()=>{e=!0}}),this._resubscribeTypeahead.next(null),e||(this.writeValue(t),this._onChange(t))}_selectResultClosePopup(t){this._selectResult(t),this._closePopup()}_showHint(){var t;if(this.showHint&&(null===(t=this._windowRef)||void 0===t?void 0:t.instance.hasActive())&&null!=this._inputValueBackup){const t=this._inputValueBackup.toLowerCase(),e=this._formatItemForInput(this._windowRef.instance.getActive());t===e.substr(0,this._inputValueBackup.length).toLowerCase()?(this._writeInputValue(this._inputValueBackup+e.substr(this._inputValueBackup.length)),this._elementRef.nativeElement.setSelectionRange.apply(this._elementRef.nativeElement,[this._inputValueBackup.length,e.length])):this._writeInputValue(e)}}_formatItemForInput(t){return null!=t&&this.inputFormatter?this.inputFormatter(t):oe(t)}_writeInputValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",oe(t))}_subscribeToUserInput(t){return t.subscribe(t=>{t&&0!==t.length?(this._openPopup(),this._windowRef.instance.focusFirst=this.focusFirst,this._windowRef.instance.results=t,this._windowRef.instance.term=this._elementRef.nativeElement.value,this.resultFormatter&&(this._windowRef.instance.formatter=this.resultFormatter),this.resultTemplate&&(this._windowRef.instance.resultTemplate=this.resultTemplate),this._windowRef.instance.resetActive(),this._windowRef.changeDetectorRef.detectChanges(),this._showHint()):this._closePopup();const e=t?t.length:0;this._live.say(0===e?"No results available":`${e} result${1===e?"":"s"} available`)})}_unsubscribeFromUserInput(){this._subscription&&this._subscription.unsubscribe(),this._subscription=null}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(r.O),r.Kb(r.D),r.Kb(r.r),r.Kb(r.j),r.Kb(Xr),r.Kb(r.z),r.Kb(Gr),r.Kb(s.c),r.Kb(r.z),r.Kb(r.h),r.Kb(r.g))},t.\u0275dir=r.Fb({type:t,selectors:[["input","ngbTypeahead",""]],hostAttrs:["autocapitalize","off","autocorrect","off","role","combobox","aria-multiline","false"],hostVars:7,hostBindings:function(t,e){1&t&&r.ac("blur",function(){return e.handleBlur()})("keydown",function(t){return e.handleKeyDown(t)}),2&t&&(r.Sb("autocomplete",e.autocomplete),r.yb("aria-autocomplete",e.showHint?"both":"list")("aria-activedescendant",e.activeDescendant)("aria-owns",e.isPopupOpen()?e.popupId:null)("aria-expanded",e.isPopupOpen()),r.Cb("open",e.isPopupOpen()))},inputs:{autocomplete:"autocomplete",placement:"placement",container:"container",editable:"editable",focusFirst:"focusFirst",showHint:"showHint",inputFormatter:"inputFormatter",ngbTypeahead:"ngbTypeahead",resultFormatter:"resultFormatter",resultTemplate:"resultTemplate"},outputs:{selectItem:"selectItem"},exportAs:["ngbTypeahead"],features:[r.wb([Qr])]}),t})(),Jr=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[s.b]]}),t})();const ts=[Te,Re,He,Ue,Ke,Hn,zn,nr,mr,gr,vr,wr,Sr,Mr,Lr,zr,Jr];let es=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[ts,Te,Re,He,Ue,Ke,Hn,zn,nr,mr,gr,vr,wr,Sr,Mr,Lr,zr,Jr]}),t})()},"2QA8":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())()},"2Vo4":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("XNiG"),s=n("9ppp");class i extends r.a{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value}next(t){super.next(this._value=t)}}},"2fFW":function(t,e,n){"use strict";n.d(e,"a",function(){return s});let r=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const 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=t},get useDeprecatedSynchronousErrorHandling(){return r}}},"3E0/":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("D0XW"),s=n("7o/Q"),i=n("WMd4");function o(t,e=r.a){var n;const s=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return t=>t.lift(new a(s,e))}class a{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new c(t,this.delay,this.scheduler))}}class c extends s.a{constructor(t,e,n){super(t),this.delay=e,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,n=e.queue,r=t.scheduler,s=t.destination;for(;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(s);if(n.length>0){const e=Math.max(0,n[0].time-r.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(c.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,n=new l(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(i.a.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(i.a.createComplete()),this.unsubscribe()}}class l{constructor(t,e){this.time=t,this.notification=e}}},"3N8a":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("quSY");class s extends r.a{constructor(t,e){super()}schedule(t,e=0){return this}}class i extends s{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,r=void 0;try{this.work(t)}catch(s){n=!0,r=!!s&&s||new Error(s)}if(n)return this.unsubscribe(),r}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}},"3Pt+":function(t,e,n){"use strict";n.d(e,"a",function(){return f}),n.d(e,"b",function(){return dt}),n.d(e,"c",function(){return Et}),n.d(e,"d",function(){return ft}),n.d(e,"e",function(){return wt}),n.d(e,"f",function(){return Dt}),n.d(e,"g",function(){return E}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return b}),n.d(e,"j",function(){return _}),n.d(e,"k",function(){return v}),n.d(e,"l",function(){return bt}),n.d(e,"m",function(){return U}),n.d(e,"n",function(){return xt}),n.d(e,"o",function(){return D}),n.d(e,"p",function(){return q}),n.d(e,"q",function(){return yt});var r=n("fXoL"),s=n("ofXK"),i=n("cp0P"),o=n("Cfvw"),a=n("lJxs");const c=new r.q("NgValueAccessor"),l={provide:c,useExisting:Object(r.S)(()=>u),multi:!0};let u=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&r.ac("change",function(t){return e.onChange(t.target.checked)})("blur",function(){return e.onTouched()})},features:[r.wb([l])]}),t})();const h={provide:c,useExisting:Object(r.S)(()=>f),multi:!0},d=new r.q("CompositionEventMode");let f=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Object(s.A)()?Object(s.A)().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l),r.Kb(d,8))},t.\u0275dir=r.Fb({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&r.ac("input",function(t){return e._handleInput(t.target.value)})("blur",function(){return e.onTouched()})("compositionstart",function(){return e._compositionStart()})("compositionend",function(t){return e._compositionEnd(t.target.value)})},features:[r.wb([h])]}),t})(),p=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t}),t})(),m=(()=>{class t extends p{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return g(e||t)},t.\u0275dir=r.Fb({type:t,features:[r.ub]}),t})();const g=r.Rb(m);class b extends p{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class y{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let _=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(b,2))},t.\u0275dir=r.Fb({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Cb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.ub]}),t})(),v=(()=>{class t extends y{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(m,2))},t.\u0275dir=r.Fb({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&r.Cb("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[r.ub]}),t})();function w(t){return null==t||0===t.length}function C(t){return null!=t&&"number"==typeof t.length}const E=new r.q("NgValidators"),O=new r.q("NgAsyncValidators"),S=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class D{static min(t){return e=>{if(w(e.value)||w(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n{if(w(e.value)||w(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return w(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return w(t.value)||S.test(t.value)?null:{email:!0}}static minLength(t){return e=>w(e.value)||!C(e.value)?null:e.value.lengthC(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return D.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(w(t.value))return null;const r=t.value;return e.test(r)?null:{pattern:{requiredPattern:n,actualValue:r}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(x);return 0==e.length?null:function(t){return k(T(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(x);return 0==e.length?null:function(t){const n=T(t,e).map(A);return Object(i.a)(n).pipe(Object(a.a)(k))}}}function x(t){return null!=t}function A(t){const e=Object(r.pb)(t)?Object(o.a)(t):t;return Object(r.ob)(e),e}function k(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function T(t,e){return e.map(e=>e(t))}function j(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const I={provide:c,useExisting:Object(r.S)(()=>P),multi:!0};let P=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&r.ac("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[r.wb([I])]}),t})();const R={provide:c,useExisting:Object(r.S)(()=>N),multi:!0};let F=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),N=(()=>{class t{constructor(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(b),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l),r.Kb(F),r.Kb(r.r))},t.\u0275dir=r.Fb({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&r.ac("change",function(){return e.onChange()})("blur",function(){return e.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[r.wb([R])]}),t})();const M={provide:c,useExisting:Object(r.S)(()=>L),multi:!0};let L=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&r.ac("change",function(t){return e.onChange(t.target.value)})("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[r.wb([M])]}),t})();const V={provide:c,useExisting:Object(r.S)(()=>H),multi:!0};function B(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let H=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=B(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.D),r.Kb(r.l))},t.\u0275dir=r.Fb({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&r.ac("change",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},inputs:{compareWith:"compareWith"},features:[r.wb([V])]}),t})(),U=(()=>{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}set ngValue(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(B(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(r.D),r.Kb(H,9))},t.\u0275dir=r.Fb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const z={provide:c,useExisting:Object(r.S)(()=>K),multi:!0};function $(t,e){return null==t?""+e:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let K=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{class t{constructor(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}set ngValue(t){null!=this._select&&(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value))}set value(t){this._select?(this._value=t,this._setElementValue($(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)}_setElementValue(t){this._renderer.setProperty(this._element.nativeElement,"value",t)}_setSelected(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.l),r.Kb(r.D),r.Kb(K,9))},t.\u0275dir=r.Fb({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();function W(t,e){return[...e.path,t]}function G(t,e){t.validator=D.compose([t.validator,e.validator]),t.asyncValidator=D.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&X(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&X(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function X(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Q(t,e){t.validator=D.compose([t.validator,e.validator]),t.asyncValidator=D.composeAsync([t.asyncValidator,e.asyncValidator])}function Z(t){return null!=t?D.compose(j(t)):null}function Y(t){return null!=t?D.composeAsync(j(t)):null}function J(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}const tt=[u,L,P,H,K,N];function et(t,e){if(!e)return null;Array.isArray(e);let n=void 0,r=void 0,s=void 0;return e.forEach(t=>{var e;t.constructor===f?n=t:(e=t,tt.some(t=>e.constructor===t)?r=t:s=t)}),s||r||n||null}const nt="VALID",rt="INVALID",st="PENDING",it="DISABLED";function ot(t){return(ut(t)?t.validators:t)||null}function at(t){return Array.isArray(t)?Z(t):t||null}function ct(t,e){return(ut(e)?e.asyncValidators:t)||null}function lt(t){return Array.isArray(t)?Y(t):t||null}function ut(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ht{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=at(this._rawValidators),this._composedAsyncValidatorFn=lt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===nt}get invalid(){return this.status===rt}get pending(){return this.status==st}get disabled(){return this.status===it}get enabled(){return this.status!==it}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=at(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=lt(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=st,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=it,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=nt,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==nt&&this.status!==st||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?it:nt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=st,this._hasOwnPendingAsyncValidator=!0;const e=A(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let r=t;return e.forEach(t=>{r=r instanceof ft?r.controls.hasOwnProperty(t)?r.controls[t]:null:r instanceof pt&&r.at(t)||null}),r}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new r.n,this.statusChanges=new r.n}_calculateStatus(){return this._allControlsDisabled()?it:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(st)?st:this._anyControlsHaveStatus(rt)?rt:nt}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ut(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class dt extends ht{constructor(t=null,e,n){super(ot(e),ct(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class ft extends ht{constructor(t,e,n){super(ot(e),ct(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof dt?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,r)=>{n=e(n,t,r)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class pt extends ht{constructor(t,e,n){super(ot(e),ct(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,r)=>{n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof dt?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const mt={provide:b,useExisting:Object(r.S)(()=>bt)},gt=(()=>Promise.resolve(null))();let bt=(()=>{class t extends b{constructor(t,e,n,s){super(),this.control=new dt,this._registered=!1,this.update=new r.n,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=et(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),J(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?W(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._rawValidators)}get asyncValidator(){return Y(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){G(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){gt.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,n=""===e||e&&"false"!==e;gt.then(()=>{n&&!this.control.disabled?this.control.disable():!n&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(m,9),r.Kb(E,10),r.Kb(O,10),r.Kb(c,10))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[r.wb([mt]),r.ub,r.vb]}),t})(),yt=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=r.Fb({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const _t=new r.q("NgModelWithFormControlWarning"),vt={provide:m,useExisting:Object(r.S)(()=>wt)};let wt=(()=>{class t extends m{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new r.n}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return G(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){!function(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Q(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Q(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,e=this.directives,this.form._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&G(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=Z(this._validators);this.form.validator=D.compose([this.form.validator,t]);const e=Y(this._asyncValidators);this.form.asyncValidator=D.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(E,10),r.Kb(O,10))},t.\u0275dir=r.Fb({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&r.ac("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[r.wb([vt]),r.ub,r.vb]}),t})();const Ct={provide:b,useExisting:Object(r.S)(()=>Et)};let Et=(()=>{class t extends b{constructor(t,e,n,s,i){super(),this._ngModelWarningConfig=i,this._added=!1,this.update=new r.n,this._ngModelWarningSent=!1,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=n||[],this.valueAccessor=et(0,s)}set isDisabled(t){}ngOnChanges(e){var n,s;this._added||this._setUpControl(),J(e,this.viewModel)&&(n=t,this,s=this._ngModelWarningConfig,Object(r.T)()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return W(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return Z(this._rawValidators)}get asyncValidator(){return Y(this._rawAsyncValidators)}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(m,13),r.Kb(E,10),r.Kb(O,10),r.Kb(c,10),r.Kb(_t,8))},t.\u0275dir=r.Fb({type:t,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[r.wb([Ct]),r.ub,r.vb]}),t._ngModelWarningSentOnce=!1,t})(),Ot=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})(),St=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let r=null,s=null,i=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(r=null!=e.validators?e.validators:null,s=null!=e.asyncValidators?e.asyncValidators:null,i=null!=e.updateOn?e.updateOn:void 0):(r=null!=e.validator?e.validator:null,s=null!=e.asyncValidator?e.asyncValidator:null)),new ft(n,{asyncValidators:s,updateOn:i,validators:r})}control(t,e,n){return new dt(t,e,n)}array(t,e,n){const r=t.map(t=>this._createControl(t));return new pt(r,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof dt||t instanceof ft||t instanceof pt?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),Dt=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[F],imports:[Ot]}),t})(),xt=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:_t,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[St,F],imports:[Ot]}),t})()},"3UD+":function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},"4I5i":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})()},"4u49":function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},"5+tZ":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("lJxs"),s=n("Cfvw"),i=n("zx2A");function o(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(o((n,i)=>Object(s.a)(t(n,i)).pipe(Object(r.a)((t,r)=>e(n,t,i,r))),n)):("number"==typeof e&&(n=e),e=>e.lift(new a(t,n)))}class a{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new c(t,this.project,this.concurrent))}}class c extends i.b{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},"5yfJ":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("HDdC"),s=n("KqfI");const i=new r.a(s.a)},"7o/Q":function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("n6bG"),s=n("gRHU"),i=n("quSY"),o=n("2QA8"),a=n("2fFW"),c=n("NJ4a");class l extends i.a{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){t instanceof l?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,t,e,n)}}[o.a](){return this}static create(t,e,n){const r=new l(t,e,n);return r.syncErrorThrowable=!1,r}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class u extends l{constructor(t,e,n,i){let o;super(),this._parentSubscriber=t;let a=this;Object(r.a)(e)?o=e:e&&(o=e.next,n=e.error,i=e.complete,e!==s.a&&(a=Object.create(e),Object(r.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=o,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;a.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=a.a;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);a.a.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),a.a.useDeprecatedSynchronousErrorHandling)throw n;Object(c.a)(n)}}__tryOrSetError(t,e,n){if(!a.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(r){return a.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=r,t.syncErrorThrown=!0,!0):(Object(c.a)(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}},"9bPy":function(t,e,n){"use strict";n.d(e,"a",function(){return h}),n.d(e,"b",function(){return d});var r=n("mrSG"),s=n("fXoL"),i=n("ofXK"),o=n("R0Ic"),a=n("PqYM");function c(t){return e=>[Object(o.h)(t.start),...t.steps.map(n=>Object(o.e)(e/t.denominator,Object(o.h)(n)))]}const l={bounce:c({denominator:4,start:{},steps:[{transform:"translate3d(0, -30px, 0)","animation-timing-function":"cubic-bezier(0.755, 0.05, 0.855, 0.06)",offset:.43},{transform:"translate3d(0, -15px, 0)","animation-timing-function":"cubic-bezier(0.755, 0.05, 0.855, 0.06)",offset:.7},{transform:"translate3d(0, -4px, 0)",offset:.9},{"animation-timing-function":"cubic-bezier(0.215, 0.61, 0.355, 1)",transform:"translate3d(0, 0, 0)",offset:1}]}),flash:c({denominator:4,start:{opacity:"1",offset:0},steps:[{opacity:"0",offset:.25},{opacity:"1",offset:.5},{opacity:"0",offset:.75},{opacity:"1",offset:1}]}),headShake:c({denominator:5,start:{transform:"translateX(0)",offset:0},steps:[{transform:"translateX(-6px) rotateY(-9deg)",offset:.06},{transform:"translateX(5px) rotateY(7deg)",offset:.18},{transform:"translateX(-3px) rotateY(-5deg)",offset:.31},{transform:"translateX(2px) rotateY(3deg)",offset:.43},{transform:"translateX(0)",offset:.5}]}),heartBeat:c({denominator:5,start:{transform:"scale(1)",offset:0},steps:[{transform:"scale(1.3)",offset:.14},{transform:"scale(1)",offset:.28},{transform:"scale(1.3)",offset:.42},{transform:"scale(1)",offset:.7}]}),pulse:c({denominator:2,start:{transform:"scale3d(1, 1, 1)",offset:0},steps:[{transform:"scale3d(1.05, 1.05, 1.05)",offset:.5},{transform:"scale3d(1, 1, 1)",offset:1}]}),rubberBand:c({denominator:6,start:{transform:"scale3d(1, 1, 1)",offset:0},steps:[{transform:"scale3d(1.25, 0.75, 1)",offset:.3},{transform:"scale3d(0.75, 1.25, 1)",offset:.4},{transform:"scale3d(1.15, 0.85, 1)",offset:.5},{transform:"scale3d(0.95, 1.05, 1)",offset:.65},{transform:"scale3d(1.05, 0.95, 1)",offset:.75},{transform:"scale3d(1, 1, 1)",offset:1}]}),shake:c({denominator:10,start:{transform:"translate3d(0, 0, 0)",offset:0},steps:[{transform:"translate3d(-10px, 0, 0)"},{transform:"translate3d( 10px, 0, 0)"},{transform:"translate3d(-10px, 0, 0)"},{transform:"translate3d( 10px, 0, 0)"},{transform:"translate3d(-10px, 0, 0)"},{transform:"translate3d( 10px, 0, 0)"},{transform:"translate3d(-10px, 0, 0)"},{transform:"translate3d( 10px, 0, 0)"},{transform:"translate3d(-10px, 0, 0)"},{transform:"translate3d(0, 0, 0)"}]}),swing:c({denominator:10,start:{},steps:[{transform:"rotate3d(0, 0, 1, 15deg)"},{transform:"rotate3d(0, 0, 1, -10deg)"},{transform:"rotate3d(0, 0, 1, 5deg)"},{transform:"rotate3d(0, 0, 1, -5deg)"},{transform:"rotate3d(0, 0, 1, 0deg)"}]}),tada:c({denominator:10,start:{transform:"scale3d(1, 1, 1)"},steps:[{transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{transform:"scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg)"},{transform:"scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg)"},{transform:"scale3d(1, 1, 1)"}]}),wobble:c({denominator:6,start:{transform:"translate3d(0, 0, 0)"},steps:[{transform:"translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg)"},{transform:"translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg)"},{transform:"translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg)"},{transform:"translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg)"},{transform:"translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg)"},{transform:"translate3d(0, 0, 0)"}]}),jello:c({denominator:7,start:{transform:"translate3d(0, 0, 0)",offset:0},steps:[{transform:"skewX(-12.5deg) skewY(-12.5deg)",offset:.22},{transform:"skewX(6.25deg) skewY(6.25deg)",offset:.33},{transform:"skewX(-3.125deg) skewY(-3.125deg)",offset:.44},{transform:"skewX(1.5625deg) skewY(1.5625deg)",offset:.55},{transform:"skewX(-0.78125deg) skewY(-0.78125deg)",offset:.66},{transform:"skewX(0.390625deg) skewY(0.390625deg)",offset:.77},{transform:"skewX(-0.1953125deg) skewY(-0.1953125deg)",offset:.88}]}),bounceIn:c({denominator:5,start:{opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)",offset:0},steps:[{transform:"scale3d(1.1, 1.1, 1.1)",offset:.2},{transform:"scale3d(0.9, 0.9, 0.9)",offset:.4},{opacity:"1",transform:"scale3d(1.03, 1.03, 1.03)",offset:.6},{transform:"scale3d(0.97, 0.97, 0.97)",offset:.8},{opacity:"1",transform:"scale3d(1, 1, 1)"}]}),bounceInDown:c({denominator:4,start:{opacity:"0",transform:"translate3d(0, -3000px, 0)",offset:0},steps:[{opacity:"1",transform:"translate3d(0, 25px, 0)",offset:.6},{transform:"translate3d(0, -10px, 0)",offset:.75},{transform:"translate3d(0, 5px, 0)",offset:.9},{transform:"translate3d(0, 0, 0)"}]}),bounceInLeft:c({denominator:4,start:{opacity:"0",transform:"translate3d(-3000px, 0, 0)",offset:0},steps:[{opacity:"1",transform:"translate3d(25px, 0, 0)",offset:.6},{transform:"translate3d(-10px, 0, 0)",offset:.75},{transform:"translate3d(5px, 0, 0)",offset:.9},{transform:"translate3d(0, 0, 0)"}]}),bounceInRight:c({denominator:4,start:{opacity:"0",transform:"translate3d(3000px, 0, 0)",offset:0},steps:[{opacity:"1",transform:"translate3d(-25px, 0, 0)",offset:.6},{transform:"translate3d(10px, 0, 0)",offset:.75},{transform:"translate3d(-5px, 0, 0)",offset:.9},{transform:"translate3d(0, 0, 0)"}]}),bounceInUp:c({denominator:4,start:{opacity:"0",transform:"translate3d(0, 3000px, 0)",offset:0},steps:[{opacity:"1",transform:"translate3d(0, -25px, 0)",offset:.6},{transform:"translate3d(0, 10px, 0)",offset:.75},{transform:"translate3d(0, -5px, 0)",offset:.9},{transform:"translate3d(0, 0, 0)"}]}),bounceOut:c({denominator:3,start:{},steps:[{transform:"scale3d(0.9, 0.9, 0.9",offset:.2},{opacity:1,transform:"scale3d(1.1, 1.1, 1.1",offset:.55},{opacity:0,transform:"scale3d(0.3, 0.3, 0.3"}]}),bounceOutDown:c({denominator:3,start:{},steps:[{transform:"translate3d(0, 10px, 0",offset:.2},{opacity:1,transform:"translate3d(0, -20px, 0",offset:.45},{opacity:0,transform:"translate3d(0, 2000px, 0"}]}),bounceOutLeft:c({denominator:2,start:{},steps:[{opacity:1,transform:"translate3d(20px, 0, 0",offset:.2},{opacity:0,transform:"translate3d(-2000px, 0, 0"}]}),bounceOutRight:c({denominator:2,start:{},steps:[{opacity:1,transform:"translate3d(-20px, 0, 0",offset:.2},{opacity:0,transform:"translate3d(2000px, 0, 0"}]}),bounceOutUp:c({denominator:3,start:{},steps:[{transform:"translate3d(0, -10px, 0",offset:.2},{opacity:1,transform:"translate3d(0, 20px, 0",offset:.45},{opacity:0,transform:"translate3d(0, -2000px, 0"}]}),fadeIn:c({denominator:1,start:{opacity:"0"},steps:[{opacity:"1"}]}),fadeInDown:c({denominator:1,start:{opacity:"0",transform:"translate3d(0, -100%, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInDownBig:c({denominator:1,start:{opacity:"0",transform:"translate3d(0, -2000px, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInLeft:c({denominator:1,start:{opacity:"0",transform:"translate3d(-100%, 0, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInLeftBig:c({denominator:1,start:{opacity:"0",transform:"translate3d(-2000px, 0, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInRight:c({denominator:1,start:{opacity:"0",transform:"translate3d(100%, 0, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInRightBig:c({denominator:1,start:{opacity:"0",transform:"translate3d(2000px, 0, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInUp:c({denominator:1,start:{opacity:"0",transform:"translate3d(0, 100%, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeInUpBig:c({denominator:1,start:{opacity:"0",transform:"translate3d(0, 2000px, 0"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0"}]}),fadeOut:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0"}]}),fadeOutDown:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(0, 100%, 0"}]}),fadeOutDownBig:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(0, 2000px, 0"}]}),fadeOutLeft:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(-100%, 0, 0"}]}),fadeOutLeftBig:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(-2000px, 0, 0"}]}),fadeOutRight:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(100%, 0, 0"}]}),fadeOutRightBig:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(2000px, 0, 0"}]}),fadeOutUp:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(0, -100%, 0"}]}),fadeOutUpBig:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(0, -2000px, 0"}]}),flip:c({denominator:4,start:{transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg)"},steps:[{transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg)"},{transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg)"},{transform:"perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)"},{transform:"perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg)"}]}),flipInX:c({denominator:4,start:{transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"},steps:[{transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},{transform:"perspective(400px) rotate3d(1, 0, 0, 10deg)"},{transform:"perspective(400px) rotate3d(1, 0, 0, -5deg)"},{transform:"perspective(400px)"}]}),flipInY:c({denominator:4,start:{transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"},steps:[{transform:"perspective(400px) rotate3d(0, 1, 0, -20deg)"},{transform:"perspective(400px) rotate3d(0, 1, 0, 10deg)"},{transform:"perspective(400px) rotate3d(0, 1, 0, -5deg)"},{transform:"perspective(400px)"}]}),flipOutX:c({denominator:2,start:{transform:"perspective(400px)"},steps:[{transform:"perspective(400px) rotate3d(1, 0, 0, -20deg)"},{opacity:0,transform:"perspective(400px) rotate3d(1, 0, 0, 90deg)"}]}),flipOutY:c({denominator:2,start:{transform:"perspective(400px)"},steps:[{transform:"perspective(400px) rotate3d(0, 1, 0, -15deg)"},{opacity:0,transform:"perspective(400px) rotate3d(0, 1, 0, 90deg)"}]}),lightSpeedIn:c({denominator:4,start:{opacity:"0",transform:"translate3d(100%, 0, 0) skewX(-30deg)"},steps:[{opacity:"1",transform:"skewX(20deg)",offset:.6},{transform:"skewX(-5deg)",offset:.8},{transform:"translate3d(0, 0, 0)"}]}),lightSpeedOut:c({denominator:4,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(100%, 0, 0) skewX(30deg)"}]}),rotateIn:c({denominator:2,start:{opacity:"0","transform-origin":"center",transform:"rotate3d(0, 0, 1, -200deg)"},steps:[{opacity:"1","transform-origin":"center",transform:"translate3d(0, 0, 0)"}]}),rotateInDownLeft:c({denominator:2,start:{opacity:"0","transform-origin":"left bottom",transform:"rotate3d(0, 0, 1, -45deg)"},steps:[{opacity:"1","transform-origin":"left bottom",transform:"translate3d(0, 0, 0)"}]}),rotateInDownRight:c({denominator:2,start:{opacity:"0","transform-origin":"right bottom",transform:"rotate3d(0, 0, 1, 45deg)"},steps:[{opacity:"1","transform-origin":"right bottom",transform:"translate3d(0, 0, 0)"}]}),rotateInUpLeft:c({denominator:2,start:{opacity:"0","transform-origin":"left bottom",transform:"rotate3d(0, 0, 1, 45deg)"},steps:[{opacity:"1","transform-origin":"left bottom",transform:"translate3d(0, 0, 0)"}]}),rotateInUpRight:c({denominator:2,start:{opacity:"0","transform-origin":"right bottom",transform:"rotate3d(0, 0, 1, -90deg)"},steps:[{opacity:"1","transform-origin":"right bottom",transform:"translate3d(0, 0, 0)"}]}),rotateOut:c({denominator:2,start:{opacity:"1","transform-origin":"center"},steps:[{opacity:"0","transform-origin":"center",transform:"rotate3d(0, 0, 1, 200deg"}]}),rotateOutDownLeft:c({denominator:2,start:{opacity:"1","transform-origin":"left bottom"},steps:[{opacity:"0","transform-origin":"left bottom",transform:"rotate3d(0, 0, 1, 45deg"}]}),rotateOutDownRight:c({denominator:2,start:{opacity:"1","transform-origin":"right bottom"},steps:[{opacity:"0","transform-origin":"right bottom",transform:"rotate3d(0, 0, 1, -45deg"}]}),rotateOutUpLeft:c({denominator:2,start:{opacity:"1","transform-origin":"left bottom"},steps:[{opacity:"0","transform-origin":"left bottom",transform:"rotate3d(0, 0, 1, -45deg"}]}),rotateOutUpRight:c({denominator:2,start:{opacity:"1","transform-origin":"right bottom"},steps:[{opacity:"0","transform-origin":"right bottom",transform:"rotate3d(0, 0, 1, 90deg"}]}),slideInUp:c({denominator:2,start:{visibility:"visible",transform:"translate3d(0, 100%, 0"},steps:[{transform:"translate3d(0, 0, 0"}]}),slideInDown:c({denominator:2,start:{visibility:"visible",transform:"translate3d(0, -100%, 0"},steps:[{transform:"translate3d(0, 0, 0"}]}),slideInLeft:c({denominator:2,start:{visibility:"visible",transform:"translate3d(-100%, 0, 0"},steps:[{transform:"translate3d(0, 0, 0"}]}),slideInRight:c({denominator:2,start:{visibility:"visible",transform:"translate3d(100%, 0, 0"},steps:[{transform:"translate3d(0, 0, 0"}]}),slideOutUp:c({denominator:2,start:{transform:"translate3d(0, 0, 0"},steps:[{visibility:"hidden",transform:"translate3d(0, -100%, 0"}]}),slideOutDown:c({denominator:2,start:{transform:"translate3d(0, 0, 0"},steps:[{visibility:"hidden",transform:"translate3d(0, 100%, 0"}]}),slideOutLeft:c({denominator:2,start:{transform:"translate3d(0, 0, 0"},steps:[{visibility:"hidden",transform:"translate3d(-100%, 0, 0"}]}),slideOutRight:c({denominator:2,start:{transform:"translate3d(0, 0, 0"},steps:[{visibility:"hidden",transform:"translate3d(100%, 0, 0"}]}),zoomIn:c({denominator:1,start:{opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)"},steps:[{opacity:"1",transform:"scale3d(1, 1, 1)"}]}),zoomInDown:c({denominator:1,start:{opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},steps:[{opacity:"1",transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),zoomInLeft:c({denominator:1,start:{opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},steps:[{opacity:"1",transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),zoomInRight:c({denominator:1,start:{opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},steps:[{opacity:"1",transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),zoomInUp:c({denominator:1,start:{opacity:"0",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)"},steps:[{opacity:"1",transform:"scale3d(1, 1, 1) translate3d(0, 0, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),zoomOut:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"scale3d(0.3, 0.3, 0.3)",offset:.5},{opacity:"0"}]}),zoomOutDown:c({denominator:1,start:{},steps:[{opacity:"0.5",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 0, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)",offset:.4},{opacity:"0","transform-origin":"center bottom",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),zoomOutLeft:c({denominator:1,start:{},steps:[{opacity:"0.5",transform:"scale3d(0.475, 0.475, 0.475) translate3d(42px, 0, 0)",offset:.4},{opacity:"0","transform-origin":"left center",transform:"scale(0.1) translate3d(-2000px, 0, 0)"}]}),zoomOutRight:c({denominator:1,start:{},steps:[{opacity:"0.5",transform:"scale3d(0.475, 0.475, 0.475) translate3d(-42px, 0, 0)",offset:.4},{opacity:"0","transform-origin":"right center",transform:"scale(0.1) translate3d(2000px, 0, 0)"}]}),zoomOutUp:c({denominator:1,start:{},steps:[{opacity:"0.5",transform:"scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0)","animation-timing-function":"cubic-bezier(0.55, 0.055, 0.675, 0.19)",offset:.4},{opacity:"0","transform-origin":"center bottom",transform:"scale3d(0.1, 0.1, 0.1) translate3d(0, -2000px, 0)","animation-timing-function":"cubic-bezier(0.175, 0.885, 0.32, 1)"}]}),hinge:c({denominator:3,start:{"transform-origin":"top left","animation-timing-function":"ease-in-out"},steps:[{"transform-origin":"top left","animation-timing-function":"ease-in-out",transform:"rotate3d(0, 0, 1, 80deg)"},{opacity:"1","transform-origin":"top left","animation-timing-function":"ease-in-out",transform:"rotate3d(0, 0, 1, 60deg)"},{opacity:"0","transform-origin":"top left","animation-timing-function":"ease-in-out",transform:"translate3d(0, 700px, 0)"}]}),jackInTheBox:c({denominator:3,start:{opacity:"0","transform-origin":"center bottom",transform:"scale(0.1) rotate(30deg)"},steps:[{transform:"rotate(-10deg)"},{transform:"rotate(3deg)"},{opacity:"1",transform:"scale(1)"}]}),rollIn:c({denominator:1,start:{opacity:"0",transform:"translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg)"},steps:[{opacity:"1",transform:"translate3d(0, 0, 0)"}]}),rollOut:c({denominator:1,start:{opacity:"1"},steps:[{opacity:"0",transform:"translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg)"}]})};let u=(()=>{let t=class{constructor(t){this._builder=t,this.animations=l}create(t,e){return this._builder.build(t).create(e)}addAnimations(t){t.forEach(t=>this.add(t.name,t.animation))}add(t,e){if(void 0!==this.animations[t])throw new Error("There is already an animation named "+t);this.animations[t]=c(e)}};return t.\u0275fac=function(e){return new(e||t)(s.Xb(o.b))},t.\u0275prov=s.Gb({token:t,factory:function(e){return t.\u0275fac(e)}}),t=Object(r.b)([Object(r.c)("design:paramtypes",[o.b])],t),t})(),h=(()=>{let t=class{constructor(t,e,n){this.templateRef=t,this.viewContainer=e,this._animationsService=n,this.shownBefore=!1}set animIf(t){this.show=t,this._animIfDirty=!0}ngDoCheck(){this._animIfDirty&&(this._animIfDirty=!1,this.subscription&&this.subscription.unsubscribe(),this.show&&!this.shownBefore&&(this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef),this.createPlayer(this.animIfInfo.startAnim,this.animIfInfo.time).play(),this.shownBefore=!0),!this.show&&this.shownBefore&&(this.createPlayer(this.animIfInfo.endAnim,this.animIfInfo.time).play(),this.clearAfterTime(this.viewContainer,this.animIfInfo.time),this.shownBefore=!1))}createPlayer(t,e){return this._animationsService.create(this._animationsService.animations[t](e),this.viewContainer.get(0).rootNodes[0])}clearAfterTime(t,e){this.subscription=Object(a.a)(e).subscribe(()=>{t.clear()})}};return t.\u0275fac=function(e){return new(e||t)(s.Kb(s.K),s.Kb(s.O),s.Kb(u))},t.\u0275dir=s.Fb({type:t,selectors:[["","animIf",""]],inputs:{animIf:"animIf",animIfInfo:"animIfInfo"}}),t=Object(r.b)([Object(r.c)("design:paramtypes",[s.K,s.O,u])],t),t})(),d=(()=>{let t=class{};return t.\u0275mod=s.Ib({type:t}),t.\u0275inj=s.Hb({factory:function(e){return new(e||t)},providers:[u],imports:[[i.b]]}),t})()},"9ppp":function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})()},"9urI":function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("ofXK"),s=n("9bPy"),i=n("sYmb"),o=n("tyNb"),a=n("Dvla"),c=n("1kSV"),l=n("fXoL");let u=(()=>{class t{}return t.\u0275mod=l.Ib({type:t}),t.\u0275inj=l.Hb({factory:function(e){return new(e||t)},imports:[[r.b,s.b,i.b,o.i,a.b,c.d]]}),t})();n("s1Ou")},"A/Ql":function(t){t.exports=JSON.parse('{"APP_NAME":"ActivaSMS","About":"About","Hello world !":"Hello world !","Home":"Home","Version":"Version","Services":"Services","Use Token":"Use Token","Buy Token":"Buy Token","Find your favourite service":"Find your favourite service","Get SMS":"Get SMS","Validate":"Validate","Cancel number":"Cancel number","Tip: Your token will be valid until you receive your sms code!":"Tip: Your token will be valid until you receive your sms code!","Tip: Your code will appears when we receive it!":"Tip: Your code will appears when we receive it!","Step 1 - Validate your token:":"Step 1 - Validate your token:","Step 2 - Choose the country:":"Step 2 - Choose the country:","Step 3 - Receive your SMS:":"Step 3 - Receive your SMS:","USE_LAST_TOKEN":"Use last token paid","Waiting for token...":"Waiting for token...","Your phone number is...":"Your phone number is...","Waiting sms...":"Waiting sms...","INVALID_TOKEN":"Invalid Token","USED_OR_INVALID_TOKEN":"This token is invalid or was used","TOKEN_USED":"Token already used","NO_NUMBER":"We don\'t have numbers for this service at this moment","CHECK_NUMBER_IN_WEB":"Please, use this phone for the register in the web of this service instead the app","ERROR":"An error has ocurred","Help":"Help","HELP_PAGE":{"FAQ":{"TITLE":"F.A.Q ","TOKEN_EXPIRATION":{"QUESTION":"Token Expiration?","ANSWER":"No. In case of error you can attach proof of purchase and a new one will be provided from support if the token has not been used"},"TOKEN_INVALIDATION":{"QUESTION":"When will be my token invalid?","ANSWER":"Once the sms is received in the phone provided"},"COUNTRY_NUMBER":{"QUESTION":"I need a phone for unavailable country","ANSWER":"We are working actively and soon we will be able to use phones from other countries for activations"},"MULTIPLE_SMS":{"QUESTION":"Multiple sms for the same phone?","ANSWER":"No. But we are actively working to have it available very soon!"}},"CONTACT":{"TITLE":"Contacto"}},"PAYMENT_PAGE":{"BIZUM_STEP_CODE":"Step 1 - Copy the following phone number:","BIZUM_STEP_NUMBER":"Step 2 - Send us 2\u20ac using the previous phone number through Bizum using the following code as concept :","BIZUM_INSTRUCTIONS":"*You must include ONLY this code as concept in the Bizum transaction","BIZUM_BUTTON_COMPLETED":"Step 3 - Pulse the button when you have sent us the Bizum:","BIZUM_BUTTON":"Bizum sent","BIZUM_SUPPORT":"If you have any doubt, feel free to contact us in our chat"},"CHECK_PAYMENT_PAGE":{"VALIDATION_MESSAGE":"We are processing your payment, please wait","EMAIL_SENT_MESSAGE":"Your payment is validated, you will receive an email soon with the purchase","ERROR_MESSAGE":"We can\'t verify your payment for this reference:","ERROR_CHAT_CONTACT":"You can use the web chat to solve the problem too","TOKEN_RECEIVED_TITLE":"Here it is your token:","RETURN_BUTTON":"Return to services","RETRY_BUTTON":"Retry","THANK_YOU":"Thank you for your confidence"}}')},AytR:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r={production:!0,hmr:!1,version:"1.0.0",ppId:"AT4gU6wLYXRBglImvhLNkVNfL5ayofOzBUeHh_zFHX_NizUPgjrzrt2RbpgnGjloA9mAneH-WVDCTAuu",serverUrl:"https://t52419tz45.execute-api.eu-west-1.amazonaws.com/dev",defaultLanguage:"es-ES",supportedLanguages:["es-ES","en-US"]}},Cfvw:function(t,e,n){"use strict";n.d(e,"a",function(){return h});var r=n("HDdC"),s=n("SeVD"),i=n("quSY"),o=n("kJWO"),a=n("jZKg"),c=n("Lhse"),l=n("c2HN"),u=n("I55L");function h(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[o.a]}(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>{const s=t[o.a]();r.add(s.subscribe({next(t){r.add(e.schedule(()=>n.next(t)))},error(t){r.add(e.schedule(()=>n.error(t)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Object(l.a)(t))return function(t,e){return new r.a(n=>{const r=new i.a;return r.add(e.schedule(()=>t.then(t=>{r.add(e.schedule(()=>{n.next(t),r.add(e.schedule(()=>n.complete()))}))},t=>{r.add(e.schedule(()=>n.error(t)))}))),r})}(t,e);if(Object(u.a)(t))return Object(a.a)(t,e);if(function(t){return t&&"function"==typeof t[c.a]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new r.a(n=>{const r=new i.a;let s;return r.add(()=>{s&&"function"==typeof s.return&&s.return()}),r.add(e.schedule(()=>{s=t[c.a](),r.add(e.schedule(function(){if(n.closed)return;let t,e;try{const n=s.next();t=n.value,e=n.done}catch(r){return void n.error(r)}e?n.complete():(n.next(t),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof r.a?t:new r.a(Object(s.a)(t))}},D0XW:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("3N8a");const s=new(n("IjjT").a)(r.a)},DH7j:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))()},Dvla:function(t,e,n){"use strict";n.d(e,"a",function(){return c}),n.d(e,"b",function(){return l});var r=n("ofXK"),s=n("fXoL");const i=new s.q("WindowToken","undefined"!=typeof window&&window.document?{providedIn:"root",factory:()=>window}:void 0);var o=n("XNiG");let a=(()=>{class t{constructor(t,e){this.document=t,this.window=e,this.copySubject=new o.a,this.copyResponse$=this.copySubject.asObservable(),this.config={}}configure(t){this.config=t}copy(t){if(!this.isSupported||!t)return this.pushCopyResponse({isSuccess:!1,content:t});const e=this.copyFromContent(t);return this.pushCopyResponse(e?{content:t,isSuccess:e}:{isSuccess:!1,content:t})}get isSupported(){return!!this.document.queryCommandSupported&&!!this.document.queryCommandSupported("copy")&&!!this.window}isTargetValid(t){if(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement){if(t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');return!0}throw new Error("Target should be input or textarea")}copyFromInputElement(t,e=!0){try{this.selectTarget(t);const n=this.copyText();return this.clearSelection(e?t:void 0,this.window),n&&this.isCopySuccessInIE11()}catch(n){return!1}}isCopySuccessInIE11(){const t=this.window.clipboardData;return!(t&&t.getData&&!t.getData("Text"))}copyFromContent(t,e=this.document.body){if(this.tempTextArea&&!e.contains(this.tempTextArea)&&this.destroy(this.tempTextArea.parentElement||void 0),!this.tempTextArea){this.tempTextArea=this.createTempTextArea(this.document,this.window);try{e.appendChild(this.tempTextArea)}catch(r){throw new Error("Container should be a Dom element")}}this.tempTextArea.value=t;const n=this.copyFromInputElement(this.tempTextArea,!1);return this.config.cleanUpAfterCopy&&this.destroy(this.tempTextArea.parentElement||void 0),n}destroy(t=this.document.body){this.tempTextArea&&(t.removeChild(this.tempTextArea),this.tempTextArea=void 0)}selectTarget(t){return t.select(),t.setSelectionRange(0,t.value.length),t.value.length}copyText(){return this.document.execCommand("copy")}clearSelection(t,e){var n;t&&t.focus(),null===(n=e.getSelection())||void 0===n||n.removeAllRanges()}createTempTextArea(t,e){const n="rtl"===t.documentElement.getAttribute("dir");let r;return r=t.createElement("textarea"),r.style.fontSize="12pt",r.style.border="0",r.style.padding="0",r.style.margin="0",r.style.position="absolute",r.style[n?"right":"left"]="-9999px",r.style.top=(e.pageYOffset||t.documentElement.scrollTop)+"px",r.setAttribute("readonly",""),r}pushCopyResponse(t){this.copySubject.next(t)}pushCopyReponse(t){this.pushCopyResponse(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.c),s.Xb(i,8))},t.\u0275prov=Object(s.Gb)({factory:function(){return new t(Object(s.Xb)(r.c),Object(s.Xb)(i,8))},token:t,providedIn:"root"}),t})(),c=(()=>{class t{constructor(t){this.clipboardSrv=t,this.cbOnSuccess=new s.n,this.cbOnError=new s.n}ngOnInit(){}ngOnDestroy(){this.clipboardSrv.destroy(this.container)}onClick(t){this.clipboardSrv.isSupported?this.targetElm&&this.clipboardSrv.isTargetValid(this.targetElm)?this.handleResult(this.clipboardSrv.copyFromInputElement(this.targetElm),this.targetElm.value,t):this.cbContent&&this.handleResult(this.clipboardSrv.copyFromContent(this.cbContent,this.container),this.cbContent,t):this.handleResult(!1,void 0,t)}handleResult(t,e,n){let r={isSuccess:t,event:n};t?(r=Object.assign(r,{content:e,successMessage:this.cbSuccessMsg}),this.cbOnSuccess.emit(r)):this.cbOnError.emit(r),this.clipboardSrv.pushCopyResponse(r)}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(a))},t.\u0275dir=s.Fb({type:t,selectors:[["","ngxClipboard",""]],hostBindings:function(t,e){1&t&&s.ac("click",function(t){return e.onClick(t.target)})},inputs:{targetElm:["ngxClipboard","targetElm"],container:"container",cbContent:"cbContent",cbSuccessMsg:"cbSuccessMsg"},outputs:{cbOnSuccess:"cbOnSuccess",cbOnError:"cbOnError"}}),t})(),l=(()=>{class t{}return t.\u0275mod=s.Ib({type:t}),t.\u0275inj=s.Hb({factory:function(e){return new(e||t)},imports:[[r.b]]}),t})()},E4Qo:function(t){t.exports=JSON.parse('{"APP_NAME":"ActivaSMS","About":"Acerca de","Hello world !":"\xa1Hola Mundo!","Home":"Inicio","Version":"Version","Services":"Servicios","Use Token":"Usar Codigo","Buy Token":"Comprar Codigo","Find your favourite service":"Encuentra tu servicio favorito","Get SMS":"Obtener SMS","Validate":"Validar","Cancel number":"Cancelar n\xfamero","Tip: Your token will be valid until you receive your sms code!":"Consejo: Tu codigo sera valido hasta que recibas tu codigo SMS","Tip: Your code will appears when we receive it!":"Consejo: Tu c\xf3digo aparecer\xe1 cuando lo recibamos","Step 1 - Validate your token:":"Paso 1 - Valida tu codigo:","Step 2 - Choose the country:":"Paso 2 - Elige el pa\xeds:","Step 3 - Receive your SMS:":"Paso 3 - Recibe tu SMS:","USE_LAST_TOKEN":"Usar \xfaltimo c\xf3digo comprado","Waiting for token...":"Esperando C\xf3digo...","Your phone number is...":"Tu n\xfamero es...","Waiting sms...":"Esperando sms...","INVALID_TOKEN":"C\xf3digo Inv\xe1lido","USED_OR_INVALID_TOKEN":"C\xf3digo usado o inv\xe1lido","TOKEN_USED":"C\xf3digo ya utilizado","NO_NUMBER":"No hay n\xfamero disponible para este servicio en este momento","CHECK_NUMBER_IN_WEB":"Por favor, realice el registro a trav\xe9s de la web de este servicio en lugar de la app m\xf3vil","ERROR":"Ha ocurrido un error","Help":"Ayuda","HELP_PAGE":{"FAQ":{"TITLE":"Preguntas frecuentes","TOKEN_EXPIRATION":{"QUESTION":"\xbfCaducidad de mi c\xf3digo?","ANSWER":"No. En caso de error puede adjuntar pruebas de la compra y se le facilitar\xeda uno nuevo desde soporte si el c\xf3digo no ha sido utilizado"},"TOKEN_INVALIDATION":{"QUESTION":"\xbfCuando se invalida mi c\xf3digo?","ANSWER":"Una vez recibido el sms en el tel\xe9fono facilitado"},"COUNTRY_NUMBER":{"QUESTION":"Necesito un tel\xe9fono para otro pa\xeds","ANSWER":"Estamos trabajando activamente y pronto podremos utilizar tel\xe9fonos de otros pa\xedses para las activaciones"},"MULTIPLE_SMS":{"QUESTION":"\xbfPuedo recibir m\xe1s de un sms en un mismo tel\xe9fono?","ANSWER":"No. Pero estamos trabajando activamente para tenerlo disponible muy pronto!"}},"CONTACT":{"TITLE":"Contacto"}},"PAYMENT_PAGE":{"BIZUM_STEP_CODE":"Paso 1 - Copia el siguiente n\xfamero de tel\xe9fono:","BIZUM_STEP_NUMBER":"Paso 2 - Env\xedanos un Bizum por un valor de exactamente 2\u20ac y con el siguiente c\xf3digo de referencia como concepto:","BIZUM_INSTRUCTIONS":"*Deber\xe1 aparecer como concepto solo este c\xf3digo a la hora de enviarnos el Bizum","BIZUM_BUTTON_COMPLETED":"Paso 3 - Pulse en el bot\xf3n cuando nos haya enviado su Bizum para recibir su compra:","BIZUM_BUTTON":"Bizum enviado","BIZUM_SUPPORT":"Si tienes alguna duda, cont\xe1ctanos a traves de nuestro chat y te ayudaremos encantados"},"CHECK_PAYMENT_PAGE":{"VALIDATION_MESSAGE":"Estamos procesando su pago, puede tardar unos minutos","EMAIL_SENT_MESSAGE":"Su pago se ha validado, recibir\xe1 un email con su compra en unos minutos","ERROR_MESSAGE":"No se ha podido verificar su pago con referencia:","ERROR_CHAT_CONTACT":"Tambi\xe9n puedes contactarnos a trav\xe9s de nuestro chat","TOKEN_RECEIVED_TITLE":"Aqui tienes tu token:","RETURN_BUTTON":"Volver a Servicios","RETRY_BUTTON":"Reintentar","THANK_YOU":"Gracias por tu confianza"}}')},EY2u:function(t,e,n){"use strict";n.d(e,"a",function(){return s}),n.d(e,"b",function(){return i});var r=n("HDdC");const s=new r.a(t=>t.complete());function i(t){return t?function(t){return new r.a(e=>t.schedule(()=>e.complete()))}(t):s}},GyhO:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("LRne"),s=n("0EUg");function i(...t){return Object(s.a)()(Object(r.a)(...t))}},HDdC:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("7o/Q"),s=n("2QA8"),i=n("gRHU"),o=n("kJWO"),a=n("SpAZ"),c=n("2fFW");let l=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:o}=this,a=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[s.a])return t[s.a]()}return t||e||n?new r.a(t,e,n):new r.a(i.a)}(t,e,n);if(a.add(o?o.call(a,this.source):this.source||c.a.useDeprecatedSynchronousErrorHandling&&!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),c.a.useDeprecatedSynchronousErrorHandling&&a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a}_trySubscribe(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof r.a?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=u(e))((e,n)=>{let r;r=this.subscribe(e=>{try{t(e)}catch(s){n(s),r&&r.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[o.a](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?a.a:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=u(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function u(t){if(t||(t=c.a.Promise||Promise),!t)throw new Error("no Promise impl found");return t}},I55L:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=t=>t&&"number"==typeof t.length&&"function"!=typeof t},IjjT:function(t,e,n){"use strict";n.d(e,"a",function(){return s});let r=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class s extends r{constructor(t,e=r.now){super(t,()=>s.delegate&&s.delegate!==this?s.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return s.delegate&&s.delegate!==this?s.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}},IzEk:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),s=n("4I5i"),i=n("EY2u");function o(t){return e=>0===t?Object(i.b)():e.lift(new a(t))}class a{constructor(t){if(this.total=t,this.total<0)throw new s.a}call(t,e){return e.subscribe(new c(t,this.total))}}class c extends r.a{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}},JIr8:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("zx2A");function s(t){return function(e){const n=new i(t),r=e.lift(n);return n.caught=r}}class i{constructor(t){this.selector=t}call(t,e){return e.subscribe(new o(t,this.selector,this.caught))}}class o extends r.b{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new r.a(this);this.add(s);const i=Object(r.c)(n,s);i!==s&&this.add(i)}}}},JX91:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("GyhO"),s=n("z+Ro");function i(...t){const e=t[t.length-1];return Object(s.a)(e)?(t.pop(),n=>Object(r.a)(t,n,e)):e=>Object(r.a)(t,e)}},KqfI:function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},LRne:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("z+Ro"),s=n("yCtX"),i=n("jZKg");function o(...t){let e=t[t.length-1];return Object(r.a)(e)?(t.pop(),Object(i.a)(t,e)):Object(s.a)(t)}},Lhse:function(t,e,n){"use strict";function r(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}n.d(e,"a",function(){return s});const s=r()},NJ4a:function(t,e,n){"use strict";function r(t){setTimeout(()=>{throw t},0)}n.d(e,"a",function(){return r})},NXyV:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("HDdC"),s=n("Cfvw"),i=n("EY2u");function o(t){return new r.a(e=>{let n;try{n=t()}catch(r){return void e.error(r)}return(n?Object(s.a)(n):Object(i.b)()).subscribe(e)})}},PqYM:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("HDdC"),s=n("D0XW"),i=n("DH7j");function o(t){return!Object(i.a)(t)&&t-parseFloat(t)+1>=0}var a=n("z+Ro");function c(t=0,e,n){let i=-1;return o(e)?i=Number(e)<1?1:Number(e):Object(a.a)(e)&&(n=e),Object(a.a)(n)||(n=s.a),new r.a(e=>{const r=o(t)?t:+t-n.now();return n.schedule(l,r,{index:0,period:i,subscriber:e})})}function l(t){const{index:e,period:n,subscriber:r}=t;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}},R0Ic:function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return d}),n.d(e,"e",function(){return o}),n.d(e,"f",function(){return u}),n.d(e,"g",function(){return a}),n.d(e,"h",function(){return c}),n.d(e,"i",function(){return l}),n.d(e,"j",function(){return f}),n.d(e,"k",function(){return p});class r{}class s{}const i="*";function o(t,e=null){return{type:4,styles:e,timings:t}}function a(t,e=null){return{type:2,steps:t,options:e}}function c(t){return{type:6,styles:t,offset:null}}function l(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function u(t,e,n=null){return{type:11,selector:t,animation:e,options:n}}function h(t){Promise.resolve(null).then(t)}class d{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){h(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class f{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,r=0;const s=this.players.length;0==s?h(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==s&&this._onFinish()}),t.onDestroy(()=>{++n==s&&this._onDestroy()}),t.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}const p="!"},SeVD:function(t,e,n){"use strict";n.d(e,"a",function(){return u});var r=n("ngJS"),s=n("NJ4a"),i=n("Lhse"),o=n("kJWO"),a=n("I55L"),c=n("c2HN"),l=n("XoHu");const u=t=>{if(t&&"function"==typeof t[o.a])return u=t,t=>{const e=u[o.a]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(Object(a.a)(t))return Object(r.a)(t);if(Object(c.a)(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,s.a),t);if(t&&"function"==typeof t[i.a])return e=t,t=>{const n=e[i.a]();for(;;){let e;try{e=n.next()}catch(r){return t.error(r),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=Object(l.a)(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,u}},SpAZ:function(t,e,n){"use strict";function r(t){return t}n.d(e,"a",function(){return r})},SxV6:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("sVev"),s=n("pLZG"),i=n("IzEk"),o=n("xbPD"),a=n("XDbj"),c=n("SpAZ");function l(t,e){const n=arguments.length>=2;return l=>l.pipe(t?Object(s.a)((e,n)=>t(e,n,l)):c.a,Object(i.a)(1),n?Object(o.a)(e):Object(a.a)(()=>new r.a))}},VRyK:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("HDdC"),s=n("z+Ro"),i=n("bHdf"),o=n("yCtX");function a(...t){let e=Number.POSITIVE_INFINITY,n=null,a=t[t.length-1];return Object(s.a)(a)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof a&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof r.a?t[0]:Object(i.a)(e)(Object(o.a)(t,n))}},WMd4:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("EY2u"),s=n("LRne"),i=n("z6cu");let o=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(i.a)(this.error);case"C":return Object(r.b)()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})()},XDbj:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("sVev"),s=n("7o/Q");function i(t=c){return e=>e.lift(new o(t))}class o{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new a(t,this.errorFactory))}}class a extends s.a{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function c(){return new r.a}},XNiG:function(t,e,n){"use strict";n.d(e,"b",function(){return l}),n.d(e,"a",function(){return u});var r=n("HDdC"),s=n("7o/Q"),i=n("quSY"),o=n("9ppp"),a=n("Ylt2"),c=n("2QA8");class l extends s.a{constructor(t){super(t),this.destination=t}}let u=(()=>{class t extends r.a{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[c.a](){return new l(this)}lift(t){const e=new h(this,this);return e.operator=t,e}next(t){if(this.closed)throw new o.a;if(!this.isStopped){const{observers:e}=this,n=e.length,r=e.slice();for(let s=0;snew h(t,e),t})();class h extends u{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):i.a.EMPTY}}},XoHu:function(t,e,n){"use strict";function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",function(){return r})},Ylt2:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("quSY");class s extends r.a{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},ZAI4:function(t,e,n){"use strict";n.d(e,"a",function(){return cr});var r=n("jhN1"),s=n("3Pt+"),i=n("tk/3"),o=n("ofXK"),a=n("fXoL"),c=n("NXyV"),l=n("z6cu"),u=n("xgIS"),h=n("LRne"),d=n("GyhO"),f=n("XNiG"),p=n("5yfJ"),m=n("VRyK"),g=n("lJxs"),b=n("pLZG"),y=n("eIep"),_=n("oB13"),v=n("IzEk"),w=n("vkgz"),C=n("3E0/");const E="Service workers are disabled or not supported by this browser";class O{constructor(t){if(this.serviceWorker=t,t){const e=Object(u.a)(t,"controllerchange").pipe(Object(g.a)(()=>t.controller)),n=Object(c.a)(()=>Object(h.a)(t.controller)),r=Object(d.a)(n,e);this.worker=r.pipe(Object(b.a)(t=>!!t)),this.registration=this.worker.pipe(Object(y.a)(()=>t.getRegistration()));const s=Object(u.a)(t,"message").pipe(Object(g.a)(t=>t.data)).pipe(Object(b.a)(t=>t&&t.type)).pipe(Object(_.a)(new f.a));s.connect(),this.events=s}else this.worker=this.events=this.registration=Object(c.a)(()=>Object(l.a)(new Error("Service workers are disabled or not supported by this browser")))}postMessage(t,e){return this.worker.pipe(Object(v.a)(1),Object(w.a)(n=>{n.postMessage(Object.assign({action:t},e))})).toPromise().then(()=>{})}postMessageWithStatus(t,e,n){const r=this.waitForStatus(n),s=this.postMessage(t,e);return Promise.all([r,s]).then(()=>{})}generateNonce(){return Math.round(1e7*Math.random())}eventsOfType(t){return this.events.pipe(Object(b.a)(e=>e.type===t))}nextEventOfType(t){return this.eventsOfType(t).pipe(Object(v.a)(1))}waitForStatus(t){return this.eventsOfType("STATUS").pipe(Object(b.a)(e=>e.nonce===t),Object(v.a)(1),Object(g.a)(t=>{if(!t.status)throw new Error(t.error)})).toPromise()}get isEnabled(){return!!this.serviceWorker}}let S=(()=>{class t{constructor(t){if(this.sw=t,this.subscriptionChanges=new f.a,!t.isEnabled)return this.messages=p.a,this.notificationClicks=p.a,void(this.subscription=p.a);this.messages=this.sw.eventsOfType("PUSH").pipe(Object(g.a)(t=>t.data)),this.notificationClicks=this.sw.eventsOfType("NOTIFICATION_CLICK").pipe(Object(g.a)(t=>t.data)),this.pushManager=this.sw.registration.pipe(Object(g.a)(t=>t.pushManager));const e=this.pushManager.pipe(Object(y.a)(t=>t.getSubscription()));this.subscription=Object(m.a)(e,this.subscriptionChanges)}get isEnabled(){return this.sw.isEnabled}requestSubscription(t){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const e={userVisibleOnly:!0};let n=this.decodeBase64(t.serverPublicKey.replace(/_/g,"/").replace(/-/g,"+")),r=new Uint8Array(new ArrayBuffer(n.length));for(let s=0;st.subscribe(e)),Object(v.a)(1)).toPromise().then(t=>(this.subscriptionChanges.next(t),t))}unsubscribe(){return this.sw.isEnabled?this.subscription.pipe(Object(v.a)(1),Object(y.a)(t=>{if(null===t)throw new Error("Not subscribed to push notifications.");return t.unsubscribe().then(t=>{if(!t)throw new Error("Unsubscribe failed!");this.subscriptionChanges.next(null)})})).toPromise():Promise.reject(new Error(E))}decodeBase64(t){return atob(t)}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(O))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})(),D=(()=>{class t{constructor(t){if(this.sw=t,!t.isEnabled)return this.available=p.a,void(this.activated=p.a);this.available=this.sw.eventsOfType("UPDATE_AVAILABLE"),this.activated=this.sw.eventsOfType("UPDATE_ACTIVATED")}get isEnabled(){return this.sw.isEnabled}checkForUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("CHECK_FOR_UPDATES",{statusNonce:t},t)}activateUpdate(){if(!this.sw.isEnabled)return Promise.reject(new Error(E));const t=this.sw.generateNonce();return this.sw.postMessageWithStatus("ACTIVATE_UPDATE",{statusNonce:t},t)}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(O))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})();class x{}const A=new a.q("NGSW_REGISTER_SCRIPT");function k(t,e,n,r){return()=>{if(!Object(o.x)(r)||!("serviceWorker"in navigator)||!1===n.enabled)return;let s;if(navigator.serviceWorker.addEventListener("controllerchange",()=>{null!==navigator.serviceWorker.controller&&navigator.serviceWorker.controller.postMessage({action:"INITIALIZE"})}),"function"==typeof n.registrationStrategy)s=n.registrationStrategy();else{const[e,...r]=(n.registrationStrategy||"registerWhenStable:30000").split(":");switch(e){case"registerImmediately":s=Object(h.a)(null);break;case"registerWithDelay":s=T(+r[0]||0);break;case"registerWhenStable":s=r[0]?Object(m.a)(j(t),T(+r[0])):j(t);break;default:throw new Error("Unknown ServiceWorker registration strategy: "+n.registrationStrategy)}}t.get(a.z).runOutsideAngular(()=>s.pipe(Object(v.a)(1)).subscribe(()=>navigator.serviceWorker.register(e,{scope:n.scope}).catch(t=>console.error("Service worker registration failed with:",t))))}}function T(t){return Object(h.a)(null).pipe(Object(C.a)(t))}function j(t){return t.get(a.g).isStable.pipe(Object(b.a)(t=>t))}function I(t,e){return new O(Object(o.x)(e)&&!1!==t.enabled?navigator.serviceWorker:void 0)}let P=(()=>{class t{static register(e,n={}){return{ngModule:t,providers:[{provide:A,useValue:e},{provide:x,useValue:n},{provide:O,useFactory:I,deps:[x,a.B]},{provide:a.d,useFactory:k,deps:[a.r,A,x,a.B],multi:!0}]}}}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},providers:[S,D]}),t})();var R=n("sYmb"),F=n("1kSV"),N=n("wQXg"),M=n("AytR"),L=n("tyNb");let V=(()=>{class t extends L.d{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig||t.data.reuse}}return t.\u0275fac=function(e){return B(e||t)},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})();const B=a.Rb(V);let H=(()=>{class t{intercept(t,e){return/^(http|https):/i.test(t.url)||(t=t.clone({url:t.url})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var U=n("JIr8"),z=function(t){return t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Debug=4]="Debug",t}({});let $=(()=>{class t{constructor(t){this.source=t}static enableProductionMode(){t.level=z.Warning}debug(...t){this.log(console.log,z.Debug,t)}info(...t){this.log(console.info,z.Info,t)}warn(...t){this.log(console.warn,z.Warning,t)}error(...t){this.log(console.error,z.Error,t)}log(e,n,r){if(n<=t.level){const s=this.source?["["+this.source+"]"].concat(r):r;e.apply(console,s),t.outputs.forEach(t=>t.apply(t,[this.source,n,...r]))}}}return t.level=z.Debug,t.outputs=[],t})();const K=new $("ErrorHandlerInterceptor");let q=(()=>{class t{intercept(t,e){return e.handle(t).pipe(Object(U.a)(t=>this.errorHandler(t)))}errorHandler(t){throw M.a.production||K.info("Request error",t),t}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),W=(()=>{class t{constructor(t){if(t)throw new Error(t+" has already been loaded. Import Core module in the AppModule only.")}}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)(a.Xb(t,12))},providers:[{provide:i.a,useClass:H,multi:!0},{provide:i.a,useClass:q,multi:!0},{provide:L.d,useClass:V}],imports:[[o.b,i.c,R.b,L.i]]}),t})();var G=n("1G5W");const X=Symbol("untilDestroyed");var Q=n("9urI"),Z=n("4u49"),Y=n("nYR2");let J=(()=>{class t{constructor(t){this.httpClient=t}getRandomQuote(t){return this.httpClient.get((e=t,"/api/jokes/random?category="+e.category)).pipe(Object(g.a)(t=>t.value),Object(U.a)(()=>Object(h.a)("Error, could not load joke :-(")));var e}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(i.b))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();var tt=n("s1Ou");let et=(()=>{class t{constructor(t){this.quoteService=t,this.isLoading=!1}ngOnInit(){this.isLoading=!0,this.quoteService.getRandomQuote({category:"dev"}).pipe(Object(Y.a)(()=>{this.isLoading=!1})).subscribe(t=>{this.quote=t})}}return t.\u0275fac=function(e){return new(e||t)(a.Kb(J))},t.\u0275cmp=a.Eb({type:t,selectors:[["app-home"]],decls:19,vars:3,consts:[[1,"container-fluid"],[1,"jumbotron","text-center"],["src","assets/activaSMS-logo.png","alt","angular logo",1,"logo"],["translate",""],[3,"isLoading"],[3,"hidden"]],template:function(t,e){1&t&&(a.Pb(0,"div",0),a.Ac(1,"\n "),a.Pb(2,"div",1),a.Ac(3,"\n "),a.Pb(4,"h1"),a.Ac(5,"\n "),a.Lb(6,"img",2),a.Ac(7,"\n "),a.Pb(8,"span",3),a.Ac(9,"Hello world !"),a.Ob(),a.Ac(10,"\n "),a.Ob(),a.Ac(11,"\n "),a.Lb(12,"app-loader",4),a.Ac(13,"\n "),a.Pb(14,"q",5),a.Ac(15),a.Ob(),a.Ac(16,"\n "),a.Ob(),a.Ac(17,"\n"),a.Ob(),a.Ac(18,"\n")),2&t&&(a.xb(12),a.jc("isLoading",e.isLoading),a.xb(2),a.jc("hidden",e.isLoading),a.xb(1),a.Bc(e.quote))},directives:[R.a,tt.a],styles:['@charset "UTF-8";.logo[_ngcontent-%COMP%]{width:100px}q[_ngcontent-%COMP%]{font-style:italic;font-size:1.2rem;quotes:"\xab " " \xbb"}.jumbotron[_ngcontent-%COMP%]{background:none}']}),t})();var nt=n("xCBG"),rt=n("7o/Q"),st=n("D0XW");class it{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new ot(t,this.dueTime,this.scheduler))}}class ot extends rt.a{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(at,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function at(t){t.debouncedNext()}var ct=n("A/Ql"),lt=n("E4Qo");const ut=new $("I18nService"),ht="language";let dt=(()=>{class t{constructor(t){this.translateService=t,t.setTranslation("es-ES",lt),t.setTranslation("en-US",ct)}init(t,e){this.defaultLanguage=t,this.supportedLanguages=e,this.language="",this.langChangeSubscription=this.translateService.onLangChange.subscribe(t=>{localStorage.setItem(ht,t.lang)})}destroy(){this.langChangeSubscription&&this.langChangeSubscription.unsubscribe()}set language(t){t=t||localStorage.getItem(ht)||this.translateService.getBrowserCultureLang();let e=this.supportedLanguages.includes(t);t&&!e&&(t=t.split("-")[0],t=this.supportedLanguages.find(e=>e.startsWith(t))||"",e=Boolean(t)),e||(t=this.defaultLanguage),ut.debug("Language set to "+t),this.translateService.use(t)}get language(){return this.translateService.currentLang}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(R.d))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ft(t,e){if(1&t){const t=a.Qb();a.Pb(0,"button",2),a.ac("click",function(){a.sc(t);const n=e.$implicit;return a.ec().setLanguage(n)}),a.Ac(1,"\n "),a.Lb(2,"span"),a.fc(3,"lowercase"),a.fc(4,"translate"),a.Ac(5,"\n "),a.Ob()}if(2&t){const t=e.$implicit;a.xb(2),a.Ab("flag-icon flag-icon-",a.gc(3,3,a.gc(4,5,t.split("-")[1])),"")}}let pt=(()=>{class t{constructor(t){this.i18nService=t,this.inNavbar=!1,this.menuClass=""}ngOnInit(){}setLanguage(t){this.i18nService.language=t}get currentLanguage(){return this.i18nService.language}get languages(){return this.i18nService.supportedLanguages}}return t.\u0275fac=function(e){return new(e||t)(a.Kb(dt))},t.\u0275cmp=a.Eb({type:t,selectors:[["app-language-selector"]],inputs:{inNavbar:"inNavbar",menuClass:"menuClass"},decls:6,vars:1,consts:[[1,"mobile-look"],["class","mobile-select-language",3,"click",4,"ngFor","ngForOf"],[1,"mobile-select-language",3,"click"]],template:function(t,e){1&t&&(a.Ac(0,"\n"),a.Pb(1,"div",0),a.Ac(2,"\n "),a.yc(3,ft,6,7,"button",1),a.Ac(4,"\n"),a.Ob(),a.Ac(5,"\n")),2&t&&(a.xb(3),a.jc("ngForOf",e.languages))},directives:[o.k],pipes:[o.i,R.c],styles:[".nav-link.dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer}.flag-icon[_ngcontent-%COMP%]{font-size:20px}.flag-dropdown[_ngcontent-%COMP%]{background-color:initial;border:0;width:51%;padding:0;text-align:center}.dropdown-menu.show[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center}.dropdown-menu[_ngcontent-%COMP%]{min-width:75px}.mobile-look[_ngcontent-%COMP%]{margin-right:40px;display:flex}.mobile-look[_ngcontent-%COMP%] .mobile-select-language[_ngcontent-%COMP%]{border:0;background:transparent;outline:none;padding:3px}"]}),t})();const mt=function(t){return{open:t}},gt=function(t){return{act:t}};let bt=(()=>{class t{constructor(){this.menuOpened=!1}ngOnInit(){}toggleMenu(){this.menuOpened=!this.menuOpened}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Eb({type:t,selectors:[["app-header"]],decls:65,vars:10,consts:[[1,"navbar","navbar-expand-lg","navbar-dark","bg-dark",3,"ngClass"],[1,"logo"],[1,"navbar-nav","ml-auto","language-mobile"],["inNavbar","true","menuClass","dropdown-menu dropdown-menu-right"],[1,"menuBtn",3,"ngClass","click"],[1,"lines"],[1,"mainMenu",3,"ngClass"],["routerLink","/services","translate","",3,"click"],["routerLink","/faq","translate","",3,"click"],["id","navbar-menu",1,"collapse","navbar-collapse","float-xs-none",3,"ngbCollapse"],[1,"navbar-nav"],["routerLink","/services","routerLinkActive","active",1,"nav-item","nav-link","text-uppercase"],[1,"fas","fa-sim-card"],["translate",""],["routerLink","/faq","routerLinkActive","active",1,"nav-item","nav-link","text-uppercase"],[1,"fas","fa-question"],[1,"navbar-nav","ml-auto"]],template:function(t,e){1&t&&(a.Pb(0,"header"),a.Ac(1,"\n "),a.Pb(2,"nav",0),a.Ac(3,"\n "),a.Lb(4,"div",1),a.Ac(5,"\n "),a.Pb(6,"div",2),a.Ac(7,"\n "),a.Lb(8,"app-language-selector",3),a.Ac(9,"\n "),a.Ob(),a.Ac(10,"\n "),a.Pb(11,"div",4),a.ac("click",function(){return e.menuOpened=!e.menuOpened}),a.Ac(12,"\n "),a.Lb(13,"span",5),a.Ac(14,"\n "),a.Ob(),a.Ac(15,"\n "),a.Pb(16,"nav",6),a.Ac(17,"\n "),a.Pb(18,"ul"),a.Ac(19,"\n "),a.Ac(20,"\n "),a.Pb(21,"li"),a.Ac(22,"\n "),a.Pb(23,"a",7),a.ac("click",function(){return e.menuOpened=!1}),a.Ac(24,"Services"),a.Ob(),a.Ac(25,"\n "),a.Ob(),a.Ac(26,"\n "),a.Pb(27,"li"),a.Ac(28,"\n "),a.Pb(29,"a",8),a.ac("click",function(){return e.menuOpened=!1}),a.Ac(30,"Help"),a.Ob(),a.Ac(31,"\n "),a.Ob(),a.Ac(32,"\n "),a.Ob(),a.Ac(33,"\n "),a.Ob(),a.Ac(34,"\n "),a.Pb(35,"div",9),a.Ac(36,"\n "),a.Pb(37,"div",10),a.Ac(38,"\n "),a.Ac(39,"\n "),a.Pb(40,"a",11),a.Ac(41,"\n "),a.Lb(42,"i",12),a.Ac(43,"\n "),a.Pb(44,"span",13),a.Ac(45,"Services"),a.Ob(),a.Ac(46,"\n "),a.Ob(),a.Ac(47,"\n "),a.Pb(48,"a",14),a.Ac(49,"\n "),a.Lb(50,"i",15),a.Ac(51,"\n "),a.Pb(52,"span",13),a.Ac(53,"Help"),a.Ob(),a.Ac(54,"\n "),a.Ob(),a.Ac(55,"\n "),a.Ob(),a.Ac(56,"\n "),a.Pb(57,"div",16),a.Ac(58,"\n "),a.Lb(59,"app-language-selector",3),a.Ac(60,"\n "),a.Ob(),a.Ac(61,"\n "),a.Ob(),a.Ac(62,"\n "),a.Ob(),a.Ac(63,"\n"),a.Ob(),a.Ac(64,"\n")),2&t&&(a.xb(2),a.jc("ngClass",a.nc(4,mt,e.menuOpened)),a.xb(9),a.jc("ngClass",a.nc(6,gt,e.menuOpened)),a.xb(5),a.jc("ngClass",a.nc(8,gt,e.menuOpened)),a.xb(19),a.jc("ngbCollapse",!0))},directives:[F.j,o.j,pt,L.h,R.a,F.c,L.g],styles:['.navbar[_ngcontent-%COMP%]{margin-bottom:1.25em;justify-content:flex-start}.navbar[_ngcontent-%COMP%] #navbar-menu[_ngcontent-%COMP%]{padding-left:30px}.navbar.bg-dark[_ngcontent-%COMP%]{background-color:#000!important}.nav-link.dropdown-toggle[_ngcontent-%COMP%]{cursor:pointer}.logo[_ngcontent-%COMP%]{background:url(/assets/svg/logo.svg) no-repeat 50%;background-image:url(/assets/svg/logo.svg);width:64px;height:64px}@media (min-width:992px){.language-mobile[_ngcontent-%COMP%]{display:none}}.flag-mobile[_ngcontent-%COMP%]{position:absolute;right:50px}.navbar-brand[_ngcontent-%COMP%]{display:none}@media (min-width:992px){.navbar-brand[_ngcontent-%COMP%]{display:block}}.menuBtn[_ngcontent-%COMP%]{height:30px;width:30px;position:absolute;right:20px;top:25px;z-index:102}.menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{top:50%;margin:-1px 0 0 -15px;transition:height .3s}.menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], .menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:after, .menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{background-color:#fff;border-radius:1px;height:2px;width:100%;position:absolute;left:50%}.menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:after, .menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{content:"";margin-left:-15px;transition:all .2s}.menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:after{top:-7px}.menuBtn[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{bottom:-7px}.menuBtn.act[_ngcontent-%COMP%]{position:fixed}.menuBtn.act[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{height:0}.menuBtn.act[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:after, .menuBtn.act[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{background-color:#000;top:1px}.menuBtn.act[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:after{transform:rotate(45deg)}.menuBtn.act[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:before{transform:rotate(-45deg)}@media (min-width:992px){.menuBtn[_ngcontent-%COMP%]{display:none}}.mainMenu[_ngcontent-%COMP%]{background-color:#fff;position:absolute;left:0;top:0;z-index:100;height:100%;width:100%;display:table;text-align:center;opacity:0;transition:all .5s cubic-bezier(.68,-.55,.265,1.55);transform:scale(0)}.mainMenu.act[_ngcontent-%COMP%]{position:fixed;opacity:1;transform:translateZ(200px);height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;z-index:101}.mainMenu.act[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{opacity:1;transform:translateX(0)}.mainMenu[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:center;align-items:center;height:90vh;padding-left:0}.mainMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:8px 0;transition:all .4s .51s;opacity:0}.mainMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(odd){transform:translateX(200%)}.mainMenu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(2n){transform:translateX(-200%)}.mainMenu[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000;display:inline-block;font-size:18px}.mainMenu[_ngcontent-%COMP%] a.suBtn[_ngcontent-%COMP%]{color:#fff}ol[_ngcontent-%COMP%], ul[_ngcontent-%COMP%]{list-style:none}']}),t})();var yt=n("9bPy");let _t=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=a.Eb({type:t,selectors:[["app-footer"]],decls:45,vars:0,consts:[["viewBox","0 0 120 28"],["id","xxx"],["cx","7","cy","12","r","40","fill","#fff"],["id","goo"],["in","SourceGraphic","stdDeviation","2","result","blur"],["in","blur","mode","matrix","values","\n 1 0 0 0 0 \n 0 1 0 0 0 \n 0 0 1 0 0 \n 0 0 0 13 -9","result","goo"],["in","SourceGraphic","in2","goo"],["id","wave","d","M 0,10 C 30,10 30,15 60,15 90,15 90,10 120,10 150,10 150,15 180,15 210,15 210,10 240,10 v 28 h -240 z"],["id","wave3",0,"xlink","href","#wave","x","0","y","-2",1,"wave"],["id","wave2",0,"xlink","href","#wave","x","0","y","0",1,"wave"],[1,"gooeff"],["id","wave1",0,"xlink","href","#wave","x","0","y","1",1,"wave"],["href","https://www.iubenda.com/privacy-policy/67816792","title","Privacy Policy ",1,"iubenda-black","iubenda-embed"],["routerLink","/cookie-policy"]],template:function(t,e){1&t&&(a.Pb(0,"footer"),a.Ac(1,"\n "),a.dc(),a.Pb(2,"svg",0),a.Ac(3,"\n "),a.Pb(4,"defs"),a.Ac(5,"\n "),a.Pb(6,"mask",1),a.Ac(7,"\n "),a.Lb(8,"circle",2),a.Ac(9,"\n "),a.Ob(),a.Ac(10,"\n\n "),a.Pb(11,"filter",3),a.Ac(12,"\n "),a.Lb(13,"feGaussianBlur",4),a.Ac(14,"\n "),a.Lb(15,"feColorMatrix",5),a.Ac(16,"\n "),a.Lb(17,"feBlend",6),a.Ac(18,"\n "),a.Ob(),a.Ac(19,"\n "),a.Lb(20,"path",7),a.Ac(21,"\n "),a.Ob(),a.Ac(22,"\n\n "),a.Lb(23,"use",8),a.Ac(24,"\n "),a.Lb(25,"use",9),a.Ac(26,"\n\n "),a.Pb(27,"g",10),a.Ac(28,"\n "),a.Lb(29,"use",11),a.Ac(30,"\n "),a.Ob(),a.Ac(31,"\n "),a.Ac(32,"\n "),a.Ob(),a.Ac(33,"\n\n "),a.cc(),a.Pb(34,"div"),a.Ac(35,"\n Copyright \xa9 2020 ActivaSMS |\n "),a.Pb(36,"a",12),a.Ac(37,"Privacy Policy"),a.Ob(),a.Ac(38,"\n "),a.Ac(39,"\n | "),a.Pb(40,"a",13),a.Ac(41,"Cookie policy"),a.Ob(),a.Ac(42,"\n "),a.Ob(),a.Ac(43,"\n"),a.Ob(),a.Ac(44,"\n"))},directives:[L.h],styles:["footer[_ngcontent-%COMP%]{z-index:1;width:100%;overflow-x:hidden;position:absolute}footer[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{background-color:#000;margin:-5px 0 0;padding:0;color:#fff;text-align:center}svg[_ngcontent-%COMP%]{width:100%}.arrow[_ngcontent-%COMP%]{stroke-width:.3px;stroke:#ff0}.topball[_ngcontent-%COMP%]{animation:ball 1.5s ease-in-out;animation-iteration-count:infinite;animation-direction:alternate;animation-delay:.3s;cursor:pointer}.wave[_ngcontent-%COMP%]{animation:wave 3s linear;animation-iteration-count:infinite;fill:#000}.drop[_ngcontent-%COMP%]{fill:transparent;animation:drop 5s ease infinite normal;stroke:#000;stroke-width:.5;opacity:.6;transform:translateY(80%)}.drop1[_ngcontent-%COMP%]{transform-origin:20px 3px}.drop2[_ngcontent-%COMP%]{animation-delay:3s;animation-duration:3s;transform-origin:25px 3px}.drop3[_ngcontent-%COMP%]{animation-delay:-2s;animation-duration:3.4s;transform-origin:16px 3px}.gooeff[_ngcontent-%COMP%]{filter:url(#goo)}#wave2[_ngcontent-%COMP%]{animation-duration:5s;animation-direction:reverse;opacity:.6}#wave3[_ngcontent-%COMP%]{animation-duration:7s;opacity:.3}@keyframes drop{0%{transform:translateY(80%);opacity:.6}80%{transform:translateY(80%);opacity:.6}90%{transform:translateY(10%);opacity:.6}to{transform:translateY(0) scale(1.5);stroke-width:.2;opacity:0}}@keyframes wave{to{transform:translateX(-100%)}}@keyframes ball{to{transform:translateY(20%)}}"]}),t})();const vt=["selfClosingAlertSuccess"],wt=["selfClosingAlertError"];function Ct(t,e){if(1&t){const t=a.Qb();a.Pb(0,"div",1),a.Ac(1,"\n "),a.Pb(2,"ngb-alert",2,3),a.ac("closed",function(){return a.sc(t),a.ec().errorMessage=""}),a.Ac(4),a.Ob(),a.Ac(5,"\n"),a.Ob()}if(2&t){const t=a.ec();a.xb(4),a.Cc("",t.errorMessage,"\n ")}}const Et=function(){return{startAnim:"fadeIn",endAnim:"fadeOut",time:1e3}};let Ot=(()=>{class t{constructor(t){this.alertService=t,this.errorMessage="",this.showErrorMessage=!1}ngOnInit(){this.initErrorMessages()}initErrorMessages(){this.alertService.errorMessage.subscribe(t=>{""!==t?(this.errorMessage=t,this.showErrorMessage=!0):this.showErrorMessage=!1}),this.alertService.errorMessage.pipe(function(t,e=st.a){return n=>n.lift(new it(t,e))}(5e3)).subscribe(()=>{this.showErrorMessage=!1})}}return t.\u0275fac=function(e){return new(e||t)(a.Kb(nt.a))},t.\u0275cmp=a.Eb({type:t,selectors:[["app-shell"]],viewQuery:function(t,e){var n;1&t&&(a.Ec(vt,!0),a.Ec(wt,!0)),2&t&&(a.qc(n=a.bc())&&(e.selfClosingAlertSuccess=n.first),a.qc(n=a.bc())&&(e.selfClosingAlertError=n.first))},decls:8,vars:3,consts:[["class","alerts",4,"animIf","animIfInfo"],[1,"alerts"],["type","danger",1,"alert-message",3,"closed"],["selfClosingAlertError",""]],template:function(t,e){1&t&&(a.Lb(0,"app-header"),a.Ac(1,"\n"),a.Lb(2,"router-outlet"),a.Ac(3,"\n"),a.yc(4,Ct,6,1,"div",0),a.Ac(5,"\n"),a.Lb(6,"app-footer"),a.Ac(7,"\n")),2&t&&(a.xb(4),a.jc("animIf",e.showErrorMessage)("animIfInfo",a.mc(2,Et)))},directives:[bt,L.j,yt.a,_t,F.b],styles:[".alerts[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:sticky;bottom:0;width:100%}.alerts[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%]{width:90%;text-align:center}@media (min-width:768px){.alert-message[_ngcontent-%COMP%]{width:20%}}@media (min-width:992px){.alerts[_ngcontent-%COMP%]{display:flex;align-items:flex-end;justify-content:flex-end;position:sticky;bottom:0;width:100%}.alerts[_ngcontent-%COMP%] .alert-message[_ngcontent-%COMP%]{width:20%;margin-right:50px}}"]}),t})();class St{static childRoutes(t){return{path:"",component:Ot,children:t,data:{reuse:!0}}}}const Dt=[St.childRoutes([{path:"",redirectTo:"/services",pathMatch:"full"},{path:"home",component:et,data:{title:Object(Z.a)("Home")}}])];let xt=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},providers:[],imports:[[L.i.forChild(Dt)],L.i]}),t})(),At=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},imports:[[o.b,R.b,Q.a,N.a,xt]]}),t})(),kt=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},imports:[[o.b,R.b,F.d]]}),t})(),Tt=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},imports:[[o.b,R.b,F.d,kt,L.i,F.d,yt.b]]}),t})();new $("App");let jt=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.activatedRoute=e,this.titleService=n,this.translateService=r,this.i18nService=s}ngOnInit(){M.a.production&&$.enableProductionMode(),this.i18nService.init(M.a.defaultLanguage,M.a.supportedLanguages);const t=this.router.events.pipe(Object(b.a)(t=>t instanceof L.b));Object(m.a)(this.translateService.onLangChange,t).pipe(Object(g.a)(()=>{let t=this.activatedRoute;for(;t.firstChild;)t=t.firstChild;return t}),Object(b.a)(t=>"primary"===t.outlet),Object(y.a)(t=>t.data),function(t,e="ngOnDestroy"){return n=>{const r=t[e],s="function"==typeof r;if(!s)throw new Error(`${t.constructor.name} is using untilDestroyed but doesn't implement ${e}`);return t[X]||(t[X]=new f.a,t[e]=function(){s&&r.apply(this,arguments),t[X].next(),t[X].complete()}),n.pipe(Object(G.a)(t[X]))}}(this)).subscribe(t=>{const e=t.title;e&&this.titleService.setTitle(this.translateService.instant(e))})}ngOnDestroy(){this.i18nService.destroy()}}return t.\u0275fac=function(e){return new(e||t)(a.Kb(L.e),a.Kb(L.a),a.Kb(r.b),a.Kb(R.d),a.Kb(dt))},t.\u0275cmp=a.Eb({type:t,selectors:[["app-root"]],decls:2,vars:0,template:function(t,e){1&t&&(a.Lb(0,"router-outlet"),a.Ac(1,"\n"))},directives:[L.j],styles:[""]}),t})();const It=[St.childRoutes([{path:"services",loadChildren:()=>n.e(9).then(n.bind(null,"5bTg")).then(t=>t.MarketModule)},{path:"faq",loadChildren:()=>n.e(8).then(n.bind(null,"9NiU")).then(t=>t.FaqModule)},{path:"cookie-policy",loadChildren:()=>n.e(7).then(n.bind(null,"Xcsq")).then(t=>t.CookieModule)}]),{path:"**",redirectTo:"",pathMatch:"full"}];let Pt=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},providers:[],imports:[[L.i.forRoot(It,{preloadingStrategy:L.c,scrollPositionRestoration:"top"})],L.i]}),t})();var Rt=n("R0Ic");function Ft(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Nt(t){switch(t.length){case 0:return new Rt.d;case 1:return t[0];default:return new Rt.j(t)}}function Mt(t,e,n,r,s={},i={}){const o=[],a=[];let c=-1,l=null;if(r.forEach(t=>{const n=t.offset,r=n==c,u=r&&l||{};Object.keys(t).forEach(n=>{let r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,o),a){case Rt.k:a=s[n];break;case Rt.a:a=i[n];break;default:a=e.normalizeStyleValue(n,r,a,o)}u[r]=a}),r||a.push(u),l=u,c=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Lt(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Vt(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Vt(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Vt(n,"destroy",t)))}}function Vt(t,e,n){const r=n.totalTime,s=Bt(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),i=t._data;return null!=i&&(s._data=i),s}function Bt(t,e,n,r,s="",i=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:s,totalTime:i,disabled:!!o}}function Ht(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function Ut(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let zt=(t,e)=>!1,$t=(t,e)=>!1,Kt=(t,e,n)=>[];const qt=Ft();(qt||"undefined"!=typeof Element)&&(zt=(t,e)=>t.contains(e),$t=(()=>{if(qt||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):$t}})(),Kt=(t,e,n)=>{let r=[];if(n)r.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&r.push(n)}return r});let Wt=null,Gt=!1;function Xt(t){Wt||(Wt=("undefined"!=typeof document?document.body:null)||{},Gt=!!Wt.style&&"WebkitAppearance"in Wt.style);let e=!0;return Wt.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Wt.style,!e&&Gt)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Wt.style),e}const Qt=$t,Zt=zt,Yt=Kt;function Jt(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let te=(()=>{class t{validateStyleProperty(t){return Xt(t)}matchesElement(t,e){return Qt(t,e)}containsElement(t,e){return Zt(t,e)}query(t,e,n){return Yt(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,r,s,i=[],o){return new Rt.d(n,r)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})(),ee=(()=>{class t{}return t.NOOP=new te,t})();const ne="ng-enter",re="ng-leave",se="ng-trigger",ie=".ng-trigger",oe="ng-animating",ae=".ng-animating";function ce(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:le(parseFloat(e[1]),e[2])}function le(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ue(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let r,s=0,i="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};r=le(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(s=le(parseFloat(o),n[4]));const a=n[5];a&&(i=a)}else r=t;if(!n){let n=!1,i=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(i,0,`The provided timing value "${t}" is invalid.`)}return{duration:r,delay:s,easing:i}}(t,e,n)}function he(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function de(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else he(t,n);return n}function fe(t,e,n){return n?e+":"+n+";":""}function pe(t){let e="";for(let n=0;n{const s=Ee(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[s]),t.style[s]=e[r]}),Ft()&&pe(t))}function ge(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=Ee(e);t.style[n]=""}),Ft()&&pe(t))}function be(t){return Array.isArray(t)?1==t.length?t[0]:Object(Rt.g)(t):t}const ye=new RegExp("{{\\s*(.+?)\\s*}}","g");function _e(t){let e=[];if("string"==typeof t){let n;for(;n=ye.exec(t);)e.push(n[1]);ye.lastIndex=0}return e}function ve(t,e,n){const r=t.toString(),s=r.replace(ye,(t,r)=>{let s=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),s=""),s.toString()});return s==r?t:s}function we(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const Ce=/-+([a-z0-9])/g;function Ee(t){return t.replace(Ce,(...t)=>t[1].toUpperCase())}function Oe(t,e){return 0===t||0===e}function Se(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let i=e[0],o=[];if(r.forEach(t=>{i.hasOwnProperty(t)||o.push(t),i[t]=n[t]}),o.length)for(var s=1;sfunction(t,e,n){if(":"==t[0]){const r=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}const r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const s=r[1],i=r[2],o=r[3];e.push(Ie(s,o)),"<"!=i[0]||s==Ae&&o==Ae||e.push(Ie(o,s))}(t,n,e)):n.push(t),n}const Te=new Set(["true","1"]),je=new Set(["false","0"]);function Ie(t,e){const n=Te.has(t)||je.has(t),r=Te.has(e)||je.has(e);return(s,i)=>{let o=t==Ae||t==s,a=e==Ae||e==i;return!o&&n&&"boolean"==typeof s&&(o=s?Te.has(t):je.has(t)),!a&&r&&"boolean"==typeof i&&(a=i?Te.has(e):je.has(e)),o&&a}}const Pe=new RegExp("s*:selfs*,?","g");function Re(t,e,n){return new Fe(t).build(e,n)}class Fe{constructor(t){this._driver=t}build(t,e){const n=new Ne(e);return this._resetContextStyleTimingState(n),De(this,be(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,r=e.depCount=0;const s=[],i=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,r=n.name;r.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,s.push(this.visitState(n,e))}),n.name=r}else if(1==t.type){const s=this.visitTransition(t,e);n+=s.queryCount,r+=s.depCount,i.push(s)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:s,transitions:i,queryCount:n,depCount:r,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){const s=new Set,i=r||{};if(n.styles.forEach(t=>{if(Me(t)){const e=t;Object.keys(e).forEach(t=>{_e(e[t]).forEach(t=>{i.hasOwnProperty(t)||s.add(t)})})}}),s.size){const n=we(s.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=De(this,be(t.animation),e);return{type:1,matchers:ke(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:Le(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>De(this,t,e)),options:Le(t.options)}}visitGroup(t,e){const n=e.currentTime;let r=0;const s=t.steps.map(t=>{e.currentTime=n;const s=De(this,t,e);return r=Math.max(r,e.currentTime),s});return e.currentTime=r,{type:3,steps:s,options:Le(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Ve(ue(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Ve(0,0,"");return t.dynamic=!0,t.strValue=r,t}return n=n||ue(r,e),Ve(n.duration,n.delay,n.easing)}(t.timings,e.errors);let r;e.currentAnimateTimings=n;let s=t.styles?t.styles:Object(Rt.h)({});if(5==s.type)r=this.visitKeyframes(s,e);else{let s=t.styles,i=!1;if(!s){i=!0;const t={};n.easing&&(t.easing=n.easing),s=Object(Rt.h)(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(s,e);o.isEmptyStep=i,r=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==Rt.a?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let r=!1,s=null;return n.forEach(t=>{if(Me(t)){const e=t,n=e.easing;if(n&&(s=n,delete e.easing),!r)for(let t in e)if(e[t].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:s,offset:t.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;n&&s>0&&(s-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const i=e.collectedStyles[e.currentQuerySelector],o=i[n];let a=!0;o&&(s!=r&&s>=o.startTime&&r<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${r}ms"`),a=!1),s=o.startTime),a&&(i[n]={startTime:s,endTime:r}),e.options&&function(t,e,n){const r=e.params||{},s=_e(t);s.length&&s.forEach(t=>{r.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const s=[];let i=!1,o=!1,a=0;const c=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let c=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Me(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(Me(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),l=0;return null!=c&&(r++,l=n.offset=c),o=o||l<0||l>1,i=i||l0&&r{const i=u>0?r==h?1:u*r:s[r],o=i*p;e.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(t,e),t.offset=i,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:De(this,be(t.animation),e),options:Le(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Le(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Le(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,i]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Pe,"")),[t=t.replace(/@\*/g,ie).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,ae),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+s:s,Ht(e.collectedStyles,e.currentQuerySelector,{});const o=De(this,be(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:i,animation:o,originalSelector:t.selector,options:Le(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:ue(t.timings,e.errors,!0);return{type:12,animation:De(this,be(t.animation),e),timings:n,options:null}}}class Ne{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Me(t){return!Array.isArray(t)&&"object"==typeof t}function Le(t){var e;return t?(t=he(t)).params&&(t.params=(e=t.params)?he(e):null):t={},t}function Ve(t,e,n){return{duration:t,delay:e,easing:n}}function Be(t,e,n,r,s,i,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:s,delay:i,totalTime:s+i,easing:o,subTimeline:a}}class He{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ue=new RegExp(":enter","g"),ze=new RegExp(":leave","g");function $e(t,e,n,r,s,i={},o={},a,c,l=[]){return(new Ke).buildKeyframes(t,e,n,r,s,i,o,a,c,l)}class Ke{buildKeyframes(t,e,n,r,s,i,o,a,c,l=[]){c=c||new He;const u=new We(t,e,c,r,s,l,[]);u.options=a,u.currentTimeline.setStyles([i],null,u.errors,a),De(this,n,u);const h=u.timelines.filter(t=>t.containsAnimation());if(h.length&&Object.keys(o).length){const t=h[h.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,u.errors,a)}return h.length?h.map(t=>t.buildKeyframes()):[Be(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);s!=i&&e.transformIntoNewTimeline(i)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let r=e.currentTimeline.currentTime;const s=null!=n.duration?ce(n.duration):null,i=null!=n.delay?ce(n.delay):null;return 0!==s&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,s,i);r=Math.max(r,n.duration+n.delay)}),r}visitReference(t,e){e.updateOptions(t.options,!0),De(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=qe);const t=ce(s.delay);r.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>De(this,t,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?ce(t.options.delay):0;t.steps.forEach(i=>{const o=e.createSubContext(t.options);s&&o.delayNextStep(s),De(this,i,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return ue(e.params?ve(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(n.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(s):n.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,r=e.currentTimeline.duration,s=n.duration,i=e.createSubContext().currentTimeline;i.easing=n.easing,t.styles.forEach(t=>{i.forwardTime((t.offset||0)*s),i.setStyles(t.styles,t.easing,e.errors,e.options),i.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(i),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?ce(r.delay):0;s&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=qe);let i=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{e.currentQueryIndex=r;const o=e.createSubContext(t.options,n);s&&o.delayNextStep(s),n===e.element&&(a=o.currentTimeline),De(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),i=Math.max(i,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(i),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,r=e.currentTimeline,s=t.timings,i=Math.abs(s.duration),o=i*(e.currentQueryTotal-1);let a=i*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const c=e.currentTimeline;a&&c.delayNextStep(a);const l=c.currentTime;De(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-l+(r.startTime-n.currentTimeline.startTime)}}const qe={};class We{constructor(t,e,n,r,s,i,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=s,this.errors=i,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=qe,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new Ge(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let r=this.options;null!=n.duration&&(r.duration=ce(n.duration)),null!=n.delay&&(r.delay=ce(n.delay));const s=n.params;if(s){let t=r.params;t||(t=this.options.params={}),Object.keys(s).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=ve(s[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const r=e||this.element,s=new We(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=qe,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},s=new Xe(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,r,s,i){let o=[];if(r&&o.push(this.element),t.length>0){t=(t=t.replace(Ue,"."+this._enterClassName)).replace(ze,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return s||0!=o.length||i.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class Ge{constructor(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new Ge(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){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))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Rt.a,this._currentKeyframe[t]=Rt.a}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,r){e&&(this._previousKeyframe.easing=e);const s=r&&r.params||{},i=function(t,e){const n={};let r;return t.forEach(t=>{"*"===t?(r=r||Object.keys(e),r.forEach(t=>{n[t]=Rt.a})):de(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(i).forEach(t=>{const e=ve(i[t],s,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:Rt.a),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],r=t._styleSummary[e];(!n||r.time>n.time)&&this._updateStyle(e,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((s,i)=>{const o=de(s,!0);Object.keys(o).forEach(n=>{const r=o[n];r==Rt.k?t.add(n):r==Rt.a&&e.add(n)}),n||(o.offset=i/this.duration),r.push(o)});const s=t.size?we(t.values()):[],i=e.size?we(e.values()):[];if(n){const t=r[0],e=he(t);t.offset=0,e.offset=1,r=[t,e]}return Be(this.element,r,s,i,this.duration,this.startTime,this.easing,!1)}}class Xe extends Ge{constructor(t,e,n,r,s,i,o=!1){super(t,e,i.delay),this.element=e,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=o,this.timings={duration:i.duration,delay:i.delay,easing:i.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],i=n+e,o=e/i,a=de(t[0],!1);a.offset=0,s.push(a);const c=de(t[0],!1);c.offset=Qe(o),s.push(c);const l=t.length-1;for(let r=1;r<=l;r++){let o=de(t[r],!1);o.offset=Qe((e+o.offset*n)/i),s.push(o)}n=i,e=0,r="",t=s}return Be(this.element,t,this.preStyleProps,this.postStyleProps,n,e,r,!0)}}function Qe(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ze{}class Ye extends Ze{normalizePropertyName(t,e){return Ee(t)}normalizeStyleValue(t,e,n,r){let s="";const i=n.toString().trim();if(Je[e]&&0!==n&&"0"!==n)if("number"==typeof n)s="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&r.push(`Please provide a CSS unit value for ${t}:${n}`)}return i+s}}const Je=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function tn(t,e,n,r,s,i,o,a,c,l,u,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:s,fromState:n,fromStyles:i,toState:r,toStyles:o,timelines:a,queriedElements:c,preStyleProps:l,postStyleProps:u,totalTime:h,errors:d}}const en={};class nn{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,r){return function(t,e,n,r,s){return t.some(t=>t(e,n,r,s))}(this.ast.matchers,t,e,n,r)}buildStyles(t,e,n){const r=this._stateStyles["*"],s=this._stateStyles[t],i=r?r.buildStyles(e,n):{};return s?s.buildStyles(e,n):i}build(t,e,n,r,s,i,o,a,c,l){const u=[],h=this.ast.options&&this.ast.options.params||en,d=this.buildStyles(n,o&&o.params||en,u),f=a&&a.params||en,p=this.buildStyles(r,f,u),m=new Set,g=new Map,b=new Map,y="void"===r,_={params:Object.assign(Object.assign({},h),f)},v=l?[]:$e(t,e,this.ast.animation,s,i,d,p,_,c,u);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),u.length)return tn(e,this._triggerName,n,r,y,d,p,[],[],g,b,w,u);v.forEach(t=>{const n=t.element,r=Ht(g,n,{});t.preStyleProps.forEach(t=>r[t]=!0);const s=Ht(b,n,{});t.postStyleProps.forEach(t=>s[t]=!0),n!==e&&m.add(n)});const C=we(m.values());return tn(e,this._triggerName,n,r,y,d,p,v,C,g,b,w)}}class rn{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},r=he(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const s=t;Object.keys(s).forEach(t=>{let i=s[t];i.length>1&&(i=ve(i,r,e)),n[t]=i})}}),n}}class sn{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new rn(t.style,t.options&&t.options.params||{})}),on(this.states,"true","1"),on(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new nn(t,e,this.states))}),this.fallbackTransition=new nn(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,r){return this.transitionFactories.find(s=>s.match(t,e,n,r))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function on(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const an=new He;class cn{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],r=Re(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r}_buildPlayer(t,e,n){const r=t.element,s=Mt(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const r=[],s=this._animations[t];let i;const o=new Map;if(s?(i=$e(this._driver,e,s,ne,re,{},{},n,an,r),i.forEach(t=>{const e=Ht(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),i=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,Rt.a)})});const a=Nt(i.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,r){const s=Bt(e,"","","");return Lt(this._getPlayer(t),n,s,r),()=>{}}command(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const ln="ng-animate-queued",un="ng-animate-disabled",hn=".ng-animate-disabled",dn=[],fn={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},pn={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class mn{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(r=n?t.value:t)?r:null,n){const e=he(t);delete e.value,this.options=e}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const gn="void",bn=new mn(gn);class yn{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Sn(e,this._hostClassName)}listen(t,e,n,r){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(s=n)&&"done"!=s)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var s;const i=Ht(this._elementListeners,t,[]),o={name:e,phase:n,callback:r};i.push(o);const a=Ht(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(Sn(t,se),Sn(t,"ng-trigger-"+e),a[e]=bn),()=>{this._engine.afterFlush(()=>{const t=i.indexOf(o);t>=0&&i.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,r=!0){const s=this._getTrigger(e),i=new vn(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(Sn(t,se),Sn(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const c=new mn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&c.absorbOptions(a.options),o[e]=c,a||(a=bn),c.value!==gn&&a.value===c.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let s=0;s{ge(t,n),me(t,r)})}return}const l=Ht(this._engine.playersByElement,t,[]);l.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let u=s.matchTransition(a.value,c.value,t,c.params),h=!1;if(!u){if(!r)return;u=s.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:u,fromState:a,toState:c,player:i,isFallbackTransition:h}),h||(Sn(t,ln),i.onStart(()=>{Dn(t,ln)})),i.onDone(()=>{let e=this.players.indexOf(i);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(i);t>=0&&n.splice(t,1)}}),this.players.push(i),l.push(i),i}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,ie,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,r){const s=this._engine.statesByElement.get(t);if(s){const i=[];if(Object.keys(s).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,gn,r);n&&i.push(n)}}),i.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Nt(i).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const r=e.name;if(n.has(r))return;n.add(r);const s=this._triggers[r].fallbackTransition,i=this._engine.statesByElement.get(t)[r]||bn,o=new mn(gn),a=new vn(this.id,r,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:r,transition:s,fromState:i,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)r=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)n.markElementAsRemoved(this.id,t,!1,e);else{const r=t.__ng_removed;r&&r!==fn||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){Sn(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const s=n.element,i=this._elementListeners.get(s);i&&i.forEach(e=>{if(e.name==n.triggerName){const r=Bt(s,n.triggerName,n.fromState.value,n.toState.value);r._data=t,Lt(n.player,e.phase,r,e.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,r=e.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class _n{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new yn(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let s=n;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,e)){this._namespaceList.splice(s+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let r=0;r=0&&this.collectedLeaveElements.splice(t,1)}if(t){const r=this._fetchNamespace(t);r&&r.insertNode(e,n)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Sn(t,un)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Dn(t,un))}removeNode(t,e,n,r){if(wn(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,n,r){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,r,s){return wn(e)?this._fetchNamespace(t).listen(e,n,r,s):()=>{}}_buildInstruction(t,e,n,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,ie,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,ae,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Nt(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=fn,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,hn)&&this.markElementAsDisabled(t,!1),this.driver.query(t,hn,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nt()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Nt(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new He,r=[],s=new Map,i=[],o=new Map,a=new Map,c=new Map,l=new Set;this.disabledNodes.forEach(t=>{l.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n{const n=ne+p++;f.set(e,n),t.forEach(t=>Sn(t,n))});const m=[],g=new Set,b=new Set;for(let T=0;Tg.add(t)):b.add(t))}const y=new Map,_=On(h,Array.from(g));_.forEach((t,e)=>{const n=re+p++;y.set(e,n),t.forEach(t=>Sn(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=f.get(e);t.forEach(t=>Dn(t,n))}),_.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>Dn(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let T=this._namespaceList.length-1;T>=0;T--)this._namespaceList[T].drainQueuedTransitions(e).forEach(t=>{const e=t.player,s=t.element;if(v.push(e),this.collectedEnterElements.length){const t=s.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const l=!u||!this.driver.containsElement(u,s),h=y.get(s),d=f.get(s),p=this._buildInstruction(t,n,d,h,l);if(p.errors&&p.errors.length)w.push(p);else{if(l)return e.onStart(()=>ge(s,p.fromStyles)),e.onDestroy(()=>me(s,p.toStyles)),void r.push(e);if(t.isFallbackTransition)return e.onStart(()=>ge(s,p.fromStyles)),e.onDestroy(()=>me(s,p.toStyles)),void r.push(e);p.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(s,p.timelines),i.push({instruction:p,player:e,element:s}),p.queriedElements.forEach(t=>Ht(o,t,[]).push(e)),p.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),p.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let r=c.get(e);r||c.set(e,r=new Set),n.forEach(t=>r.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;i.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),r.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Ht(C,e,[]).push(t),t.destroy()})});const O=m.filter(t=>kn(t,a,c)),S=new Map;En(S,this.driver,b,c,Rt.a).forEach(t=>{kn(t,a,c)&&O.push(t)});const D=new Map;d.forEach((t,e)=>{En(D,this.driver,new Set(t),a,Rt.k)}),O.forEach(t=>{const e=S.get(t),n=D.get(t);S.set(t,Object.assign(Object.assign({},e),n))});const x=[],A=[],k={};i.forEach(t=>{const{element:e,player:i,instruction:o}=t;if(n.has(e)){if(l.has(e))return i.onDestroy(()=>me(e,o.toStyles)),i.disabled=!0,i.overrideTotalTime(o.totalTime),void r.push(i);let t=k;if(E.size>1){let n=e;const r=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}r.push(n)}r.forEach(e=>E.set(e,t))}const n=this._buildAnimation(i.namespaceId,o,C,s,D,S);if(i.setRealPlayer(n),t===k)x.push(i);else{const e=this.playersByElement.get(t);e&&e.length&&(i.parentPlayer=Nt(e)),r.push(i)}}else ge(e,o.fromStyles),i.onDestroy(()=>me(e,o.toStyles)),A.push(i),l.has(e)&&r.push(i)}),A.forEach(t=>{const e=s.get(t.element);if(e&&e.length){const n=Nt(e);t.setRealPlayer(n)}}),r.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let T=0;T!t.destroyed);r.length?xn(this,t,r):this.processLeaveNode(t)}return m.length=0,x.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),x}elementContainsData(t,e){let n=!1;const r=e.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,r,s){let i=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(i=e)}else{const e=this.playersByElement.get(t);if(e){const t=!s||s==gn;e.forEach(e=>{e.queued||(t||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(t=>!(n&&n!=t.namespaceId||r&&r!=t.triggerName))),i}_beforeAnimationBuild(t,e,n){const r=e.element,s=e.isRemovalTransition?void 0:t,i=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==r,c=Ht(n,t,[]);this._getPreviousPlayers(t,a,s,i,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),c.push(t)})}ge(r,e.fromStyles)}_buildAnimation(t,e,n,r,s,i){const o=e.triggerName,a=e.element,c=[],l=new Set,u=new Set,h=e.timelines.map(e=>{const h=e.element;l.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new Rt.d(e.duration,e.delay);const f=h!==a,p=function(t){const e=[];return An(t,e),e}((n.get(h)||dn).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===h),m=s.get(h),g=i.get(h),b=Mt(0,this._normalizer,0,e.keyframes,m,g),y=this._buildPlayer(e,b,p);if(e.subTimeline&&r&&u.add(h),f){const e=new vn(t,o,h);e.setRealPlayer(y),c.push(e)}return y});c.forEach(t=>{Ht(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const t=r.indexOf(n);r.splice(t,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,t.element,t))}),l.forEach(t=>Sn(t,oe));const d=Nt(h);return d.onDestroy(()=>{l.forEach(t=>Dn(t,oe)),me(a,e.toStyles)}),u.forEach(t=>{Ht(r,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Rt.d(t.duration,t.delay)}}class vn{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Rt.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>Lt(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Ht(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function wn(t){return t&&1===t.nodeType}function Cn(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function En(t,e,n,r,s){const i=[];n.forEach(t=>i.push(Cn(t)));const o=[];r.forEach((n,r)=>{const i={};n.forEach(t=>{const n=i[t]=e.computeStyle(r,t,s);n&&0!=n.length||(r.__ng_removed=pn,o.push(r))}),t.set(r,i)});let a=0;return n.forEach(t=>Cn(t,i[a++])),o}function On(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const r=new Set(e),s=new Map;function i(t){if(!t)return 1;let e=s.get(t);if(e)return e;const o=t.parentNode;return e=n.has(o)?o:r.has(o)?1:i(o),s.set(t,e),e}return e.forEach(t=>{const e=i(t);1!==e&&n.get(e).push(t)}),n}function Sn(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Dn(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function xn(t,e,n){Nt(n).onDone(()=>t.processLeaveNode(e))}function An(t,e){for(let n=0;ns.add(t)):e.set(t,r),n.delete(t),!0}class Tn{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new _n(t,e,n),this._timelineEngine=new cn(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,r,s){const i=t+"-"+r;let o=this._triggerCache[i];if(!o){const t=[],e=Re(this._driver,s,t);if(t.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new sn(t,e)}(r,e),this._triggerCache[i]=o}this._transitionEngine.registerTrigger(e,r,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)}onRemove(t,e,n,r){this._transitionEngine.removeNode(t,e,r||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,r){if("@"==n.charAt(0)){const[t,s]=Ut(n);this._timelineEngine.command(t,e,s,r)}else this._transitionEngine.trigger(t,e,n,r)}listen(t,e,n,r,s){if("@"==n.charAt(0)){const[t,r]=Ut(n);return this._timelineEngine.listen(t,e,r,s)}return this._transitionEngine.listen(t,e,n,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function jn(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Pn(e[0]),e.length>1&&(r=Pn(e[e.length-1]))):e&&(n=Pn(e)),n||r?new In(t,n,r):null}let In=(()=>{class t{constructor(e,n,r){this._element=e,this._startStyles=n,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&me(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(me(this._element,this._initialStyles),this._endStyles&&(me(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ge(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ge(this._element,this._endStyles),this._endStyles=null),me(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Pn(t){let e=null;const n=Object.keys(t);for(let r=0;rthis._handleCallback(t)}apply(){!function(t,e){const n=zn(t,"").trim();n.length&&(function(t,e){let n=0;for(let r=0;r=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Hn(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=zn(t,"").split(","),r=Bn(n,e);r>=0&&(n.splice(r,1),Un(t,"",n.join(",")))}(this._element,this._name))}}function Ln(t,e,n){Un(t,"PlayState",n,Vn(t,e))}function Vn(t,e){const n=zn(t,"");return n.indexOf(",")>0?Bn(n.split(","),e):Bn([n],e)}function Bn(t,e){for(let n=0;n=0)return n;return-1}function Hn(t,e,n){n?t.removeEventListener(Nn,e):t.addEventListener(Nn,e)}function Un(t,e,n,r){const s=Fn+e;if(null!=r){const e=t.style[s];if(e.length){const t=e.split(",");t[r]=n,n=t.join(",")}}t.style[s]=n}function zn(t,e){return t.style[Fn+e]}class $n{constructor(t,e,n,r,s,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=s,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=i||"linear",this.totalTime=r+s,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new Mn(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:xe(this.element,n))})}this.currentSnapshot=t}}class Kn extends Rt.d{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Jt(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class qn{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Xt(t)}matchesElement(t,e){return Qt(t,e)}containsElement(t,e){return Zt(t,e)}query(t,e,n){return Yt(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Jt(t));let r=`@keyframes ${e} {\n`,s="";n.forEach(t=>{s=" ";const e=parseFloat(t.offset);r+=`${s}${100*e}% {\n`,s+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=`${s}animation-timing-function: ${n};\n`));default:return void(r+=`${s}${e}: ${n};\n`)}}),r+=s+"}\n"}),r+="}\n";const i=document.createElement("style");return i.textContent=r,i}animate(t,e,n,r,s,i=[],o){o&&this._notifyFaultyScrubber();const a=i.filter(t=>t instanceof $n),c={};Oe(n,r)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const l=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Se(t,e,c));if(0==n)return new Kn(t,l);const u="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(t,u,e);document.querySelector("head").appendChild(h);const d=jn(t,e),f=new $n(t,e,u,n,r,s,l,d);return f.onDestroy(()=>{var t;(t=h).parentNode.removeChild(t)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Wn{constructor(t,e,n,r){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:xe(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Gn{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Xn().toString()),this._cssKeyframesDriver=new qn}validateStyleProperty(t){return Xt(t)}matchesElement(t,e){return Qt(t,e)}containsElement(t,e){return Zt(t,e)}query(t,e,n){return Yt(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,r,s,i=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,s,i);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};s&&(a.easing=s);const c={},l=i.filter(t=>t instanceof Wn);Oe(n,r)&&l.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>c[t]=e[t])});const u=jn(t,e=Se(t,e=e.map(t=>de(t,!1)),c));return new Wn(t,e,a,u)}}function Xn(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Qn=(()=>{class t extends Rt.b{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:a.P.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?Object(Rt.g)(t):t;return Jn(this._renderer,null,e,"register",[n]),new Zn(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(a.E),a.Xb(o.c))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})();class Zn extends Rt.c{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Yn(this._id,t,e||{},this._renderer)}}class Yn{constructor(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Jn(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Jn(t,e,n,r,s){return t.setProperty(e,`@@${n}:${r}`,s)}const tr="@",er="@.disabled";let nr=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new rr("",n,this.engine),this._rendererCache.set(n,t)),t}const r=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,t);const i=e=>{Array.isArray(e)?e.forEach(i):this.engine.registerTrigger(r,s,t,e.name,e)};return e.data.animation.forEach(i),new sr(this,s,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&te(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(a.E),a.Xb(Tn),a.Xb(a.z))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})();class rr{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,r){this.delegate.setAttribute(t,e,n,r)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,r){this.delegate.setStyle(t,e,n,r)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==tr&&e==er?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class sr extends rr{constructor(t,e,n,r){super(e,n,r),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==tr?"."==e.charAt(1)&&e==er?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==tr){const r=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let s=e.substr(1),i="";return s.charAt(0)!=tr&&([s,i]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,i,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let ir=(()=>{class t extends Tn{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(a.Xb(o.c),a.Xb(ee),a.Xb(Ze))},t.\u0275prov=a.Gb({token:t,factory:t.\u0275fac}),t})();const or=[{provide:ee,useFactory:function(){return"function"==typeof Xn()?new Gn:new qn}},{provide:new a.q("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Rt.b,useClass:Qn},{provide:Ze,useFactory:function(){return new Ye}},{provide:Tn,useClass:ir},{provide:a.E,useFactory:function(t,e,n){return new nr(t,e,n)},deps:[r.d,Tn,a.z]}];let ar=(()=>{class t{}return t.\u0275mod=a.Ib({type:t}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},providers:or,imports:[r.a]}),t})(),cr=(()=>{class t{}return t.\u0275mod=a.Ib({type:t,bootstrap:[jt]}),t.\u0275inj=a.Hb({factory:function(e){return new(e||t)},providers:[{provide:x,useFactory:()=>({enabled:M.a.production})}],imports:[[r.a,ar,P.register("./ngsw-worker.js"),s.f,i.c,R.b.forRoot(),F.d,W,Q.a,Tt,At,N.a.forRoot(),Pt]]}),t})()},ZUHj:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("7o/Q");class s extends r.a{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var i=n("SeVD"),o=n("HDdC");function a(t,e,n,r,a=new s(t,n,r)){if(!a.closed)return e instanceof o.a?e.subscribe(a):Object(i.a)(e)(a)}},bHdf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("5+tZ"),s=n("SpAZ");function i(t=Number.POSITIVE_INFINITY){return Object(r.a)(s.a,t)}},bOdf:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("5+tZ");function s(t,e){return Object(r.a)(t,e,1)}},c2HN:function(t,e,n){"use strict";function r(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}n.d(e,"a",function(){return r})},cp0P:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("HDdC"),s=n("DH7j"),i=n("lJxs"),o=n("XoHu"),a=n("Cfvw");function c(...t){if(1===t.length){const e=t[0];if(Object(s.a)(e))return l(e,null);if(Object(o.a)(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return l(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return l(t=1===t.length&&Object(s.a)(t[0])?t[0]:t,null).pipe(Object(i.a)(t=>e(...t)))}return l(t,null)}function l(t,e){return new r.a(n=>{const r=t.length;if(0===r)return void n.complete();const s=new Array(r);let i=0,o=0;for(let c=0;c{u||(u=!0,o++),s[c]=t},error:t=>n.error(t),complete:()=>{i++,i!==r&&u||(o===r&&n.next(e?e.reduce((t,e,n)=>(t[e]=s[n],t),{}):s),n.complete())}}))}})}},eIep:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("lJxs"),s=n("Cfvw"),i=n("zx2A");function o(t,e){return"function"==typeof e?n=>n.pipe(o((n,i)=>Object(s.a)(t(n,i)).pipe(Object(r.a)((t,r)=>e(n,t,i,r))))):e=>e.lift(new a(t))}class a{constructor(t){this.project=t}call(t,e){return e.subscribe(new c(t,this.project))}}class c extends i.b{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new i.a(this),r=this.destination;r.add(n),this.innerSubscription=Object(i.c)(t,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}},"eQe+":function(t,e,n){"use strict";n.d(e,"a",function(){return r});let r=(()=>{class t{}return t.SHOP_URL="https://activasms.shoppy.services/product/",t.SMS_API_ROUTES={API:"/api",GET_PHONE:"/getPhoneActivated",GET_PHONE_STATUS:"/getPhoneStatus",CHANGE_STATUS_PHONE:"/changePhoneStatus"},t.PAYMENT_API_ROUTES={GET_ORDER_BY_ID:"/api/getOrderById"},t.STATUS_ERROR={INVALID_TOKEN:"INVALID_TOKEN",USED_OR_INVALID_TOKEN:"USED_OR_INVALID_TOKEN",TOKEN_USED:"TOKEN_USED",NO_NUMBER:"NO_NUMBER",GENERIC_ERROR:"ERROR"},t.LOCAL_STORAGE={paymentPrevious:"paymentPrevious",lastToken:"lastToken"},t})()},fXoL:function(t,e,n){"use strict";n.d(e,"a",function(){return Mi}),n.d(e,"b",function(){return Il}),n.d(e,"c",function(){return xl}),n.d(e,"d",function(){return Sl}),n.d(e,"e",function(){return Dl}),n.d(e,"f",function(){return Cu}),n.d(e,"g",function(){return du}),n.d(e,"h",function(){return _i}),n.d(e,"i",function(){return zl}),n.d(e,"j",function(){return cc}),n.d(e,"k",function(){return Fl}),n.d(e,"l",function(){return lc}),n.d(e,"m",function(){return Rn}),n.d(e,"n",function(){return tl}),n.d(e,"o",function(){return W}),n.d(e,"p",function(){return h}),n.d(e,"q",function(){return q}),n.d(e,"r",function(){return Ni}),n.d(e,"s",function(){return Ac}),n.d(e,"t",function(){return kc}),n.d(e,"u",function(){return Rl}),n.d(e,"v",function(){return ct}),n.d(e,"w",function(){return pu}),n.d(e,"x",function(){return at}),n.d(e,"y",function(){return au}),n.d(e,"z",function(){return ql}),n.d(e,"A",function(){return d}),n.d(e,"B",function(){return jl}),n.d(e,"C",function(){return Tl}),n.d(e,"D",function(){return fc}),n.d(e,"E",function(){return hc}),n.d(e,"F",function(){return dc}),n.d(e,"G",function(){return mc}),n.d(e,"H",function(){return Or}),n.d(e,"I",function(){return p}),n.d(e,"J",function(){return bu}),n.d(e,"K",function(){return Pc}),n.d(e,"L",function(){return tu}),n.d(e,"M",function(){return wi}),n.d(e,"N",function(){return gc}),n.d(e,"O",function(){return Fc}),n.d(e,"P",function(){return _t}),n.d(e,"Q",function(){return cu}),n.d(e,"R",function(){return Yn}),n.d(e,"S",function(){return j}),n.d(e,"T",function(){return Zn}),n.d(e,"U",function(){return vu}),n.d(e,"V",function(){return ru}),n.d(e,"W",function(){return Pl}),n.d(e,"X",function(){return Ci}),n.d(e,"Y",function(){return la}),n.d(e,"Z",function(){return Cr}),n.d(e,"ab",function(){return sr}),n.d(e,"bb",function(){return Un}),n.d(e,"cb",function(){return $n}),n.d(e,"db",function(){return Gn}),n.d(e,"eb",function(){return qn}),n.d(e,"fb",function(){return Kn}),n.d(e,"gb",function(){return Wn}),n.d(e,"hb",function(){return ia}),n.d(e,"ib",function(){return _u}),n.d(e,"jb",function(){return oa}),n.d(e,"kb",function(){return aa}),n.d(e,"lb",function(){return zn}),n.d(e,"mb",function(){return L}),n.d(e,"nb",function(){return Gi}),n.d(e,"ob",function(){return mo}),n.d(e,"pb",function(){return po}),n.d(e,"qb",function(){return sa}),n.d(e,"rb",function(){return re}),n.d(e,"sb",function(){return A}),n.d(e,"tb",function(){return Hn}),n.d(e,"ub",function(){return Bi}),n.d(e,"vb",function(){return Qt}),n.d(e,"wb",function(){return ic}),n.d(e,"xb",function(){return $r}),n.d(e,"yb",function(){return Ji}),n.d(e,"zb",function(){return No}),n.d(e,"Ab",function(){return Yo}),n.d(e,"Bb",function(){return Jo}),n.d(e,"Cb",function(){return Fo}),n.d(e,"Db",function(){return gl}),n.d(e,"Eb",function(){return Et}),n.d(e,"Fb",function(){return Tt}),n.d(e,"Gb",function(){return y}),n.d(e,"Hb",function(){return _}),n.d(e,"Ib",function(){return xt}),n.d(e,"Jb",function(){return jt}),n.d(e,"Kb",function(){return ro}),n.d(e,"Lb",function(){return lo}),n.d(e,"Mb",function(){return ho}),n.d(e,"Nb",function(){return uo}),n.d(e,"Ob",function(){return co}),n.d(e,"Pb",function(){return ao}),n.d(e,"Qb",function(){return fo}),n.d(e,"Rb",function(){return Tn}),n.d(e,"Sb",function(){return ta}),n.d(e,"Tb",function(){return Ga}),n.d(e,"Ub",function(){return Za}),n.d(e,"Vb",function(){return Xa}),n.d(e,"Wb",function(){return Qa}),n.d(e,"Xb",function(){return rt}),n.d(e,"Yb",function(){return so}),n.d(e,"Zb",function(){return Ol}),n.d(e,"ac",function(){return go}),n.d(e,"bc",function(){return _l}),n.d(e,"cc",function(){return Xe}),n.d(e,"dc",function(){return Ge}),n.d(e,"ec",function(){return _o}),n.d(e,"fc",function(){return Yc}),n.d(e,"gc",function(){return Jc}),n.d(e,"hc",function(){return Oo}),n.d(e,"ic",function(){return wo}),n.d(e,"jc",function(){return io}),n.d(e,"kc",function(){return So}),n.d(e,"lc",function(){return Do}),n.d(e,"mc",function(){return qc}),n.d(e,"nc",function(){return Wc}),n.d(e,"oc",function(){return Gc}),n.d(e,"pc",function(){return Xc}),n.d(e,"qc",function(){return dl}),n.d(e,"rc",function(){return no}),n.d(e,"sc",function(){return Ee}),n.d(e,"tc",function(){return Sr}),n.d(e,"uc",function(){return At}),n.d(e,"vc",function(){return bl}),n.d(e,"wc",function(){return fl}),n.d(e,"xc",function(){return Ro}),n.d(e,"yc",function(){return eo}),n.d(e,"zc",function(){return El}),n.d(e,"Ac",function(){return Go}),n.d(e,"Bc",function(){return Xo}),n.d(e,"Cc",function(){return Qo}),n.d(e,"Dc",function(){return Zo}),n.d(e,"Ec",function(){return pl});var r=n("XNiG"),s=n("quSY"),i=n("HDdC"),o=n("VRyK"),a=n("w1tV");function c(t){return{toString:t}.toString()}const l="__parameters__";function u(t,e,n){return c(()=>{const r=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function s(...t){if(this instanceof s)return r.apply(this,t),this;const e=new s(...t);return n.annotation=e,n;function n(t,n,r){const s=t.hasOwnProperty(l)?t[l]:Object.defineProperty(t,l,{value:[]})[l];for(;s.length<=r;)s.push(null);return(s[r]=s[r]||[]).push(e),t}}return n&&(s.prototype=Object.create(n.prototype)),s.prototype.ngMetadataName=t,s.annotationCls=s,s})}const h=u("Inject",t=>({token:t})),d=u("Optional"),f=u("Self"),p=u("SkipSelf");var m=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function g(t){for(let e in t)if(t[e]===g)return e;throw Error("Could not find renamed property on target object.")}function b(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function y(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function _(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function v(t){return w(t,t[E])||w(t,t[D])}function w(t,e){return e&&e.token===t?e:null}function C(t){return t&&(t.hasOwnProperty(O)||t.hasOwnProperty(x))?t[O]:null}const E=g({"\u0275prov":g}),O=g({"\u0275inj":g}),S=g({"\u0275provFallback":g}),D=g({ngInjectableDef:g}),x=g({ngInjectorDef:g});function A(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(A).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function k(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const T=g({__forward_ref__:g});function j(t){return t.__forward_ref__=j,t.toString=function(){return A(this())},t}function I(t){return P(t)?t():t}function P(t){return"function"==typeof t&&t.hasOwnProperty(T)&&t.__forward_ref__===j}const R="undefined"!=typeof globalThis&&globalThis,F="undefined"!=typeof window&&window,N="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,M="undefined"!=typeof global&&global,L=R||M||F||N,V=g({"\u0275cmp":g}),B=g({"\u0275dir":g}),H=g({"\u0275pipe":g}),U=g({"\u0275mod":g}),z=g({"\u0275loc":g}),$=g({"\u0275fac":g}),K=g({__NG_ELEMENT_ID__:g});class q{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=y({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const W=new q("INJECTOR",-1),G={},X=/\n/gm,Q="__source",Z=g({provide:String,useValue:g});let Y,J=void 0;function tt(t){const e=J;return J=t,e}function et(t){const e=Y;return Y=t,e}function nt(t,e=m.Default){if(void 0===J)throw new Error("inject() must be called from an injection context");return null===J?st(t,void 0,e):J.get(t,e&m.Optional?null:void 0,e)}function rt(t,e=m.Default){return(Y||nt)(I(t),e)}function st(t,e,n){const r=v(t);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&m.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${A(t)}]`)}function it(t){const e=[];for(let n=0;nArray.isArray(t)?ht(t,e):e(t))}function dt(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ft(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function pt(t,e){const n=[];for(let r=0;r=0?t[1|r]=n:(r=~r,function(t,e,n,r){let s=t.length;if(s==e)t.push(n,r);else if(1===s)t.push(r,t[0]),t[0]=n;else{for(s--,t.push(t[s-1],t[s]);s>e;)t[s]=t[s-2],s--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function gt(t,e){const n=bt(t,e);if(n>=0)return t[1|n]}function bt(t,e){return function(t,e,n){let r=0,s=t.length>>1;for(;s!==r;){const n=r+(s-r>>1),i=t[n<<1];if(e===i)return n<<1;i>e?s=n:r=n+1}return~(s<<1)}(t,e)}var yt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),_t=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const vt={},wt=[];let Ct=0;function Et(t){return c(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===yt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||wt,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||_t.Emulated,id:"c",styles:t.styles||wt,_:null,setInput:null,schemas:t.schemas||null,tView:null},r=t.directives,s=t.features,i=t.pipes;return n.id+=Ct++,n.inputs=kt(t.inputs,e),n.outputs=kt(t.outputs),s&&s.forEach(t=>t(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(Ot):null,n.pipeDefs=i?()=>("function"==typeof i?i():i).map(St):null,n})}function Ot(t){return It(t)||function(t){return t[B]||null}(t)}function St(t){return function(t){return t[H]||null}(t)}const Dt={};function xt(t){const e={type:t.type,bootstrap:t.bootstrap||wt,declarations:t.declarations||wt,imports:t.imports||wt,exports:t.exports||wt,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&c(()=>{Dt[t.id]=t.type}),e}function At(t,e){return c(()=>{const n=Rt(t,!0);n.declarations=e.declarations||wt,n.imports=e.imports||wt,n.exports=e.exports||wt})}function kt(t,e){if(null==t)return vt;const n={};for(const r in t)if(t.hasOwnProperty(r)){let s=t[r],i=s;Array.isArray(s)&&(i=s[1],s=s[0]),n[s]=r,e&&(e[s]=i)}return n}const Tt=Et;function jt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function It(t){return t[V]||null}function Pt(t,e){return t.hasOwnProperty($)?t[$]:null}function Rt(t,e){const n=t[U]||null;if(!n&&!0===e)throw new Error(`Type ${A(t)} does not have '\u0275mod' property.`);return n}const Ft=20,Nt=10;function Mt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Lt(t){return Array.isArray(t)&&!0===t[1]}function Vt(t){return 0!=(8&t.flags)}function Bt(t){return 2==(2&t.flags)}function Ht(t){return 1==(1&t.flags)}function Ut(t){return null!==t.template}function zt(t){return 0!=(512&t[2])}function $t(t){return"string"==typeof t?t:null==t?"":""+t}function Kt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():$t(t)}const qt=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(L))();function Wt(t){return t instanceof Function?t():t}function Gt(t,e){const n=e?" in "+e:"";throw new Error(`No provider for ${Kt(t)} found${n}`)}class Xt{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Qt(){return Zt}function Zt(t){return t.type.prototype.ngOnChanges&&(t.setInput=Jt),Yt}function Yt(){const t=te(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===vt)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Jt(t,e,n,r){const s=te(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:vt,current:null}),i=s.current||(s.current={}),o=s.previous,a=this.declaredInputs[n],c=o[a];i[a]=new Xt(c&&c.currentValue,e,o===vt),t[r]=e}function te(t){return t.__ngSimpleChanges__||null}Qt.ngInherit=!0;const ee="http://www.w3.org/2000/svg";let ne=void 0;function re(t){ne=t}function se(){return void 0!==ne?ne:"undefined"!=typeof document?document:void 0}function ie(t){return!!t.listen}const oe={createRenderer:(t,e)=>se()};function ae(t){for(;Array.isArray(t);)t=t[0];return t}function ce(t,e){return ae(e[t+Ft])}function le(t,e){return ae(e[t.index])}function ue(t,e){return t.data[e+Ft]}function he(t,e){return t[e+Ft]}function de(t,e){const n=e[t];return Mt(n)?n:n[0]}function fe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function pe(t){return 4==(4&t[2])}function me(t){return 128==(128&t[2])}function ge(t,e){return null===t||null==e?null:t[e]}function be(t){t[18]=0}function ye(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const _e={lFrame:He(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function ve(){return _e.bindingsEnabled}function we(){return _e.lFrame.lView}function Ce(){return _e.lFrame.tView}function Ee(t){_e.lFrame.contextLView=t}function Oe(){return _e.lFrame.currentTNode}function Se(t,e){_e.lFrame.currentTNode=t,_e.lFrame.isParent=e}function De(){return _e.lFrame.isParent}function xe(){_e.lFrame.isParent=!1}function Ae(){return _e.isInCheckNoChangesMode}function ke(t){_e.isInCheckNoChangesMode=t}function Te(){const t=_e.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function je(){return _e.lFrame.bindingIndex}function Ie(){return _e.lFrame.bindingIndex++}function Pe(t){const e=_e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function Re(t,e){const n=_e.lFrame;n.bindingIndex=n.bindingRootIndex=t,Fe(e)}function Fe(t){_e.lFrame.currentDirectiveIndex=t}function Ne(){return _e.lFrame.currentQueryIndex}function Me(t){_e.lFrame.currentQueryIndex=t}function Le(t,e){const n=Be();_e.lFrame=n,n.currentTNode=e,n.lView=t}function Ve(t){const e=Be(),n=t[1];_e.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex}function Be(){const t=_e.lFrame,e=null===t?null:t.child;return null===e?He(t):e}function He(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Ue(){const t=_e.lFrame;return _e.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const ze=Ue;function $e(){const t=Ue();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ke(){return _e.lFrame.selectedIndex}function qe(t){_e.lFrame.selectedIndex=t}function We(){const t=_e.lFrame;return ue(t.tView,t.selectedIndex)}function Ge(){_e.lFrame.currentNamespace=ee}function Xe(){_e.lFrame.currentNamespace=null}function Qe(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[o]<0&&(t[18]+=65536),(i>11>16&&(3&t[2])===e&&(t[2]+=2048,i.call(o)):i.call(o)}const nn=-1;class rn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function sn(t,e,n){const r=ie(t);let s=0;for(;se){o=i-1;break}}}for(;i>16,r=e;for(;n>0;)r=r[15],n--;return r}let fn=!0;function pn(t){const e=fn;return fn=t,e}let mn=0;function gn(t,e){const n=yn(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,bn(r.data,t),bn(e,null),bn(r.blueprint,null));const s=_n(t,e),i=t.injectorIndex;if(un(s)){const t=hn(s),n=dn(s,e),r=n[1].data;for(let s=0;s<8;s++)e[i+s]=n[t+s]|r[t+s]}return e[i+8]=s,i}function bn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function yn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _n(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,s=e;for(;null!==s;){const t=s[1],e=t.type;if(r=2===e?t.declTNode:1===e?s[6]:null,null===r)return nn;if(n++,s=s[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return nn}function vn(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(K)&&(r=n[K]),null==r&&(r=n[K]=mn++);const s=255&r,i=1<0?255&e:e}(n);if("function"==typeof s){Le(e,t);try{const t=s();if(null!=t||r&m.Optional)return t;Gt(n)}finally{ze()}}else if("number"==typeof s){if(-1===s)return new An(t,e);let i=null,o=yn(t,e),a=nn,c=r&m.Host?e[16][6]:null;for((-1===o||r&m.SkipSelf)&&(a=-1===o?_n(t,e):e[o+8],a!==nn&&xn(r,!1)?(i=e[1],o=hn(a),e=dn(a,e)):o=-1);-1!==o;){const t=e[1];if(Dn(s,o,t.data)){const t=En(o,e,n,i,r,c);if(t!==Cn)return t}a=e[o+8],a!==nn&&xn(r,e[1].data[o+8]===c)&&Dn(s,o,e)?(i=t,o=hn(a),e=dn(a,e)):o=-1}}}if(r&m.Optional&&void 0===s&&(s=null),0==(r&(m.Self|m.Host))){const t=e[9],i=et(void 0);try{return t?t.get(n,s,r&m.Optional):st(n,s,r&m.Optional)}finally{et(i)}}if(r&m.Optional)return s;Gt(n,"NodeInjector")}const Cn={};function En(t,e,n,r,s,i){const o=e[1],a=o.data[t+8],c=On(a,o,n,null==r?Bt(a)&&fn:r!=o&&2===a.type,s&m.Host&&i===a);return null!==c?Sn(e,o,c,a):Cn}function On(t,e,n,r,s){const i=t.providerIndexes,o=e.data,a=1048575&i,c=t.directiveStart,l=i>>20,u=s?a+l:t.directiveEnd;for(let h=r?a:a+l;h=c&&t.type===n)return h}if(s){const t=o[c];if(t&&Ut(t)&&t.type===n)return c}return null}function Sn(t,e,n,r){let s=t[n];const i=e.data;if(s instanceof rn){const o=s;o.resolving&&function(t,e){throw new Error("Circular dependency in DI detected for "+t)}(Kt(i[n]));const a=pn(o.canSeeViewProviders);o.resolving=!0;const c=o.injectImpl?et(o.injectImpl):null;Le(t,r);try{s=t[n]=o.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:s,ngDoCheck:i}=e.type.prototype;if(r){const r=Zt(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r)}s&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,s),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==c&&et(c),pn(a),o.resolving=!1,ze()}}return s}function Dn(t,e,n){const r=64&t,s=32&t;let i;return i=128&t?r?s?n[e+7]:n[e+6]:s?n[e+5]:n[e+4]:r?s?n[e+3]:n[e+2]:s?n[e+1]:n[e],!!(i&1<{const t=kn(I(e));return t?t():null};let n=Pt(e);if(null===n){const t=C(e);n=t&&t.factory}return n||null}function Tn(t){return c(()=>{const e=t.prototype.constructor,n=e[$]||kn(e),r=Object.prototype;let s=Object.getPrototypeOf(t.prototype).constructor;for(;s&&s!==r;){const t=s[$]||kn(s);if(t&&t!==n)return t;s=Object.getPrototypeOf(s)}return t=>new t})}function jn(t){return t.ngDebugContext}function In(t){return t.ngOriginalError}function Pn(t,...e){t.error(...e)}class Rn{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),r=function(t){return t.ngErrorLogger||Pn}(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?jn(t)?jn(t):this._findContext(In(t)):null}_findOriginalError(t){let e=In(t);for(;e&&In(e);)e=In(e);return e}}class Fn{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class Nn extends Fn{getTypeName(){return"HTML"}}class Mn extends Fn{getTypeName(){return"Style"}}class Ln extends Fn{getTypeName(){return"Script"}}class Vn extends Fn{getTypeName(){return"URL"}}class Bn extends Fn{getTypeName(){return"ResourceURL"}}function Hn(t){return t instanceof Fn?t.changingThisBreaksApplicationSecurity:t}function Un(t,e){const n=zn(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function zn(t){return t instanceof Fn&&t.getTypeName()||null}function $n(t){return new Nn(t)}function Kn(t){return new Mn(t)}function qn(t){return new Ln(t)}function Wn(t){return new Vn(t)}function Gn(t){return new Bn(t)}let Xn=!0,Qn=!1;function Zn(){return Qn=!0,Xn}function Yn(){if(Qn)throw new Error("Cannot enable prod mode after platform setup.");Xn=!1}function Jn(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new tr:new er(t)}class tr{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class er{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0sr(t.trim())).join(", ")}function or(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function ar(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const cr=or("area,br,col,hr,img,wbr"),lr=or("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),ur=or("rp,rt"),hr=ar(ur,lr),dr=ar(cr,ar(lr,or("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),ar(ur,or("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),hr),fr=or("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),pr=or("srcset"),mr=ar(fr,pr,or("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),or("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),gr=or("script,style,template");class br{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!dr.hasOwnProperty(e))return this.sanitizedSomething=!0,!gr.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let r=0;r"),!0}endElement(t){const e=t.nodeName.toLowerCase();dr.hasOwnProperty(e)&&!cr.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(vr(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const yr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,_r=/([^\#-~ |!])/g;function vr(t){return t.replace(/&/g,"&").replace(yr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(_r,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let wr;function Cr(t,e){let n=null;try{wr=wr||Jn(t);let r=e?String(e):"";n=wr.getInertBodyElement(r);let s=5,i=r;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,r=i,i=n.innerHTML,n=wr.getInertBodyElement(r)}while(r!==i);const o=new br,a=o.sanitizeChildren(Er(n)||n);return Zn()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Er(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}function Er(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Or=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Sr(t){const e=function(){const t=we();return t&&t[12]}();return e?e.sanitize(Or.URL,t)||"":Un(t,"URL")?Hn(t):sr($t(t))}function Dr(t,e){t.__ngContext__=e}function xr(t,e,n){let r=t.length;for(;;){const s=t.indexOf(e,n);if(-1===s)return s;if(0===s||t.charCodeAt(s-1)<=32){const n=e.length;if(s+n===r||t.charCodeAt(s+n)<=32)return s}n=s+1}}const Ar="ng-template";function kr(t,e,n){let r=0;for(;ri?"":s[u+1].toLowerCase();const e=8&r?t:null;if(e&&-1!==xr(e,l,0)||2&r&&l!==t){if(Pr(r))return!1;o=!0}}}}else{if(!o&&!Pr(r)&&!Pr(c))return!1;if(o&&Pr(c))continue;o=!1,r=c|1&r}}return Pr(r)||o}function Pr(t){return 0==(1&t)}function Rr(t,e,n,r){if(null===e)return-1;let s=0;if(r||!n){let n=!1;for(;s-1)for(n++;n0?'="'+e+'"':"")+"]"}else 8&r?s+="."+o:4&r&&(s+=" "+o);else""===s||Pr(o)||(e+=Mr(i,s),s=""),r=o,i=i||!Pr(r);n++}return""!==s&&(e+=Mr(i,s)),e}const Vr={};function Br(t){const e=t[3];return Lt(e)?e[3]:e}function Hr(t){return zr(t[13])}function Ur(t){return zr(t[4])}function zr(t){for(;null!==t&&!Lt(t);)t=t[4];return t}function $r(t){Kr(Ce(),we(),Ke()+t,Ae())}function Kr(t,e,n,r){if(!r)if(3==(3&e[2])){const r=t.preOrderCheckHooks;null!==r&&Ze(e,r,n)}else{const r=t.preOrderHooks;null!==r&&Ye(e,r,0,n)}qe(n)}function qr(t,e){return t<<17|e<<2}function Wr(t){return t>>17&32767}function Gr(t){return 2|t}function Xr(t){return(131068&t)>>2}function Qr(t,e){return-131069&t|e<<2}function Zr(t){return 1|t}function Yr(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;rFt&&Kr(t,e,0,Ae()),n(r,s)}finally{qe(i)}}function os(t,e,n){if(Vt(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s0&&ks(n)}}function ks(t){for(let n=Hr(t);null!==n;n=Ur(n))for(let t=Nt;t0&&ks(e)}const e=t[1].components;if(null!==e)for(let n=0;n0&&ks(r)}}function Ts(t,e){const n=de(e,t),r=n[1];!function(t,e){for(let n=e.length;nPromise.resolve(null))();function Ms(t){return t[7]||(t[7]=[])}function Ls(t,e){const n=t[9],r=n?n.get(Rn,null):null;r&&r.handleError(e)}function Vs(t,e,n,r,s){for(let i=0;i0&&(t[n-1][4]=r[4]);const o=ft(t,Nt+e);si(r[1],s=r,s[11],2,null,null),s[0]=null,s[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}var s;return r}function Ks(t,e){if(!(256&e[2])){const n=e[11];ie(n)&&n.destroyNode&&si(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return qs(t[1],t);for(;e;){let n=null;if(Mt(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)Mt(e)&&qs(e[1],e),e=e[3];null===e&&(e=t),Mt(e)&&qs(e[1],e),n=e&&e[4]}e=n}}(e)}}function qs(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?t[a]():t[-a].unsubscribe(),r+=2}else n[r].call(t[n[r+1]]);e[7]=null}}(t,e),1===e[1].type&&ie(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&Lt(e[3])){n!==e[3]&&zs(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function Ws(t,e,n){let r=e.parent;for(;null!=r&&(3===r.type||4===r.type);)r=(e=r).parent;if(null===r)return n[0];if(e&&4===e.type&&4&e.flags)return le(e,n).parentNode;if(2&r.flags){const e=t.data,n=e[e[r.index].directiveStart].encapsulation;if(n!==_t.ShadowDom&&n!==_t.Native)return null}return le(r,n)}function Gs(t,e,n,r){ie(t)?t.insertBefore(e,n,r):e.insertBefore(n,r,!0)}function Xs(t,e,n){ie(t)?t.appendChild(e,n):e.appendChild(n)}function Qs(t,e,n,r){null!==r?Gs(t,e,n,r):Xs(t,e,n)}function Zs(t,e){return ie(t)?t.parentNode(e):e.parentNode}function Ys(t,e){return 3===t.type||4===t.type?le(t,e):null}function Js(t,e,n,r){const s=Ws(t,r,e);if(null!=s){const t=e[11],i=Ys(r.parent||e[6],e);if(Array.isArray(n))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}Ks(this._lView[1],this._lView)}onDestroy(t){hs(this._lView[1],this._lView,null,t)}markForCheck(){Is(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Ps(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){ke(!0);try{Ps(t,e,n)}finally{ke(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,si(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class ui extends li{constructor(t){super(t),this._view=t}detectChanges(){Rs(this._view)}checkNoChanges(){!function(t){ke(!0);try{Rs(t)}finally{ke(!1)}}(this._view)}get context(){return null}}function hi(t,e,n,r,s=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(ae(i)),Lt(i))for(let t=Nt;t0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Nt}createEmbeddedView(t,e,n){const r=t.createEmbeddedView(e||{});return this.insert(r,n),r}createComponent(t,e,n,r,s){const i=n||this.parentInjector;if(!s&&null==t.ngModule&&i){const t=i.get(at,null);t&&(s=t)}const o=t.create(i,r,void 0,s);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,r=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Lt(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],r=new pi(e,e[6],e[3]);r.detach(r.indexOf(t))}}const s=this._adjustIndex(e),i=this._lContainer;!function(t,e,n,r){const s=Nt+r,i=n.length;r>0&&(n[s-1][4]=e),r{class t{}return t.__NG_ELEMENT_ID__=()=>vi(),t})();const vi=yi,wi=Function,Ci=new q("Set Injector scope."),Ei={},Oi={},Si=[];let Di=void 0;function xi(){return void 0===Di&&(Di=new ot),Di}function Ai(t,e=null,n=null,r){return new ki(t,n,e||xi(),r)}class ki{constructor(t,e,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];e&&ht(e,n=>this.processProvider(n,t,e)),ht([t],t=>this.processInjectorType(t,[],s)),this.records.set(W,Ii(void 0,this));const i=this.records.get(Ci);this.scope=null!=i?i.value:null,this.source=r||("object"==typeof t?null:A(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=G,n=m.Default){this.assertNotDestroyed();const r=tt(this);try{if(!(n&m.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(s=t)||"object"==typeof s&&s instanceof q)&&v(t);e=n&&this.injectableDefInScope(n)?Ii(Ti(t),Ei):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&m.Self?xi():this.parent).get(t,e=n&m.Optional&&e===G?null:e)}catch(i){if("NullInjectorError"===i.name){if((i.ngTempTokenPath=i.ngTempTokenPath||[]).unshift(A(t)),r)throw i;return function(t,e,n,r){const s=t.ngTempTokenPath;throw e[Q]&&s.unshift(e[Q]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let s=A(e);if(Array.isArray(e))s=e.map(A).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];t.push(n+":"+("string"==typeof r?JSON.stringify(r):A(r)))}s=`{${t.join(", ")}}`}return`${n}${r?"("+r+")":""}[${s}]: ${t.replace(X,"\n ")}`}("\n"+t.message,s,n,r),t.ngTokenPath=s,t.ngTempTokenPath=null,t}(i,t,"R3InjectorError",this.source)}throw i}finally{tt(r)}var s}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(A(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=I(t)))return!1;let r=C(t);const s=null==r&&t.ngModule||void 0,i=void 0===s?t:s,o=-1!==n.indexOf(i);if(void 0!==s&&(r=C(s)),null==r)return!1;if(null!=r.imports&&!o){let t;n.push(i);try{ht(r.imports,r=>{this.processInjectorType(r,e,n)&&(void 0===t&&(t=[]),t.push(r))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,n,r||Si))}}this.injectorDefTypes.add(i),this.records.set(i,Ii(r.factory,Ei));const a=r.providers;if(null!=a&&!o){const e=t;ht(a,t=>this.processProvider(t,e,a))}return void 0!==s&&void 0!==t.providers}processProvider(t,e,n){let r=Ri(t=I(t))?t:I(t&&t.provide);const s=function(t,e,n){return Pi(t)?Ii(void 0,t.useValue):Ii(ji(t),Ei)}(t);if(Ri(t)||!0!==t.multi)this.records.get(r);else{let e=this.records.get(r);e||(e=Ii(void 0,Ei,!0),e.factory=()=>it(e.multi),this.records.set(r,e)),r=t,e.multi.push(t)}this.records.set(r,s)}hydrate(t,e){var n;return e.value===Ei&&(e.value=Oi,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Ti(t){const e=v(t),n=null!==e?e.factory:Pt(t);if(null!==n)return n;const r=C(t);if(null!==r)return r.factory;if(t instanceof q)throw new Error(`Token ${A(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=pt(e,"?");throw new Error(`Can't resolve all parameters for ${A(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[E]||t[D]||t[S]&&t[S]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function ji(t,e,n){let r=void 0;if(Ri(t)){const e=I(t);return Pt(e)||Ti(e)}if(Pi(t))r=()=>I(t.useValue);else if((s=t)&&s.useFactory)r=()=>t.useFactory(...it(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>rt(I(t.useExisting));else{const e=I(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Pt(e)||Ti(e);r=()=>new e(...it(t.deps))}var s;return r}function Ii(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Pi(t){return null!==t&&"object"==typeof t&&Z in t}function Ri(t){return"function"==typeof t}const Fi=function(t,e,n){return function(t,e=null,n=null,r){const s=Ai(t,e,n,r);return s._resolveInjectorDefTypes(),s}({name:n},e,t,n)};let Ni=(()=>{class t{static create(t,e){return Array.isArray(t)?Fi(t,e,""):Fi(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=G,t.NULL=new ot,t.\u0275prov=y({token:t,providedIn:"any",factory:()=>rt(W)}),t.__NG_ELEMENT_ID__=-1,t})();const Mi=new q("AnalyzeForEntryComponents");function Li(t,e,n){let r=n?t.styles:null,s=n?t.classes:null,i=0;if(null!==e)for(let o=0;o=0;r--){const s=t[r];s.hostVars=e+=s.hostVars,s.hostAttrs=cn(s.hostAttrs,n=cn(n,s.hostAttrs))}}(r)}function Hi(t){return t===vt?{}:t===wt?[]:t}function Ui(t,e){const n=t.viewQuery;t.viewQuery=n?(t,r)=>{e(t,r),n(t,r)}:e}function zi(t,e){const n=t.contentQueries;t.contentQueries=n?(t,r,s)=>{e(t,r,s),n(t,r,s)}:e}function $i(t,e){const n=t.hostBindings;t.hostBindings=n?(t,r)=>{e(t,r),n(t,r)}:e}let Ki=null;function qi(){if(!Ki){const t=L.Symbol;if(t&&t.iterator)Ki=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(ae(t[r.index])).target:r.index;if(ie(n)){let o=null;if(!a&&c&&(o=function(t,e,n,r){const s=t.cleanup;if(null!=s)for(let i=0;in?t[n]:null}"string"==typeof t&&(i+=2)}return null}(t,e,s,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=i,o.__ngLastListenerFn__=i,h=!1;else{i=yo(r,e,i,!1);const t=n.listen(f.name||p,s,i);u.push(i,t),l&&l.push(s,g,m,m+1)}}else i=yo(r,e,i,!0),p.addEventListener(s,i,o),u.push(i),l&&l.push(s,g,m,o)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[s])){const t=f.length;if(t)for(let n=0;n0;)e=e[15],t--;return e}(t,_e.lFrame.contextLView))[8]}(t)}function vo(t,e){let n=null;const r=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let s=0;s=0}const To={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jo(t){return t.substring(To.key,To.keyEnd)}function Io(t,e){const n=To.textEnd;return n===e?-1:(e=To.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,To.key=e,n),Po(t,e,n))}function Po(t,e,n){for(;e=0;n=Io(e,n))mt(t,jo(e),!0)}function Lo(t,e,n,r){const s=we(),i=Ce(),o=Pe(2);i.firstUpdatePass&&Ho(i,t,o,r),e!==Vr&&Zi(s,o,e)&&$o(i,i.data[Ke()+Ft],s,s[11],t,s[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=A(Hn(t)))),t}(e,n),r,o)}function Vo(t,e,n,r){const s=Ce(),i=Pe(2);s.firstUpdatePass&&Ho(s,null,i,r);const o=we();if(n!==Vr&&Zi(o,i,n)){const a=s.data[Ke()+Ft];if(Wo(a,r)&&!Bo(s,i)){let t=r?a.classesWithoutHost:a.stylesWithoutHost;null!==t&&(n=k(t,n||"")),oo(s,a,o,n,r)}else!function(t,e,n,r,s,i,o,a){s===Vr&&(s=xo);let c=0,l=0,u=0=t.expandoStartIndex}function Ho(t,e,n,r){const s=t.data;if(null===s[n+1]){const i=s[Ke()+Ft],o=Bo(t,n);Wo(i,r)&&null===e&&!o&&(e=!1),e=function(t,e,n,r){const s=function(t){const e=_e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===s)0===(r?e.classBindings:e.styleBindings)&&(n=zo(n=Uo(null,t,e,n,r),e.attrs,r),i=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==s)if(n=Uo(s,t,e,n,r),null===i){let n=function(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==Xr(r))return t[Wr(r)]}(t,e,r);void 0!==n&&Array.isArray(n)&&(n=Uo(null,t,e,n[1],r),n=zo(n,e.attrs,r),function(t,e,n,r){t[Wr(n?e.classBindings:e.styleBindings)]=r}(t,e,r,n))}else i=function(t,e,n){let r=void 0;const s=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(u=!0)}else l=n;if(s)if(0!==c){const e=Wr(t[a+1]);t[r+1]=qr(e,a),0!==e&&(t[e+1]=Qr(t[e+1],r)),t[a+1]=131071&t[a+1]|r<<17}else t[r+1]=qr(a,0),0!==a&&(t[a+1]=Qr(t[a+1],r)),a=r;else t[r+1]=qr(c,0),0===a?a=r:t[c+1]=Qr(t[c+1],r),c=r;u&&(t[r+1]=Gr(t[r+1])),Ao(t,l,r,!0),Ao(t,l,r,!1),function(t,e,n,r,s){const i=s?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&bt(i,e)>=0&&(n[r+1]=Zr(n[r+1]))}(e,l,t,r,i),o=qr(a,c),i?e.classBindings=o:e.styleBindings=o}(s,i,e,n,o,r)}}function Uo(t,e,n,r,s){let i=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const e=t[s],i=Array.isArray(e),c=i?e[1]:e,l=null===c;let u=n[s+1];u===Vr&&(u=l?xo:void 0);let h=l?gt(u,r):c===r?u:void 0;if(i&&!qo(h)&&(h=gt(e,r)),qo(h)&&(a=h,o))return a;const d=t[s+1];s=o?Wr(d):Xr(d)}if(null!==e){let t=i?e.residualClasses:e.residualStyles;null!=t&&(a=gt(t,r))}return a}function qo(t){return void 0!==t}function Wo(t,e){return 0!=(t.flags&(e?16:32))}function Go(t,e=""){const n=we(),r=Ce(),s=t+Ft,i=r.firstCreatePass?es(r,t,2,null,null):r.data[s],o=n[s]=Us(e,n[11]);Js(r,n,o,i),Se(i,!1)}function Xo(t){return Qo("",t,""),Xo}function Qo(t,e,n){const r=we(),s=to(r,t,e,n);return s!==Vr&&Bs(r,Ke(),s),Qo}function Zo(t,e,n,r,s){const i=we(),o=function(t,e,n,r,s,i){const o=Yi(t,je(),n,s);return Pe(2),o?e+$t(n)+r+$t(s)+i:Vr}(i,t,e,n,r,s);return o!==Vr&&Bs(i,Ke(),o),Zo}function Yo(t,e,n){Vo(mt,Mo,to(we(),t,e,n),!0)}function Jo(t,e,n,r,s,i,o,a,c){Vo(mt,Mo,function(t,e,n,r,s,i,o,a,c,l){const u=function(t,e,n,r,s,i){const o=Yi(t,e,n,r);return Yi(t,e+2,s,i)||o}(t,je(),n,s,o,c);return Pe(4),u?e+$t(n)+r+$t(s)+i+$t(o)+a+$t(c)+l:Vr}(we(),t,e,n,r,s,i,o,a,c),!0)}function ta(t,e,n){const r=we();return Zi(r,Ie(),e)&&fs(Ce(),We(),r,t,e,r[11],n,!0),ta}const ea=void 0;var na=["en",[["a","p"],["AM","PM"],ea],[["AM","PM"],ea,ea],[["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"]],ea,[["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"]],ea,[["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}",ea,"{1} 'at' {0}",ea],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let ra={};function sa(t,e,n){"string"!=typeof e&&(n=e,e=t[la.LocaleId]),e=e.toLowerCase().replace(/_/g,"-"),ra[e]=t,n&&(ra[e][la.ExtraData]=n)}function ia(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=ca(e);if(n)return n;const r=e.split("-")[0];if(n=ca(r),n)return n;if("en"===r)return na;throw new Error(`Missing locale data for the locale "${t}".`)}function oa(t){return ia(t)[la.CurrencyCode]||null}function aa(t){return ia(t)[la.PluralCase]}function ca(t){return t in ra||(ra[t]=L.ng&&L.ng.common&&L.ng.common.locales&&L.ng.common.locales[t]),ra[t]}var la=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ua=["zero","one","two","few","many"],ha="en-US",da={marker:"element"},fa={marker:"comment"};let pa=ha;function ma(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,r){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(pa=t.toLowerCase().replace(/_/g,"-"))}const ga=[];let ba=-1,ya=0,_a=0;function va(t,e,n,r){const s=r[11];let i=null,o=null;const a=[];for(let c=0;c>>17;let u;u=s===e?r[6]:ue(t,s),o=Sa(t,i,u,o,r);break;case 0:const h=l>=0,d=(h?l:~l)>>>3;a.push(d),o=i,i=ue(t,d),i&&Se(i,h);break;case 5:o=i=ue(t,l>>>3),Se(i,!1);break;case 4:const f=n[++c],p=n[++c];Os(ue(t,l>>>3),r,f,p,null,null);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}else switch(l){case fa:const e=n[++c],u=n[++c],h=s.createComment(e);o=i,i=xa(t,r,u,4,h,null),a.push(u),Dr(h,r),xe();break;case da:const d=n[++c],f=n[++c];o=i,i=xa(t,r,f,2,s.createElement(d),d),a.push(f);break;default:throw new Error(`Unable to determine the type of mutate operation for "${l}"`)}}return xe(),a}function wa(t,e,n,r,s,i){let o=!1;for(let a=0;a>>2;switch(3&a){case 1:const a=r[++c],u=r[++c];fs(t,ue(t,l),n,a,i,n[11],u,!1);break;case 0:Bs(n,l,i);break;case 2:o=Ea(t,e,r[++c],n,i);break;case 3:Ca(t,e,r[++c],s,n,o)}}}}a+=l}}function Ca(t,e,n,r,s,i){const o=e[n],a=s[o.currentCaseLViewIndex];null!==a&&wa(t,e,s,o.update[a],r,i?-1:ya)}function Ea(t,e,n,r,s){Oa(t,e,n,r);let i=!1;const o=e[n],a=function(t,e){let n=t.cases.indexOf(e);if(-1===n)switch(t.type){case 1:{const r=function(t,e){const n=aa(e)(parseInt(t,10)),r=ua[n];return void 0!==r?r:"other"}(e,pa);n=t.cases.indexOf(r),-1===n&&"other"!==r&&(n=t.cases.indexOf("other"));break}case 0:n=t.cases.indexOf("other")}return n}(o,s);return r[o.currentCaseLViewIndex]=-1!==a?a:null,a>-1&&(va(t,-1,o.create[a],r),i=!0),i}function Oa(t,e,n,r){const s=e[n],i=r[s.currentCaseLViewIndex];if(null!==i){const n=s.remove[i];for(let s=0;s>>3;switch(7&i){case 3:Da(t,r,o,!1);break;case 6:Oa(t,e,o,r)}}}}function Sa(t,e,n,r,s){const i=e.next;r||(r=n),r===n&&e!==n.child?(e.next=n.child,null===e.parent?t.firstChild=e:n.child=e):r!==n&&e!==r.next?(e.next=r.next,r.next=e):e.next=null,n!==s[6]&&(e.parent=n);let o=e.next;for(;o;)o.next===e&&(o.next=i),o=o.next;if(1===e.type)return ii(t,s,e),e;Js(t,s,le(e,s),e);const a=s[e.index];return 0!==e.type&&Lt(a)&&Js(t,s,a[7],e),e}function Da(t,e,n,r){const s=ue(t,n),i=ce(n,e);i&&ni(e[11],i);const o=he(e,n);if(Lt(o)){const t=o;0!==s.type&&ni(e[11],t[7])}r&&s&&(s.flags|=64)}function xa(t,e,n,r,s,i){const o=Oe();e[n+Ft]=s;const a=es(t,n,r,i,null);return o&&o.next===a&&(o.next=null),a}const Aa=/\ufffd(\d+):?\d*\ufffd/gi,ka=/({\s*\ufffd\d+:?\d*\ufffd\s*,\s*\S{6}\s*,[\s\S]*})/gi,Ta=/\ufffd(\d+)\ufffd/,ja=/^\s*(\ufffd\d+:?\d*\ufffd)\s*,\s*(select|plural)\s*,/;let Ia;const Pa=[],Ra=/\ufffd\/?\*(\d+:\d+)\ufffd/gi,Fa=/\ufffd(\/?[#*!]\d+):?\d*\ufffd/gi,Na=/\uE500/g;function Ma(t,e,n,r=null){const s=[null,null],i=t.split(Aa);let o=0;for(let a=0;an.length&&n.push(s)}return{type:r,mainBinding:s,cases:e,values:n}}function Ka(t,e,n,r,s){const i=Jn(se()).getInertBodyElement(t);if(!i)throw new Error("Unable to generate inert body element");const o={vars:1,childIcus:[],create:[],remove:[],update:[]};return Wa((Er(i)||i).firstChild,o,e,n,r,s),o}function qa(t){if(!t)return[];let e=0;const n=[],r=[],s=/[{}]/g;let i;for(s.lastIndex=0;i=s.exec(t);){const s=i.index;if("}"==i[0]){if(n.pop(),0==n.length){const n=t.substring(e,s);ja.test(n)?r.push($a(n)):r.push(n),e=s+1}}else{if(0==n.length){const n=t.substring(e,s);r.push(n),e=s+1}n.push("{")}}const o=t.substring(e);return r.push(o),r}function Wa(t,e,n,r,s,i){if(t){const o=[];for(;t;){const a=t.nextSibling,c=i+ ++e.vars;switch(t.nodeType){case Node.ELEMENT_NODE:const a=t,l=a.tagName.toLowerCase();if(dr.hasOwnProperty(l)){e.create.push(da,l,c,n<<17|1);const o=a.attributes;for(let t=0;t0&&o!==a){let t=o.index-Ft;De()||(t=~t),u.push(t<<3|0)}const h=[],d=[];if(""===r&&Ha(s))u.push(r,Va(i),c<<17|1);else{const t=function(t,e){if(Ha(e))return Ua(t);{const n=t.indexOf(`:${e}\ufffd`)+2+e.toString().length,r=t.search(new RegExp(`\ufffd\\/\\*\\d+:${e}\ufffd`));return Ua(t.substring(n,r))}}(r,s),e=(f=t,f.replace(Na," ")).split(Fa);for(let n=0;n0&&function(t,e,n){if(n>0&&t.firstCreatePass){for(let r=0;r>1),o++}})(Ce(),t),Eo(!1)}()}function Xa(t,e){const n=we(),r=Ce();!function(t,e,n,r){const s=Oe().index-Ft,i=[];for(let o=0;o0){const r=t.data[n+Ft];let s,i=null;Array.isArray(r)?s=r:(s=r.update,i=r.icus),wa(t,i,e,s,je()-_a-1,ya),ya=0,_a=0}}(Ce(),we(),t)}function Ya(t,e,n,r,s){if(t=I(t),Array.isArray(t))for(let i=0;i>20;if(Ri(t)||!t.multi){const r=new rn(c,s,ro),f=ec(a,e,s?u:u+d,h);-1===f?(vn(gn(l,o),i,a),Ja(i,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),n.push(r),o.push(r)):(n[f]=r,o[f]=r)}else{const f=ec(a,e,u+d,h),p=ec(a,e,u,u+d),m=f>=0&&n[f],g=p>=0&&n[p];if(s&&!g||!s&&!m){vn(gn(l,o),i,a);const u=function(t,e,n,r,s){const i=new rn(t,n,ro);return i.multi=[],i.index=e,i.componentProviders=0,tc(i,s,r&&!n),i}(s?rc:nc,n.length,s,r,c);!s&&g&&(n[p].providerFactory=u),Ja(i,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,s&&(l.providerIndexes+=1048576),n.push(u),o.push(u)}else Ja(i,t,f>-1?f:p,tc(n[s?p:f],c,!s&&r));!s&&r&&g&&n[p].componentProviders++}}}function Ja(t,e,n,r){const s=Ri(e);if(s||e.useClass){const i=(e.useClass||e).prototype.ngOnDestroy;if(i){const o=t.destroyHooks||(t.destroyHooks=[]);if(!s&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[r,i]):o[t+1].push(r,i)}else o.push(n,i)}}}function tc(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function ec(t,e,n,r){for(let s=n;s{n.providersResolver=(n,r)=>function(t,e,n){const r=Ce();if(r.firstCreatePass){const s=Ut(t);Ya(n,r.data,r.blueprint,s,!0),Ya(e,r.data,r.blueprint,s,!1)}}(n,r?r(t):t,e)}}class oc{}class ac{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${A(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let cc=(()=>{class t{}return t.NULL=new ac,t})(),lc=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>uc(t),t})();const uc=function(t){return mi(t,Oe(),we())};class hc{}var dc=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let fc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>pc(),t})();const pc=function(){const t=we(),e=de(Oe().index,t);return function(t){const e=t[11];if(ie(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Mt(e)?e:t)};let mc=(()=>{class t{}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>null}),t})();class gc{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const bc=new gc("10.2.4");class yc{constructor(){}supports(t){return Gi(t)}create(t){return new vc(t)}}const _c=(t,e)=>e;class vc{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||_c}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,r=0,s=null;for(;e||n;){const i=!n||e&&e.currentIndex{r=this._trackByFn(e,t),null!==s&&Object.is(s.trackById,r)?(i&&(s=this._verifyReinsertion(s,t,r,e)),Object.is(s.item,t)||this._addIdentityChange(s,t)):(s=this._mismatch(s,t,r,e),i=!0),s=s._next,e++}),this.length=e;return this._truncate(s),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):t=this._addAfter(new wc(e,n),s,r),t}_verifyReinsertion(t,e,n,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ec),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ec),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class wc{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Cc{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Ec{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Cc,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Oc(t,e,n){const r=t.previousIndex;if(null===r)return r;let s=0;return n&&r{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const r=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const r=n._prev,s=n._next;return r&&(r._next=s),s&&(s._prev=r),n._next=null,n._prev=null,n}const n=new xc(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class xc{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ac=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>new t([new yc])}),t})(),kc=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new p,new d]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=y({token:t,providedIn:"root",factory:()=>new t([new Sc])}),t})();const Tc=[new Sc],jc=new Ac([new yc]),Ic=new kc(Tc);let Pc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Rc(t,lc),t})();const Rc=function(t,e){return gi(t,e,Oe(),we())};let Fc=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Nc(t,lc),t})();const Nc=function(t,e){return bi(t,e,Oe(),we())},Mc={};class Lc extends cc{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=It(t);return new Hc(e,this.ngModule)}}function Vc(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Bc=new q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qt});class Hc extends oc{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(Lr).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Vc(this.componentDef.inputs)}get outputs(){return Vc(this.componentDef.outputs)}create(t,e,n,r){const s=(r=r||this.ngModule)?function(t,e){return{get:(n,r,s)=>{const i=t.get(n,Mc,s);return i!==Mc||r===Mc?i:e.get(n,r,s)}}}(t,r.injector):t,i=s.get(hc,oe),o=s.get(mc,null),a=i.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",l=n?function(t,e,n){if(ie(t))return t.selectRootElement(e,n===_t.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(a,n,this.componentDef.encapsulation):Jr(c,i.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?ee:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),u=this.componentDef.onPush?576:528,h={components:[],scheduler:qt,clean:Ns,playerHandler:null,flags:0},d=us(0,null,null,1,0,null,null,null,null,null),f=ts(null,d,h,u,null,null,i,a,o,s);let p,m;Ve(f);try{const t=function(t,e,n,r,s,i){const o=n[1];n[20]=t;const a=es(o,0,2,null,null),c=a.mergedAttrs=e.hostAttrs;null!==c&&(Li(a,c,!0),null!==t&&(sn(s,t,c),null!==a.classes&&ci(s,t,a.classes),null!==a.styles&&ai(s,t,a.styles)));const l=r.createRenderer(t,e),u=ts(n,ls(e),null,e.onPush?64:16,n[20],a,r,l,null,null);return o.firstCreatePass&&(vn(gn(a,n),o,e.type),_s(o,a),ws(a,n.length,1)),js(n,u),n[20]=u}(l,this.componentDef,f,i,a);if(l)if(n)sn(a,l,["ng-version",bc.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let r=1,s=2;for(;r0&&ci(a,l,e.join(" "))}if(m=ue(d,0),void 0!==e){const t=m.projection=[];for(let n=0;nt(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=Oe();if(i.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){qe(a.index-Ft);const t=n[1];ms(t,e),gs(t,n,e.hostVars),bs(e,o)}return o}(t,this.componentDef,f,h,[Vi]),ns(d,f,null)}finally{$e()}return new Uc(this.componentType,p,mi(lc,m,f),f,m)}}class Uc extends class{}{constructor(t,e,n,r,s){super(),this.location=n,this._rootLView=r,this._tNode=s,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new ui(r),this.componentType=t}get injector(){return new An(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const zc=new Map;class $c extends at{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Lc(this);const n=Rt(t),r=t[z]||null;r&&ma(r),this._bootstrapComponents=Wt(n.bootstrap),this._r3Injector=Ai(t,e,[{provide:at,useValue:this},{provide:cc,useValue:this.componentFactoryResolver}],A(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=Ni.THROW_IF_NOT_FOUND,n=m.Default){return t===Ni||t===at||t===W?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Kc extends ct{constructor(t){super(),this.moduleType=t,null!==Rt(t)&&function(t){const e=new Set;!function t(n){const r=Rt(n,!0),s=r.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${A(e)} vs ${A(e.name)}`)}(s,zc.get(s),n),zc.set(s,n));const i=Wt(r.imports);for(const o of i)e.has(o)||(e.add(o),t(o))}(t)}(t)}create(t){return new $c(this.moduleType,t)}}function qc(t,e,n){const r=Te()+t,s=we();return s[r]===Vr?Qi(s,r,n?e.call(n):e()):function(t,e){return t[e]}(s,r)}function Wc(t,e,n,r){return Zc(we(),Te(),t,e,n,r)}function Gc(t,e,n,r,s){return function(t,e,n,r,s,i,o){const a=e+n;return Yi(t,a,s,i)?Qi(t,a+2,o?r.call(o,s,i):r(s,i)):Qc(t,a+2)}(we(),Te(),t,e,n,r,s)}function Xc(t,e,n,r,s,i){return function(t,e,n,r,s,i,o,a){const c=e+n;return function(t,e,n,r,s){const i=Yi(t,e,n,r);return Zi(t,e+2,s)||i}(t,c,s,i,o)?Qi(t,c+3,a?r.call(a,s,i,o):r(s,i,o)):Qc(t,c+3)}(we(),Te(),t,e,n,r,s,i)}function Qc(t,e){const n=t[e];return n===Vr?void 0:n}function Zc(t,e,n,r,s,i){const o=e+n;return Zi(t,o,s)?Qi(t,o+1,i?r.call(i,s):r(s)):Qc(t,o+1)}function Yc(t,e){const n=Ce();let r;const s=t+Ft;n.firstCreatePass?(r=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}throw new Error(`The pipe '${t}' could not be found!`)}(e,n.pipeRegistry),n.data[s]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(s,r.onDestroy)):r=n.data[s];const i=r.factory||(r.factory=Pt(r.type)),o=et(ro);try{const e=pn(!1),r=i();return pn(e),function(t,e,n,r){const s=n+Ft;s>=t.data.length&&(t.data[s]=null,t.blueprint[s]=null),e[s]=r}(n,we(),t,r),r}finally{et(o)}}function Jc(t,e,n){const r=we(),s=he(r,t);return function(t,e){return Wi.isWrapped(e)&&(e=Wi.unwrap(e),t[je()]=Vr),e}(r,function(t,e){return t[1].data[e+Ft].pure}(r,t)?Zc(r,Te(),e,s.transform,n,s):s.transform(n))}const tl=class extends r.a{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let r,i=t=>null,o=()=>null;t&&"object"==typeof t?(r=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(o=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(r=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(o=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const a=super.subscribe(r,i,o);return t instanceof s.a&&t.add(a),a}};function el(){return this._results[qi()]()}class nl{constructor(){this.dirty=!0,this._results=[],this.changes=new tl,this.length=0;const t=qi(),e=nl.prototype;e[t]||(e[t]=el)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=ut(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class rl{constructor(t){this.queryList=t,this.matches=null}clone(){return new rl(this.queryList)}setDirty(){this.queryList.setDirty()}}class sl{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let t=0;t0)r.push(o[t/2]);else{const s=i[t+1],o=e[-n];for(let t=Nt;t{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(rt(Sl,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const xl=new q("AppId"),Al={provide:xl,useFactory:function(){return`${kl()}${kl()}${kl()}`},deps:[]};function kl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Tl=new q("Platform Initializer"),jl=new q("Platform ID"),Il=new q("appBootstrapListener");let Pl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const Rl=new q("LocaleId"),Fl=new q("DefaultCurrencyCode");class Nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Ml=function(t){return new Kc(t)},Ll=Ml,Vl=function(t){return Promise.resolve(Ml(t))},Bl=function(t){const e=Ml(t),n=Wt(Rt(t).declarations).reduce((t,e)=>{const n=It(e);return n&&t.push(new Hc(n)),t},[]);return new Nl(e,n)},Hl=Bl,Ul=function(t){return Promise.resolve(Bl(t))};let zl=(()=>{class t{constructor(){this.compileModuleSync=Ll,this.compileModuleAsync=Vl,this.compileModuleAndAllComponentsSync=Hl,this.compileModuleAndAllComponentsAsync=Ul}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();const $l=(()=>Promise.resolve(0))();function Kl(t){"undefined"==typeof Zone?$l.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ql{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tl(!1),this.onMicrotaskEmpty=new tl(!1),this.onStable=new tl(!1),this.onError=new tl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=L.requestAnimationFrame,e=L.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(L,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Ql(t),Xl(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Ql(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,r,s,i,o,a)=>{try{return Zl(t),n.invokeTask(s,i,o,a)}finally{e&&"eventTask"===i.type&&e(),Yl(t)}},onInvoke:(e,n,r,s,i,o,a)=>{try{return Zl(t),e.invoke(r,s,i,o,a)}finally{Yl(t)}},onHasTask:(e,n,r,s)=>{e.hasTask(r,s),n===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Ql(t),Xl(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,n,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ql.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ql.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,r){const s=this._inner,i=s.scheduleEventTask("NgZoneEvent: "+r,t,Gl,Wl,Wl);try{return s.runTask(i,e,n)}finally{s.cancelTask(i)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Wl(){}const Gl={};function Xl(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Ql(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Zl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Yl(t){t._nesting--,Xl(t)}class Jl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tl,this.onMicrotaskEmpty=new tl,this.onStable=new tl,this.onError=new tl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,r){return t.apply(e,n)}}let tu=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ql.assertNotInAngularZone(),Kl(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Kl(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,n){let r=-1;e&&e>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==r),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}whenStable(t,e,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(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(rt(ql))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})(),eu=(()=>{class t{constructor(){this._applications=new Map,iu.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return iu.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();class nu{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}function ru(t){iu=t}let su,iu=new nu;const ou=new q("AllowMultipleToken");class au{constructor(t,e){this.name=t,this.token=e}}function cu(t,e,n=[]){const r="Platform: "+e,s=new q(r);return(e=[])=>{let i=lu();if(!i||i.injector.get(ou,!1))if(t)t(n.concat(e).concat({provide:s,useValue:!0}));else{const t=n.concat(e).concat({provide:s,useValue:!0},{provide:Ci,useValue:"platform"});!function(t){if(su&&!su.destroyed&&!su.injector.get(ou,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");su=t.get(uu);const e=t.get(Tl,null);e&&e.forEach(t=>t())}(Ni.create({providers:t,name:r}))}return function(t){const e=lu();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(s)}}function lu(){return su&&!su.destroyed?su:null}let uu=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Jl:("zone.js"===t?void 0:t)||new ql({enableLongStackTrace:Zn(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),r=[{provide:ql,useValue:n}];return n.run(()=>{const e=Ni.create({providers:r,parent:this.injector,name:t.moduleType.name}),s=t.create(e),i=s.injector.get(Rn,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return s.onDestroy(()=>fu(this._modules,s)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{i.handleError(t)}})),function(t,e,n){try{const r=n();return po(r)?r.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(i,n,()=>{const t=s.injector.get(Dl);return t.runInitializers(),t.donePromise.then(()=>(ma(s.injector.get(Rl,ha)||ha),this._moduleDoBootstrap(s),s))})})}bootstrapModule(t,e=[]){const n=hu({},e);return function(t,e,n){const r=new Kc(n);return Promise.resolve(r)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(du);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${A(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(rt(Ni))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function hu(t,e){return Array.isArray(e)?e.reduce(hu,t):Object.assign(Object.assign({},t),e)}let du=(()=>{class t{constructor(t,e,n,r,s,c){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Zn(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const l=new i.a(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),u=new i.a(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ql.assertNotInAngularZone(),Kl(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ql.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=Object(o.a)(l,u.pipe(Object(a.a)()))}bootstrap(t,e){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.");let n;n=t instanceof oc?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get(at),s=n.create(Ni.NULL,[],e||n.selector,r);s.onDestroy(()=>{this._unloadComponent(s)});const i=s.injector.get(tu,null);return i&&s.injector.get(eu).registerApplication(s.location.nativeElement,i),this._loadComponent(s),Zn()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),s}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;fu(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Il,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),fu(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(rt(ql),rt(Pl),rt(Ni),rt(Rn),rt(cc),rt(Dl))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function fu(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class pu{}class mu{}const gu={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let bu=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||gu}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,r]=t.split("#");return void 0===r&&(r="default"),n("zn8P")(e).then(t=>t[r]).then(t=>yu(t,e,r)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,r]=t.split("#"),s="NgFactory";return void 0===r&&(r="default",s=""),n("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[r+s]).then(t=>yu(t,e,r))}}return t.\u0275fac=function(e){return new(e||t)(rt(zl),rt(mu,8))},t.\u0275prov=y({token:t,factory:t.\u0275fac}),t})();function yu(t,e,n){if(!t)throw new Error(`Cannot find '${n}' in '${e}'`);return t}const _u=function(t){return null},vu=cu(null,"core",[{provide:jl,useValue:"unknown"},{provide:uu,deps:[Ni]},{provide:eu,deps:[]},{provide:Pl,deps:[]}]),wu=[{provide:du,useClass:du,deps:[ql,Pl,Ni,Rn,cc,Dl]},{provide:Bc,deps:[ql],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Dl,useClass:Dl,deps:[[new d,Sl]]},{provide:zl,useClass:zl,deps:[]},Al,{provide:Ac,useFactory:function(){return jc},deps:[]},{provide:kc,useFactory:function(){return Ic},deps:[]},{provide:Rl,useFactory:function(t){return ma(t=t||"undefined"!=typeof $localize&&$localize.locale||ha),t},deps:[[new h(Rl),new d,new p]]},{provide:Fl,useValue:"USD"}];let Cu=(()=>{class t{constructor(t){}}return t.\u0275mod=xt({type:t}),t.\u0275inj=_({factory:function(e){return new(e||t)(rt(du))},providers:wu}),t})()},gRHU:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("2fFW"),s=n("NJ4a");const i={closed:!0,next(t){},error(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(s.a)(t)},complete(){}}},itXk:function(t,e,n){"use strict";n.d(e,"a",function(){return l});var r=n("z+Ro"),s=n("DH7j"),i=n("l7GE"),o=n("ZUHj"),a=n("yCtX");const c={};function l(...t){let e=void 0,n=void 0;return Object(r.a)(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(s.a)(t[0])&&(t=t[0]),Object(a.a)(t,n).lift(new u(e))}class u{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new h(t,this.resultSelector))}}class h extends i.a{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(c),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n{const r=new s.a;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}},jhN1:function(t,e,n){"use strict";n.d(e,"a",function(){return R}),n.d(e,"b",function(){return N}),n.d(e,"c",function(){return I}),n.d(e,"d",function(){return w});var r=n("ofXK"),s=n("fXoL");class i extends r.y{constructor(){super()}supportsDOMEvents(){return!0}}class o extends i{static makeCurrent(){Object(r.C)(new o)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=c||(c=document.querySelector("base"),c)?c.getAttribute("href"):null;return null==e?null:(n=e,a||(a=document.createElement("a")),a.setAttribute("href",n),"/"===a.pathname.charAt(0)?a.pathname:"/"+a.pathname);var n}resetBaseElement(){c=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Object(r.B)(document.cookie,t)}}let a,c=null;const l=new s.q("TRANSITION_ID"),u=[{provide:s.d,useFactory:function(t,e,n){return()=>{n.get(s.e).donePromise.then(()=>{const n=Object(r.A)();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[l,r.c,s.r],multi:!0}];class h{static init(){Object(s.V)(new h)}addToWindow(t){s.mb.getAngularTestability=(e,n=!0)=>{const r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},s.mb.getAllAngularTestabilities=()=>t.getAllTestabilities(),s.mb.getAllAngularRootElements=()=>t.getAllRootElements(),s.mb.frameworkStabilizers||(s.mb.frameworkStabilizers=[]),s.mb.frameworkStabilizers.push(t=>{const e=s.mb.getAllAngularTestabilities();let n=e.length,r=!1;const i=function(e){r=r||e,n--,0==n&&t(r)};e.forEach(function(t){t.whenStable(i)})})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Object(r.A)().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const d=new s.q("EventManagerPlugins");let f=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let r=0;r{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})(),g=(()=>{class t extends m{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Object(r.A)().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.c))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();const b={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},y=/%COMP%/g;function _(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let w=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new C(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case s.P.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new E(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case s.P.Native:case s.P.ShadowDom:return new O(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=_(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(f),s.Xb(g),s.Xb(s.c))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();class C{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(b[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,r){if(r){e=r+":"+e;const s=b[r];s?t.setAttributeNS(s,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const r=b[n];r?t.removeAttributeNS(r,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,r){r&s.F.DashCase?t.style.setProperty(e,n,r&s.F.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&s.F.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))}}class E extends C{constructor(t,e,n,r){super(t),this.component=n;const s=_(r+"-"+n.id,n.styles,[]);e.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(y,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(y,r+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class O extends C{constructor(t,e,n,r){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===s.P.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=_(r.id,r.styles,[]);for(let s=0;s{class t extends p{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.c))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();const D=["alt","control","meta","shift"],x={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},A={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},k={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let T=(()=>{class t extends p{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),o=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Object(r.A)().onAndCancel(e,i.domEventName,o))}static parseEventName(e){const n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const s=t._normalizeKey(n.pop());let i="";if(D.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=s,0!=n.length||0===s.length)return null;const o={};return o.domEventName=r,o.fullKey=i,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&A.hasOwnProperty(e)&&(e=A[e]))}return x[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),D.forEach(r=>{r!=n&&(0,k[r])(t)&&(e+=r+".")}),e+=n,e}static eventCallback(e,n,r){return s=>{t.getEventFullKey(s)===e&&r.runGuarded(()=>n(s))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.c))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();const j=[{provide:s.B,useValue:r.z},{provide:s.C,useValue:function(){o.makeCurrent(),h.init()},multi:!0},{provide:r.c,useFactory:function(){return Object(s.rb)(document),document},deps:[]}],I=Object(s.Q)(s.U,"browser",j),P=[[],{provide:s.X,useValue:"root"},{provide:s.m,useFactory:function(){return new s.m},deps:[]},{provide:d,useClass:S,multi:!0,deps:[r.c,s.z,s.B]},{provide:d,useClass:T,multi:!0,deps:[r.c]},[],{provide:w,useClass:w,deps:[f,g,s.c]},{provide:s.E,useExisting:w},{provide:m,useExisting:g},{provide:g,useClass:g,deps:[r.c]},{provide:s.L,useClass:s.L,deps:[s.z]},{provide:f,useClass:f,deps:[d,s.z]},[]];let R=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:s.c,useValue:e.appId},{provide:l,useExisting:s.c},u]}}}return t.\u0275mod=s.Ib({type:t}),t.\u0275inj=s.Hb({factory:function(e){return new(e||t)(s.Xb(t,12))},providers:P,imports:[r.b,s.f]}),t})();function F(){return new N(Object(s.Xb)(r.c))}let N=(()=>{class t{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(r.c))},t.\u0275prov=Object(s.Gb)({factory:F,token:t,providedIn:"root"}),t})();"undefined"!=typeof window&&window},jtHE:function(t,e,n){"use strict";n.d(e,"a",function(){return g});var r=n("XNiG"),s=n("3N8a");class i extends s.a{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}var o=n("IjjT");class a extends o.a{}const c=new a(i);var l=n("quSY"),u=n("7o/Q"),h=n("WMd4");class d extends u.a{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(d.dispatch,this.delay,new f(t,this.destination)))}_next(t){this.scheduleMessage(h.a.createNext(t))}_error(t){this.scheduleMessage(h.a.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(h.a.createComplete()),this.unsubscribe()}}class f{constructor(t,e){this.notification=t,this.destination=e}}var p=n("9ppp"),m=n("Ylt2");class g extends r.a{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){if(!this.isStopped){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift()}super.next(t)}nextTimeWindow(t){this.isStopped||(this._events.push(new b(this._getNow(),t)),this._trimBufferThenGetEvents()),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=n.length;let i;if(this.closed)throw new p.a;if(this.isStopped||this.hasError?i=l.a.EMPTY:(this.observers.push(t),i=new m.a(this,t)),r&&t.add(t=new d(t,r)),e)for(let o=0;oe&&(i=Math.max(i,s-e)),i>0&&r.splice(0,i),r}}class b{constructor(t,e){this.time=t,this.value=e}}},kJWO:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")()},l7GE:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");class s extends r.a{notifyNext(t,e,n,r,s){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}},lJxs:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new i(t,e))}}class i{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.project,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}},mrSG:function(t,e,n){"use strict";function r(t,e,n,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(i<3?s(o):i>3?s(e,n,o):s(e,n))||o);return i>3&&o&&Object.defineProperty(e,n,o),o}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function i(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{c(r.next(t))}catch(e){i(e)}}function a(t){try{c(r.throw(t))}catch(e){i(e)}}function c(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}c((r=r.apply(t,e||[])).next())})}n.d(e,"b",function(){return r}),n.d(e,"c",function(){return s}),n.d(e,"a",function(){return i})},n6bG:function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},nYR2:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("7o/Q"),s=n("quSY");function i(t){return e=>e.lift(new o(t))}class o{constructor(t){this.callback=t}call(t,e){return e.subscribe(new a(t,this.callback))}}class a extends r.a{constructor(t,e){super(t),this.add(new s.a(e))}}},ngJS:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=t=>e=>{for(let n=0,r=t.length;n{const t=a.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class l extends r.b{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function u(t,e){return function(n){let r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new h(r,e));const s=Object.create(n,c);return s.source=n,s.subjectFactory=r,s}}class h{constructor(t,e){this.subjectFactory=t,this.selector=e}call(t,e){const{selector:n}=this,r=this.subjectFactory(),s=n(r).subscribe(t);return s.add(e.subscribe(r)),s}}},ofXK:function(t,e,n){"use strict";n.d(e,"a",function(){return v}),n.d(e,"b",function(){return Dt}),n.d(e,"c",function(){return c}),n.d(e,"d",function(){return A}),n.d(e,"e",function(){return C}),n.d(e,"f",function(){return h}),n.d(e,"g",function(){return E}),n.d(e,"h",function(){return y}),n.d(e,"i",function(){return Ct}),n.d(e,"j",function(){return ft}),n.d(e,"k",function(){return mt}),n.d(e,"l",function(){return bt}),n.d(e,"m",function(){return vt}),n.d(e,"n",function(){return w}),n.d(e,"o",function(){return St}),n.d(e,"p",function(){return l}),n.d(e,"q",function(){return Ot}),n.d(e,"r",function(){return k}),n.d(e,"s",function(){return kt}),n.d(e,"t",function(){return X}),n.d(e,"u",function(){return P}),n.d(e,"v",function(){return I}),n.d(e,"w",function(){return R}),n.d(e,"x",function(){return At}),n.d(e,"y",function(){return a}),n.d(e,"z",function(){return xt}),n.d(e,"A",function(){return i}),n.d(e,"B",function(){return dt}),n.d(e,"C",function(){return o});var r=n("fXoL");let s=null;function i(){return s}function o(t){s||(s=t)}class a{}const c=new r.q("DocumentToken");let l=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:u,token:t,providedIn:"platform"}),t})();function u(){return Object(r.Xb)(d)}const h=new r.q("Location Initialized");let d=(()=>{class t extends l{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=i().getLocation(),this._history=i().getHistory()}getBaseHrefFromDOM(){return i().getBaseHref(this._doc)}onPopState(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){i().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,n){f()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){f()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(c))},t.\u0275prov=Object(r.Gb)({factory:p,token:t,providedIn:"platform"}),t})();function f(){return!!window.history.pushState}function p(){return new d(Object(r.Xb)(c))}function m(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function g(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function b(t){return t&&"?"!==t[0]?"?"+t:t}let y=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Object(r.Gb)({factory:_,token:t,providedIn:"root"}),t})();function _(t){const e=Object(r.Xb)(c).location;return new w(Object(r.Xb)(l),e&&e.origin||"")}const v=new r.q("appBaseHref");let w=(()=>{class t extends y{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return m(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+b(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){const s=this.prepareExternalUrl(n+b(r));this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(l),r.Xb(v,8))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),C=(()=>{class t extends y{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=m(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,e,s)}replaceState(t,e,n,r){let s=this.prepareExternalUrl(n+b(r));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(l),r.Xb(v,8))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),E=(()=>{class t{constructor(t,e){this._subject=new r.n,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=g(S(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+b(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,S(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+b(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(y),r.Xb(l))},t.normalizeQueryParams=b,t.joinWithSlash=m,t.stripTrailingSlash=g,t.\u0275prov=Object(r.Gb)({factory:O,token:t,providedIn:"root"}),t})();function O(){return new E(Object(r.Xb)(y),Object(r.Xb)(l))}function S(t){return t.replace(/\/index.html$/,"")}var D=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),x=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),A=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),k=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),T=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),j=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function I(t,e,n){const s=Object(r.hb)(t),i=H([s[r.Y.DayPeriodsFormat],s[r.Y.DayPeriodsStandalone]],e);return H(i,n)}function P(t,e,n){const s=Object(r.hb)(t),i=H([s[r.Y.DaysFormat],s[r.Y.DaysStandalone]],e);return H(i,n)}function R(t,e,n){const s=Object(r.hb)(t),i=H([s[r.Y.MonthsFormat],s[r.Y.MonthsStandalone]],e);return H(i,n)}function F(t,e){return H(Object(r.hb)(t)[r.Y.DateFormat],e)}function N(t,e){return H(Object(r.hb)(t)[r.Y.TimeFormat],e)}function M(t,e){return H(Object(r.hb)(t)[r.Y.DateTimeFormat],e)}function L(t,e){const n=Object(r.hb)(t),s=n[r.Y.NumberSymbols][e];if(void 0===s){if(e===j.CurrencyDecimal)return n[r.Y.NumberSymbols][j.Decimal];if(e===j.CurrencyGroup)return n[r.Y.NumberSymbols][j.Group]}return s}const V=r.kb;function B(t){if(!t[r.Y.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[r.Y.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function H(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function U(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const z=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,$={},K=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var q=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),W=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),G=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function X(t,e,n,r){let s=function(t){if(it(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,n,r]=t.split("-").map(t=>+t);return new Date(e,n-1,r)}let n;if(n=t.match(z))return function(t){const e=new Date(0);let n=0,r=0;const s=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),s.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-n,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,o,a,c,l),e}(n)}const e=new Date(t);if(!it(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=Q(n,e)||e;let i,o=[];for(;e;){if(i=K.exec(e),!i){o.push(e);break}{o=o.concat(i.slice(1));const t=o.pop();if(!t)break;e=t}}let a=s.getTimezoneOffset();r&&(a=st(r,a),s=function(t,e,n){const r=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(st(e,r)-r))}(s,r));let c="";return o.forEach(t=>{const e=function(t){if(rt[t])return rt[t];let e;switch(t){case"G":case"GG":case"GGG":e=tt(G.Eras,k.Abbreviated);break;case"GGGG":e=tt(G.Eras,k.Wide);break;case"GGGGG":e=tt(G.Eras,k.Narrow);break;case"y":e=J(W.FullYear,1,0,!1,!0);break;case"yy":e=J(W.FullYear,2,0,!0,!0);break;case"yyy":e=J(W.FullYear,3,0,!1,!0);break;case"yyyy":e=J(W.FullYear,4,0,!1,!0);break;case"M":case"L":e=J(W.Month,1,1);break;case"MM":case"LL":e=J(W.Month,2,1);break;case"MMM":e=tt(G.Months,k.Abbreviated);break;case"MMMM":e=tt(G.Months,k.Wide);break;case"MMMMM":e=tt(G.Months,k.Narrow);break;case"LLL":e=tt(G.Months,k.Abbreviated,A.Standalone);break;case"LLLL":e=tt(G.Months,k.Wide,A.Standalone);break;case"LLLLL":e=tt(G.Months,k.Narrow,A.Standalone);break;case"w":e=nt(1);break;case"ww":e=nt(2);break;case"W":e=nt(1,!0);break;case"d":e=J(W.Date,1);break;case"dd":e=J(W.Date,2);break;case"E":case"EE":case"EEE":e=tt(G.Days,k.Abbreviated);break;case"EEEE":e=tt(G.Days,k.Wide);break;case"EEEEE":e=tt(G.Days,k.Narrow);break;case"EEEEEE":e=tt(G.Days,k.Short);break;case"a":case"aa":case"aaa":e=tt(G.DayPeriods,k.Abbreviated);break;case"aaaa":e=tt(G.DayPeriods,k.Wide);break;case"aaaaa":e=tt(G.DayPeriods,k.Narrow);break;case"b":case"bb":case"bbb":e=tt(G.DayPeriods,k.Abbreviated,A.Standalone,!0);break;case"bbbb":e=tt(G.DayPeriods,k.Wide,A.Standalone,!0);break;case"bbbbb":e=tt(G.DayPeriods,k.Narrow,A.Standalone,!0);break;case"B":case"BB":case"BBB":e=tt(G.DayPeriods,k.Abbreviated,A.Format,!0);break;case"BBBB":e=tt(G.DayPeriods,k.Wide,A.Format,!0);break;case"BBBBB":e=tt(G.DayPeriods,k.Narrow,A.Format,!0);break;case"h":e=J(W.Hours,1,-12);break;case"hh":e=J(W.Hours,2,-12);break;case"H":e=J(W.Hours,1);break;case"HH":e=J(W.Hours,2);break;case"m":e=J(W.Minutes,1);break;case"mm":e=J(W.Minutes,2);break;case"s":e=J(W.Seconds,1);break;case"ss":e=J(W.Seconds,2);break;case"S":e=J(W.FractionalSeconds,1);break;case"SS":e=J(W.FractionalSeconds,2);break;case"SSS":e=J(W.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=et(q.Short);break;case"ZZZZZ":e=et(q.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=et(q.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=et(q.Long);break;default:return null}return rt[t]=e,e}(t);c+=e?e(s,n,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function Q(t,e){const n=function(t){return Object(r.hb)(t)[r.Y.LocaleId]}(t);if($[n]=$[n]||{},$[n][e])return $[n][e];let s="";switch(e){case"shortDate":s=F(t,T.Short);break;case"mediumDate":s=F(t,T.Medium);break;case"longDate":s=F(t,T.Long);break;case"fullDate":s=F(t,T.Full);break;case"shortTime":s=N(t,T.Short);break;case"mediumTime":s=N(t,T.Medium);break;case"longTime":s=N(t,T.Long);break;case"fullTime":s=N(t,T.Full);break;case"short":const e=Q(t,"shortTime"),n=Q(t,"shortDate");s=Z(M(t,T.Short),[e,n]);break;case"medium":const r=Q(t,"mediumTime"),i=Q(t,"mediumDate");s=Z(M(t,T.Medium),[r,i]);break;case"long":const o=Q(t,"longTime"),a=Q(t,"longDate");s=Z(M(t,T.Long),[o,a]);break;case"full":const c=Q(t,"fullTime"),l=Q(t,"fullDate");s=Z(M(t,T.Full),[c,l])}return s&&($[n][e]=s),s}function Z(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Y(t,e,n="-",r,s){let i="";(t<0||s&&t<=0)&&(s?t=1-t:(t=-t,i=n));let o=String(t);for(;o.length0||a>-n)&&(a+=n),t===W.Hours)0===a&&-12===n&&(a=12);else if(t===W.FractionalSeconds)return c=e,Y(a,3).substr(0,c);var c;const l=L(o,j.MinusSign);return Y(a,e,l,r,s)}}function tt(t,e,n=A.Format,s=!1){return function(i,o){return function(t,e,n,s,i,o){switch(n){case G.Months:return R(e,i,s)[t.getMonth()];case G.Days:return P(e,i,s)[t.getDay()];case G.DayPeriods:const a=t.getHours(),c=t.getMinutes();if(o){const t=function(t){const e=Object(r.hb)(t);return B(e),(e[r.Y.ExtraData][2]||[]).map(t=>"string"==typeof t?U(t):[U(t[0]),U(t[1])])}(e),n=function(t,e,n){const s=Object(r.hb)(t);B(s);const i=H([s[r.Y.ExtraData][0],s[r.Y.ExtraData][1]],e)||[];return H(i,n)||[]}(e,i,s),o=t.findIndex(t=>{if(Array.isArray(t)){const[e,n]=t,r=a>=e.hours&&c>=e.minutes,s=a0?Math.floor(s/60):Math.ceil(s/60);switch(t){case q.Short:return(s>=0?"+":"")+Y(o,2,i)+Y(Math.abs(s%60),2,i);case q.ShortGMT:return"GMT"+(s>=0?"+":"")+Y(o,1,i);case q.Long:return"GMT"+(s>=0?"+":"")+Y(o,2,i)+":"+Y(Math.abs(s%60),2,i);case q.Extended:return 0===r?"Z":(s>=0?"+":"")+Y(o,2,i)+":"+Y(Math.abs(s%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function nt(t,e=!1){return function(n,r){let s;if(e){const t=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,e=n.getDate();s=1+Math.floor((e+t)/7)}else{const t=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(4-i.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),r=t.getTime()-e.getTime();s=1+Math.round(r/6048e5)}var i;return Y(s,t,L(r,j.MinusSign))}}const rt={};function st(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function it(t){return t instanceof Date&&!isNaN(t.valueOf())}const ot=/^(\d+)?\.((\d+)(-(\d+))?)?$/,at=".",ct="0";function lt(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class ut{}let ht=(()=>{class t extends ut{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(V(e||this.locale)(t)){case x.Zero:return"zero";case x.One:return"one";case x.Two:return"two";case x.Few:return"few";case x.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(r.u))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();function dt(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[r,s]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}let ft=(()=>{class t{constructor(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(r.nb)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(r.sb)(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.s),r.Kb(r.t),r.Kb(r.l),r.Kb(r.D))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class pt{constructor(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let mt=(()=>{class t{constructor(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Object(r.T)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${n}' of type '${t=n,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,n,r)=>{if(null==t.previousIndex){const n=this._viewContainer.createEmbeddedView(this._template,new pt(null,this._ngForOf,-1,-1),null===r?void 0:r),s=new gt(t,n);e.push(s)}else if(null==r)this._viewContainer.remove(null===n?void 0:n);else if(null!==n){const s=this._viewContainer.get(n);this._viewContainer.move(s,r);const i=new gt(t,s);e.push(i)}});for(let n=0;n{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.O),r.Kb(r.K),r.Kb(r.s))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class gt{constructor(t,e){this.record=t,this.view=e}}let bt=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new yt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){_t("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){_t("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.O),r.Kb(r.K))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class yt{constructor(){this.$implicit=null,this.ngIf=null}}function _t(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Object(r.sb)(e)}'.`)}let vt=(()=>{class t{constructor(t){this._viewContainerRef=t,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(t){if(this._shouldRecreateView(t)){const t=this._viewContainerRef;this._viewRef&&t.remove(t.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?t.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&this.ngTemplateOutletContext&&this._updateExistingContext(this.ngTemplateOutletContext)}_shouldRecreateView(t){const e=t.ngTemplateOutletContext;return!!t.ngTemplateOutlet||e&&this._hasContextShapeChanged(e)}_hasContextShapeChanged(t){const e=Object.keys(t.previousValue||{}),n=Object.keys(t.currentValue||{});if(e.length===n.length){for(let t of n)if(-1===e.indexOf(t))return!0;return!1}return!0}_updateExistingContext(t){for(let e of Object.keys(t))this._viewRef.context[e]=this.ngTemplateOutletContext[e]}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(r.O))},t.\u0275dir=r.Fb({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[r.vb]}),t})();function wt(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${Object(r.sb)(t)}'`)}let Ct=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw wt(t,e);return e.toLowerCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Jb({name:"lowercase",type:t,pure:!0}),t})();const Et=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let Ot=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw wt(t,e);return e.replace(Et,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=r.Jb({name:"titlecase",type:t,pure:!0}),t})(),St=(()=>{class t{constructor(t){this._locale=t}transform(e,n,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale;try{return function(t,e,n){return function(t,e,n,r,s,i,o=!1){let a="",c=!1;if(isFinite(t)){let l=function(t){let e,n,r,s,i,o=Math.abs(t)+"",a=0;for((n=o.indexOf(at))>-1&&(o=o.replace(at,"")),(r=o.search(/e/i))>0?(n<0&&(n=r),n+=+o.slice(r+1),o=o.substring(0,r)):n<0&&(n=o.length),r=0;o.charAt(r)===ct;r++);if(r===(i=o.length))e=[0],n=1;else{for(i--;o.charAt(i)===ct;)i--;for(n-=r,e=[],s=0;r<=i;r++,s++)e[s]=Number(o.charAt(r))}return n>22&&(e=e.splice(0,21),a=n-1,n=1),{digits:e,exponent:a,integerLen:n}}(t);o&&(l=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));let u=e.minInt,h=e.minFrac,d=e.maxFrac;if(i){const t=i.match(ot);if(null===t)throw new Error(i+" is not a valid digit info");const e=t[1],n=t[3],r=t[5];null!=e&&(u=lt(e)),null!=n&&(h=lt(n)),null!=r?d=lt(r):null!=n&&h>d&&(d=h)}!function(t,e,n){if(e>n)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${n}).`);let r=t.digits,s=r.length-t.integerLen;const i=Math.min(Math.max(e,s),n);let o=i+t.integerLen,a=r[o];if(o>0){r.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[o-1]++;for(;s=l?r.pop():c=!1),e>=10?1:0},0);u&&(r.unshift(u),t.integerLen++)}(l,h,d);let f=l.digits,p=l.integerLen;const m=l.exponent;let g=[];for(c=f.every(t=>!t);p0?g=f.splice(p,f.length):(g=f,f=[0]);const b=[];for(f.length>=e.lgSize&&b.unshift(f.splice(-e.lgSize,f.length).join(""));f.length>e.gSize;)b.unshift(f.splice(-e.gSize,f.length).join(""));f.length&&b.unshift(f.join("")),a=b.join(L(n,r)),g.length&&(a+=L(n,s)+g.join("")),m&&(a+=L(n,j.Exponential)+"+"+m)}else a=L(n,j.Infinity);return a=t<0&&!c?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(";"),s=r[0],i=r[1],o=-1!==s.indexOf(at)?s.split(at):[s.substring(0,s.lastIndexOf(ct)+1),s.substring(s.lastIndexOf(ct)+1)],a=o[0],c=o[1]||"";n.posPre=a.substr(0,a.indexOf("#"));for(let u=0;u{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[{provide:ut,useClass:ht}]}),t})();const xt="browser";function At(t){return t===xt}let kt=(()=>{class t{}return t.\u0275prov=Object(r.Gb)({token:t,providedIn:"root",factory:()=>new Tt(Object(r.Xb)(c),window,Object(r.Xb)(r.m))}),t})();class Tt{constructor(t,e,n){this.document=t,this.window=e,this.errorHandler=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),n=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(n-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=jt(this.window.history)||jt(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function jt(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}},pLZG:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t,e){return function(n){return n.lift(new i(t,e))}}class i{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new o(t,this.predicate,this.thisArg))}}class o extends r.a{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}},quSY:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("DH7j"),s=n("XoHu"),i=n("n6bG");const o=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let a=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:a,_unsubscribe:l,_subscriptions:u}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;tt.concat(e instanceof o?e.errors:e),[])}},s1Ou:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("fXoL");let s=(()=>{class t{constructor(){this.isLoading=!1}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=r.Eb({type:t,selectors:[["app-loader"]],inputs:{isLoading:"isLoading",message:"message"},decls:8,vars:2,consts:[[1,"text-xs-center",3,"hidden"],[1,"fas","fa-cog","fa-spin","fa-3x"]],template:function(t,e){1&t&&(r.Pb(0,"div",0),r.Ac(1,"\n "),r.Lb(2,"i",1),r.Ac(3," "),r.Pb(4,"span"),r.Ac(5),r.Ob(),r.Ac(6,"\n"),r.Ob(),r.Ac(7,"\n")),2&t&&(r.jc("hidden",!e.isLoading),r.xb(5),r.Bc(e.message))},styles:[".fa[_ngcontent-%COMP%]{vertical-align:middle}"]}),t})()},sVev:function(t,e,n){"use strict";n.d(e,"a",function(){return r});const r=(()=>{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})()},sYmb:function(t,e,n){"use strict";n.d(e,"a",function(){return M}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return L}),n.d(e,"d",function(){return N});var r=n("fXoL"),s=n("LRne"),i=n("HDdC");function o(t){return!!t&&(t instanceof i.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var a=n("cp0P"),c=n("GyhO"),l=n("NXyV"),u=n("IzEk"),h=n("jtHE");function d(t,e,n){let r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},t=>t.lift(function({bufferSize:t=Number.POSITIVE_INFINITY,windowTime:e=Number.POSITIVE_INFINITY,refCount:n,scheduler:r}){let s,i,o=0,a=!1,c=!1;return function(l){let u;o++,!s||a?(a=!1,s=new h.a(t,e,r),u=s.subscribe(this),i=l.subscribe({next(t){s.next(t)},error(t){a=!0,s.error(t)},complete(){c=!0,i=void 0,s.complete()}})):u=s.subscribe(this),this.add(()=>{o--,u.unsubscribe(),i&&!c&&n&&0===o&&(i.unsubscribe(),i=void 0,s=void 0)})}}(r))}var f=n("lJxs"),p=n("bOdf"),m=n("eIep");class g{}let b=(()=>{class t extends g{getTranslation(t){return Object(s.a)({})}}return t.\u0275fac=function(e){return y(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const y=r.Rb(b);class _{}let v=(()=>{class t{handle(t){return t.key}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();function w(t,e){if(t===e)return!0;if(null===t||null===e)return!1;if(t!=t&&e!=e)return!0;let n,r,s,i=typeof t;if(i==typeof e&&"object"==i){if(!Array.isArray(t)){if(Array.isArray(e))return!1;for(r in s=Object.create(null),t){if(!w(t[r],e[r]))return!1;s[r]=!0}for(r in e)if(!(r in s)&&void 0!==e[r])return!1;return!0}if(!Array.isArray(e))return!1;if((n=t.length)==e.length){for(r=0;r{E(e[r])?r in t?n[r]=O(t[r],e[r]):Object.assign(n,{[r]:e[r]}):Object.assign(n,{[r]:e[r]})}),n}class S{}let D=(()=>{class t extends S{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(t,e){let n;return n="string"==typeof t?this.interpolateString(t,e):"function"==typeof t?this.interpolateFunction(t,e):t,n}getValue(t,e){let n="string"==typeof e?e.split("."):[e];e="";do{e+=n.shift(),!C(t)||!C(t[e])||"object"!=typeof t[e]&&n.length?n.length?e+=".":t=void 0:(t=t[e],e="")}while(n.length);return t}interpolateFunction(t,e){return t(e)}interpolateString(t,e){return e?t.replace(this.templateMatcher,(t,n)=>{let r=this.getValue(e,n);return C(r)?r:t}):t}}return t.\u0275fac=function(e){return x(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const x=r.Rb(D);class A{}let k=(()=>{class t extends A{compile(t,e){return t}compileTranslations(t,e){return t}}return t.\u0275fac=function(e){return T(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const T=r.Rb(k);class j{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new r.n,this.onLangChange=new r.n,this.onDefaultLangChange=new r.n}}const I=new r.q("USE_STORE"),P=new r.q("USE_DEFAULT_LANG"),R=new r.q("DEFAULT_LANGUAGE"),F=new r.q("USE_EXTEND");let N=(()=>{class t{constructor(t,e,n,s,i,o=!0,a=!1,c=!1,l){this.store=t,this.currentLoader=e,this.compiler=n,this.parser=s,this.missingTranslationHandler=i,this.useDefaultLang=o,this.isolate=a,this.extend=c,this.pending=!1,this._onTranslationChange=new r.n,this._onLangChange=new r.n,this._onDefaultLangChange=new r.n,this._langs=[],this._translations={},this._translationRequests={},l&&this.setDefaultLang(l)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(t){this.isolate?this._defaultLang=t:this.store.defaultLang=t}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(t){this.isolate?this._currentLang=t:this.store.currentLang=t}get langs(){return this.isolate?this._langs:this.store.langs}set langs(t){this.isolate?this._langs=t:this.store.langs=t}get translations(){return this.isolate?this._translations:this.store.translations}set translations(t){this.isolate?this._translations=t:this.store.translations=t}setDefaultLang(t){if(t===this.defaultLang)return;let e=this.retrieveTranslations(t);void 0!==e?(null==this.defaultLang&&(this.defaultLang=t),e.pipe(Object(u.a)(1)).subscribe(e=>{this.changeDefaultLang(t)})):this.changeDefaultLang(t)}getDefaultLang(){return this.defaultLang}use(t){if(t===this.currentLang)return Object(s.a)(this.translations[t]);let e=this.retrieveTranslations(t);return void 0!==e?(this.currentLang||(this.currentLang=t),e.pipe(Object(u.a)(1)).subscribe(e=>{this.changeLang(t)}),e):(this.changeLang(t),Object(s.a)(this.translations[t]))}retrieveTranslations(t){let e;return(void 0===this.translations[t]||this.extend)&&(this._translationRequests[t]=this._translationRequests[t]||this.getTranslation(t),e=this._translationRequests[t]),e}getTranslation(t){this.pending=!0;const e=this.currentLoader.getTranslation(t).pipe(d(1),Object(u.a)(1));return this.loadingTranslations=e.pipe(Object(f.a)(e=>this.compiler.compileTranslations(e,t)),d(1),Object(u.a)(1)),this.loadingTranslations.subscribe({next:e=>{this.translations[t]=this.extend&&this.translations[t]?Object.assign(Object.assign({},e),this.translations[t]):e,this.updateLangs(),this.pending=!1},error:t=>{this.pending=!1}}),e}setTranslation(t,e,n=!1){e=this.compiler.compileTranslations(e,t),this.translations[t]=(n||this.extend)&&this.translations[t]?O(this.translations[t],e):e,this.updateLangs(),this.onTranslationChange.emit({lang:t,translations:this.translations[t]})}getLangs(){return this.langs}addLangs(t){t.forEach(t=>{-1===this.langs.indexOf(t)&&this.langs.push(t)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(t,e,n){let r;if(e instanceof Array){let r={},i=!1;for(let s of e)r[s]=this.getParsedResult(t,s,n),o(r[s])&&(i=!0);if(i){const t=e.map(t=>o(r[t])?r[t]:Object(s.a)(r[t]));return Object(a.a)(t).pipe(Object(f.a)(t=>{let n={};return t.forEach((t,r)=>{n[e[r]]=t}),n}))}return r}if(t&&(r=this.parser.interpolate(this.parser.getValue(t,e),n)),void 0===r&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],e),n)),void 0===r){let t={key:e,translateService:this};void 0!==n&&(t.interpolateParams=n),r=this.missingTranslationHandler.handle(t)}return void 0!==r?r:e}get(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe(Object(p.a)(n=>o(n=this.getParsedResult(n,t,e))?n:Object(s.a)(n)));{let n=this.getParsedResult(this.translations[this.currentLang],t,e);return o(n)?n:Object(s.a)(n)}}getStreamOnTranslationChange(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');return Object(c.a)(Object(l.a)(()=>this.get(t,e)),this.onTranslationChange.pipe(Object(m.a)(n=>{const r=this.getParsedResult(n.translations,t,e);return"function"==typeof r.subscribe?r:Object(s.a)(r)})))}stream(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');return Object(c.a)(Object(l.a)(()=>this.get(t,e)),this.onLangChange.pipe(Object(m.a)(n=>{const r=this.getParsedResult(n.translations,t,e);return o(r)?r:Object(s.a)(r)})))}instant(t,e){if(!C(t)||!t.length)throw new Error('Parameter "key" required');let n=this.getParsedResult(this.translations[this.currentLang],t,e);if(o(n)){if(t instanceof Array){let e={};return t.forEach((n,r)=>{e[t[r]]=t[r]}),e}return t}return n}set(t,e,n=this.currentLang){this.translations[n][t]=this.compiler.compile(e,n),this.updateLangs(),this.onTranslationChange.emit({lang:n,translations:this.translations[n]})}changeLang(t){this.currentLang=t,this.onLangChange.emit({lang:t,translations:this.translations[t]}),null==this.defaultLang&&this.changeDefaultLang(t)}changeDefaultLang(t){this.defaultLang=t,this.onDefaultLangChange.emit({lang:t,translations:this.translations[t]})}reloadLang(t){return this.resetLang(t),this.getTranslation(t)}resetLang(t){this._translationRequests[t]=void 0,this.translations[t]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==t?(-1!==t.indexOf("-")&&(t=t.split("-")[0]),-1!==t.indexOf("_")&&(t=t.split("_")[0]),t):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let t=window.navigator.languages?window.navigator.languages[0]:null;return t=t||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,t}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(j),r.Xb(g),r.Xb(A),r.Xb(S),r.Xb(_),r.Xb(P),r.Xb(I),r.Xb(F),r.Xb(R))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),M=(()=>{class t{constructor(t,e,n){this.translateService=t,this.element=e,this._ref=n,this.onTranslationChangeSub||(this.onTranslationChangeSub=this.translateService.onTranslationChange.subscribe(t=>{t.lang===this.translateService.currentLang&&this.checkNodes(!0,t.translations)})),this.onLangChangeSub||(this.onLangChangeSub=this.translateService.onLangChange.subscribe(t=>{this.checkNodes(!0,t.translations)})),this.onDefaultLangChangeSub||(this.onDefaultLangChangeSub=this.translateService.onDefaultLangChange.subscribe(t=>{this.checkNodes(!0)}))}set translate(t){t&&(this.key=t,this.checkNodes())}set translateParams(t){w(this.currentParams,t)||(this.currentParams=t,this.checkNodes(!0))}ngAfterViewChecked(){this.checkNodes()}checkNodes(t=!1,e){let n=this.element.nativeElement.childNodes;n.length||(this.setContent(this.element.nativeElement,this.key),n=this.element.nativeElement.childNodes);for(let r=0;r{n!==t&&(e.lastKey=t),e.originalContent||(e.originalContent=this.getContent(e)),e.currentValue=C(n)?n:e.originalContent||t,this.setContent(e,this.key?e.currentValue:e.originalContent.replace(t,e.currentValue)),this._ref.markForCheck()};if(C(n)){let e=this.translateService.getParsedResult(n,t,this.currentParams);o(e)?e.subscribe(r):r(e)}else this.translateService.get(t,this.currentParams).subscribe(r)}}getContent(t){return C(t.textContent)?t.textContent:t.data}setContent(t,e){C(t.textContent)?t.textContent=e:t.data=e}ngOnDestroy(){this.onLangChangeSub&&this.onLangChangeSub.unsubscribe(),this.onDefaultLangChangeSub&&this.onDefaultLangChangeSub.unsubscribe(),this.onTranslationChangeSub&&this.onTranslationChangeSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(N),r.Kb(r.l),r.Kb(r.h))},t.\u0275dir=r.Fb({type:t,selectors:[["","translate",""],["","ngx-translate",""]],inputs:{translate:"translate",translateParams:"translateParams"}}),t})(),L=(()=>{class t{constructor(t,e){this.translate=t,this._ref=e,this.value=""}updateValue(t,e,n){let r=e=>{this.value=void 0!==e?e:t,this.lastKey=t,this._ref.markForCheck()};if(n){let s=this.translate.getParsedResult(n,t,e);o(s.subscribe)?s.subscribe(r):r(s)}this.translate.get(t,e).subscribe(r)}transform(t,...e){if(!t||!t.length)return t;if(w(t,this.lastKey)&&w(e,this.lastParams))return this.value;let n;if(C(e[0])&&e.length)if("string"==typeof e[0]&&e[0].length){let t=e[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{n=JSON.parse(t)}catch(r){throw new SyntaxError("Wrong parameter in TranslatePipe. Expected a valid Object, received: "+e[0])}}else"object"!=typeof e[0]||Array.isArray(e[0])||(n=e[0]);return this.lastKey=t,this.lastParams=e,this.updateValue(t,n),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(e=>{this.lastKey&&e.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(e=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n,e.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(t,n))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return t.\u0275fac=function(e){return new(e||t)(r.Kb(N),r.Zb())},t.\u0275pipe=r.Jb({name:"translate",type:t,pure:!1}),t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:b},e.compiler||{provide:A,useClass:k},e.parser||{provide:S,useClass:D},e.missingTranslationHandler||{provide:_,useClass:v},j,{provide:I,useValue:e.isolate},{provide:P,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},N]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:g,useClass:b},e.compiler||{provide:A,useClass:k},e.parser||{provide:S,useClass:D},e.missingTranslationHandler||{provide:_,useClass:v},{provide:I,useValue:e.isolate},{provide:P,useValue:e.useDefaultLang},{provide:F,useValue:e.extend},{provide:R,useValue:e.defaultLanguage},N]}}}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})()},"tk/3":function(t,e,n){"use strict";n.d(e,"a",function(){return A}),n.d(e,"b",function(){return D}),n.d(e,"c",function(){return H});var r=n("fXoL"),s=n("LRne"),i=n("HDdC"),o=n("bOdf"),a=n("pLZG"),c=n("lJxs"),l=n("ofXK");class u{}class h{}class d{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),r=n.toLowerCase(),s=t.slice(e+1).trim();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(s):this.headers.set(r,[s])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const r=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(r,n),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof d?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new d;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof d?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...n),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===s.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class f{encodeKey(t){return p(t)}encodeValue(t){return p(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function p(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class m{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new f,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const r=t.indexOf("="),[s,i]=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=n.get(s)||[];o.push(i),n.set(s,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new m({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function g(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function b(t){return"undefined"!=typeof Blob&&t instanceof Blob}function y(t){return"undefined"!=typeof FormData&&t instanceof FormData}class _{constructor(t,e,n,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,s=r):s=n,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.params&&(this.params=s.params)),this.headers||(this.headers=new d),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":ne.set(n,t.setHeaders[n]),a)),t.setParams&&(c=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),c)),new _(e,n,s,{params:c,headers:a,reportProgress:o,responseType:r,withCredentials:i})}}var v=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class w{constructor(t,e=200,n="OK"){this.headers=t.headers||new d,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class C extends w{constructor(t={}){super(t),this.type=v.ResponseHeader}clone(t={}){return new C({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class E extends w{constructor(t={}){super(t),this.type=v.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new E({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class O extends w{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function S(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let D=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let r;if(t instanceof _)r=t;else{let s=void 0;s=n.headers instanceof d?n.headers:new d(n.headers);let i=void 0;n.params&&(i=n.params instanceof m?n.params:new m({fromObject:n.params})),r=new _(t,e,void 0!==n.body?n.body:null,{headers:s,params:i,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=Object(s.a)(r).pipe(Object(o.a)(t=>this.handler.handle(t)));if(t instanceof _||"events"===n.observe)return i;const l=i.pipe(Object(a.a)(t=>t instanceof E));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(Object(c.a)(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(Object(c.a)(t=>t.body))}case"response":return l;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new m).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,S(n,e))}post(t,e,n={}){return this.request("POST",t,S(n,e))}put(t,e,n={}){return this.request("PUT",t,S(n,e))}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(u))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();class x{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const A=new r.q("HTTP_INTERCEPTORS");let k=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const T=/^\)\]\}',?\n/;class j{}let I=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),P=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new i.a(e=>{const n=this.xhrFactory.build();if(n.open(t.method,t.urlWithParams),t.withCredentials&&(n.withCredentials=!0),t.headers.forEach((t,e)=>n.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||n.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&n.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();n.responseType="json"!==e?e:"text"}const r=t.serializeBody();let s=null;const i=()=>{if(null!==s)return s;const e=1223===n.status?204:n.status,r=n.statusText||"OK",i=new d(n.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(n)||t.url;return s=new C({headers:i,status:e,statusText:r,url:o}),s},o=()=>{let{headers:r,status:s,statusText:o,url:a}=i(),c=null;204!==s&&(c=void 0===n.response?n.responseText:n.response),0===s&&(s=c?200:0);let l=s>=200&&s<300;if("json"===t.responseType&&"string"==typeof c){const t=c;c=c.replace(T,"");try{c=""!==c?JSON.parse(c):null}catch(u){c=t,l&&(l=!1,c={error:u,text:c})}}l?(e.next(new E({body:c,headers:r,status:s,statusText:o,url:a||void 0})),e.complete()):e.error(new O({error:c,headers:r,status:s,statusText:o,url:a||void 0}))},a=t=>{const{url:r}=i(),s=new O({error:t,status:n.status||0,statusText:n.statusText||"Unknown Error",url:r||void 0});e.error(s)};let c=!1;const l=r=>{c||(e.next(i()),c=!0);let s={type:v.DownloadProgress,loaded:r.loaded};r.lengthComputable&&(s.total=r.total),"text"===t.responseType&&n.responseText&&(s.partialText=n.responseText),e.next(s)},u=t=>{let n={type:v.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return n.addEventListener("load",o),n.addEventListener("error",a),t.reportProgress&&(n.addEventListener("progress",l),null!==r&&n.upload&&n.upload.addEventListener("progress",u)),n.send(r),e.next({type:v.Sent}),()=>{n.removeEventListener("error",a),n.removeEventListener("load",o),t.reportProgress&&(n.removeEventListener("progress",l),null!==r&&n.upload&&n.upload.removeEventListener("progress",u)),n.readyState!==n.DONE&&n.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(j))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})();const R=new r.q("XSRF_COOKIE_NAME"),F=new r.q("XSRF_HEADER_NAME");class N{}let M=(()=>{class t{constructor(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(l.B)(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(l.c),r.Xb(r.B),r.Xb(R))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),L=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);const r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(N),r.Xb(F))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),V=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(A,[]);this.chain=t.reduceRight((t,e)=>new x(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(h),r.Xb(r.r))},t.\u0275prov=r.Gb({token:t,factory:t.\u0275fac}),t})(),B=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:L,useClass:k}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:R,useValue:e.cookieName}:[],e.headerName?{provide:F,useValue:e.headerName}:[]]}}}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[L,{provide:A,useExisting:L,multi:!0},{provide:N,useClass:M},{provide:R,useValue:"XSRF-TOKEN"},{provide:F,useValue:"X-XSRF-TOKEN"}]}),t})(),H=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},providers:[D,{provide:u,useClass:V},P,{provide:h,useExisting:P},I,{provide:j,useExisting:I}],imports:[[B.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})()},tyNb:function(t,e,n){"use strict";n.d(e,"a",function(){return zt}),n.d(e,"b",function(){return V}),n.d(e,"c",function(){return yn}),n.d(e,"d",function(){return Ge}),n.d(e,"e",function(){return un}),n.d(e,"f",function(){return hn}),n.d(e,"g",function(){return pn}),n.d(e,"h",function(){return dn}),n.d(e,"i",function(){return Dn}),n.d(e,"j",function(){return mn});var r=n("ofXK"),s=n("fXoL"),i=n("LRne"),o=n("Cfvw"),a=n("2Vo4"),c=n("itXk"),l=n("HDdC"),u=n("sVev"),h=n("NXyV"),d=n("EY2u"),f=n("XNiG"),p=n("lJxs"),m=n("0EUg"),g=n("pLZG"),b=n("7o/Q"),y=n("4I5i");function _(t){return function(e){return 0===t?Object(d.b)():e.lift(new v(t))}}class v{constructor(t){if(this.total=t,this.total<0)throw new y.a}call(t,e){return e.subscribe(new w(t,this.total))}}class w extends b.a{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,n=this.total,r=this.count++;e.length0){const n=this.count>=this.total?this.total:this.count,r=this.ring;for(let s=0;st.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.lengthr[e]===t)}return t===e}function at(t){return Array.prototype.concat.apply([],t)}function ct(t){return t.length>0?t[t.length-1]:null}function lt(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function ut(t){return Object(s.ob)(t)?t:Object(s.pb)(t)?Object(o.a)(Promise.resolve(t)):Object(i.a)(t)}function ht(t,e,n){return n?function(t,e){return it(t,e)}(t.queryParams,e.queryParams)&&dt(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>ot(t[n],e[n]))}(t.queryParams,e.queryParams)&&ft(t.root,e.root)}function dt(t,e){if(!yt(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(const n in e.children){if(!t.children[n])return!1;if(!dt(t.children[n],e.children[n]))return!1}return!0}function ft(t,e){return pt(t,e,e.segments)}function pt(t,e,n){if(t.segments.length>n.length)return!!yt(t.segments.slice(0,n.length),n)&&!e.hasChildren();if(t.segments.length===n.length){if(!yt(t.segments,n))return!1;for(const n in e.children){if(!t.children[n])return!1;if(!ft(t.children[n],e.children[n]))return!1}return!0}{const r=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!yt(t.segments,r)&&!!t.children.primary&&pt(t.children.primary,e,s)}}class mt{constructor(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return Ct.serialize(this)}}class gt{constructor(t,e){this.segments=t,this.children=e,this.parent=null,lt(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Et(this)}}class bt{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=nt(this.parameters)),this._parameterMap}toString(){return Tt(this)}}function yt(t,e){return t.length===e.length&&t.every((t,n)=>t.path===e[n].path)}function _t(t,e){let n=[];return lt(t.children,(t,r)=>{r===tt&&(n=n.concat(e(t,r)))}),lt(t.children,(t,r)=>{r!==tt&&(n=n.concat(e(t,r)))}),n}class vt{}class wt{parse(t){const e=new Ft(t);return new mt(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+Ot(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const n=t[e];return Array.isArray(n)?n.map(t=>`${Dt(e)}=${Dt(t)}`).join("&"):`${Dt(e)}=${Dt(n)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Ct=new wt;function Et(t){return t.segments.map(t=>Tt(t)).join("/")}function Ot(t,e){if(!t.hasChildren())return Et(t);if(e){const e=t.children.primary?Ot(t.children.primary,!1):"",n=[];return lt(t.children,(t,e)=>{e!==tt&&n.push(`${e}:${Ot(t,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}{const e=_t(t,(e,n)=>n===tt?[Ot(t.children.primary,!1)]:[`${n}:${Ot(e,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children.primary?`${Et(t)}/${e[0]}`:`${Et(t)}/(${e.join("//")})`}}function St(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dt(t){return St(t).replace(/%3B/gi,";")}function xt(t){return St(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function At(t){return decodeURIComponent(t)}function kt(t){return At(t.replace(/\+/g,"%20"))}function Tt(t){return`${xt(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${xt(t)}=${xt(e[t])}`).join("")}`;var e}const jt=/^[^\/()?;=#]+/;function It(t){const e=t.match(jt);return e?e[0]:""}const Pt=/^[^=?&#]+/,Rt=/^[^?&#]+/;class Ft{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new gt([],{}):new gt([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new gt(t,e)),n}parseSegment(){const t=It(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new bt(At(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=It(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=It(this.remaining);t&&(n=t,this.capture(n))}t[At(e)]=At(n)}parseQueryParam(t){const e=function(t){const e=t.match(Pt);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(Rt);return e?e[0]:""}(this.remaining);t&&(n=t,this.capture(n))}const r=kt(e),s=kt(n);if(t.hasOwnProperty(r)){let e=t[r];Array.isArray(e)||(e=[e],t[r]=e),e.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const n=It(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error(`Cannot parse url '${this.url}'`);let s=void 0;n.indexOf(":")>-1?(s=n.substr(0,n.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=tt);const i=this.parseChildren();e[s]=1===Object.keys(i).length?i.primary:new gt([],i),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class Nt{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=Mt(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=Mt(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=Lt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return Lt(t,this._root).map(t=>t.value)}}function Mt(t,e){if(t===e.value)return e;for(const n of e.children){const e=Mt(t,n);if(e)return e}return null}function Lt(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Lt(t,n);if(r.length)return r.unshift(e),r}return[]}class Vt{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function Bt(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class Ht extends Nt{constructor(t,e){super(t),this.snapshot=e,Wt(this,t)}toString(){return this.snapshot.toString()}}function Ut(t,e){const n=function(t,e){const n=new Kt([],{},{},"",{},tt,e,null,t.root,-1,{});return new qt("",new Vt(n,[]))}(t,e),r=new a.a([new bt("",{})]),s=new a.a({}),i=new a.a({}),o=new a.a({}),c=new a.a(""),l=new zt(r,s,o,c,i,tt,e,n.root);return l.snapshot=n.root,new Ht(new Vt(l,[]),n)}class zt{constructor(t,e,n,r,s,i,o,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Object(p.a)(t=>nt(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Object(p.a)(t=>nt(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function $t(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const t=n[r],e=n[r-1];if(t.routeConfig&&""===t.routeConfig.path)r--;else{if(e.component)break;r--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Kt{constructor(t,e,n,r,s,i,o,a,c,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=s,this.outlet=i,this.component=o,this.routeConfig=a,this._urlSegment=c,this._lastPathIndex=l,this._resolve=u}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=nt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=nt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class qt extends Nt{constructor(t,e){super(e),this.url=t,Wt(this,e)}toString(){return Gt(this._root)}}function Wt(t,e){e.value._routerState=t,e.children.forEach(e=>Wt(t,e))}function Gt(t){const e=t.children.length>0?` { ${t.children.map(Gt).join(", ")} } `:"";return`${t.value}${e}`}function Xt(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,it(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),it(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;nit(t.parameters,r[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||Qt(t.parent,e.parent))}function Zt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const s=function(t,e,n){return e.children.map(e=>{for(const r of n.children)if(t.shouldReuseRoute(r.value.snapshot,e.value))return Zt(t,e,r);return Zt(t,e)})}(t,e,n);return new Vt(r,s)}{const n=t.retrieve(e.value);if(n){const t=n.route;return Yt(e,t),t}{const n=new zt(new a.a((r=e.value).url),new a.a(r.params),new a.a(r.queryParams),new a.a(r.fragment),new a.a(r.data),r.outlet,r.component,r),s=e.children.map(e=>Zt(t,e));return new Vt(n,s)}}var r}function Yt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(let n=0;n{i[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new mt(n.root===t?e:ne(n.root,t,e),i,s)}function ne(t,e,n){const r={};return lt(t.children,(t,s)=>{r[s]=t===e?n:ne(t,e,n)}),new gt(t.segments,r)}class re{constructor(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Jt(n[0]))throw new Error("Root segment cannot have matrix parameters");const r=n.find(te);if(r&&r!==ct(n))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class se{constructor(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}function ie(t,e,n){if(t||(t=new gt([],{})),0===t.segments.length&&t.hasChildren())return oe(t,e,n);const r=function(t,e,n){let r=0,s=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;s=n.length)return i;const e=t.segments[s],o=n[r];if(te(o))break;const a=""+o,c=r0&&void 0===a)break;if(a&&c&&"object"==typeof c&&void 0===c.outlets){if(!ue(a,c,e))return i;r+=2}else{if(!ue(a,{},e))return i;r++}s++}return{match:!0,pathIndex:s,commandIndex:r}}(t,e,n),s=n.slice(r.commandIndex);if(r.match&&r.pathIndex{null!==n&&(s[r]=ie(t.children[r],e,n))}),lt(t.children,(t,e)=>{void 0===r[e]&&(s[e]=t)}),new gt(t.segments,s)}}function ae(t,e,n){const r=t.segments.slice(0,e);let s=0;for(;s{null!==t&&(e[n]=ae(new gt([],{}),0,t))}),e}function le(t){const e={};return lt(t,(t,n)=>e[n]=""+t),e}function ue(t,e,n){return t==n.path&&it(e,n.parameters)}class he{constructor(t,e,n,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=n,this.forwardEvent=r}activate(t){const e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Xt(this.futureState.root),this.activateChildRoutes(e,n,t)}deactivateChildRoutes(t,e,n){const r=Bt(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,r[e],n),delete r[e]}),lt(r,(t,e)=>{this.deactivateRouteAndItsChildren(t,n)})}deactivateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const s=n.getContext(r.outlet);s&&this.deactivateChildRoutes(t,e,s.children)}else this.deactivateChildRoutes(t,e,n);else s&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const n=e.getContext(t.value.outlet);if(n&&n.outlet){const e=n.outlet.detach(),r=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:r})}}deactivateRouteAndOutlet(t,e){const n=e.getContext(t.value.outlet);if(n){const r=Bt(t),s=t.value.component?n.children:e;lt(r,(t,e)=>this.deactivateRouteAndItsChildren(t,s)),n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated())}}activateChildRoutes(t,e,n){const r=Bt(e);t.children.forEach(t=>{this.activateRoutes(t,r[t.value.outlet],n),this.forwardEvent(new Y(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Q(t.value.snapshot))}activateRoutes(t,e,n){const r=t.value,s=e?e.value:null;if(Xt(r),r===s)if(r.component){const s=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,s.children)}else this.activateChildRoutes(t,e,n);else if(r.component){const e=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const t=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),de(t.route)}else{const n=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(r.snapshot),s=n?n.module.componentFactoryResolver:null;e.attachRef=null,e.route=r,e.resolver=s,e.outlet&&e.outlet.activateWith(r,s),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,n)}}function de(t){Xt(t.value),t.children.forEach(de)}class fe{constructor(t,e){this.routes=t,this.module=e}}function pe(t){return"function"==typeof t}function me(t){return t instanceof mt}const ge=Symbol("INITIAL_VALUE");function be(){return Object(S.a)(t=>Object(c.a)(...t.map(t=>t.pipe(Object(D.a)(1),Object(x.a)(ge)))).pipe(function(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new A(t,e,n))}}((t,e)=>{let n=!1;return e.reduce((t,r,s)=>{if(t!==ge)return t;if(r===ge&&(n=!0),!n){if(!1===r)return r;if(s===e.length-1||me(r))return r}return t},t)},ge),Object(g.a)(t=>t!==ge),Object(p.a)(t=>me(t)?t:!0===t),Object(D.a)(1)))}class ye{constructor(t){this.segmentGroup=t||null}}class _e{constructor(t){this.urlTree=t}}function ve(t){return new l.a(e=>e.error(new ye(t)))}function we(t){return new l.a(e=>e.error(new _e(t)))}function Ce(t){return new l.a(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Ee{constructor(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(s.x)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,tt).pipe(Object(p.a)(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(Object(T.a)(t=>{if(t instanceof _e)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof ye)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,tt).pipe(Object(p.a)(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(Object(T.a)(t=>{if(t instanceof ye)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,n){const r=t.segments.length>0?new gt([],{[tt]:t}):t;return new mt(r,e,n)}expandSegmentGroup(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(Object(p.a)(t=>new gt([],t))):this.expandSegment(t,n,e,n.segments,r,!0)}expandChildren(t,e,n){return function(t,e){if(0===Object.keys(t).length)return Object(i.a)({});const n=[],r=[],s={};return lt(t,(t,i)=>{const o=e(i,t).pipe(Object(p.a)(t=>s[i]=t));i===tt?n.push(o):r.push(o)}),i.a.apply(null,n.concat(r)).pipe(Object(m.a)(),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Object(g.a)((e,n)=>t(e,n,r)):O.a,_(1),n?Object(E.a)(e):Object(C.a)(()=>new u.a))}(),Object(p.a)(()=>s))}(n.children,(n,r)=>this.expandSegmentGroup(t,e,r,n))}expandSegment(t,e,n,r,s,o){return Object(i.a)(...n).pipe(Object(j.a)(a=>this.expandSegmentAgainstRoute(t,e,n,a,r,s,o).pipe(Object(T.a)(t=>{if(t instanceof ye)return Object(i.a)(null);throw t}))),Object(I.a)(t=>!!t),Object(T.a)((t,n)=>{if(t instanceof u.a||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,r,s))return Object(i.a)(new gt([],{}));throw new ye(e)}throw t}))}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}expandSegmentAgainstRoute(t,e,n,r,s,i,o){return xe(r)!==i?ve(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i):ve(e)}expandSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,n,r){const s=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?we(s):this.lineralizeSegments(n,s).pipe(Object(P.a)(n=>{const s=new gt(n,{});return this.expandSegment(t,s,e,n,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,s,i){const{matched:o,consumedSegments:a,lastChild:c,positionalParamSegments:l}=Oe(e,r,s);if(!o)return ve(e);const u=this.applyRedirectCommands(a,r.redirectTo,l);return r.redirectTo.startsWith("/")?we(u):this.lineralizeSegments(r,u).pipe(Object(P.a)(r=>this.expandSegment(t,e,n,r.concat(s.slice(c)),i,!1)))}matchSegmentAgainstRoute(t,e,n,r){if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(Object(p.a)(t=>(n._loadedConfig=t,new gt(r,{})))):Object(i.a)(new gt(r,{}));const{matched:s,consumedSegments:o,lastChild:a}=Oe(e,n,r);if(!s)return ve(e);const c=r.slice(a);return this.getChildConfig(t,n,r).pipe(Object(P.a)(t=>{const n=t.module,r=t.routes,{segmentGroup:s,slicedSegments:a}=function(t,e,n,r){return n.length>0&&function(t,e,n){return n.some(n=>De(t,e,n)&&xe(n)!==tt)}(t,n,r)?{segmentGroup:Se(new gt(e,function(t,e){const n={};n.primary=e;for(const r of t)""===r.path&&xe(r)!==tt&&(n[xe(r)]=new gt([],{}));return n}(r,new gt(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some(n=>De(t,e,n))}(t,n,r)?{segmentGroup:Se(new gt(t.segments,function(t,e,n,r){const s={};for(const i of n)De(t,e,i)&&!r[xe(i)]&&(s[xe(i)]=new gt([],{}));return Object.assign(Object.assign({},r),s)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,o,c,r);return 0===a.length&&s.hasChildren()?this.expandChildren(n,r,s).pipe(Object(p.a)(t=>new gt(o,t))):0===r.length&&0===a.length?Object(i.a)(new gt(o,{})):this.expandSegment(n,s,r,a,tt,!0).pipe(Object(p.a)(t=>new gt(o.concat(t.segments),t.children)))}))}getChildConfig(t,e,n){return e.children?Object(i.a)(new fe(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(i.a)(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(Object(P.a)(n=>n?this.configLoader.load(t.injector,e).pipe(Object(p.a)(t=>(e._loadedConfig=t,t))):function(t){return new l.a(e=>e.error(rt(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Object(i.a)(new fe([],t))}runCanLoadGuards(t,e,n){const r=e.canLoad;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>{const s=t.get(r);let i;if(function(t){return t&&pe(t.canLoad)}(s))i=s.canLoad(e,n);else{if(!pe(s))throw new Error("Invalid CanLoad guard");i=s(e,n)}return ut(i)});return Object(i.a)(s).pipe(be(),Object(R.a)(t=>{if(!me(t))return;const e=rt(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),Object(p.a)(t=>!0===t))}lineralizeSegments(t,e){let n=[],r=e.root;for(;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(i.a)(n);if(r.numberOfChildren>1||!r.children.primary)return Ce(t.redirectTo);r=r.children.primary}}applyRedirectCommands(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}applyRedirectCreatreUrlTree(t,e,n,r){const s=this.createSegmentGroup(t,e.root,n,r);return new mt(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const n={};return lt(t,(t,r)=>{if("string"==typeof t&&t.startsWith(":")){const s=t.substring(1);n[r]=e[s]}else n[r]=t}),n}createSegmentGroup(t,e,n,r){const s=this.createSegments(t,e.segments,n,r);let i={};return lt(e.children,(e,s)=>{i[s]=this.createSegmentGroup(t,e,n,r)}),new gt(s,i)}createSegments(t,e,n,r){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,r):this.findOrReturn(e,n))}findPosParam(t,e,n){const r=n[e.path.substring(1)];if(!r)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return r}findOrReturn(t,e){let n=0;for(const r of e){if(r.path===t.path)return e.splice(n),r;n++}return t}}function Oe(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const r=(e.matcher||st)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Se(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new gt(t.segments.concat(e.segments),e.children)}return t}function De(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function xe(t){return t.outlet||tt}class Ae{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class ke{constructor(t,e){this.component=t,this.route=e}}function Te(t,e,n){const r=t._root;return Ie(r,e?e._root:null,n,[r.value])}function je(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Ie(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=Bt(e);return t.children.forEach(t=>{!function(t,e,n,r,s={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){const c=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!yt(t.url,e.url);case"pathParamsOrQueryParamsChange":return!yt(t.url,e.url)||!it(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Qt(t,e)||!it(t.queryParams,e.queryParams);case"paramsChange":default:return!Qt(t,e)}}(o,i,i.routeConfig.runGuardsAndResolvers);c?s.canActivateChecks.push(new Ae(r)):(i.data=o.data,i._resolvedData=o._resolvedData),Ie(t,e,i.component?a?a.children:null:n,r,s),c&&a&&a.outlet&&a.outlet.isActivated&&s.canDeactivateChecks.push(new ke(a.outlet.component,o))}else o&&Pe(e,a,s),s.canActivateChecks.push(new Ae(r)),Ie(t,null,i.component?a?a.children:null:n,r,s)}(t,i[t.value.outlet],n,r.concat([t.value]),s),delete i[t.value.outlet]}),lt(i,(t,e)=>Pe(t,n.getContext(e),s)),s}function Pe(t,e,n){const r=Bt(t),s=t.value;lt(r,(t,r)=>{Pe(t,s.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new ke(s.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,s))}function Re(t,e){return null!==t&&e&&e(new Z(t)),Object(i.a)(!0)}function Fe(t,e){return null!==t&&e&&e(new X(t)),Object(i.a)(!0)}function Ne(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return Object(i.a)(!0);const s=r.map(r=>Object(h.a)(()=>{const s=je(r,e,n);let i;if(function(t){return t&&pe(t.canActivate)}(s))i=ut(s.canActivate(e,t));else{if(!pe(s))throw new Error("Invalid CanActivate guard");i=ut(s(e,t))}return i.pipe(Object(I.a)())}));return Object(i.a)(s).pipe(be())}function Me(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Object(h.a)(()=>{const s=e.guards.map(s=>{const i=je(s,e.node,n);let o;if(function(t){return t&&pe(t.canActivateChild)}(i))o=ut(i.canActivateChild(r,t));else{if(!pe(i))throw new Error("Invalid CanActivateChild guard");o=ut(i(r,t))}return o.pipe(Object(I.a)())});return Object(i.a)(s).pipe(be())}));return Object(i.a)(s).pipe(be())}class Le{}class Ve{constructor(t,e,n,r,s,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=i}recognize(){try{const t=Ue(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,tt),n=new Kt([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},tt,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Vt(n,e),s=new qt(this.url,r);return this.inheritParamsAndData(s._root),Object(i.a)(s)}catch(t){return new l.a(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,n=$t(e,this.paramsInheritanceStrategy);e.params=Object.freeze(n.params),e.data=Object.freeze(n.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}processChildren(t,e){const n=_t(e,(e,n)=>this.processSegmentGroup(t,e,n));return function(t){const e={};t.forEach(t=>{const n=e[t.value.outlet];if(n){const e=n.url.map(t=>t.toString()).join("/"),r=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${r}'.`)}e[t.value.outlet]=t.value})}(n),n.sort((t,e)=>t.value.outlet===tt?-1:e.value.outlet===tt?1:t.value.outlet.localeCompare(e.value.outlet)),n}processSegment(t,e,n,r){for(const i of t)try{return this.processSegmentAgainstRoute(i,e,n,r)}catch(s){if(!(s instanceof Le))throw s}if(this.noLeftoversInUrl(e,n,r))return[];throw new Le}noLeftoversInUrl(t,e,n){return 0===e.length&&!t.children[n]}processSegmentAgainstRoute(t,e,n,r){if(t.redirectTo)throw new Le;if((t.outlet||tt)!==r)throw new Le;let s,i=[],o=[];if("**"===t.path){const i=n.length>0?ct(n).parameters:{};s=new Kt(n,i,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Be(e),He(e)+n.length,qe(t))}else{const a=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Le;return{consumedSegments:[],lastChild:0,parameters:{}}}const r=(e.matcher||st)(n,t,e);if(!r)throw new Le;const s={};lt(r.posParams,(t,e)=>{s[e]=t.path});const i=r.consumed.length>0?Object.assign(Object.assign({},s),r.consumed[r.consumed.length-1].parameters):s;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:i}}(e,t,n);i=a.consumedSegments,o=n.slice(a.lastChild),s=new Kt(i,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(t),r,t.component,t,Be(e),He(e)+i.length,qe(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:c,slicedSegments:l}=Ue(e,i,o,a,this.relativeLinkResolution);if(0===l.length&&c.hasChildren()){const t=this.processChildren(a,c);return[new Vt(s,t)]}if(0===a.length&&0===l.length)return[new Vt(s,[])];const u=this.processSegment(a,c,l,tt);return[new Vt(s,u)]}}function Be(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function He(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Ue(t,e,n,r,s){if(n.length>0&&function(t,e,n){return n.some(n=>ze(t,e,n)&&$e(n)!==tt)}(t,n,r)){const s=new gt(e,function(t,e,n,r){const s={};s.primary=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&$e(i)!==tt){const n=new gt([],{});n._sourceSegment=t,n._segmentIndexShift=e.length,s[$e(i)]=n}return s}(t,e,r,new gt(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(n=>ze(t,e,n))}(t,n,r)){const i=new gt(t.segments,function(t,e,n,r,s,i){const o={};for(const a of r)if(ze(t,n,a)&&!s[$e(a)]){const n=new gt([],{});n._sourceSegment=t,n._segmentIndexShift="legacy"===i?t.segments.length:e.length,o[$e(a)]=n}return Object.assign(Object.assign({},s),o)}(t,e,n,r,t.children,s));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}const i=new gt(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ze(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function $e(t){return t.outlet||tt}function Ke(t){return t.data||{}}function qe(t){return t.resolve||{}}function We(t){return function(e){return e.pipe(Object(S.a)(e=>{const n=t(e);return n?Object(o.a)(n).pipe(Object(p.a)(()=>e)):Object(o.a)([e])}))}}class Ge{}class Xe extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let Qe=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=s.Eb({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&s.Lb(0,"router-outlet")},directives:function(){return[mn]},encapsulation:2}),t})();function Ze(t,e=""){for(let n=0;n{this.onLoadEndListener&&this.onLoadEndListener(e);const r=n.create(t);return new fe(at(r.injector.get(en)).map(tn),r)}))}loadModuleFactory(t){return"string"==typeof t?Object(o.a)(this.loader.load(t)):ut(t()).pipe(Object(P.a)(t=>t instanceof s.v?Object(i.a)(t):Object(o.a)(this.compiler.compileModuleAsync(t))))}}class rn{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new sn,this.attachRef=null}}class sn{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new rn,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class on{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function an(t){throw t}function cn(t,e,n){return e.parse("/")}function ln(t,e){return Object(i.a)(null)}let un=(()=>{class t{constructor(t,e,n,r,i,o,c,l){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new f.a,this.errorHandler=an,this.malformedUriErrorHandler=cn,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:ln,afterPreactivation:ln},this.urlHandlingStrategy=new on,this.routeReuseStrategy=new Xe,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(s.x),this.console=i.get(s.W);const u=i.get(s.z);this.isNgZoneEnabled=u instanceof s.z,this.resetConfig(l),this.currentUrlTree=new mt(new gt([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new nn(o,c,t=>this.triggerEvent(new W(t)),t=>this.triggerEvent(new G(t))),this.routerState=Ut(this.currentUrlTree,this.rootComponentType),this.transitions=new a.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()}setupNavigations(t){const e=this.events;return t.pipe(Object(g.a)(t=>0!==t.id),Object(p.a)(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Object(S.a)(t=>{let n=!1,r=!1;return Object(i.a)(t).pipe(Object(R.a)(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Object(S.a)(t=>{const n=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||n)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Object(i.a)(t).pipe(Object(S.a)(t=>{const n=this.transitions.getValue();return e.next(new L(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),n!==this.transitions.getValue()?d.a:[t]}),Object(S.a)(t=>Promise.resolve(t)),(r=this.ngModule.injector,s=this.configLoader,o=this.urlSerializer,a=this.config,function(t){return t.pipe(Object(S.a)(t=>function(t,e,n,r,s){return new Ee(t,e,n,r,s).apply()}(r,s,o,t.extractedUrl,a).pipe(Object(p.a)(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),Object(R.a)(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,n,r,s){return function(i){return i.pipe(Object(P.a)(i=>function(t,e,n,r,s="emptyOnly",i="legacy"){return new Ve(t,e,n,r,s,i).recognize()}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,s).pipe(Object(p.a)(t=>Object.assign(Object.assign({},i),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),Object(R.a)(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),Object(R.a)(t=>{const n=new U(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(n)}));var r,s,o,a;if(n&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:n,extractedUrl:r,source:s,restoredState:o,extras:a}=t,c=new L(n,this.serializeUrl(r),s,o);e.next(c);const l=Ut(r,this.rootComponentType).snapshot;return Object(i.a)(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:r,extras:Object.assign(Object.assign({},a),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),d.a}),We(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(R.a)(t=>{const e=new z(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(p.a)(t=>Object.assign(Object.assign({},t),{guards:Te(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(n){return n.pipe(Object(P.a)(n=>{const{targetSnapshot:r,currentSnapshot:s,guards:{canActivateChecks:a,canDeactivateChecks:c}}=n;return 0===c.length&&0===a.length?Object(i.a)(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,r){return Object(o.a)(t).pipe(Object(P.a)(t=>function(t,e,n,r,s){const o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!o||0===o.length)return Object(i.a)(!0);const a=o.map(i=>{const o=je(i,e,s);let a;if(function(t){return t&&pe(t.canDeactivate)}(o))a=ut(o.canDeactivate(t,e,n,r));else{if(!pe(o))throw new Error("Invalid CanDeactivate guard");a=ut(o(t,e,n,r))}return a.pipe(Object(I.a)())});return Object(i.a)(a).pipe(be())}(t.component,t.route,n,e,r)),Object(I.a)(t=>!0!==t,!0))}(c,r,s,t).pipe(Object(P.a)(n=>n&&"boolean"==typeof n?function(t,e,n,r){return Object(o.a)(e).pipe(Object(j.a)(e=>Object(o.a)([Fe(e.route.parent,r),Re(e.route,r),Me(t,e.path,n),Ne(t,e.route,n)]).pipe(Object(m.a)(),Object(I.a)(t=>!0!==t,!0))),Object(I.a)(t=>!0!==t,!0))}(r,a,t,e):Object(i.a)(n)),Object(p.a)(t=>Object.assign(Object.assign({},n),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),Object(R.a)(t=>{if(me(t.guardsResult)){const e=rt(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),Object(R.a)(t=>{const e=new $(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),Object(g.a)(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const n=new B(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(n),t.resolve(!1),!1}return!0}),We(t=>{if(t.guards.canActivateChecks.length)return Object(i.a)(t).pipe(Object(R.a)(t=>{const e=new K(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Object(S.a)(t=>{let n=!1;return Object(i.a)(t).pipe((r=this.paramsInheritanceStrategy,s=this.ngModule.injector,function(t){return t.pipe(Object(P.a)(t=>{const{targetSnapshot:e,guards:{canActivateChecks:n}}=t;if(!n.length)return Object(i.a)(t);let a=0;return Object(o.a)(n).pipe(Object(j.a)(t=>function(t,e,n,r){return function(t,e,n,r){const s=Object.keys(t);if(0===s.length)return Object(i.a)({});const a={};return Object(o.a)(s).pipe(Object(P.a)(s=>function(t,e,n,r){const s=je(t,e,r);return ut(s.resolve?s.resolve(e,n):s(e,n))}(t[s],e,n,r).pipe(Object(R.a)(t=>{a[s]=t}))),_(1),Object(P.a)(()=>Object.keys(a).length===s.length?Object(i.a)(a):d.a))}(t._resolve,t,e,r).pipe(Object(p.a)(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),$t(t,n).resolve),null)))}(t.route,e,r,s)),Object(R.a)(()=>a++),_(1),Object(P.a)(e=>a===n.length?Object(i.a)(t):d.a))}))}),Object(R.a)({next:()=>n=!0,complete:()=>{if(!n){const n=new B(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(n),t.resolve(!1)}}}));var r,s}),Object(R.a)(t=>{const e=new q(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),We(t=>{const{targetSnapshot:e,id:n,extractedUrl:r,rawUrl:s,extras:{skipLocationChange:i,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:n,appliedUrlTree:r,rawUrlTree:s,skipLocationChange:!!i,replaceUrl:!!o})}),Object(p.a)(t=>{const e=function(t,e,n){const r=Zt(t,e._root,n?n._root:void 0);return new Ht(r,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),Object(R.a)(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(s=this.rootContexts,a=this.routeReuseStrategy,c=t=>this.triggerEvent(t),Object(p.a)(t=>(new he(a,t.targetRouterState,t.currentRouterState,c).activate(s),t))),Object(R.a)({next(){n=!0},complete(){n=!0}}),Object(F.a)(()=>{if(!n&&!r){this.resetUrlToCurrentUrlTree();const n=new B(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(n),t.resolve(!1)}this.currentNavigation=null}),Object(T.a)(n=>{if(r=!0,(s=n)&&s.ngNavigationCancelingError){const r=me(n.url);r||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const s=new B(t.id,this.serializeUrl(t.extractedUrl),n.message);e.next(s),r?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(n.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const r=new H(t.id,this.serializeUrl(t.extractedUrl),n);e.next(r);try{t.resolve(this.errorHandler(n))}catch(i){t.reject(i)}}var s;return d.a}));var s,a,c}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:n,urlTree:r}=e,s={replaceUrl:!0};if(n){const t=Object.assign({},n);delete t.navigationId,0!==Object.keys(t).length&&(s.state=t)}this.scheduleNavigation(r,t,n,s)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){Ze(t),this.config=t.map(tn),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:n,queryParams:r,fragment:i,preserveQueryParams:o,queryParamsHandling:a,preserveFragment:c}=e;Object(s.T)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=n||this.routerState.root,u=c?this.currentUrlTree.fragment:i;let h=null;if(a)switch(a){case"merge":h=Object.assign(Object.assign({},this.currentUrlTree.queryParams),r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=o?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,s){if(0===n.length)return ee(e.root,e.root,e,r,s);const i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new re(!0,0,t);let e=0,n=!1;const r=t.reduce((t,r,s)=>{if("object"==typeof r&&null!=r){if(r.outlets){const e={};return lt(r.outlets,(t,n)=>{e[n]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(r.segmentPath)return[...t,r.segmentPath]}return"string"!=typeof r?[...t,r]:0===s?(r.split("/").forEach((r,s)=>{0==s&&"."===r||(0==s&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):[...t,r]},[]);return new re(n,e,r)}(n);if(i.toRoot())return ee(e.root,new gt([],{}),e,r,s);const o=function(t,e,n){if(t.isAbsolute)return new se(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const t=n.snapshot._urlSegment;return new se(t,t===e.root,0)}const r=Jt(t.commands[0])?0:1;return function(t,e,n){let r=t,s=e,i=n;for(;i>s;){if(i-=s,r=r.parent,!r)throw new Error("Invalid number of '../'");s=r.segments.length}return new se(r,!1,s-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=o.processChildren?oe(o.segmentGroup,o.index,i.commands):ie(o.segmentGroup,o.index,i.commands);return ee(o.segmentGroup,a,e,r,s)}(l,this.currentUrlTree,t,h,u)}navigateByUrl(t,e={skipLocationChange:!1}){Object(s.T)()&&this.isNgZoneEnabled&&!s.z.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const n=me(t)?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const r=t[n];return null!=r&&(e[n]=r),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new V(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,n,r,s){const i=this.getTransition(),o="imperative"!==e&&"imperative"===(null==i?void 0:i.source),a=(this.lastSuccessfulId===i.id||this.currentNavigation?i.rawUrl:i.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let c,l,u;s?(c=s.resolve,l=s.reject,u=s.promise):u=new Promise((t,e)=>{c=t,l=e});const h=++this.navigationId;return this.setTransition({id:h,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:r,resolve:c,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,n,r){const s=this.urlSerializer.serialize(t);r=r||{},this.location.isCurrentPathEqualTo(s)||e?this.location.replaceState(s,"",Object.assign(Object.assign({},r),{navigationId:n})):this.location.go(s,"",Object.assign(Object.assign({},r),{navigationId:n}))}resetStateAndUrl(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.M),s.Xb(vt),s.Xb(sn),s.Xb(r.g),s.Xb(s.r),s.Xb(s.w),s.Xb(s.i),s.Xb(void 0))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})(),hn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.route=e,this.commands=[],this.onChanges=new f.a,null==n&&r.setAttribute(s.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:fn(this.skipLocationChange),replaceUrl:fn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:fn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(un),s.Kb(zt),s.Yb("tabindex"),s.Kb(s.D),s.Kb(s.l))},t.\u0275dir=s.Fb({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&s.ac("click",function(){return e.onClick()})},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.vb]}),t})(),dn=(()=>{class t{constructor(t,e,n){this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.onChanges=new f.a,this.subscription=t.events.subscribe(t=>{t instanceof V&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Object(s.T)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,n,r,s){if(0!==t||e||n||r||s)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const i={skipLocationChange:fn(this.skipLocationChange),replaceUrl:fn(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,i),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:fn(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:fn(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(un),s.Kb(zt),s.Kb(r.h))},t.\u0275dir=s.Fb({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&s.ac("click",function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)}),2&t&&(s.Sb("href",e.href,s.tc),s.yb("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[s.vb]}),t})();function fn(t){return""===t||!!t}let pn=(()=>{class t{constructor(t,e,n,r,s,i){this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.link=s,this.linkWithHref=i,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof V&&this.update()})}ngAfterContentInit(){Object(o.a)([this.links.changes,this.linksWithHrefs.changes,Object(i.a)(null)]).pipe(Object(N.a)()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=Object(o.a)(e).pipe(Object(N.a)()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(un),s.Kb(s.l),s.Kb(s.D),s.Kb(s.h),s.Kb(hn,8),s.Kb(dn,8))},t.\u0275dir=s.Fb({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,n){var r;1&t&&(s.Db(n,hn,!0),s.Db(n,dn,!0)),2&t&&(s.qc(r=s.bc())&&(e.links=r),s.qc(r=s.bc())&&(e.linksWithHrefs=r))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[s.vb]}),t})(),mn=(()=>{class t{constructor(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new s.n,this.deactivateEvents=new s.n,this.name=r||tt,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const n=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),r=this.parentContexts.getOrCreateContext(this.name).children,s=new gn(t,r,this.location.injector);this.activated=this.location.createComponent(n,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(s.Kb(sn),s.Kb(s.O),s.Kb(s.j),s.Yb("name"),s.Kb(s.h))},t.\u0275dir=s.Fb({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class gn{constructor(t,e,n){this.route=t,this.childContexts=e,this.parent=n}get(t,e){return t===zt?this.route:t===sn?this.childContexts:this.parent.get(t,e)}}class bn{}class yn{preload(t,e){return e().pipe(Object(T.a)(()=>Object(i.a)(null)))}}class _n{preload(t,e){return Object(i.a)(null)}}let vn=(()=>{class t{constructor(t,e,n,r,s){this.router=t,this.injector=r,this.preloadingStrategy=s,this.loader=new nn(e,n,e=>t.triggerEvent(new W(e)),e=>t.triggerEvent(new G(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(Object(g.a)(t=>t instanceof V),Object(j.a)(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(s.x);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const n=[];for(const r of e)if(r.loadChildren&&!r.canLoad&&r._loadedConfig){const t=r._loadedConfig;n.push(this.processRoutes(t.module,t.routes))}else r.loadChildren&&!r.canLoad?n.push(this.preloadConfig(t,r)):r.children&&n.push(this.processRoutes(t,r.children));return Object(o.a)(n).pipe(Object(N.a)(),Object(p.a)(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(Object(P.a)(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(un),s.Xb(s.w),s.Xb(s.i),s.Xb(s.r),s.Xb(bn))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})(),wn=(()=>{class t{constructor(t,e,n={}){this.router=t,this.viewportScroller=e,this.options=n,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},n.scrollPositionRestoration=n.scrollPositionRestoration||"disabled",n.anchorScrolling=n.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof L?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof V&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof J&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new J(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(un),s.Xb(r.s),s.Xb(void 0))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();const Cn=new s.q("ROUTER_CONFIGURATION"),En=new s.q("ROUTER_FORROOT_GUARD"),On=[r.g,{provide:vt,useClass:wt},{provide:un,useFactory:function(t,e,n,s,i,o,a,c={},l,u){const h=new un(null,t,e,n,s,i,o,at(a));if(l&&(h.urlHandlingStrategy=l),u&&(h.routeReuseStrategy=u),c.errorHandler&&(h.errorHandler=c.errorHandler),c.malformedUriErrorHandler&&(h.malformedUriErrorHandler=c.malformedUriErrorHandler),c.enableTracing){const t=Object(r.A)();h.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return c.onSameUrlNavigation&&(h.onSameUrlNavigation=c.onSameUrlNavigation),c.paramsInheritanceStrategy&&(h.paramsInheritanceStrategy=c.paramsInheritanceStrategy),c.urlUpdateStrategy&&(h.urlUpdateStrategy=c.urlUpdateStrategy),c.relativeLinkResolution&&(h.relativeLinkResolution=c.relativeLinkResolution),h},deps:[vt,sn,r.g,s.r,s.w,s.i,en,Cn,[class{},new s.A],[Ge,new s.A]]},sn,{provide:zt,useFactory:function(t){return t.routerState.root},deps:[un]},{provide:s.w,useClass:s.J},vn,_n,yn,{provide:Cn,useValue:{enableTracing:!1}}];function Sn(){return new s.y("Router",un)}let Dn=(()=>{class t{constructor(t,e){}static forRoot(e,n){return{ngModule:t,providers:[On,Tn(e),{provide:En,useFactory:kn,deps:[[un,new s.A,new s.I]]},{provide:Cn,useValue:n||{}},{provide:r.h,useFactory:An,deps:[r.p,[new s.p(r.a),new s.A],Cn]},{provide:wn,useFactory:xn,deps:[un,r.s,Cn]},{provide:bn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:_n},{provide:s.y,multi:!0,useFactory:Sn},[jn,{provide:s.d,multi:!0,useFactory:In,deps:[jn]},{provide:Rn,useFactory:Pn,deps:[jn]},{provide:s.b,multi:!0,useExisting:Rn}]]}}static forChild(e){return{ngModule:t,providers:[Tn(e)]}}}return t.\u0275mod=s.Ib({type:t}),t.\u0275inj=s.Hb({factory:function(e){return new(e||t)(s.Xb(En,8),s.Xb(un,8))}}),t})();function xn(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new wn(t,e,n)}function An(t,e,n={}){return n.useHash?new r.e(t,e):new r.n(t,e)}function kn(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Tn(t){return[{provide:s.a,multi:!0,useValue:t},{provide:en,multi:!0,useValue:t}]}let jn=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new f.a}appInitializer(){return this.injector.get(r.f,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),n=this.injector.get(un),r=this.injector.get(Cn);if(this.isLegacyDisabled(r)||this.isLegacyEnabled(r))t(!0);else if("disabled"===r.initialNavigation)n.setUpLocationChangeListener(),t(!0);else{if("enabled"!==r.initialNavigation)throw new Error(`Invalid initialNavigation options: '${r.initialNavigation}'`);n.hooks.afterPreactivation=()=>this.initNavigation?Object(i.a)(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),n.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(Cn),n=this.injector.get(vn),r=this.injector.get(wn),i=this.injector.get(un),o=this.injector.get(s.g);t===o.components[0]&&(this.isLegacyEnabled(e)?i.initialNavigation():this.isLegacyDisabled(e)&&i.setUpLocationChangeListener(),n.setUpPreloading(),r.init(),i.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(s.Xb(s.r))},t.\u0275prov=s.Gb({token:t,factory:t.\u0275fac}),t})();function In(t){return t.appInitializer.bind(t)}function Pn(t){return t.bootstrapListener.bind(t)}const Rn=new s.q("Router Initializer")},vkgz:function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("7o/Q"),s=n("KqfI"),i=n("n6bG");function o(t,e,n){return function(r){return r.lift(new a(t,e,n))}}class a{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new c(t,this.nextOrObserver,this.error,this.complete))}}class c extends r.a{constructor(t,e,n,r){super(t),this._tapNext=s.a,this._tapError=s.a,this._tapComplete=s.a,this._tapError=n||s.a,this._tapComplete=r||s.a,Object(i.a)(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||s.a,this._tapError=e.error||s.a,this._tapComplete=e.complete||s.a)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}},w1tV:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("oB13"),s=n("x+ZX"),i=n("XNiG");function o(){return new i.a}function a(){return t=>Object(s.a)()(Object(r.a)(o)(t))}},wQXg:function(t,e,n){"use strict";n.d(e,"a",function(){return b});var r=n("fXoL"),s=n("2Vo4"),i=n("jtHE"),o=n("pLZG"),a=n("lJxs"),c=n("3E0/"),l=n("ofXK"),u=n("tyNb");class h{constructor(){this.pageTracking={autoTrackVirtualPages:!0,basePath:"",excludedRoutes:[],clearIds:!1,clearHash:!1,clearQueryParams:!1,idsRegExp:/^\d+$|^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/},this.developerMode=!1,this.ga={},this.appInsights={},this.gtm={},this.gst={}}}const d=new r.q("ANGULARTICS2");class f{trackLocation(t){return new s.a({url:"/"})}prepareExternalUrl(t){return t}}let p=(()=>{class t{constructor(t,e){this.tracker=t,this.pageTrack=new i.a(10),this.eventTrack=new i.a(10),this.exceptionTrack=new i.a(10),this.setAlias=new i.a(10),this.setUsername=new i.a(10),this.setUserProperties=new i.a(10),this.setUserPropertiesOnce=new i.a(10),this.setSuperProperties=new i.a(10),this.setSuperPropertiesOnce=new i.a(10),this.userTimings=new i.a(10);const n=new h;this.settings=Object.assign(Object.assign({},n),e.settings),this.settings.pageTracking=Object.assign(Object.assign({},n.pageTracking),e.settings.pageTracking),this.tracker.trackLocation(this.settings).subscribe(t=>this.trackUrlChange(t.url))}filterDeveloperMode(){return Object(o.a)((t,e)=>!this.settings.developerMode)}trackUrlChange(t){if(this.settings.pageTracking.autoTrackVirtualPages&&!this.matchesExcludedRoute(t)){const e=this.clearUrl(t);let n;n=this.settings.pageTracking.basePath.length?this.settings.pageTracking.basePath+e:this.tracker.prepareExternalUrl(e),this.pageTrack.next({path:n})}}matchesExcludedRoute(t){for(const e of this.settings.pageTracking.excludedRoutes)if(e instanceof RegExp&&e.test(t)||-1!==t.indexOf(e))return!0;return!1}clearUrl(t){return this.settings.pageTracking.clearIds||this.settings.pageTracking.clearQueryParams||this.settings.pageTracking.clearHash?t.split("/").map(t=>this.settings.pageTracking.clearQueryParams?t.split("?")[0]:t).map(t=>this.settings.pageTracking.clearHash?t.split("#")[0]:t).filter(t=>!this.settings.pageTracking.clearIds||!t.match(this.settings.pageTracking.idsRegExp)).join("/"):t}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(f),r.Xb(d))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(f),Object(r.Xb)(d))},token:t,providedIn:"root"}),t})(),m=(()=>{class t{constructor(t,e){this.router=t,this.location=e}trackLocation(t){return this.router.events.pipe(Object(o.a)(t=>t instanceof u.b),Object(o.a)(()=>!t.developerMode),Object(a.a)(t=>({url:t.urlAfterRedirects})),Object(c.a)(0))}prepareExternalUrl(t){return this.location.prepareExternalUrl(t)}}return t.\u0275fac=function(e){return new(e||t)(r.Xb(u.e),r.Xb(l.g))},t.\u0275prov=Object(r.Gb)({factory:function(){return new t(Object(r.Xb)(u.e),Object(r.Xb)(l.g))},token:t,providedIn:"root"}),t})(),g=(()=>{class t{}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)}}),t})(),b=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[{provide:d,useValue:{settings:e}},{provide:f,useClass:m},p]}}}return t.\u0275mod=r.Ib({type:t}),t.\u0275inj=r.Hb({factory:function(e){return new(e||t)},imports:[[g]]}),t})()},"x+ZX":function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(){return function(t){return t.lift(new i(t))}}class i{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const r=new o(t,n),s=e.subscribe(r);return r.closed||(r.connection=n.connect()),s}}class o extends r.a{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}},xCBG:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("eQe+"),s=n("XNiG"),i=n("fXoL"),o=n("sYmb");let a=(()=>{class t{constructor(t){this.translateService=t,this.errorMessage=new s.a}showErrorMessage(t){switch(t){case r.a.STATUS_ERROR.INVALID_TOKEN:case r.a.STATUS_ERROR.USED_OR_INVALID_TOKEN:case r.a.STATUS_ERROR.TOKEN_USED:case r.a.STATUS_ERROR.NO_NUMBER:this.errorMessage.next(this.translateService.instant(t));break;default:this.errorMessage.next(this.translateService.instant(r.a.STATUS_ERROR.GENERIC_ERROR))}}}return t.\u0275fac=function(e){return new(e||t)(i.Xb(o.d))},t.\u0275prov=i.Gb({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},xbPD:function(t,e,n){"use strict";n.d(e,"a",function(){return s});var r=n("7o/Q");function s(t=null){return e=>e.lift(new i(t))}class i{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new o(t,this.defaultValue))}}class o extends r.a{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}},xgIS:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("HDdC"),s=n("DH7j"),i=n("n6bG"),o=n("lJxs");function a(t,e,n,l){return Object(i.a)(n)&&(l=n,n=void 0),l?a(t,e,n).pipe(Object(o.a)(t=>Object(s.a)(t)?l(...t):l(t))):new r.a(r=>{c(t,e,function(t){r.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},r,n)})}function c(t,e,n,r,s){let i;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){const r=t;t.addEventListener(e,n,s),i=()=>r.removeEventListener(e,n,s)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){const r=t;t.on(e,n),i=()=>r.off(e,n)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){const r=t;t.addListener(e,n),i=()=>r.removeListener(e,n)}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(let i=0,o=t.length;ie.schedule(i,0,{error:t,subscriber:n}):e=>e.error(t))}function i({error:t,subscriber:e}){e.error(t)}},zUnb:function(t,e,n){"use strict";n.r(e),(function(t){var e=n("fXoL"),r=n("AytR"),s=n("0QMH"),i=n("ZAI4"),o=n("jhN1");r.a.production&&Object(e.R)();const a=()=>o.c().bootstrapModule(i.a);r.a.hmr?Object(s.a)(t,a):a().catch(t=>console.error(t))}).call(this,n("3UD+")(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"},zx2A:function(t,e,n){"use strict";n.d(e,"a",function(){return o}),n.d(e,"b",function(){return a}),n.d(e,"c",function(){return c});var r=n("7o/Q"),s=n("HDdC"),i=n("SeVD");class o extends r.a{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class a extends r.a{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function c(t,e){if(!e.closed)return t instanceof s.a?t.subscribe(e):Object(i.a)(t)(e)}}},[[0,1]]]);