"use strict";(self.webpackChunkYelly=self.webpackChunkYelly||[]).push([[179],{470:(He,ce,V)=>{V.d(ce,{K:()=>h});const h={production:!1,version:"v1.3.5",siteTitle:"Yelly - A melhor maquininha, com as melhores taxas do mercado!",linkCart:"https://afiliados.yellyfintech.com.br/checkout/fe686c79-e331-47c0-b61c-f7485ea774ec",linkCartAds:"https://afiliados.yellyfintech.com.br/checkout/f5b3a322-ff72-4a86-abe4-49746674b8bf",linkPortalYelly:"https://conta.yelly.com.br",linkWhatsapp:"https://api.whatsapp.com/send?phone=5527996075780&text=Ol%C3%A1!%20Venho%20atrav%C3%A9s%20do%20site%20da%20Yelly!%20Gostaria%20de%20tirar%20d%C3%BAvidas.",linkWhatsappAds:"https://api.whatsapp.com/send?phone=5527999571773&text=Ol%C3%A1!%20Venho%20atrav%C3%A9s%20do%20site%20da%20Yelly!%20Gostaria%20de%20tirar%20d%C3%BAvidas.",linkWhatsappAfiliados:"https://api.whatsapp.com/send?phone=5527995005804&text=Ol%C3%A1!%20Venho%20atrav%C3%A9s%20do%20site%20da%20Yelly%20e%20gostaria%20de%20ser%20um%20Afiliado.",linkSpecialConditionsCNPJ:"https://api.whatsapp.com/send/?phone=%2B555527996313246&text=Quero+conhecer+as+condi%C3%A7%C3%B5es+especiais+para+CNPJ%21",feesDateUpdate:"25/08/2023",debitFee:1.39,debitFeeOther:1.79,debitFeeProMax:1.39,debitFeeProMaxOther:1.79,materialFees:[{id:1,yelly:2.96,yellyOther:3.29,other:4.9},{id:2,yelly:4.1,yellyOther:4.25,other:6.7},{id:3,yelly:4.7,yellyOther:4.85,other:8.5},{id:4,yelly:5.29,yellyOther:5.44,other:10.3},{id:5,yelly:5.89,yellyOther:6.04,other:12.1},{id:6,yelly:6.48,yellyOther:6.63,other:13.9},{id:7,yelly:7.12,yellyOther:7.32,other:15.7},{id:8,yelly:7.7,yellyOther:7.9,other:17.5},{id:9,yelly:8.27,yellyOther:8.47,other:19.3},{id:10,yelly:8.84,yellyOther:9.04,other:21.1},{id:11,yelly:9.42,yellyOther:9.62,other:22.9},{id:12,yelly:9.97,yellyOther:10.17,other:24.7},{id:13,yelly:10.53,yellyOther:10.73,other:26.5},{id:14,yelly:11.08,yellyOther:11.28,other:28.3},{id:15,yelly:11.63,yellyOther:11.83,other:30.1},{id:16,yelly:12.17,yellyOther:12.37,other:31.9},{id:17,yelly:12.71,yellyOther:12.91,other:33.7},{id:18,yelly:13.24,yellyOther:13.44,other:35.5}],materialFeesProMax:[{id:1,yelly:2.96,yellyOther:3.29,other:4.9},{id:2,yelly:4.16,yellyOther:4.31,other:6.7},{id:3,yelly:4.79,yellyOther:4.94,other:8.5},{id:4,yelly:5.42,yellyOther:5.57,other:10.3},{id:5,yelly:6.03,yellyOther:6.18,other:12.1},{id:6,yelly:6.65,yellyOther:6.8,other:13.9},{id:7,yelly:7.31,yellyOther:7.51,other:15.7},{id:8,yelly:7.91,yellyOther:8.11,other:17.5},{id:9,yelly:8.5,yellyOther:8.7,other:19.3},{id:10,yelly:9.09,yellyOther:9.29,other:21.1},{id:11,yelly:9.68,yellyOther:9.88,other:22.9},{id:12,yelly:10.26,yellyOther:10.46,other:24.7},{id:13,yelly:10.83,yellyOther:11.03,other:26.5},{id:14,yelly:11.41,yellyOther:11.61,other:28.3},{id:15,yelly:11.97,yellyOther:12.17,other:30.1},{id:16,yelly:12.54,yellyOther:12.74,other:31.9},{id:17,yelly:13.09,yellyOther:13.29,other:33.7},{id:18,yelly:13.65,yellyOther:13.85,other:35.5}],onlineFees:[{id:1,yelly:3.99,yellyOther:3.99,other:5.9},{id:2,yelly:4.99,yellyOther:4.99,other:7.4},{id:3,yelly:5.99,yellyOther:5.99,other:8.9},{id:4,yelly:6.99,yellyOther:6.99,other:10.4},{id:5,yelly:7.99,yellyOther:7.99,other:11.9},{id:6,yelly:8.99,yellyOther:8.99,other:13.4},{id:7,yelly:9.99,yellyOther:9.99,other:14.9},{id:8,yelly:10.99,yellyOther:10.99,other:16.4},{id:9,yelly:11.99,yellyOther:11.99,other:17.9},{id:10,yelly:12.99,yellyOther:12.99,other:19.4},{id:11,yelly:13.99,yellyOther:13.99,other:20.9},{id:12,yelly:14.99,yellyOther:14.99,other:22.4}],faqs:[{question:"Em quanto tempo eu recebo o valor das vendas?",response:"As vendas realizadas na m\xe1quina de cart\xe3o ficar\xe3o dispon\xedveis em D+1 no portal ou na conta banc\xe1ria de escolha do Estabelecimento."},{question:"Eu preciso de um smartphone para fazer as vendas?",response:"Com as m\xe1quinas da Yelly, n\xe3o se faz necess\xe1rio um Smartphone para realizar as vendas."},{question:"Al\xe9m das taxas, existe algum outro custo?",response:"Ap\xf3s adquirir a m\xe1quina de cart\xe3o, o \xfanico custo cobrado ser\xe3o das taxas de cart\xe3o, conforme forma de pagamento."},{question:"Em quanto tempo recebo minha m\xe1quina Yelly?",response:"Para as regi\xf5es sul, sudeste e centro-oeste o prazo de entrega \xe9 de 2 at\xe9 15 dias \xfateis. J\xe1 para as regi\xf5es norte e nordeste o prazo de entrega \xe9 de 5 at\xe9 20 dias \xfateis."}]}},19:(He,ce,V)=>{V.d(ce,{N:()=>de});var h=V(470);const de=Object.assign(h.K,{production:!0})},340:(He,ce,V)=>{V.d(ce,{N:()=>de});var h=V(470);const de=Object.assign(h.K,{production:!0})},549:(He,ce,V)=>{var h=V(313),A=V(96),de=V(808);const ue=void 0,K=["pt",[["AM","PM"],ue,ue],ue,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."],["domingo","segunda-feira","ter\xe7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xe1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xe1b."]],ue,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xe7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],ue,[["a.C.","d.C."],ue,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",ue,ue,ue],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],JPY:["JP\xa5","\xa5"],PHP:[ue,"\u20b1"],PTE:["Esc."],RON:[ue,"L"],SYP:[ue,"S\xa3"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"]},"ltr",function Se(q){const fe=Math.floor(Math.abs(q));return fe===Math.floor(fe)&&fe>=0&&fe<=1?1:5}];var pe=V(367),Ce=V(19);let X=(()=>{class q{constructor(fe){this.activeRoute=fe,this.linkPortalYelly="",this.linkWhatsapp="",this.version="",this.onlyIcon=!1}ngOnInit(){this.linkPortalYelly=Ce.N.linkPortalYelly,this.linkWhatsapp=Ce.N.linkWhatsapp,this.version=Ce.N.version,this.activeRoute.queryParams.subscribe(fe=>{void 0!==typeof(null==fe?void 0:fe.ads)&&"true"===(null==fe?void 0:fe.ads)&&(this.linkWhatsapp=Ce.N.linkWhatsappAds)}),setTimeout(()=>{this.onlyIcon=!0},5e3)}}return q.\u0275fac=function(fe){return new(fe||q)(A.Y36(pe.gz))},q.\u0275cmp=A.Xpm({type:q,selectors:[["app-layout-portal"]],decls:63,vars:5,consts:[[1,"background-black"],[1,"container","footer"],[1,"logo"],["href","/"],["width","183","height","60","src","../../../assets/img/logo.svg","alt","Yelly - A melhor maquininha, com as melhores taxas do mercado",1,"logo-img"],["href","https://www.instagram.com/sejayelly/","title","Instagram","target","_blank"],["width","24","height","24","src","../../../assets/img/icon-instagram.png","alt","icon-instagram"],[1,"row","links"],[1,"col-sm-5"],[1,"d-flex","justify-content-between"],["href","/#pos"],["href","/#simulation"],["href","/#advantages"],[2,"margin-right","3rem"],["href","/fees"],["target","_blank",3,"href"],["href","../../../assets/docs/Yelly-Politica-de-Privacidade.pdf","target","_blank"],[1,"col-sm-2"],[1,"col-sm-5","mt-sm-2"],["href","https://api.whatsapp.com/send?phone=5527996075780&text=Ol%C3%A1!%20Venho%20atrav%C3%A9s%20do%20site%20da%20Yelly!%20Gostaria%20de%20tirar%20d%C3%BAvidas.","target","_blank"],[1,"copyright"],["target","_blank",1,"floating-whatsapp",3,"href"],["src","../../../assets/img/icon-whatsapp.png","alt","whats"]],template:function(fe,De){1&fe&&(A._UZ(0,"router-outlet"),A.TgZ(1,"div",0),A.TgZ(2,"footer",1),A.TgZ(3,"div",2),A.TgZ(4,"a",3),A._UZ(5,"img",4),A.qZA(),A.TgZ(6,"ul"),A.TgZ(7,"li"),A.TgZ(8,"a",5),A._UZ(9,"img",6),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(10,"div",7),A.TgZ(11,"div",8),A.TgZ(12,"h5"),A._uU(13,"Yelly"),A.qZA(),A.TgZ(14,"div",9),A.TgZ(15,"ul"),A.TgZ(16,"li"),A.TgZ(17,"a",3),A._uU(18,"In\xedcio"),A.qZA(),A.qZA(),A.TgZ(19,"li"),A.TgZ(20,"a",10),A._uU(21,"Maquininha"),A.qZA(),A.qZA(),A.TgZ(22,"li"),A.TgZ(23,"a",11),A._uU(24,"Simulador"),A.qZA(),A.qZA(),A.TgZ(25,"li"),A.TgZ(26,"a",12),A._uU(27,"Vantagens"),A.qZA(),A.qZA(),A.qZA(),A.TgZ(28,"ul",13),A.TgZ(29,"li"),A.TgZ(30,"a",14),A._uU(31,"Taxas"),A.qZA(),A.qZA(),A.TgZ(32,"li"),A.TgZ(33,"a",15),A._uU(34,"Portal Yelly"),A.qZA(),A.qZA(),A.TgZ(35,"li"),A.TgZ(36,"a",16),A._uU(37,"Pol\xedtica de Privacidade"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A._UZ(38,"div",17),A.TgZ(39,"div",18),A.TgZ(40,"h5"),A._uU(41,"Contato"),A.qZA(),A.TgZ(42,"ul"),A.TgZ(43,"li"),A._uU(44,"contato@yellyfintech.com.br"),A.qZA(),A.TgZ(45,"li"),A.TgZ(46,"a",19),A._uU(47," Whatsapp: (27) 99607-5780 "),A.qZA(),A.qZA(),A.TgZ(48,"li"),A._uU(49,"CNPJ: 42.928.123/0001-37"),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.qZA(),A.TgZ(50,"div",20),A._uU(51," \xa9 Yelly. Todos os direitos reservados. "),A._UZ(52,"br"),A.TgZ(53,"small"),A.TgZ(54,"small"),A._uU(55),A.qZA(),A.qZA(),A.qZA(),A.TgZ(56,"a",21),A._UZ(57,"img",22),A.TgZ(58,"div"),A.TgZ(59,"span"),A._uU(60,"Fale conosco via"),A.qZA(),A.TgZ(61,"strong"),A._uU(62,"WhatsApp"),A.qZA(),A.qZA(),A.qZA()),2&fe&&(A.xp6(33),A.s9C("href",De.linkPortalYelly,A.LSH),A.xp6(22),A.Oqu(De.version),A.xp6(1),A.ekj("only-icon",De.onlyIcon),A.s9C("href",De.linkWhatsapp,A.LSH))},directives:[pe.lC],styles:[".floating-whatsapp[_ngcontent-%COMP%]{position:fixed;right:15px;bottom:15px;background-color:#4caf50;border-radius:30px;display:flex;align-items:center;padding-right:20px;text-decoration:none;color:#fff;line-height:1.1;box-shadow:2px 2px 10px #0000004d}.floating-whatsapp[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;font-size:.8rem}.floating-whatsapp[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:500;font-size:1.25rem}.floating-whatsapp.only-icon[_ngcontent-%COMP%]{opacity:.85;border-radius:100%;padding:0}.floating-whatsapp.only-icon[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{display:none}.floating-whatsapp.only-icon[_ngcontent-%COMP%]:hover{opacity:1;border-radius:30px;padding-right:20px}.floating-whatsapp.only-icon[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{display:initial}@media screen and (max-width: 767px){.floating-whatsapp[_ngcontent-%COMP%]{right:5px;bottom:5px}.floating-whatsapp.only-icon[_ngcontent-%COMP%]:hover{opacity:.85;border-radius:100%;padding:0}.floating-whatsapp.only-icon[_ngcontent-%COMP%]:hover div[_ngcontent-%COMP%]{display:none!important}}"]}),q})();var k=V(340);const B=[{path:"",component:X,loadChildren:()=>V.e(388).then(V.bind(V,388)).then(q=>q.LayoutPortalModule)},{path:"404",component:(()=>{class q{constructor(fe){this.title=fe}ngOnInit(){this.title.setTitle("Not found - "+k.N.siteTitle)}}return q.\u0275fac=function(fe){return new(fe||q)(A.Y36(h.Dx))},q.\u0275cmp=A.Xpm({type:q,selectors:[["app-not-found"]],features:[A._Bn([h.Dx])],decls:2,vars:0,template:function(fe,De){1&fe&&(A.TgZ(0,"p"),A._uU(1,"P\xe1gina n\xe3o encontrada."),A.qZA())},styles:[""]}),q})()},{path:"**",redirectTo:"/404",pathMatch:"full"}];let P=(()=>{class q{}return q.\u0275fac=function(fe){return new(fe||q)},q.\u0275mod=A.oAB({type:q}),q.\u0275inj=A.cJS({imports:[[pe.Bz.forRoot(B,{initialNavigation:"enabledBlocking"})],pe.Bz]}),q})(),F=(()=>{class q{constructor(){this.title="Yelly - Maquininha de cart\xe3o"}}return q.\u0275fac=function(fe){return new(fe||q)},q.\u0275cmp=A.Xpm({type:q,selectors:[["app-root"]],decls:1,vars:0,template:function(fe,De){1&fe&&A._UZ(0,"router-outlet")},directives:[pe.lC],styles:[""]}),q})();var Z=V(202),j=V(182);let ne=(()=>{class q{}return q.\u0275fac=function(fe){return new(fe||q)},q.\u0275mod=A.oAB({type:q}),q.\u0275inj=A.cJS({imports:[[de.ez,pe.Bz,Z.Ud,j.u5,j.UX]]}),q})();(0,de.qS)(K);let _e=(()=>{class q{}return q.\u0275fac=function(fe){return new(fe||q)},q.\u0275mod=A.oAB({type:q,bootstrap:[F]}),q.\u0275inj=A.cJS({providers:[{provide:A.soG,useValue:"pt-BR"}],imports:[[h.b2.withServerTransition({appId:"serverApp"}),P,ne]]}),q})();function re(){h.q6().bootstrapModule(_e).catch(q=>console.error(q))}k.N.production&&(0,A.G48)(),"complete"===document.readyState?re():document.addEventListener("DOMContentLoaded",re)},202:(He,ce,V)=>{V.d(ce,{Ud:()=>H,g1:()=>k});var h=V(96),A=V(182),de=V(808),ue=(()=>{return(B=ue||(ue={}))[B.FINANCIAL=0]="FINANCIAL",B[B.NATURAL=1]="NATURAL",ue;var B})();let Se=new h.OlP("currency.mask.config");class K{constructor(P){this.htmlInputElement=P}setCursorAt(P){if(this.htmlInputElement.setSelectionRange)this.htmlInputElement.focus(),this.htmlInputElement.setSelectionRange(P,P);else if(this.htmlInputElement.createTextRange){let F=this.htmlInputElement.createTextRange();F.collapse(!0),F.moveEnd("character",P),F.moveStart("character",P),F.select()}}updateValueAndCursor(P,F,Z){this.rawValue=P,this.setCursorAt(Z-=F-P.length)}get canInputMoreNumbers(){let F=!(this.rawValue.replace(/[^0-9\u0660-\u0669\u06F0-\u06F9]/g,"").length>=this.htmlInputElement.maxLength&&this.htmlInputElement.maxLength>=0),Z=this.inputSelection.selectionStart,j=this.inputSelection.selectionEnd,ne=!(Z==j||!this.htmlInputElement.value.substring(Z,j).match(/[^0-9\u0660-\u0669\u06F0-\u06F9]/)),_e="0"==this.htmlInputElement.value.substring(0,1);return F||ne||_e}get inputSelection(){let P=0,F=0;if("number"==typeof this.htmlInputElement.selectionStart&&"number"==typeof this.htmlInputElement.selectionEnd)P=this.htmlInputElement.selectionStart,F=this.htmlInputElement.selectionEnd;else{let Z=document.selection.createRange();if(Z&&Z.parentElement()==this.htmlInputElement){let j=this.htmlInputElement.value.length,ne=this.htmlInputElement.value.replace(/\r\n/g,"\n"),_e=this.htmlInputElement.createTextRange();_e.moveToBookmark(Z.getBookmark());let re=this.htmlInputElement.createTextRange();re.collapse(!1),_e.compareEndPoints("StartToEnd",re)>-1?P=F=j:(P=-_e.moveStart("character",-j),P+=ne.slice(0,P).split("\n").length-1,_e.compareEndPoints("EndToEnd",re)>-1?F=j:(F=-_e.moveEnd("character",-j),F+=ne.slice(0,F).split("\n").length-1))}}return{selectionStart:P,selectionEnd:F}}get rawValue(){return this.htmlInputElement&&this.htmlInputElement.value}set rawValue(P){this._storedRawValue=P,this.htmlInputElement&&(this.htmlInputElement.value=P)}get storedRawValue(){return this._storedRawValue||""}}class pe{constructor(P,F){this.htmlInputElement=P,this.options=F,this.SINGLE_DIGIT_REGEX=new RegExp(/^[0-9\u0660-\u0669\u06F0-\u06F9]$/),this.ONLY_NUMBERS_REGEX=new RegExp(/[^0-9\u0660-\u0669\u06F0-\u06F9]/g),this.PER_AR_NUMBER=new Map,this.inputManager=new K(P),this.initialize()}initialize(){this.PER_AR_NUMBER.set("\u06f0","0"),this.PER_AR_NUMBER.set("\u06f1","1"),this.PER_AR_NUMBER.set("\u06f2","2"),this.PER_AR_NUMBER.set("\u06f3","3"),this.PER_AR_NUMBER.set("\u06f4","4"),this.PER_AR_NUMBER.set("\u06f5","5"),this.PER_AR_NUMBER.set("\u06f6","6"),this.PER_AR_NUMBER.set("\u06f7","7"),this.PER_AR_NUMBER.set("\u06f8","8"),this.PER_AR_NUMBER.set("\u06f9","9"),this.PER_AR_NUMBER.set("\u0660","0"),this.PER_AR_NUMBER.set("\u0661","1"),this.PER_AR_NUMBER.set("\u0662","2"),this.PER_AR_NUMBER.set("\u0663","3"),this.PER_AR_NUMBER.set("\u0664","4"),this.PER_AR_NUMBER.set("\u0665","5"),this.PER_AR_NUMBER.set("\u0666","6"),this.PER_AR_NUMBER.set("\u0667","7"),this.PER_AR_NUMBER.set("\u0668","8"),this.PER_AR_NUMBER.set("\u0669","9")}addNumber(P){const{decimal:F,precision:Z,inputMode:j}=this.options;let ne=String.fromCharCode(P);const _e=ne===this.options.decimal;if(this.rawValue){let re=this.inputSelection.selectionStart,q=this.inputSelection.selectionEnd;const Ae=this.rawValue.substring(0,re);let fe=this.rawValue.substring(q,this.rawValue.length);const De=-1!==Ae.indexOf(F);j===ue.NATURAL&&De&&re===q&&(fe=fe.substring(1));const Lt=Ae+ne+fe;let ye=re+1;if(!_e&&ne!==this.options.thousands||ne!==fe[0]){if(!this.SINGLE_DIGIT_REGEX.test(ne))return}else ye++;this.rawValue=Lt,this.updateFieldValue(ye)}else{let re;this.rawValue=this.applyMask(!1,ne),j===ue.NATURAL&&Z>0&&(re=this.rawValue.indexOf(F),_e&&re++),this.updateFieldValue(re)}}applyMask(P,F,Z=!1){let{allowNegative:j,decimal:ne,precision:_e,prefix:re,suffix:q,thousands:Ae,min:fe,max:De,inputMode:Lt}=this.options,ye=(F=P?new Number(F).toFixed(_e):F).replace(this.ONLY_NUMBERS_REGEX,"");if(!ye&&F!==ne)return"";Lt===ue.NATURAL&&!P&&!Z&&(ye=(F=this.padOrTrimPrecision(F)).replace(this.ONLY_NUMBERS_REGEX,""));let Ue=ye.slice(0,ye.length-_e).replace(/^\u0660*/g,"").replace(/^\u06F0*/g,"").replace(/^0*/g,"");""==Ue&&(Ue="0");let st=parseInt(Ue);Ue=Ue.replace(/\B(?=([0-9\u0660-\u0669\u06F0-\u06F9]{3})+(?![0-9\u0660-\u0669\u06F0-\u06F9]))/g,Ae),Ae&&Ue.startsWith(Ae)&&(Ue=Ue.substring(1));let Ye=Ue,ze=ye.slice(ye.length-_e),Fe=parseInt(ze)||0,me=F.indexOf("-")>-1;De=this.isNullOrUndefined(De)||this.isNullOrUndefined(fe)?De:Math.max(De,fe);let yt=st+Fe/Number("1".padEnd(_e+1,"0"));return yt=me?-yt:yt,!this.isNullOrUndefined(De)&&yt>De?this.applyMask(!0,De+""):!this.isNullOrUndefined(fe)&&yt0&&(Ye+="0"==Ye&&ze.length<_e?ne+"0".repeat(_e-1)+ze:ne+ze),(me&&j&&0!=yt?"-":"")+re+Ye+q)}padOrTrimPrecision(P){let{decimal:F,precision:Z}=this.options,j=P.lastIndexOf(F);-1===j&&(j=P.length,P+=F);let ne=P.substring(j).replace(this.ONLY_NUMBERS_REGEX,"");const _e=ne.length;if(_eZ&&(ne=ne.substring(0,ne.length+Z-_e));return P.substring(0,j)+F+ne}clearMask(P){if(this.isNullable()&&""===P)return null;let F=(P||"0").replace(this.options.prefix,"").replace(this.options.suffix,"");return this.options.thousands&&(F=F.replace(new RegExp("\\"+this.options.thousands,"g"),"")),this.options.decimal&&(F=F.replace(this.options.decimal,".")),this.PER_AR_NUMBER.forEach((Z,j)=>{const ne=new RegExp(j,"g");F=F.replace(ne,Z)}),parseFloat(F)}changeToNegative(){this.options.allowNegative&&""!=this.rawValue&&"-"!=this.rawValue.charAt(0)&&0!=this.value&&(this.rawValue=this.applyMask(!1,"-"+this.rawValue))}changeToPositive(){this.rawValue=this.applyMask(!1,this.rawValue.replace("-",""))}removeNumber(P){let{decimal:F,thousands:Z,prefix:j,suffix:ne,inputMode:_e}=this.options;if(this.isNullable()&&0==this.value)return void(this.rawValue=null);let re=this.inputSelection.selectionEnd,q=this.inputSelection.selectionStart;const Ae=this.rawValue.length-ne.length;if(re=Math.min(Ae,Math.max(re,j.length)),q=Math.min(Ae,Math.max(q,j.length)),q===re&&this.inputSelection.selectionStart!==this.inputSelection.selectionEnd)return void this.updateFieldValue(q);let fe=this.rawValue.indexOf(F);-1===fe&&(fe=this.rawValue.length);let De=0,Lt="";const ye=fe-10&&(Lt+="0"))}else if(46==P||63272==P){if(q===Ae)return;re++,this.rawValue.substr(q,1).match(/\d/)||(q++,re++)}if(_e===ue.NATURAL&&q>fe){const ze=re-q;for(let Fe=0;Fe{this.inputService.updateFieldValue(),this.setValue(this.inputService.value),this.onModelChange(this.inputService.value)},0)}handleInput(P){let F=this.inputService.inputSelection.selectionStart,Z=this.inputService.rawValue.charCodeAt(F-1),j=this.inputService.rawValue.length,ne=this.inputService.storedRawValue.length;if(1!=Math.abs(j-ne))return this.inputService.updateFieldValue(F),void this.onModelChange(this.inputService.value);this.inputService.rawValue=this.inputService.storedRawValue,j{this.inputService.updateFieldValue(F+1),this.inputService.removeNumber(8),this.onModelChange(this.inputService.value)},0),j>ne&&(this.inputService.updateFieldValue(F-1),this.handleKeypressImpl(Z))}handleKeydown(P){let F=P.which||P.charCode||P.keyCode;(8==F||46==F||63272==F)&&(P.preventDefault(),this.inputService.inputSelection.selectionStart<=this.inputService.prefixLength()&&this.inputService.inputSelection.selectionEnd>=this.inputService.rawValue.length-this.inputService.suffixLength()?this.clearValue():(this.inputService.removeNumber(F),this.onModelChange(this.inputService.value)))}clearValue(){this.setValue(this.inputService.isNullable()?null:0),this.onModelChange(this.inputService.value)}handleKeypress(P){let F=P.which||P.charCode||P.keyCode;P.preventDefault(),(97!==F||!P.ctrlKey)&&this.handleKeypressImpl(F)}handleKeypressImpl(P){switch(P){case void 0:case 9:case 13:return;case 43:this.inputService.changeToPositive();break;case 45:this.inputService.changeToNegative();break;default:this.inputService.canInputMoreNumbers&&(Math.abs(this.inputService.inputSelection.selectionEnd-this.inputService.inputSelection.selectionStart)==this.inputService.rawValue.length&&this.setValue(null),this.inputService.addNumber(P))}this.onModelChange(this.inputService.value)}handlePaste(P){setTimeout(()=>{this.inputService.updateFieldValue(),this.setValue(this.inputService.value),this.onModelChange(this.inputService.value)},1)}updateOptions(P){this.inputService.updateOptions(P)}getOnModelChange(){return this.onModelChange}setOnModelChange(P){this.onModelChange=P}getOnModelTouched(){return this.onModelTouched}setOnModelTouched(P){this.onModelTouched=P}setValue(P){this.inputService.value=P}timer(P,F){setTimeout(P,F)}}const X={provide:A.JU,useExisting:(0,h.Gpc)(()=>k),multi:!0};let k=(()=>{class B{constructor(F,Z,j){this.currencyMaskConfig=F,this.elementRef=Z,this.keyValueDiffers=j,this.options={},this.optionsTemplate={align:"right",allowNegative:!0,allowZero:!0,decimal:".",precision:2,prefix:"$ ",suffix:"",thousands:",",nullable:!1,inputMode:ue.FINANCIAL},F&&(this.optionsTemplate=F),this.keyValueDiffer=j.find({}).create()}ngAfterViewInit(){this.elementRef.nativeElement.style.textAlign=this.options&&this.options.align?this.options.align:this.optionsTemplate.align}ngDoCheck(){this.keyValueDiffer.diff(this.options)&&(this.elementRef.nativeElement.style.textAlign=this.options.align?this.options.align:this.optionsTemplate.align,this.inputHandler.updateOptions(Object.assign({},this.optionsTemplate,this.options)))}ngOnInit(){this.inputHandler=new Ce(this.elementRef.nativeElement,Object.assign({},this.optionsTemplate,this.options))}handleBlur(F){this.inputHandler.getOnModelTouched().apply(F)}handleCut(F){this.isChromeAndroid()||!this.isReadOnly()&&this.inputHandler.handleCut(F)}handleInput(F){this.isChromeAndroid()&&!this.isReadOnly()&&this.inputHandler.handleInput(F)}handleKeydown(F){this.isChromeAndroid()||!this.isReadOnly()&&this.inputHandler.handleKeydown(F)}handleKeypress(F){this.isChromeAndroid()||!this.isReadOnly()&&this.inputHandler.handleKeypress(F)}handlePaste(F){this.isChromeAndroid()||!this.isReadOnly()&&this.inputHandler.handlePaste(F)}handleDrop(F){this.isChromeAndroid()||F.preventDefault()}isChromeAndroid(){return/chrome/i.test(navigator.userAgent)&&/android/i.test(navigator.userAgent)}isReadOnly(){return this.elementRef.nativeElement.hasAttribute("readonly")}registerOnChange(F){this.inputHandler.setOnModelChange(F)}registerOnTouched(F){this.inputHandler.setOnModelTouched(F)}setDisabledState(F){this.elementRef.nativeElement.disabled=F}writeValue(F){this.inputHandler.setValue(F)}}return B.\u0275fac=function(F){return new(F||B)(h.Y36(Se,8),h.Y36(h.SBq),h.Y36(h.aQg))},B.\u0275dir=h.lG2({type:B,selectors:[["","currencyMask",""]],hostBindings:function(F,Z){1&F&&h.NdJ("blur",function(ne){return Z.handleBlur(ne)})("cut",function(ne){return Z.handleCut(ne)})("input",function(ne){return Z.handleInput(ne)})("keydown",function(ne){return Z.handleKeydown(ne)})("keypress",function(ne){return Z.handleKeypress(ne)})("paste",function(ne){return Z.handlePaste(ne)})("drop",function(ne){return Z.handleDrop(ne)})},inputs:{options:"options"},features:[h._Bn([X])]}),B})(),H=(()=>{class B{static forRoot(F){return{ngModule:B,providers:[{provide:Se,useValue:F}]}}}return B.\u0275fac=function(F){return new(F||B)},B.\u0275mod=h.oAB({type:B}),B.\u0275inj=h.cJS({imports:[[de.ez,A.u5]]}),B})()},916:(He,ce,V)=>{V.d(ce,{y:()=>H});var h=V(489),de=V(668),ue=V(292),K=V(821),pe=V(379);var k=V(735);let H=(()=>{class P{constructor(Z){this._isScalar=!1,Z&&(this._subscribe=Z)}lift(Z){const j=new P;return j.source=this,j.operator=Z,j}subscribe(Z,j,ne){const{operator:_e}=this,re=function Se(P,F,Z){if(P){if(P instanceof h.L)return P;if(P[de.b])return P[de.b]()}return P||F||Z?new h.L(P,F,Z):new h.L(ue.c)}(Z,j,ne);if(re.add(_e?_e.call(re,this.source):this.source||k.v.useDeprecatedSynchronousErrorHandling&&!re.syncErrorThrowable?this._subscribe(re):this._trySubscribe(re)),k.v.useDeprecatedSynchronousErrorHandling&&re.syncErrorThrowable&&(re.syncErrorThrowable=!1,re.syncErrorThrown))throw re.syncErrorValue;return re}_trySubscribe(Z){try{return this._subscribe(Z)}catch(j){k.v.useDeprecatedSynchronousErrorHandling&&(Z.syncErrorThrown=!0,Z.syncErrorValue=j),function A(P){for(;P;){const{closed:F,destination:Z,isStopped:j}=P;if(F||j)return!1;P=Z&&Z instanceof h.L?Z:null}return!0}(Z)?Z.error(j):console.warn(j)}}forEach(Z,j){return new(j=B(j))((ne,_e)=>{let re;re=this.subscribe(q=>{try{Z(q)}catch(Ae){_e(Ae),re&&re.unsubscribe()}},_e,ne)})}_subscribe(Z){const{source:j}=this;return j&&j.subscribe(Z)}[K.L](){return this}pipe(...Z){return 0===Z.length?this:function X(P){return 0===P.length?pe.y:1===P.length?P[0]:function(Z){return P.reduce((j,ne)=>ne(j),Z)}}(Z)(this)}toPromise(Z){return new(Z=B(Z))((j,ne)=>{let _e;this.subscribe(re=>_e=re,re=>ne(re),()=>j(_e))})}}return P.create=F=>new P(F),P})();function B(P){if(P||(P=k.v.Promise||Promise),!P)throw new Error("no Promise impl found");return P}},292:(He,ce,V)=>{V.d(ce,{c:()=>de});var h=V(735),A=V(782);const de={closed:!0,next(ue){},error(ue){if(h.v.useDeprecatedSynchronousErrorHandling)throw ue;(0,A.z)(ue)},complete(){}}},529:(He,ce,V)=>{V.d(ce,{xQ:()=>Ce,Yc:()=>pe});var h=V(916),A=V(489),de=V(654),ue=V(279);class Se extends de.w{constructor(H,B){super(),this.subject=H,this.subscriber=B,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const H=this.subject,B=H.observers;if(this.subject=null,!B||0===B.length||H.isStopped||H.closed)return;const P=B.indexOf(this.subscriber);-1!==P&&B.splice(P,1)}}var K=V(668);class pe extends A.L{constructor(H){super(H),this.destination=H}}let Ce=(()=>{class k extends h.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[K.b](){return new pe(this)}lift(B){const P=new X(this,this);return P.operator=B,P}next(B){if(this.closed)throw new ue.N;if(!this.isStopped){const{observers:P}=this,F=P.length,Z=P.slice();for(let j=0;jnew X(H,B),k})();class X extends Ce{constructor(H,B){super(),this.destination=H,this.source=B}next(H){const{destination:B}=this;B&&B.next&&B.next(H)}error(H){const{destination:B}=this;B&&B.error&&this.destination.error(H)}complete(){const{destination:H}=this;H&&H.complete&&this.destination.complete()}_subscribe(H){const{source:B}=this;return B?this.source.subscribe(H):de.w.EMPTY}}},489:(He,ce,V)=>{V.d(ce,{L:()=>pe});var h=V(43),A=V(292),de=V(654),ue=V(668),Se=V(735),K=V(782);class pe extends de.w{constructor(k,H,B){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=A.c;break;case 1:if(!k){this.destination=A.c;break}if("object"==typeof k){k instanceof pe?(this.syncErrorThrowable=k.syncErrorThrowable,this.destination=k,k.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ce(this,k));break}default:this.syncErrorThrowable=!0,this.destination=new Ce(this,k,H,B)}}[ue.b](){return this}static create(k,H,B){const P=new pe(k,H,B);return P.syncErrorThrowable=!1,P}next(k){this.isStopped||this._next(k)}error(k){this.isStopped||(this.isStopped=!0,this._error(k))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(k){this.destination.next(k)}_error(k){this.destination.error(k),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:k}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=k,this}}class Ce extends pe{constructor(k,H,B,P){super(),this._parentSubscriber=k;let F,Z=this;(0,h.m)(H)?F=H:H&&(F=H.next,B=H.error,P=H.complete,H!==A.c&&(Z=Object.create(H),(0,h.m)(Z.unsubscribe)&&this.add(Z.unsubscribe.bind(Z)),Z.unsubscribe=this.unsubscribe.bind(this))),this._context=Z,this._next=F,this._error=B,this._complete=P}next(k){if(!this.isStopped&&this._next){const{_parentSubscriber:H}=this;Se.v.useDeprecatedSynchronousErrorHandling&&H.syncErrorThrowable?this.__tryOrSetError(H,this._next,k)&&this.unsubscribe():this.__tryOrUnsub(this._next,k)}}error(k){if(!this.isStopped){const{_parentSubscriber:H}=this,{useDeprecatedSynchronousErrorHandling:B}=Se.v;if(this._error)B&&H.syncErrorThrowable?(this.__tryOrSetError(H,this._error,k),this.unsubscribe()):(this.__tryOrUnsub(this._error,k),this.unsubscribe());else if(H.syncErrorThrowable)B?(H.syncErrorValue=k,H.syncErrorThrown=!0):(0,K.z)(k),this.unsubscribe();else{if(this.unsubscribe(),B)throw k;(0,K.z)(k)}}}complete(){if(!this.isStopped){const{_parentSubscriber:k}=this;if(this._complete){const H=()=>this._complete.call(this._context);Se.v.useDeprecatedSynchronousErrorHandling&&k.syncErrorThrowable?(this.__tryOrSetError(k,H),this.unsubscribe()):(this.__tryOrUnsub(H),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(k,H){try{k.call(this._context,H)}catch(B){if(this.unsubscribe(),Se.v.useDeprecatedSynchronousErrorHandling)throw B;(0,K.z)(B)}}__tryOrSetError(k,H,B){if(!Se.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{H.call(this._context,B)}catch(P){return Se.v.useDeprecatedSynchronousErrorHandling?(k.syncErrorValue=P,k.syncErrorThrown=!0,!0):((0,K.z)(P),!0)}return!1}_unsubscribe(){const{_parentSubscriber:k}=this;this._context=null,this._parentSubscriber=null,k.unsubscribe()}}},654:(He,ce,V)=>{V.d(ce,{w:()=>K});var h=V(688),A=V(830),de=V(43);const Se=(()=>{function Ce(X){return Error.call(this),this.message=X?`${X.length} errors occurred during unsubscription:\n${X.map((k,H)=>`${H+1}) ${k.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=X,this}return Ce.prototype=Object.create(Error.prototype),Ce})();class K{constructor(X){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,X&&(this._ctorUnsubscribe=!0,this._unsubscribe=X)}unsubscribe(){let X;if(this.closed)return;let{_parentOrParents:k,_ctorUnsubscribe:H,_unsubscribe:B,_subscriptions:P}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,k instanceof K)k.remove(this);else if(null!==k)for(let F=0;FX.concat(k instanceof Se?k.errors:k),[])}K.EMPTY=((Ce=new K).closed=!0,Ce)},735:(He,ce,V)=>{V.d(ce,{v:()=>A});let h=!1;const A={Promise:void 0,set useDeprecatedSynchronousErrorHandling(de){if(de){const ue=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+ue.stack)}else h&&console.log("RxJS: Back to a better error behavior. Thank you. <3");h=de},get useDeprecatedSynchronousErrorHandling(){return h}}},177:(He,ce,V)=>{V.d(ce,{Ds:()=>K,IY:()=>ue,ft:()=>Ce});var h=V(489),A=V(916),de=V(249);class ue extends h.L{constructor(k){super(),this.parent=k}_next(k){this.parent.notifyNext(k)}_error(k){this.parent.notifyError(k),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class K extends h.L{notifyNext(k){this.destination.next(k)}notifyError(k){this.destination.error(k)}notifyComplete(){this.destination.complete()}}function Ce(X,k){if(k.closed)return;if(X instanceof A.y)return X.subscribe(k);let H;try{H=(0,de.s)(X)(k)}catch(B){k.error(B)}return H}},762:(He,ce,V)=>{V.d(ce,{N:()=>K,c:()=>Se});var h=V(529),A=V(916),de=V(654),ue=V(327);class Se extends A.y{constructor(H,B){super(),this.source=H,this.subjectFactory=B,this._refCount=0,this._isComplete=!1}_subscribe(H){return this.getSubject().subscribe(H)}getSubject(){const H=this._subject;return(!H||H.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let H=this._connection;return H||(this._isComplete=!1,H=this._connection=new de.w,H.add(this.source.subscribe(new pe(this.getSubject(),this))),H.closed&&(this._connection=null,H=de.w.EMPTY)),H}refCount(){return(0,ue.x)()(this)}}const K=(()=>{const k=Se.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:k._subscribe},_isComplete:{value:k._isComplete,writable:!0},getSubject:{value:k.getSubject},connect:{value:k.connect},refCount:{value:k.refCount}}})();class pe extends h.Yc{constructor(H,B){super(H),this.connectable=B}_error(H){this._unsubscribe(),super._error(H)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const H=this.connectable;if(H){this.connectable=null;const B=H._connection;H._refCount=0,H._subject=null,H._connection=null,B&&B.unsubscribe()}}}},254:(He,ce,V)=>{V.d(ce,{D:()=>Z});var h=V(916),A=V(249),de=V(654),ue=V(821),pe=V(454),Ce=V(430),H=V(955),B=V(515);function Z(j,ne){return ne?function F(j,ne){if(null!=j){if(function k(j){return j&&"function"==typeof j[ue.L]}(j))return function Se(j,ne){return new h.y(_e=>{const re=new de.w;return re.add(ne.schedule(()=>{const q=j[ue.L]();re.add(q.subscribe({next(Ae){re.add(ne.schedule(()=>_e.next(Ae)))},error(Ae){re.add(ne.schedule(()=>_e.error(Ae)))},complete(){re.add(ne.schedule(()=>_e.complete()))}}))})),re})}(j,ne);if((0,H.t)(j))return function K(j,ne){return new h.y(_e=>{const re=new de.w;return re.add(ne.schedule(()=>j.then(q=>{re.add(ne.schedule(()=>{_e.next(q),re.add(ne.schedule(()=>_e.complete()))}))},q=>{re.add(ne.schedule(()=>_e.error(q)))}))),re})}(j,ne);if((0,B.z)(j))return(0,pe.r)(j,ne);if(function P(j){return j&&"function"==typeof j[Ce.hZ]}(j)||"string"==typeof j)return function X(j,ne){if(!j)throw new Error("Iterable cannot be null");return new h.y(_e=>{const re=new de.w;let q;return re.add(()=>{q&&"function"==typeof q.return&&q.return()}),re.add(ne.schedule(()=>{q=j[Ce.hZ](),re.add(ne.schedule(function(){if(_e.closed)return;let Ae,fe;try{const De=q.next();Ae=De.value,fe=De.done}catch(De){return void _e.error(De)}fe?_e.complete():(_e.next(Ae),this.schedule())}))})),re})}(j,ne)}throw new TypeError((null!==j&&typeof j||j)+" is not observable")}(j,ne):j instanceof h.y?j:new h.y((0,A.s)(j))}},9:(He,ce,V)=>{V.d(ce,{n:()=>ue});var h=V(916),A=V(650),de=V(454);function ue(Se,K){return K?(0,de.r)(Se,K):new h.y((0,A.V)(Se))}},850:(He,ce,V)=>{V.d(ce,{U:()=>A});var h=V(489);function A(Se,K){return function(Ce){if("function"!=typeof Se)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return Ce.lift(new de(Se,K))}}class de{constructor(K,pe){this.project=K,this.thisArg=pe}call(K,pe){return pe.subscribe(new ue(K,this.project,this.thisArg))}}class ue extends h.L{constructor(K,pe,Ce){super(K),this.project=pe,this.count=0,this.thisArg=Ce||this}_next(K){let pe;try{pe=this.project.call(this.thisArg,K,this.count++)}catch(Ce){return void this.destination.error(Ce)}this.destination.next(pe)}}},146:(He,ce,V)=>{V.d(ce,{J:()=>de});var h=V(709),A=V(379);function de(ue=Number.POSITIVE_INFINITY){return(0,h.zg)(A.y,ue)}},709:(He,ce,V)=>{V.d(ce,{zg:()=>ue});var h=V(850),A=V(254),de=V(177);function ue(Ce,X,k=Number.POSITIVE_INFINITY){return"function"==typeof X?H=>H.pipe(ue((B,P)=>(0,A.D)(Ce(B,P)).pipe((0,h.U)((F,Z)=>X(B,F,P,Z))),k)):("number"==typeof X&&(k=X),H=>H.lift(new Se(Ce,k)))}class Se{constructor(X,k=Number.POSITIVE_INFINITY){this.project=X,this.concurrent=k}call(X,k){return k.subscribe(new K(X,this.project,this.concurrent))}}class K extends de.Ds{constructor(X,k,H=Number.POSITIVE_INFINITY){super(X),this.project=k,this.concurrent=H,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(X){this.active0?this._next(X.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},327:(He,ce,V)=>{V.d(ce,{x:()=>A});var h=V(489);function A(){return function(K){return K.lift(new de(K))}}class de{constructor(K){this.connectable=K}call(K,pe){const{connectable:Ce}=this;Ce._refCount++;const X=new ue(K,Ce),k=pe.subscribe(X);return X.closed||(X.connection=Ce.connect()),k}}class ue extends h.L{constructor(K,pe){super(K),this.connectable=pe}_unsubscribe(){const{connectable:K}=this;if(!K)return void(this.connection=null);this.connectable=null;const pe=K._refCount;if(pe<=0)return void(this.connection=null);if(K._refCount=pe-1,pe>1)return void(this.connection=null);const{connection:Ce}=this,X=K._connection;this.connection=null,X&&(!Ce||X===Ce)&&X.unsubscribe()}}},454:(He,ce,V)=>{V.d(ce,{r:()=>de});var h=V(916),A=V(654);function de(ue,Se){return new h.y(K=>{const pe=new A.w;let Ce=0;return pe.add(Se.schedule(function(){Ce!==ue.length?(K.next(ue[Ce++]),K.closed||pe.add(this.schedule())):K.complete()})),pe})}},430:(He,ce,V)=>{V.d(ce,{hZ:()=>A});const A=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},821:(He,ce,V)=>{V.d(ce,{L:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},668:(He,ce,V)=>{V.d(ce,{b:()=>h});const h="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},279:(He,ce,V)=>{V.d(ce,{N:()=>A});const A=(()=>{function de(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return de.prototype=Object.create(Error.prototype),de})()},782:(He,ce,V)=>{function h(A){setTimeout(()=>{throw A},0)}V.d(ce,{z:()=>h})},379:(He,ce,V)=>{function h(A){return A}V.d(ce,{y:()=>h})},688:(He,ce,V)=>{V.d(ce,{k:()=>h});const h=Array.isArray||(A=>A&&"number"==typeof A.length)},515:(He,ce,V)=>{V.d(ce,{z:()=>h});const h=A=>A&&"number"==typeof A.length&&"function"!=typeof A},43:(He,ce,V)=>{function h(A){return"function"==typeof A}V.d(ce,{m:()=>h})},830:(He,ce,V)=>{function h(A){return null!==A&&"object"==typeof A}V.d(ce,{K:()=>h})},955:(He,ce,V)=>{function h(A){return!!A&&"function"!=typeof A.subscribe&&"function"==typeof A.then}V.d(ce,{t:()=>h})},866:(He,ce,V)=>{function h(A){return A&&"function"==typeof A.schedule}V.d(ce,{K:()=>h})},249:(He,ce,V)=>{V.d(ce,{s:()=>H});var h=V(650),A=V(782),ue=V(430),K=V(821),Ce=V(515),X=V(955),k=V(830);const H=B=>{if(B&&"function"==typeof B[K.L])return(B=>P=>{const F=B[K.L]();if("function"!=typeof F.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return F.subscribe(P)})(B);if((0,Ce.z)(B))return(0,h.V)(B);if((0,X.t)(B))return(B=>P=>(B.then(F=>{P.closed||(P.next(F),P.complete())},F=>P.error(F)).then(null,A.z),P))(B);if(B&&"function"==typeof B[ue.hZ])return(B=>P=>{const F=B[ue.hZ]();for(;;){let Z;try{Z=F.next()}catch(j){return P.error(j),P}if(Z.done){P.complete();break}if(P.next(Z.value),P.closed)break}return"function"==typeof F.return&&P.add(()=>{F.return&&F.return()}),P})(B);{const F=`You provided ${(0,k.K)(B)?"an invalid object":`'${B}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(F)}}},650:(He,ce,V)=>{V.d(ce,{V:()=>h});const h=A=>de=>{for(let ue=0,Se=A.length;ue{V.d(ce,{Do:()=>Ae,EM:()=>nr,H9:()=>Bn,HT:()=>Se,JF:()=>Nr,K0:()=>pe,Mx:()=>Rt,O5:()=>se,S$:()=>ne,V_:()=>k,Ye:()=>fe,b0:()=>q,bD:()=>ki,ez:()=>mi,lw:()=>Ce,mr:()=>re,q:()=>de,qS:()=>it,sg:()=>lt,w_:()=>K});var h=V(96);let A=null;function de(){return A}function Se(m){A||(A=m)}class K{}const pe=new h.OlP("DocumentToken");let Ce=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=h.Yz7({token:m,factory:function(){return function X(){return(0,h.LFG)(H)}()},providedIn:"platform"}),m})();const k=new h.OlP("Location Initialized");let H=(()=>{class m extends Ce{constructor(v){super(),this._doc=v,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return de().getBaseHref(this._doc)}onPopState(v){const M=de().getGlobalEventTarget(this._doc,"window");return M.addEventListener("popstate",v,!1),()=>M.removeEventListener("popstate",v)}onHashChange(v){const M=de().getGlobalEventTarget(this._doc,"window");return M.addEventListener("hashchange",v,!1),()=>M.removeEventListener("hashchange",v)}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(v){this.location.pathname=v}pushState(v,M,x){B()?this._history.pushState(v,M,x):this.location.hash=x}replaceState(v,M,x){B()?this._history.replaceState(v,M,x):this.location.hash=x}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(pe))},m.\u0275prov=h.Yz7({token:m,factory:function(){return function P(){return new H((0,h.LFG)(pe))}()},providedIn:"platform"}),m})();function B(){return!!window.history.pushState}function F(m,b){if(0==m.length)return b;if(0==b.length)return m;let v=0;return m.endsWith("/")&&v++,b.startsWith("/")&&v++,2==v?m+b.substring(1):1==v?m+b:m+"/"+b}function Z(m){const b=m.match(/#|\?|$/),v=b&&b.index||m.length;return m.slice(0,v-("/"===m[v-1]?1:0))+m.slice(v)}function j(m){return m&&"?"!==m[0]?"?"+m:m}let ne=(()=>{class m{historyGo(v){throw new Error("Not implemented")}}return m.\u0275fac=function(v){return new(v||m)},m.\u0275prov=h.Yz7({token:m,factory:function(){return function _e(m){const b=(0,h.LFG)(pe).location;return new q((0,h.LFG)(Ce),b&&b.origin||"")}()},providedIn:"root"}),m})();const re=new h.OlP("appBaseHref");let q=(()=>{class m extends ne{constructor(v,M){if(super(),this._platformLocation=v,this._removeListenerFns=[],null==M&&(M=this._platformLocation.getBaseHrefFromDOM()),null==M)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=M}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return F(this._baseHref,v)}path(v=!1){const M=this._platformLocation.pathname+j(this._platformLocation.search),x=this._platformLocation.hash;return x&&v?`${M}${x}`:M}pushState(v,M,x,z){const ee=this.prepareExternalUrl(x+j(z));this._platformLocation.pushState(v,M,ee)}replaceState(v,M,x,z){const ee=this.prepareExternalUrl(x+j(z));this._platformLocation.replaceState(v,M,ee)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var M,x;null===(x=(M=this._platformLocation).historyGo)||void 0===x||x.call(M,v)}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(Ce),h.LFG(re,8))},m.\u0275prov=h.Yz7({token:m,factory:m.\u0275fac}),m})(),Ae=(()=>{class m extends ne{constructor(v,M){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=M&&(this._baseHref=M)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){let M=this._platformLocation.hash;return null==M&&(M="#"),M.length>0?M.substring(1):M}prepareExternalUrl(v){const M=F(this._baseHref,v);return M.length>0?"#"+M:M}pushState(v,M,x,z){let ee=this.prepareExternalUrl(x+j(z));0==ee.length&&(ee=this._platformLocation.pathname),this._platformLocation.pushState(v,M,ee)}replaceState(v,M,x,z){let ee=this.prepareExternalUrl(x+j(z));0==ee.length&&(ee=this._platformLocation.pathname),this._platformLocation.replaceState(v,M,ee)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(v=0){var M,x;null===(x=(M=this._platformLocation).historyGo)||void 0===x||x.call(M,v)}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(Ce),h.LFG(re,8))},m.\u0275prov=h.Yz7({token:m,factory:m.\u0275fac}),m})(),fe=(()=>{class m{constructor(v,M){this._subject=new h.vpe,this._urlChangeListeners=[],this._platformStrategy=v;const x=this._platformStrategy.getBaseHref();this._platformLocation=M,this._baseHref=Z(ye(x)),this._platformStrategy.onPopState(z=>{this._subject.emit({url:this.path(!0),pop:!0,state:z.state,type:z.type})})}path(v=!1){return this.normalize(this._platformStrategy.path(v))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(v,M=""){return this.path()==this.normalize(v+j(M))}normalize(v){return m.stripTrailingSlash(function Lt(m,b){return m&&b.startsWith(m)?b.substring(m.length):b}(this._baseHref,ye(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._platformStrategy.prepareExternalUrl(v)}go(v,M="",x=null){this._platformStrategy.pushState(x,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+j(M)),x)}replaceState(v,M="",x=null){this._platformStrategy.replaceState(x,"",v,M),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+j(M)),x)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(v=0){var M,x;null===(x=(M=this._platformStrategy).historyGo)||void 0===x||x.call(M,v)}onUrlChange(v){this._urlChangeListeners.push(v),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(M=>{this._notifyUrlChangeListeners(M.url,M.state)}))}_notifyUrlChangeListeners(v="",M){this._urlChangeListeners.forEach(x=>x(v,M))}subscribe(v,M,x){return this._subject.subscribe({next:v,error:M,complete:x})}}return m.normalizeQueryParams=j,m.joinWithSlash=F,m.stripTrailingSlash=Z,m.\u0275fac=function(v){return new(v||m)(h.LFG(ne),h.LFG(Ce))},m.\u0275prov=h.Yz7({token:m,factory:function(){return function De(){return new fe((0,h.LFG)(ne),(0,h.LFG)(Ce))}()},providedIn:"root"}),m})();function ye(m){return m.replace(/\/index.html$/,"")}const Ue={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var st=(()=>((st=st||{})[st.Decimal=0]="Decimal",st[st.Percent=1]="Percent",st[st.Currency=2]="Currency",st[st.Scientific=3]="Scientific",st))(),Ye=(()=>((Ye=Ye||{})[Ye.Zero=0]="Zero",Ye[Ye.One=1]="One",Ye[Ye.Two=2]="Two",Ye[Ye.Few=3]="Few",Ye[Ye.Many=4]="Many",Ye[Ye.Other=5]="Other",Ye))(),ve=(()=>((ve=ve||{})[ve.Decimal=0]="Decimal",ve[ve.Group=1]="Group",ve[ve.List=2]="List",ve[ve.PercentSign=3]="PercentSign",ve[ve.PlusSign=4]="PlusSign",ve[ve.MinusSign=5]="MinusSign",ve[ve.Exponential=6]="Exponential",ve[ve.SuperscriptingExponent=7]="SuperscriptingExponent",ve[ve.PerMille=8]="PerMille",ve[ve.Infinity=9]="Infinity",ve[ve.NaN=10]="NaN",ve[ve.TimeSeparator=11]="TimeSeparator",ve[ve.CurrencyDecimal=12]="CurrencyDecimal",ve[ve.CurrencyGroup=13]="CurrencyGroup",ve))();function et(m,b){const v=(0,h.cg1)(m),M=v[h.wAp.NumberSymbols][b];if(void 0===M){if(b===ve.CurrencyDecimal)return v[h.wAp.NumberSymbols][ve.Decimal];if(b===ve.CurrencyGroup)return v[h.wAp.NumberSymbols][ve.Group]}return M}const Zr=h.kL8;const J=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Kt(m,b,v,M,x){const ee=function un(m,b="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},M=m.split(";"),x=M[0],z=M[1],ee=-1!==x.indexOf(".")?x.split("."):[x.substring(0,x.lastIndexOf("0")+1),x.substring(x.lastIndexOf("0")+1)],oe=ee[0],ot=ee[1]||"";v.posPre=oe.substr(0,oe.indexOf("#"));for(let Xe=0;Xe-1&&(b=b.replace(".","")),(z=b.search(/e/i))>0?(x<0&&(x=z),x+=+b.slice(z+1),b=b.substring(0,z)):x<0&&(x=b.length),z=0;"0"===b.charAt(z);z++);if(z===(oe=b.length))M=[0],x=1;else{for(oe--;"0"===b.charAt(oe);)oe--;for(x-=z,M=[],ee=0;z<=oe;z++,ee++)M[ee]=Number(b.charAt(z))}return x>22&&(M=M.splice(0,21),v=x-1,x=1),{digits:M,exponent:v,integerLen:x}}(m);ee&&(ct=function Zn(m){if(0===m.digits[0])return m;const b=m.digits.length-m.integerLen;return m.exponent?m.exponent+=2:(0===b?m.digits.push(0,0):1===b&&m.digits.push(0),m.integerLen+=2),m}(ct));let Xe=b.minInt,Ve=b.minFrac,Ct=b.maxFrac;if(z){const f=z.match(J);if(null===f)throw new Error(`${z} is not a valid digit info`);const E=f[1],G=f[3],ge=f[5];null!=E&&(Xe=xt(E)),null!=G&&(Ve=xt(G)),null!=ge?Ct=xt(ge):null!=G&&Ve>Ct&&(Ct=Ve)}!function Ge(m,b,v){if(b>v)throw new Error(`The minimum number of digits after fraction (${b}) is higher than the maximum (${v}).`);let M=m.digits,x=M.length-m.integerLen;const z=Math.min(Math.max(b,x),v);let ee=z+m.integerLen,oe=M[ee];if(ee>0){M.splice(Math.max(m.integerLen,ee));for(let Ve=ee;Ve=5)if(ee-1<0){for(let Ve=0;Ve>ee;Ve--)M.unshift(0),m.integerLen++;M.unshift(1),m.integerLen++}else M[ee-1]++;for(;x=ct?rt.pop():ot=!1),Ct>=10?1:0},0);Xe&&(M.unshift(Xe),m.integerLen++)}(ct,Ve,Ct);let nt=ct.digits,rt=ct.integerLen;const wt=ct.exponent;let y=[];for(ot=nt.every(f=>!f);rt0?y=nt.splice(rt,nt.length):(y=nt,nt=[0]);const g=[];for(nt.length>=b.lgSize&&g.unshift(nt.splice(-b.lgSize,nt.length).join(""));nt.length>b.gSize;)g.unshift(nt.splice(-b.gSize,nt.length).join(""));nt.length&&g.unshift(nt.join("")),oe=g.join(et(v,M)),y.length&&(oe+=et(v,x)+y.join("")),wt&&(oe+=et(v,ve.Exponential)+"+"+wt)}else oe=et(v,ve.Infinity);return oe=m<0&&!ot?b.negPre+oe+b.negSuf:b.posPre+oe+b.posSuf,oe}(m,ee,b,ve.CurrencyGroup,ve.CurrencyDecimal,x).replace("\xa4",v).replace("\xa4","").trim()}function xt(m){const b=parseInt(m);if(isNaN(b))throw new Error("Invalid integer literal when parsing "+m);return b}class Et{}let Be=(()=>{class m extends Et{constructor(v){super(),this.locale=v}getPluralCategory(v,M){switch(Zr(M||this.locale)(v)){case Ye.Zero:return"zero";case Ye.One:return"one";case Ye.Two:return"two";case Ye.Few:return"few";case Ye.Many:return"many";default:return"other"}}}return m.\u0275fac=function(v){return new(v||m)(h.LFG(h.soG))},m.\u0275prov=h.Yz7({token:m,factory:m.\u0275fac}),m})();function it(m,b,v){return(0,h.dwT)(m,b,v)}function Rt(m,b){b=encodeURIComponent(b);for(const v of m.split(";")){const M=v.indexOf("="),[x,z]=-1==M?[v,""]:[v.slice(0,M),v.slice(M+1)];if(x.trim()===b)return decodeURIComponent(z)}return null}class _n{constructor(b,v,M,x){this.$implicit=b,this.ngForOf=v,this.index=M,this.count=x}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 lt=(()=>{class m{constructor(v,M,x){this._viewContainer=v,this._template=M,this._differs=x,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const M=this._viewContainer;v.forEachOperation((x,z,ee)=>{if(null==x.previousIndex)M.createEmbeddedView(this._template,new _n(x.item,this._ngForOf,-1,-1),null===ee?void 0:ee);else if(null==ee)M.remove(null===z?void 0:z);else if(null!==z){const oe=M.get(z);M.move(oe,ee),$t(oe,x)}});for(let x=0,z=M.length;x{$t(M.get(x.currentIndex),x)})}static ngTemplateContextGuard(v,M){return!0}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc),h.Y36(h.ZZ4))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),m})();function $t(m,b){m.context.$implicit=b.item}let se=(()=>{class m{constructor(v,M){this._viewContainer=v,this._context=new Vn,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=M}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){Kn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){Kn("ngIfElse",v),this._elseTemplateRef=v,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(v,M){return!0}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.s_b),h.Y36(h.Rgc))},m.\u0275dir=h.lG2({type:m,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),m})();class Vn{constructor(){this.$implicit=null,this.ngIf=null}}function Kn(m,b){if(b&&!b.createEmbeddedView)throw new Error(`${m} must be a TemplateRef, but received '${(0,h.AaK)(b)}'.`)}let Bn=(()=>{class m{constructor(v,M="USD"){this._locale=v,this._defaultCurrencyCode=M}transform(v,M=this._defaultCurrencyCode,x="symbol",z,ee){if(!function Xn(m){return!(null==m||""===m||m!=m)}(v))return null;ee=ee||this._locale,"boolean"==typeof x&&(x=x?"symbol":"code");let oe=M||this._defaultCurrencyCode;"code"!==x&&(oe="symbol"===x||"symbol-narrow"===x?function Nn(m,b,v="en"){const M=function _t(m){return(0,h.cg1)(m)[h.wAp.Currencies]}(v)[m]||Ue[m]||[],x=M[1];return"narrow"===b&&"string"==typeof x?x:M[0]||m}(oe,"symbol"===x?"wide":"narrow",ee):x);try{return Kt(function hr(m){if("string"==typeof m&&!isNaN(Number(m)-parseFloat(m)))return Number(m);if("number"!=typeof m)throw new Error(`${m} is not a number`);return m}(v),ee,oe,M,z)}catch(ot){throw function ut(m,b){return new h.vHH(2100,"")}()}}}return m.\u0275fac=function(v){return new(v||m)(h.Y36(h.soG,16),h.Y36(h.EJc,16))},m.\u0275pipe=h.Yjl({name:"currency",type:m,pure:!0}),m})();let mi=(()=>{class m{}return m.\u0275fac=function(v){return new(v||m)},m.\u0275mod=h.oAB({type:m}),m.\u0275inj=h.cJS({providers:[{provide:Et,useClass:Be}]}),m})();const ki="browser";let nr=(()=>{class m{}return m.\u0275prov=(0,h.Yz7)({token:m,providedIn:"root",factory:()=>new pr((0,h.LFG)(pe),window)}),m})();class pr{constructor(b,v){this.document=b,this.window=v,this.offset=()=>[0,0]}setOffset(b){this.offset=Array.isArray(b)?()=>b:b}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(b){this.supportsScrolling()&&this.window.scrollTo(b[0],b[1])}scrollToAnchor(b){if(!this.supportsScrolling())return;const v=function Nt(m,b){const v=m.getElementById(b)||m.getElementsByName(b)[0];if(v)return v;if("function"==typeof m.createTreeWalker&&m.body&&(m.body.createShadowRoot||m.body.attachShadow)){const M=m.createTreeWalker(m.body,NodeFilter.SHOW_ELEMENT);let x=M.currentNode;for(;x;){const z=x.shadowRoot;if(z){const ee=z.getElementById(b)||z.querySelector(`[name="${b}"]`);if(ee)return ee}x=M.nextNode()}}return null}(this.document,b);v&&(this.scrollToElement(v),this.attemptFocus(v))}setHistoryScrollRestoration(b){if(this.supportScrollRestoration()){const v=this.window.history;v&&v.scrollRestoration&&(v.scrollRestoration=b)}}scrollToElement(b){const v=b.getBoundingClientRect(),M=v.left+this.window.pageXOffset,x=v.top+this.window.pageYOffset,z=this.offset();this.window.scrollTo(M-z[0],x-z[1])}attemptFocus(b){return b.focus(),this.document.activeElement===b}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const b=ei(this.window.history)||ei(Object.getPrototypeOf(this.window.history));return!(!b||!b.writable&&!b.set)}catch(b){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(b){return!1}}}function ei(m){return Object.getOwnPropertyDescriptor(m,"scrollRestoration")}class Nr{}},96:(He,ce,V)=>{V.d(ce,{deG:()=>a,tb:()=>ag,AFp:()=>ig,ip1:()=>Yu,CZH:()=>Ys,hGG:()=>QE,z2F:()=>jo,sBO:()=>SE,Sil:()=>Ku,_Vd:()=>No,EJc:()=>ug,SBq:()=>Fo,qLn:()=>_o,vpe:()=>qr,tBr:()=>ho,XFs:()=>Re,OlP:()=>u,zs3:()=>ir,ZZ4:()=>ja,aQg:()=>Ua,soG:()=>ka,YKP:()=>vp,h0i:()=>zs,PXZ:()=>DE,R0b:()=>$n,FiY:()=>Zi,Lbi:()=>og,g9A:()=>sg,Qsj:()=>tC,FYo:()=>pp,JOm:()=>Ur,tp0:()=>Ds,Rgc:()=>ko,dDg:()=>fg,GfV:()=>gp,s_b:()=>Fa,ifc:()=>tn,eFA:()=>gg,G48:()=>AE,Gpc:()=>re,_c5:()=>GE,VLi:()=>yE,c2e:()=>lg,zSh:()=>tu,wAp:()=>Pe,vHH:()=>De,cg1:()=>Mu,kL8:()=>kh,dqk:()=>Le,sIi:()=>Mo,CqO:()=>zf,QGY:()=>vu,F4k:()=>Gf,dwT:()=>K_,RDi:()=>b,AaK:()=>j,qOj:()=>ou,TTD:()=>xr,_Bn:()=>dp,xp6:()=>Ed,uIk:()=>uu,ekj:()=>Eu,Suo:()=>Lp,Xpm:()=>N,lG2:()=>Zt,Yz7:()=>_t,cJS:()=>ft,oAB:()=>ke,Yjl:()=>vn,Y36:()=>So,_UZ:()=>Uf,qZA:()=>yu,TgZ:()=>mu,n5z:()=>ra,LFG:()=>on,$8M:()=>ao,$Z:()=>jf,NdJ:()=>_u,CRH:()=>kp,oxw:()=>Zf,ALo:()=>Ip,xi3:()=>Tp,Q6J:()=>pu,s9C:()=>Cu,MGl:()=>wa,WLB:()=>Ep,iGM:()=>Pp,LSH:()=>ml,kYT:()=>Ee,YNc:()=>Tf,_uU:()=>vh,Oqu:()=>wu,hij:()=>Aa,Gf:()=>Vp});var h=V(529),A=V(654),de=V(916),ue=V(866),Se=V(146),K=V(9),Ce=V(762);class k{constructor(t,n){this.subjectFactory=t,this.selector=n}call(t,n){const{selector:r}=this,i=this.subjectFactory(),s=r(i).subscribe(t);return s.add(n.subscribe(i)),s}}var H=V(327);function B(){return new h.xQ}function F(e){for(let t in e)if(e[t]===F)return t;throw Error("Could not find renamed property on target object.")}function Z(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function j(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(j).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ne(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const _e=F({__forward_ref__:F});function re(e){return e.__forward_ref__=re,e.toString=function(){return j(this())},e}function q(e){return Ae(e)?e():e}function Ae(e){return"function"==typeof e&&e.hasOwnProperty(_e)&&e.__forward_ref__===re}class De extends Error{constructor(t,n){super(function Lt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function ye(e){return"string"==typeof e?e:null==e?"":String(e)}function Ue(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ye(e)}function Fe(e,t){const n=t?` in ${t}`:"";throw new De(-201,`No provider for ${Ue(e)} found${n}`)}function et(e,t){null==e&&function $e(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function _t(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ft(e){return{providers:e.providers||[],imports:e.imports||[]}}function It(e){return vt(e,Nn)||vt(e,ar)}function vt(e,t){return e.hasOwnProperty(t)?e[t]:null}function On(e){return e&&(e.hasOwnProperty(qn)||e.hasOwnProperty(Wn))?e[qn]:null}const Nn=F({\u0275prov:F}),qn=F({\u0275inj:F}),ar=F({ngInjectableDef:F}),Wn=F({ngInjectorDef:F});var Re=(()=>((Re=Re||{})[Re.Default=0]="Default",Re[Re.Host=1]="Host",Re[Re.Self=2]="Self",Re[Re.SkipSelf=4]="SkipSelf",Re[Re.Optional=8]="Optional",Re))();let Ft;function Me(e){const t=Ft;return Ft=e,t}function Te(e,t,n){const r=It(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Re.Optional?null:void 0!==t?t:void Fe(j(e),"Injector")}function en(e){return{toString:e}.toString()}var Ze=(()=>((Ze=Ze||{})[Ze.OnPush=0]="OnPush",Ze[Ze.Default=1]="Default",Ze))(),tn=(()=>{return(e=tn||(tn={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",tn;var e})();const pt="undefined"!=typeof globalThis&&globalThis,pi="undefined"!=typeof window&&window,tt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Le=pt||"undefined"!=typeof global&&global||pi||tt,nn={},qe=[],ln=F({\u0275cmp:F}),Fn=F({\u0275dir:F}),Yn=F({\u0275pipe:F}),Mr=F({\u0275mod:F}),Yt=F({\u0275fac:F}),Pn=F({__NG_ELEMENT_ID__:F});let U=0;function N(e){return en(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ze.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||qe,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||tn.Emulated,id:"c",styles:e.styles||qe,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,l=e.pipes;return r.id+=U++,r.inputs=jt(e.inputs,n),r.outputs=jt(e.outputs),s&&s.forEach(c=>c(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map($):null,r.pipeDefs=l?()=>("function"==typeof l?l():l).map(J):null,r})}function $(e){return gt(e)||function Ut(e){return e[Fn]||null}(e)}function J(e){return function Ht(e){return e[Yn]||null}(e)}const xe={};function ke(e){return en(()=>{const t={type:e.type,bootstrap:e.bootstrap||qe,declarations:e.declarations||qe,imports:e.imports||qe,exports:e.exports||qe,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(xe[e.id]=e.type),t})}function Ee(e,t){return en(()=>{const n=Kt(e,!0);n.declarations=t.declarations||qe,n.imports=t.imports||qe,n.exports=t.exports||qe})}function jt(e,t){if(null==e)return nn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}const Zt=N;function vn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function gt(e){return e[ln]||null}function Kt(e,t){const n=e[Mr]||null;if(!n&&!0===t)throw new Error(`Type ${j(e)} does not have '\u0275mod' property.`);return n}function fn(e){return Array.isArray(e)&&"object"==typeof e[1]}function ut(e){return Array.isArray(e)&&!0===e[1]}function cr(e){return 0!=(8&e.flags)}function Qn(e){return 2==(2&e.flags)}function dr(e){return 1==(1&e.flags)}function Qt(e){return null!==e.template}function Ri(e){return 0!=(512&e[2])}function rn(e,t){return e.hasOwnProperty(Yt)?e[Yt]:null}class Tr{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function xr(){return tr}function tr(e){return e.type.prototype.ngOnChanges&&(e.setInput=rs),Rr}function Rr(){const e=Or(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===nn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function rs(e,t,n,r){const i=Or(e)||function nr(e,t){return e[yi]=t}(e,{previous:nn,current:null}),s=i.current||(i.current={}),l=i.previous,c=this.declaredInputs[n],d=l[c];s[c]=new Tr(d&&d.currentValue,t,l===nn),e[r]=t}xr.ngInherit=!0;const yi="__ngSimpleChanges__";function Or(e){return e[yi]||null}let m;function b(e){m=e}function x(e){return!!e.listen}const z={createRenderer:(e,t)=>function v(){return void 0!==m?m:"undefined"!=typeof document?document:void 0}()};function oe(e){for(;Array.isArray(e);)e=e[0];return e}function Xe(e,t){return oe(t[e])}function Ve(e,t){return oe(t[e.index])}function nt(e,t){return e.data[t]}function wt(e,t){const n=t[e];return fn(n)?n:n[0]}function y(e){return 4==(4&e[2])}function g(e){return 128==(128&e[2])}function E(e,t){return null==t?null:e[t]}function G(e){e[18]=0}function ge(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const he={lFrame:Go(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Bi(){return he.bindingsEnabled}function te(){return he.lFrame.lView}function We(){return he.lFrame.tView}function Mt(){let e=Zs();for(;null!==e&&64===e.type;)e=e.parent;return e}function Zs(){return he.lFrame.currentTNode}function Cn(e,t){const n=he.lFrame;n.currentTNode=e,n.isParent=t}function Ks(){return he.lFrame.isParent}function ti(){return he.isInCheckNoChangesMode}function ji(e){he.isInCheckNoChangesMode=e}function Xt(){const e=he.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function gr(){return he.lFrame.bindingIndex++}function za(e,t){const n=he.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xs(t)}function Xs(e){he.lFrame.currentDirectiveIndex=e}function Ho(){return he.lFrame.currentQueryIndex}function ss(e){he.lFrame.currentQueryIndex=e}function os(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function $o(e,t,n){if(n&Re.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Re.Host||(i=os(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,e=s}const r=he.lFrame=Hi();return r.currentTNode=t,r.lView=e,!0}function as(e){const t=Hi(),n=e[1];he.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Hi(){const e=he.lFrame,t=null===e?null:e.child;return null===t?Go(e):t}function Go(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function _i(){const e=he.lFrame;return he.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zo=_i;function ls(){const e=_i();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function sn(){return he.lFrame.selectedIndex}function Vr(e){he.lFrame.selectedIndex=e}function Dt(){const e=he.lFrame;return nt(e.tView,e.selectedIndex)}function us(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[d]<0&&(e[18]+=65536),(c>11>16&&(3&e[2])===t){e[2]+=2048;try{s.call(c)}finally{}}}else try{s.call(c)}finally{}}class Di{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Ei(e,t,n){const r=x(e);let i=0;for(;it){l=s-1;break}}}for(;s>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let io=!0;function Gi(e){const t=io;return io=e,t}let nl=0;function ri(e,t){const n=Lr(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,zi(r.data,e),zi(t,null),zi(r.blueprint,null));const i=gs(e,t),s=e.injectorIndex;if(ro(i)){const l=bi(i),c=wi(i,t),d=c[1].data;for(let D=0;D<8;D++)t[s+D]=c[l+D]|d[l+D]}return t[s+8]=i,s}function zi(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Lr(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function gs(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){const s=i[1],l=s.type;if(r=2===l?s.declTNode:1===l?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ms(e,t,n){!function ps(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Pn)&&(r=n[Pn]),null==r&&(r=n[Pn]=nl++);const i=255&r;t.data[e+(i>>5)]|=1<=0?255&t:_c:t}(n);if("function"==typeof s){if(!$o(t,e,r))return r&Re.Host?ea(i,n,r):so(t,n,r,i);try{const l=s(r);if(null!=l||r&Re.Optional)return l;Fe(n)}finally{zo()}}else if("number"==typeof s){let l=null,c=Lr(e,t),d=-1,D=r&Re.Host?t[16][6]:null;for((-1===c||r&Re.SkipSelf)&&(d=-1===c?gs(e,t):t[c+8],-1!==d&&na(r,!1)?(l=t[1],c=bi(d),t=wi(d,t)):c=-1);-1!==c;){const C=t[1];if(ta(s,c,C.data)){const S=ii(c,t,n,l,r,D);if(S!==ys)return S}d=t[c+8],-1!==d&&na(r,t[1].data[c+8]===D)&&ta(s,c,t)?(l=C,c=bi(d),t=wi(d,t)):c=-1}}}return so(t,n,r,i)}const ys={};function _c(){return new Mi(Mt(),te())}function ii(e,t,n,r,i,s){const l=t[1],c=l.data[e+8],C=qi(c,l,n,null==r?Qn(c)&&io:r!=l&&0!=(3&c.type),i&Re.Host&&s===c);return null!==C?Wi(t,l,C,c):ys}function qi(e,t,n,r,i){const s=e.providerIndexes,l=t.data,c=1048575&s,d=e.directiveStart,C=s>>20,R=i?c+C:e.directiveEnd;for(let L=r?c:c+C;L=d&&Y.type===n)return L}if(i){const L=l[d];if(L&&Qt(L)&&L.type===n)return d}return null}function Wi(e,t,n,r){let i=e[n];const s=t.data;if(function Zo(e){return e instanceof Di}(i)){const l=i;l.resolving&&function st(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new De(-200,`Circular dependency in DI detected for ${e}${n}`)}(Ue(s[n]));const c=Gi(l.canSeeViewProviders);l.resolving=!0;const d=l.injectImpl?Me(l.injectImpl):null;$o(e,r,Re.Default);try{i=e[n]=l.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function qo(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const l=tr(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{null!==d&&Me(d),Gi(c),l.resolving=!1,zo()}}return i}function ta(e,t,n){return!!(n[t+(e>>5)]&1<{const t=e.prototype.constructor,n=t[Yt]||vs(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Yt]||vs(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function vs(e){return Ae(e)?()=>{const t=vs(q(e));return t&&t()}:rn(e)}function ao(e){return function Xo(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let i=0;for(;i{const r=function lo(e){return function(...n){if(e){const r=e(...n);for(const i in r)this[i]=r[i]}}}(t);function i(...s){if(this instanceof i)return r.apply(this,s),this;const l=new i(...s);return c.annotation=l,c;function c(d,D,C){const S=d.hasOwnProperty(Si)?d[Si]:Object.defineProperty(d,Si,{value:[]})[Si];for(;S.length<=C;)S.push(null);return(S[C]=S[C]||[]).push(l),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class u{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=_t({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const a=new u("AnalyzeForEntryComponents");function At(e,t){void 0===t&&(t=e);for(let n=0;nArray.isArray(n)?Pt(n,t):t(n))}function mr(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function oi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Un(e,t,n){let r=_s(e,t);return r>=0?e[1|r]=n:(r=~r,function Ng(e,t,n,r){let i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function sl(e,t){const n=_s(e,t);if(n>=0)return e[1|n]}function _s(e,t){return function bc(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),l=e[s<t?i=s:r=s+1}return~(i<({token:e})),-1),Zi=fo(si("Optional"),8),Ds=fo(si("SkipSelf"),4);class Pc{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Ii(e){return e instanceof Pc?e.changingThisBreaksApplicationSecurity:e}const fm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,hm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var Vt=(()=>((Vt=Vt||{})[Vt.NONE=0]="NONE",Vt[Vt.HTML=1]="HTML",Vt[Vt.STYLE=2]="STYLE",Vt[Vt.SCRIPT=3]="SCRIPT",Vt[Vt.URL=4]="URL",Vt[Vt.RESOURCE_URL=5]="RESOURCE_URL",Vt))();function ml(e){const t=function yo(){const e=te();return e&&e[12]}();return t?t.sanitize(Vt.URL,e)||"":function go(e,t){const n=function lm(e){return e instanceof Pc&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===t}(e,"URL")?Ii(e):function ca(e){return(e=String(e)).match(fm)||e.match(hm)?e:"unsafe:"+e}(ye(e))}const zc="__ngContext__";function pn(e,t){e[zc]=t}function vl(e){const t=function vo(e){return e[zc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Dl(e){return e.ngOriginalError}function Vm(e,...t){e.error(...t)}class _o{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function Pm(e){return e&&e.ngErrorLogger||Vm}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Dl(t);for(;n&&Dl(n);)n=Dl(n);return n||null}}const Kc=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Le))();function jr(e){return e instanceof Function?e():e}var Ur=(()=>((Ur=Ur||{})[Ur.Important=1]="Important",Ur[Ur.DashCase=2]="DashCase",Ur))();function El(e,t){return undefined(e,t)}function Do(e){const t=e[3];return ut(t)?t[3]:t}function bl(e){return td(e[13])}function wl(e){return td(e[4])}function td(e){for(;null!==e&&!ut(e);)e=e[4];return e}function ws(e,t,n,r,i){if(null!=r){let s,l=!1;ut(r)?s=r:fn(r)&&(l=!0,r=r[0]);const c=oe(r);0===e&&null!==n?null==i?ad(t,n,c):Ki(t,n,c,i||null,!0):1===e&&null!==n?Ki(t,n,c,i||null,!0):2===e?function pd(e,t,n){const r=fa(e,t);r&&function sy(e,t,n,r){x(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,c,l):3===e&&t.destroyNode(c),null!=s&&function ly(e,t,n,r,i){const s=n[7];s!==oe(n)&&ws(t,e,r,s,i);for(let c=10;c0&&(e[n-1][4]=r[4]);const s=oi(e,10+t);!function Qm(e,t){Co(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const l=s[19];null!==l&&l.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function id(e,t){if(!(256&t[2])){const n=t[11];x(n)&&n.destroyNode&&Co(e,t,n,3,null,null),function ey(e){let t=e[13];if(!t)return Il(e[1],e);for(;t;){let n=null;if(fn(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)fn(t)&&Il(t[1],t),t=t[3];null===t&&(t=e),fn(t)&&Il(t[1],t),n=t&&t[4]}t=n}}(t)}}function Il(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function iy(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[i=D]():r[i=-D].unsubscribe(),s+=2}else{const l=r[i=n[s+1]];n[s].call(l)}if(null!==r){for(let s=i+1;ss?"":i[S+1].toLowerCase();const L=8&r?R:null;if(L&&-1!==yd(L,D,0)||2&r&&D!==R){if(yr(r))return!1;l=!0}}}}else{if(!l&&!yr(r)&&!yr(d))return!1;if(l&&yr(d))continue;l=!1,r=d|1&r}}return yr(r)||l}function yr(e){return 0==(1&e)}function hy(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i-1)for(n++;n0?'="'+c+'"':"")+"]"}else 8&r?i+="."+l:4&r&&(i+=" "+l);else""!==i&&!yr(l)&&(t+=Cd(s,i),i=""),r=l,s=s||!yr(r);n++}return""!==i&&(t+=Cd(s,i)),t}const je={};function Ed(e){bd(We(),te(),sn()+e,ti())}function bd(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&cs(t,s,n)}else{const s=e.preOrderHooks;null!==s&&ds(t,s,0,n)}Vr(n)}function ga(e,t){return e<<17|t<<2}function vr(e){return e>>17&32767}function Nl(e){return 2|e}function li(e){return(131068&e)>>2}function Fl(e,t){return-131069&e|t<<2}function Pl(e){return 1|e}function Fd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r20&&bd(e,t,20,ti()),n(r,i)}finally{Vr(s)}}function zl(e,t,n){!Bi()||(function $y(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||ri(n,t),pn(r,t);const l=n.initialInputs;for(let c=i;c0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(c)!=d&&c.push(d),c.push(r,i,l)}}function Gd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function zd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Wy(e,t,n){if(n){if(t.exportAs)for(let r=0;r0&&Zl(n)}}function Zl(e){for(let r=bl(e);null!==r;r=wl(r))for(let i=10;i0&&Zl(s)}const n=e[1].components;if(null!==n)for(let r=0;r0&&Zl(i)}}function ev(e,t){const n=wt(t,e),r=n[1];(function tv(e,t){for(let n=t.length;nPromise.resolve(null))();function Kd(e){return e[7]||(e[7]=[])}function Qd(e){return e.cleanup||(e.cleanup=[])}function Xd(e,t){const n=e[9],r=n?n.get(_o,null):null;r&&r.handleError(t)}function ef(e,t,n,r,i){for(let s=0;sthis.processProvider(c,t,n)),Pt([t],c=>this.processInjectorType(c,[],s)),this.records.set(eu,Is(void 0,this));const l=this.records.get(tu);this.scope=null!=l?l.value:null,this.source=i||("object"==typeof t?null:j(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,n=uo,r=Re.Default){this.assertNotDestroyed();const i=Ac(this),s=Me(void 0);try{if(!(r&Re.SkipSelf)){let c=this.records.get(t);if(void 0===c){const d=function yv(e){return"function"==typeof e||"object"==typeof e&&e instanceof u}(t)&&It(t);c=d&&this.injectableDefInScope(d)?Is(ru(t),wo):null,this.records.set(t,c)}if(null!=c)return this.hydrate(t,c)}return(r&Re.Self?nf():this.parent).get(t,n=r&Re.Optional&&n===uo?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[oa]=l[oa]||[]).unshift(j(t)),i)throw l;return function zg(e,t,n,r){const i=e[oa];throw t[Mc]&&i.unshift(t[Mc]),e.message=function qg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=j(t);if(Array.isArray(t))i=t.map(j).join(" -> ");else if("object"==typeof t){let s=[];for(let l in t)if(t.hasOwnProperty(l)){let c=t[l];s.push(l+":"+("string"==typeof c?JSON.stringify(c):j(c)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(jg,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[oa]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{Me(s),Ac(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(j(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new De(205,"")}processInjectorType(t,n,r){if(!(t=q(t)))return!1;let i=On(t);const s=null==i&&t.ngModule||void 0,l=void 0===s?t:s,c=-1!==r.indexOf(l);if(void 0!==s&&(i=On(s)),null==i)return!1;if(null!=i.imports&&!c){let C;r.push(l);try{Pt(i.imports,S=>{this.processInjectorType(S,n,r)&&(void 0===C&&(C=[]),C.push(S))})}finally{}if(void 0!==C)for(let S=0;Sthis.processProvider(Y,R,L||qe))}}this.injectorDefTypes.add(l);const d=rn(l)||(()=>new l);this.records.set(l,Is(d,wo));const D=i.providers;if(null!=D&&!c){const C=t;Pt(D,S=>this.processProvider(S,C,D))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,r){let i=Ts(t=q(t))?t:q(t&&t.provide);const s=function dv(e,t,n){return af(e)?Is(void 0,e.useValue):Is(of(e),wo)}(t);if(Ts(t)||!0!==t.multi)this.records.get(i);else{let l=this.records.get(i);l||(l=Is(void 0,wo,!0),l.factory=()=>ll(l.multi),this.records.set(i,l)),i=t,l.multi.push(t)}this.records.set(i,s)}hydrate(t,n){return n.value===wo&&(n.value=lv,n.value=n.factory()),"object"==typeof n.value&&n.value&&function mv(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=q(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function ru(e){const t=It(e),n=null!==t?t.factory:rn(e);if(null!==n)return n;if(e instanceof u)throw new De(204,"");if(e instanceof Function)return function cv(e){const t=e.length;if(t>0)throw function bn(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new De(204,"")}function of(e,t,n){let r;if(Ts(e)){const i=q(e);return rn(i)||ru(i)}if(af(e))r=()=>q(e.useValue);else if(function hv(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ll(e.deps||[]));else if(function fv(e){return!(!e||!e.useExisting)}(e))r=()=>on(q(e.useExisting));else{const i=q(e&&(e.useClass||e.provide));if(!function gv(e){return!!e.deps}(e))return rn(i)||ru(i);r=()=>new i(...ll(e.deps))}return r}function Is(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function af(e){return null!==e&&"object"==typeof e&&Hg in e}function Ts(e){return"function"==typeof e}let ir=(()=>{class e{static create(n,r){var i;if(Array.isArray(n))return rf({name:""},r,n,"");{const s=null!==(i=n.name)&&void 0!==i?i:"";return rf({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=uo,e.NULL=new tf,e.\u0275prov=_t({token:e,providedIn:"any",factory:()=>on(eu)}),e.__NG_ELEMENT_ID__=-1,e})();function Mv(e,t){us(vl(e)[1],Mt())}function ou(e){let t=function _f(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(Qt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new De(903,"");i=t.\u0275dir}if(i){if(n){r.push(i);const l=e;l.inputs=au(e.inputs),l.declaredInputs=au(e.declaredInputs),l.outputs=au(e.outputs);const c=i.hostBindings;c&&Tv(e,c);const d=i.viewQuery,D=i.contentQueries;if(d&&Sv(e,d),D&&Iv(e,D),Z(e.inputs,i.inputs),Z(e.declaredInputs,i.declaredInputs),Z(e.outputs,i.outputs),Qt(i)&&i.data.animation){const C=e.data;C.animation=(C.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let l=0;l=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=fs(i.hostAttrs,n=fs(n,i.hostAttrs))}}(r)}function au(e){return e===nn?{}:e===qe?[]:e}function Sv(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function Iv(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function Tv(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let Ca=null;function xs(){if(!Ca){const e=Le.Symbol;if(e&&e.iterator)Ca=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;nc(oe(Qe[r.index])):r.index;if(x(n)){let Qe=null;if(!c&&d&&(Qe=function l_(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;sd?c[d]:null}"string"==typeof l&&(s+=2)}return null}(e,t,i,r.index)),null!==Qe)(Qe.__ngLastListenerFn__||Qe).__ngNextListenerFn__=s,Qe.__ngLastListenerFn__=s,L=!1;else{s=Du(r,t,S,s,!1);const at=n.listen(we,i,s);R.push(s,at),C&&C.push(i,Oe,Q,Q+1)}}else s=Du(r,t,S,s,!0),we.addEventListener(i,s,l),R.push(s),C&&C.push(i,Oe,Q,l)}else s=Du(r,t,S,s,!1);const Y=r.outputs;let ie;if(L&&null!==Y&&(ie=Y[i])){const le=ie.length;if(le)for(let we=0;we0;)t=t[15],e--;return t}(e,he.lFrame.contextLView))[8]}(e)}function Cu(e,t,n){return wa(e,"",t,"",n),Cu}function wa(e,t,n,r,i){const s=te(),l=Os(s,t,n,r);return l!==je&&Hn(We(),Dt(),s,e,l,s[11],i,!1),wa}function ih(e,t,n,r,i){const s=e[n+1],l=null===t;let c=r?vr(s):li(s),d=!1;for(;0!==c&&(!1===d||l);){const C=e[c+1];p_(e[c],t)&&(d=!0,e[c+1]=r?Pl(C):Nl(C)),c=r?vr(C):li(C)}d&&(e[n+1]=r?Nl(s):Pl(s))}function p_(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&_s(e,t)>=0}function Eu(e,t){return function Dr(e,t,n,r){const i=te(),s=We(),l=function rr(e){const t=he.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);s.firstUpdatePass&&function hh(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[sn()],l=function fh(e,t){return t>=e.expandoStartIndex}(e,n);(function yh(e,t){return 0!=(e.flags&(t?16:32))})(s,r)&&null===t&&!l&&(t=!1),t=function b_(e,t,n,r){const i=function Ui(e){const t=he.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let s=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=Io(n=bu(null,e,t,n,r),t.attrs,r),s=null);else{const l=t.directiveStylingLast;if(-1===l||e[l]!==i)if(n=bu(i,e,t,n,r),null===s){let d=function w_(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==li(r))return e[vr(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=bu(null,e,t,d[1],r),d=Io(d,t.attrs,r),function M_(e,t,n,r){e[vr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else s=function A_(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0)&&(D=!0)}else C=n;if(i)if(0!==d){const R=vr(e[c+1]);e[r+1]=ga(R,c),0!==R&&(e[R+1]=Fl(e[R+1],r)),e[c+1]=function Cy(e,t){return 131071&e|t<<17}(e[c+1],r)}else e[r+1]=ga(c,0),0!==c&&(e[c+1]=Fl(e[c+1],r)),c=r;else e[r+1]=ga(d,0),0===c?c=r:e[d+1]=Fl(e[d+1],r),d=r;D&&(e[r+1]=Nl(e[r+1])),ih(e,C,r,!0),ih(e,C,r,!1),function h_(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&_s(s,t)>=0&&(n[r+1]=Pl(n[r+1]))}(t,C,e,r,s),l=ga(c,d),s?t.classBindings=l:t.styleBindings=l}(i,s,t,n,l,r)}}(s,e,l,r),t!==je&&gn(i,l,t)&&function gh(e,t,n,r,i,s,l,c){if(!(3&t.type))return;const d=e.data,D=d[c+1];Ma(function Ad(e){return 1==(1&e)}(D)?mh(d,t,n,i,li(D),l):void 0)||(Ma(s)||function Md(e){return 2==(2&e)}(D)&&(s=mh(d,null,n,i,c,l)),function uy(e,t,n,r,i){const s=x(e);if(t)i?s?e.addClass(n,r):n.classList.add(r):s?e.removeClass(n,r):n.classList.remove(r);else{let l=-1===r.indexOf("-")?void 0:Ur.DashCase;if(null==i)s?e.removeStyle(n,r,l):n.style.removeProperty(r);else{const c="string"==typeof i&&i.endsWith("!important");c&&(i=i.slice(0,-10),l|=Ur.Important),s?e.setStyle(n,r,i,l):n.style.setProperty(r,i,c?"important":"")}}}(r,l,Xe(sn(),n),i,s))}(s,s.data[sn()],i,i[11],e,i[l+1]=function T_(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=j(Ii(e)))),e}(t,n),r,l)}(e,t,null,!0),Eu}function bu(e,t,n,r,i){let s=null;const l=n.directiveEnd;let c=n.directiveStylingLast;for(-1===c?c=n.directiveStart:c++;c0;){const d=e[i],D=Array.isArray(d),C=D?d[1]:d,S=null===C;let R=n[i+1];R===je&&(R=S?qe:void 0);let L=S?sl(R,r):C===r?R:void 0;if(D&&!Ma(L)&&(L=sl(d,r)),Ma(L)&&(c=L,l))return c;const Y=e[i+1];i=l?vr(Y):li(Y)}if(null!==t){let d=s?t.residualClasses:t.residualStyles;null!=d&&(c=sl(d,r))}return c}function Ma(e){return void 0!==e}function vh(e,t=""){const n=te(),r=We(),i=e+20,s=r.firstCreatePass?Ms(r,i,1,t,null):r.data[i],l=n[i]=function Ml(e,t){return x(e)?e.createText(t):e.createTextNode(t)}(n[11],t);ha(r,n,l,s),Cn(s,!1)}function wu(e){return Aa("",e,""),wu}function Aa(e,t,n){const r=te(),i=Os(r,e,t,n);return i!==je&&ui(r,sn(),i),Aa}const Ji=void 0;var Z_=["en",[["a","p"],["AM","PM"],Ji],[["AM","PM"],Ji,Ji],[["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"]],Ji,[["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"]],Ji,[["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}",Ji,"{1} 'at' {0}",Ji],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Y_(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Hs={};function K_(e,t,n){"string"!=typeof t&&(n=t,t=e[Pe.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Hs[t]=e,n&&(Hs[t][Pe.ExtraData]=n)}function Mu(e){const t=function Q_(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Bh(t);if(n)return n;const r=t.split("-")[0];if(n=Bh(r),n)return n;if("en"===r)return Z_;throw new Error(`Missing locale data for the locale "${e}".`)}function kh(e){return Mu(e)[Pe.PluralCase]}function Bh(e){return e in Hs||(Hs[e]=Le.ng&&Le.ng.common&&Le.ng.common.locales&&Le.ng.common.locales[e]),Hs[e]}var Pe=(()=>((Pe=Pe||{})[Pe.LocaleId=0]="LocaleId",Pe[Pe.DayPeriodsFormat=1]="DayPeriodsFormat",Pe[Pe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Pe[Pe.DaysFormat=3]="DaysFormat",Pe[Pe.DaysStandalone=4]="DaysStandalone",Pe[Pe.MonthsFormat=5]="MonthsFormat",Pe[Pe.MonthsStandalone=6]="MonthsStandalone",Pe[Pe.Eras=7]="Eras",Pe[Pe.FirstDayOfWeek=8]="FirstDayOfWeek",Pe[Pe.WeekendRange=9]="WeekendRange",Pe[Pe.DateFormat=10]="DateFormat",Pe[Pe.TimeFormat=11]="TimeFormat",Pe[Pe.DateTimeFormat=12]="DateTimeFormat",Pe[Pe.NumberSymbols=13]="NumberSymbols",Pe[Pe.NumberFormats=14]="NumberFormats",Pe[Pe.CurrencyCode=15]="CurrencyCode",Pe[Pe.CurrencySymbol=16]="CurrencySymbol",Pe[Pe.CurrencyName=17]="CurrencyName",Pe[Pe.Currencies=18]="Currencies",Pe[Pe.Directionality=19]="Directionality",Pe[Pe.PluralCase=20]="PluralCase",Pe[Pe.ExtraData=21]="ExtraData",Pe))();const Sa="en-US";let jh=Sa;function Iu(e,t,n,r,i){if(e=q(e),Array.isArray(e))for(let s=0;s>20;if(Ts(e)||!e.multi){const L=new Di(d,i,So),Y=xu(c,t,i?C:C+R,S);-1===Y?(ms(ri(D,l),s,c),Tu(s,e,t.length),t.push(c),D.directiveStart++,D.directiveEnd++,i&&(D.providerIndexes+=1048576),n.push(L),l.push(L)):(n[Y]=L,l[Y]=L)}else{const L=xu(c,t,C+R,S),Y=xu(c,t,C,C+R),ie=L>=0&&n[L],le=Y>=0&&n[Y];if(i&&!le||!i&&!ie){ms(ri(D,l),s,c);const we=function ZD(e,t,n,r,i){const s=new Di(e,n,So);return s.multi=[],s.index=t,s.componentProviders=0,cp(s,i,r&&!n),s}(i?YD:WD,n.length,i,r,d);!i&&le&&(n[Y].providerFactory=we),Tu(s,e,t.length,0),t.push(c),D.directiveStart++,D.directiveEnd++,i&&(D.providerIndexes+=1048576),n.push(we),l.push(we)}else Tu(s,e,L>-1?L:Y,cp(n[i?Y:L],d,!i&&r));!i&&r&&le&&n[Y].componentProviders++}}}function Tu(e,t,n,r){const i=Ts(t),s=function pv(e){return!!e.useClass}(t);if(i||s){const d=(s?q(t.useClass):t).prototype.ngOnDestroy;if(d){const D=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const C=D.indexOf(n);-1===C?D.push(n,[r,d]):D[C+1].push(r,d)}else D.push(n,d)}}}function cp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function xu(e,t,n,r){for(let i=n;i{n.providersResolver=(r,i)=>function qD(e,t,n){const r=We();if(r.firstCreatePass){const i=Qt(e);Iu(n,r.data,r.blueprint,i,!0),Iu(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class fp{}class JD{resolveComponentFactory(t){throw function QD(e){const t=Error(`No component factory found for ${j(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let No=(()=>{class e{}return e.NULL=new JD,e})();function XD(){return Gs(Mt(),te())}function Gs(e,t){return new Fo(Ve(e,t))}let Fo=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=XD,e})();function eC(e){return e instanceof Fo?e.nativeElement:e}class pp{}let tC=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function rC(){const e=te(),n=wt(Mt().index,e);return function nC(e){return e[11]}(fn(n)?n:e)}(),e})(),iC=(()=>{class e{}return e.\u0275prov=_t({token:e,providedIn:"root",factory:()=>null}),e})();class gp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sC=new gp("13.1.3"),Ou={};function Oa(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(oe(s)),ut(s))for(let c=10;c-1&&(Sl(t,r),oi(n,r))}this._attachedToViewContainer=!1}id(this._lView[1],this._lView)}onDestroy(t){jd(this._lView[1],this._lView,null,t)}markForCheck(){Kl(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Jl(this._lView[1],this._lView,this.context)}checkNoChanges(){!function rv(e,t,n){ji(!0);try{Jl(e,t,n)}finally{ji(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new De(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xm(e,t){Co(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new De(902,"");this._appRef=t}}class oC extends Po{constructor(t){super(t),this._view=t}detectChanges(){Zd(this._view)}checkNoChanges(){!function iv(e){ji(!0);try{Zd(e)}finally{ji(!1)}}(this._view)}get context(){return null}}class mp extends No{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=gt(t);return new Nu(n,this.ngModule)}}function yp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const lC=new u("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Kc});class Nu extends fp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function _y(e){return e.map(vy).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return yp(this.componentDef.inputs)}get outputs(){return yp(this.componentDef.outputs)}create(t,n,r,i){const s=(i=i||this.ngModule)?function uC(e,t){return{get:(n,r,i)=>{const s=e.get(n,Ou,i);return s!==Ou||r===Ou?s:t.get(n,r,i)}}}(t,i.injector):t,l=s.get(pp,z),c=s.get(iC,null),d=l.createRenderer(null,this.componentDef),D=this.componentDef.selectors[0][0]||"div",C=r?function Bd(e,t,n){if(x(e))return e.selectRootElement(t,n===tn.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(d,r,this.componentDef.encapsulation):Al(l.createRenderer(null,this.componentDef),D,function aC(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(D)),S=this.componentDef.onPush?576:528,R=function vf(e,t){return{components:[],scheduler:e||Kc,clean:sv,playerHandler:t||null,flags:0}}(),L=va(0,null,null,1,0,null,null,null,null,null),Y=Eo(null,L,R,S,null,null,l,d,c,s);let ie,le;as(Y);try{const we=function mf(e,t,n,r,i,s){const l=n[1];n[20]=e;const d=Ms(l,20,2,"#host",null),D=d.mergedAttrs=t.hostAttrs;null!==D&&(Da(d,D,!0),null!==e&&(Ei(i,e,D),null!==d.classes&&Ol(i,e,d.classes),null!==d.styles&&md(i,e,d.styles)));const C=r.createRenderer(e,t),S=Eo(n,Ld(t),null,t.onPush?64:16,n[20],d,r,C,s||null,null);return l.firstCreatePass&&(ms(ri(d,n),l,t.type),zd(l,d),qd(d,n.length,1)),_a(n,S),n[20]=S}(C,this.componentDef,Y,l,d);if(C)if(r)Ei(d,C,["ng-version",sC.full]);else{const{attrs:Q,classes:Oe}=function Dy(e){const t=[],n=[];let r=1,i=2;for(;r0&&Ol(d,C,Oe.join(" "))}if(le=nt(L,20),void 0!==n){const Q=le.projection=[];for(let Oe=0;Oed(l,t)),t.contentQueries){const d=Mt();t.contentQueries(1,l,d.directiveStart)}const c=Mt();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(Vr(c.index),$d(n[1],c,0,c.directiveStart,c.directiveEnd,t),Gd(t,l)),l}(we,this.componentDef,Y,R,[Mv]),bo(L,Y,null)}finally{ls()}return new dC(this.componentType,ie,Gs(le,Y),Y,le)}}class dC extends class KD{}{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new oC(i),this.componentType=t}get injector(){return new Mi(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class zs{}class vp{}const qs=new Map;class Cp extends zs{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new mp(this);const r=Kt(t);this._bootstrapComponents=jr(r.bootstrap),this._r3Injector=sf(t,n,[{provide:zs,useValue:this},{provide:No,useValue:this.componentFactoryResolver}],j(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=ir.THROW_IF_NOT_FOUND,r=Re.Default){return t===ir||t===zs||t===eu?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Fu extends vp{constructor(t){super(),this.moduleType=t,null!==Kt(t)&&function hC(e){const t=new Set;!function n(r){const i=Kt(r,!0),s=i.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${j(t)} vs ${j(t.name)}`)}(s,qs.get(s),r),qs.set(s,r));const l=jr(i.imports);for(const c of l)t.has(c)||(t.add(c),n(c))}(e)}(t)}create(t){return new Cp(this.moduleType,t)}}function Ep(e,t,n,r,i){return wp(te(),Xt(),e,t,n,r,i)}function wp(e,t,n,r,i,s,l){const c=t+n;return function Qi(e,t,n,r){const i=gn(e,t,n);return gn(e,t+1,r)||i}(e,c,i,s)?function $r(e,t,n){return e[t]=n}(e,c+2,l?r.call(l,i,s):r(i,s)):function Vo(e,t){const n=e[t];return n===je?void 0:n}(e,c+2)}function Ip(e,t){const n=We();let r;const i=e+20;n.firstCreatePass?(r=function bC(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[i]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=rn(r.type)),l=Me(So);try{const c=Gi(!1),d=s();return Gi(c),function Lv(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,te(),i,d),d}finally{Me(l)}}function Tp(e,t,n,r){const i=e+20,s=te(),l=function rt(e,t){return e[t]}(s,i);return function Lo(e,t){return e[1].data[t].pure}(s,i)?wp(s,Xt(),t,l.transform,n,r,l):l.transform(n,r)}function Pu(e){return t=>{setTimeout(e,void 0,t)}}const qr=class IC extends h.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,s,l;let c=t,d=n||(()=>null),D=r;if(t&&"object"==typeof t){const S=t;c=null===(i=S.next)||void 0===i?void 0:i.bind(S),d=null===(s=S.error)||void 0===s?void 0:s.bind(S),D=null===(l=S.complete)||void 0===l?void 0:l.bind(S)}this.__isAsync&&(d=Pu(d),c&&(c=Pu(c)),D&&(D=Pu(D)));const C=super.subscribe({next:c,error:d,complete:D});return t instanceof A.w&&t.add(C),C}};function TC(){return this._results[xs()]()}class Vu{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=xs(),r=Vu.prototype;r[n]||(r[n]=TC)}get changes(){return this._changes||(this._changes=new qr)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}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,n){const r=this;r.dirty=!1;const i=At(t);(this._changesDetected=!function Yi(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=OC,e})();const xC=ko,RC=class extends xC{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Eo(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(r[19]=s.createEmbeddedView(n)),bo(n,r,t),new Po(r)}};function OC(){return Na(Mt(),te())}function Na(e,t){return 4&e.type?new RC(t,e,Gs(e,t)):null}let Fa=(()=>{class e{}return e.__NG_ELEMENT_ID__=NC,e})();function NC(){return Op(Mt(),te())}const FC=Fa,xp=class extends FC{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Gs(this._hostTNode,this._hostLView)}get injector(){return new Mi(this._hostTNode,this._hostLView)}get parentInjector(){const t=gs(this._hostTNode,this._hostLView);if(ro(t)){const n=wi(t,this._hostLView),r=bi(t);return new Mi(n[1].data[r+8],n)}return new Mi(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Rp(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const i=t.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(t,n,r,i,s){const l=t&&!function Je(e){return"function"==typeof e}(t);let c;if(l)c=n;else{const S=n||{};c=S.index,r=S.injector,i=S.projectableNodes,s=S.ngModuleRef}const d=l?t:new Nu(gt(t)),D=r||this.parentInjector;if(!s&&null==d.ngModule&&D){const S=D.get(zs,null);S&&(s=S)}const C=d.create(D,i,void 0,s);return this.insert(C.hostView,c),C}insert(t,n){const r=t._lView,i=r[1];if(function f(e){return ut(e[3])}(r)){const C=this.indexOf(t);if(-1!==C)this.detach(C);else{const S=r[3],R=new xp(S,S[6],S[3]);R.detach(R.indexOf(t))}}const s=this._adjustIndex(n),l=this._lContainer;!function ty(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r0)r.push(l[c/2]);else{const D=s[c+1],C=t[-d];for(let S=10;S{class e{constructor(n){this.appInits=n,this.resolve=La,this.reject=La,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{s.subscribe({complete:c,error:d})});n.push(l)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(on(Yu,8))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const ig=new u("AppId"),aE={provide:ig,useFactory:function oE(){return`${Zu()}${Zu()}${Zu()}`},deps:[]};function Zu(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const sg=new u("Platform Initializer"),og=new u("Platform ID"),ag=new u("appBootstrapListener");let lg=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const ka=new u("LocaleId"),ug=new u("DefaultCurrencyCode");class lE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let Ku=(()=>{class e{compileModuleSync(n){return new Fu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=jr(Kt(n).declarations).reduce((l,c)=>{const d=gt(c);return d&&l.push(new Nu(d)),l},[]);return new lE(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();const cE=(()=>Promise.resolve(0))();function Qu(e){"undefined"==typeof Zone?cE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $n{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new qr(!1),this.onMicrotaskEmpty=new qr(!1),this.onStable=new qr(!1),this.onError=new qr(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function dE(){let e=Le.requestAnimationFrame,t=Le.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function pE(e){const t=()=>{!function hE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Le,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Xu(e),e.isCheckStableRunning=!0,Ju(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Xu(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,l,c)=>{try{return cg(e),n.invokeTask(i,s,l,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),dg(e)}},onInvoke:(n,r,i,s,l,c,d)=>{try{return cg(e),n.invoke(i,s,l,c,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),dg(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Xu(e),Ju(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$n.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($n.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,l=s.scheduleEventTask("NgZoneEvent: "+i,t,fE,La,La);try{return s.runTask(l,n,r)}finally{s.cancelTask(l)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const fE={};function Ju(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Xu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function cg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function dg(e){e._nesting--,Ju(e)}class gE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new qr,this.onMicrotaskEmpty=new qr,this.onStable=new qr,this.onError=new qr}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,i){return t.apply(n,r)}}let fg=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.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:()=>{$n.assertNotInAngularZone(),Qu(()=>{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())Qu(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(l=>l.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return e.\u0275fac=function(n){return new(n||e)(on($n))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})(),hg=(()=>{class e{constructor(){this._applications=new Map,ec.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return ec.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();class mE{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function yE(e){ec=e}let Er,ec=new mE;const pg=new u("AllowMultipleToken");class DE{constructor(t,n){this.name=t,this.token=n}}function gg(e,t,n=[]){const r=`Platform: ${t}`,i=new u(r);return(s=[])=>{let l=mg();if(!l||l.injector.get(pg,!1))if(e)e(n.concat(s).concat({provide:i,useValue:!0}));else{const c=n.concat(s).concat({provide:i,useValue:!0},{provide:tu,useValue:"platform"});!function CE(e){if(Er&&!Er.destroyed&&!Er.injector.get(pg,!1))throw new De(400,"");Er=e.get(yg);const t=e.get(sg,null);t&&t.forEach(n=>n())}(ir.create({providers:c,name:r}))}return function EE(e){const t=mg();if(!t)throw new De(401,"");return t}()}}function mg(){return Er&&!Er.destroyed?Er:null}let yg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const c=function bE(e,t){let n;return n="noop"===e?new gE:("zone.js"===e?void 0:e)||new $n({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:$n,useValue:c}];return c.run(()=>{const D=ir.create({providers:d,parent:this.injector,name:n.moduleType.name}),C=n.create(D),S=C.injector.get(_o,null);if(!S)throw new De(402,"");return c.runOutsideAngular(()=>{const R=c.onError.subscribe({next:L=>{S.handleError(L)}});C.onDestroy(()=>{tc(this._modules,C),R.unsubscribe()})}),function wE(e,t,n){try{const r=n();return vu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(S,c,()=>{const R=C.injector.get(Ys);return R.runInitializers(),R.donePromise.then(()=>(function tD(e){et(e,"Expected localeId to be defined"),"string"==typeof e&&(jh=e.toLowerCase().replace(/_/g,"-"))}(C.injector.get(ka,Sa)||Sa),this._moduleDoBootstrap(C),C))})})}bootstrapModule(n,r=[]){const i=vg({},r);return function vE(e,t,n){const r=new Fu(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(jo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new De(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new De(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(on(ir))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function vg(e,t){return Array.isArray(t)?t.reduce(vg,e):Object.assign(Object.assign({},e),t)}let jo=(()=>{class e{constructor(n,r,i,s,l){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const c=new de.y(D=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{D.next(this._stable),D.complete()})}),d=new de.y(D=>{let C;this._zone.runOutsideAngular(()=>{C=this._zone.onStable.subscribe(()=>{$n.assertNotInAngularZone(),Qu(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,D.next(!0))})})});const S=this._zone.onUnstable.subscribe(()=>{$n.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{D.next(!1)}))});return()=>{C.unsubscribe(),S.unsubscribe()}});this.isStable=function pe(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(0,ue.K)(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof de.y?e[0]:(0,Se.J)(t)((0,K.n)(e,n))}(c,d.pipe(function P(){return e=>(0,H.x)()(function X(e,t){return function(r){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new k(i,t));const s=Object.create(r,Ce.N);return s.source=r,s.subjectFactory=i,s}}(B)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new De(405,"");let i;i=n instanceof fp?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(i.componentType);const s=function _E(e){return e.isBoundToModule}(i)?void 0:this._injector.get(zs),c=i.create(ir.NULL,[],r||i.selector,s),d=c.location.nativeElement,D=c.injector.get(fg,null),C=D&&c.injector.get(hg);return D&&C&&C.registerApplication(d,D),c.onDestroy(()=>{this.detachView(c.hostView),tc(this.components,c),C&&C.unregisterApplication(d)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new De(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;tc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(ag,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(on($n),on(ir),on(_o),on(No),on(Ys))},e.\u0275prov=_t({token:e,factory:e.\u0275fac}),e})();function tc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Dg=!0;function AE(){Dg=!1}let SE=(()=>{class e{}return e.__NG_ELEMENT_ID__=IE,e})();function IE(e){return function TE(e,t,n){if(Qn(e)&&!n){const r=wt(e.index,t);return new Po(r,r)}return 47&e.type?new Po(t[16],t):null}(Mt(),te(),16==(16&e))}class Sg{constructor(){}supports(t){return Mo(t)}create(t){return new PE(t)}}const FE=(e,t)=>t;class PE{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||FE}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const l=!r||n&&n.currentIndex{l=this._trackByFn(i,c),null!==n&&Object.is(n.trackById,l)?(r&&(n=this._verifyReinsertion(n,c,l,i)),Object.is(n.item,c)||this._addIdentityChange(n,c)):(n=this._mismatch(n,c,l,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),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,n,r,i){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,s,i)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,s,i)):t=this._addAfter(new VE(n,r),s,i),t}_verifyReinsertion(t,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?t=this._reinsertAfter(s,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}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,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const i=t._prevRemoved,s=t._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ig),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ig),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,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class VE{constructor(t,n){this.item=t,this.trackById=n,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 LE{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,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Ig{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new LE,this.map.set(n,r)),r.add(t)}get(t,n){const i=this.map.get(t);return i?i.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Tg(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,n);const s=i._prev,l=i._next;return s&&(s._next=l),l&&(l._prev=s),i._next=null,i._prev=null,i}const r=new BE(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_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,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,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,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class BE{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}}function Rg(){return new ja([new Sg])}let ja=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Rg()),deps:[[e,new Ds,new Zi]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new De(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Rg}),e})();function Og(){return new Ua([new xg])}let Ua=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||Og()),deps:[[e,new Ds,new Zi]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new De(901,"")}}return e.\u0275prov=_t({token:e,providedIn:"root",factory:Og}),e})();const jE=[new xg],HE=new ja([new Sg]),$E=new Ua(jE),GE=gg(null,"core",[{provide:og,useValue:"unknown"},{provide:yg,deps:[ir]},{provide:hg,deps:[]},{provide:lg,deps:[]}]),ZE=[{provide:jo,useClass:jo,deps:[$n,ir,_o,No,Ys]},{provide:lC,deps:[$n],useFactory:function KE(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:Ys,useClass:Ys,deps:[[new Zi,Yu]]},{provide:Ku,useClass:Ku,deps:[]},aE,{provide:ja,useFactory:function zE(){return HE},deps:[]},{provide:Ua,useFactory:function qE(){return $E},deps:[]},{provide:ka,useFactory:function WE(e){return e||function YE(){return"undefined"!=typeof $localize&&$localize.locale||Sa}()},deps:[[new ho(ka),new Zi,new Ds]]},{provide:ug,useValue:"USD"}];let QE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(on(jo))},e.\u0275mod=ke({type:e}),e.\u0275inj=ft({providers:ZE}),e})()},182:(He,ce,V)=>{V.d(ce,{Fj:()=>_e,qu:()=>rt,u:()=>Ir,sg:()=>Jr,u5:()=>Ve,JU:()=>B,JJ:()=>Nn,JL:()=>qn,YN:()=>hr,UX:()=>Ct,EJ:()=>Xn,kI:()=>Lt,_Y:()=>Qr,Kr:()=>Tr});var h=V(96),A=V(808),de=V(254),ue=V(916),Se=V(688),K=V(850),pe=V(830);function X(y,g){return new ue.y(f=>{const E=y.length;if(0===E)return void f.complete();const G=new Array(E);let ge=0,he=0;for(let Jt=0;Jt{jn||(jn=!0,he++),G[Jt]=Fr},error:Fr=>f.error(Fr),complete:()=>{ge++,(ge===E||!jn)&&(he===E&&f.next(g?g.reduce((Fr,Bi,is)=>(Fr[Bi]=G[is],Fr),{}):G),f.complete())}}))}})}let k=(()=>{class y{constructor(f,E){this._renderer=f,this._elementRef=E,this.onChange=G=>{},this.onTouched=()=>{}}setProperty(f,E){this._renderer.setProperty(this._elementRef.nativeElement,f,E)}registerOnTouched(f){this.onTouched=f}registerOnChange(f){this.onChange=f}setDisabledState(f){this.setProperty("disabled",f)}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(h.Qsj),h.Y36(h.SBq))},y.\u0275dir=h.lG2({type:y}),y})(),H=(()=>{class y extends k{}return y.\u0275fac=function(){let g;return function(E){return(g||(g=h.n5z(y)))(E||y)}}(),y.\u0275dir=h.lG2({type:y,features:[h.qOj]}),y})();const B=new h.OlP("NgValueAccessor"),Z={provide:B,useExisting:(0,h.Gpc)(()=>_e),multi:!0},ne=new h.OlP("CompositionEventMode");let _e=(()=>{class y extends k{constructor(f,E,G){super(f,E),this._compositionMode=G,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function j(){const y=(0,A.q)()?(0,A.q)().getUserAgent():"";return/android (\d+)/.test(y.toLowerCase())}())}writeValue(f){this.setProperty("value",null==f?"":f)}_handleInput(f){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(f)}_compositionStart(){this._composing=!0}_compositionEnd(f){this._composing=!1,this._compositionMode&&this.onChange(f)}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(h.Qsj),h.Y36(h.SBq),h.Y36(ne,8))},y.\u0275dir=h.lG2({type:y,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(f,E){1&f&&h.NdJ("input",function(ge){return E._handleInput(ge.target.value)})("blur",function(){return E.onTouched()})("compositionstart",function(){return E._compositionStart()})("compositionend",function(ge){return E._compositionEnd(ge.target.value)})},features:[h._Bn([Z]),h.qOj]}),y})();function re(y){return null==y||0===y.length}function q(y){return null!=y&&"number"==typeof y.length}const Ae=new h.OlP("NgValidators"),fe=new h.OlP("NgAsyncValidators"),De=/^(?=.{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 Lt{static min(g){return function ye(y){return g=>{if(re(g.value)||re(y))return null;const f=parseFloat(g.value);return!isNaN(f)&&f{if(re(g.value)||re(y))return null;const f=parseFloat(g.value);return!isNaN(f)&&f>y?{max:{max:y,actual:g.value}}:null}}(g)}static required(g){return function st(y){return re(y.value)?{required:!0}:null}(g)}static requiredTrue(g){return function Ye(y){return!0===y.value?null:{required:!0}}(g)}static email(g){return function ze(y){return re(y.value)||De.test(y.value)?null:{email:!0}}(g)}static minLength(g){return function Fe(y){return g=>re(g.value)||!q(g.value)?null:g.value.lengthq(g.value)&&g.value.length>y?{maxlength:{requiredLength:y,actualLength:g.value.length}}:null}(g)}static pattern(g){return function ve(y){if(!y)return yt;let g,f;return"string"==typeof y?(f="","^"!==y.charAt(0)&&(f+="^"),f+=y,"$"!==y.charAt(y.length-1)&&(f+="$"),g=new RegExp(f)):(f=y.toString(),g=y),E=>{if(re(E.value))return null;const G=E.value;return g.test(G)?null:{pattern:{requiredPattern:f,actualValue:G}}}}(g)}static nullValidator(g){return null}static compose(g){return Wr(g)}static composeAsync(g){return Sn(g)}}function yt(y){return null}function zn(y){return null!=y}function kt(y){const g=(0,h.QGY)(y)?(0,de.D)(y):y;return(0,h.CqO)(g),g}function ci(y){let g={};return y.forEach(f=>{g=null!=f?Object.assign(Object.assign({},g),f):g}),0===Object.keys(g).length?null:g}function br(y,g){return g.map(f=>f(y))}function di(y){return y.map(g=>function or(y){return!y.validate}(g)?g:f=>g.validate(f))}function Wr(y){if(!y)return null;const g=y.filter(zn);return 0==g.length?null:function(f){return ci(br(f,g))}}function An(y){return null!=y?Wr(di(y)):null}function Sn(y){if(!y)return null;const g=y.filter(zn);return 0==g.length?null:function(f){return function Ce(...y){if(1===y.length){const g=y[0];if((0,Se.k)(g))return X(g,null);if((0,pe.K)(g)&&Object.getPrototypeOf(g)===Object.prototype){const f=Object.keys(g);return X(f.map(E=>g[E]),f)}}if("function"==typeof y[y.length-1]){const g=y.pop();return X(y=1===y.length&&(0,Se.k)(y[0])?y[0]:y,null).pipe((0,K.U)(f=>g(...f)))}return X(y,null)}(br(f,g).map(kt)).pipe((0,K.U)(ci))}}function Rn(y){return null!=y?Sn(di(y)):null}function et(y,g){return null===y?[g]:Array.isArray(y)?[...y,g]:[y,g]}function $e(y){return y._rawValidators}function fi(y){return y._rawAsyncValidators}function Yr(y){return y?Array.isArray(y)?y:[y]:[]}function an(y,g){return Array.isArray(y)?y.includes(g):y===g}function _t(y,g){const f=Yr(g);return Yr(y).forEach(G=>{an(f,G)||f.push(G)}),f}function Zr(y,g){return Yr(g).filter(f=>!an(y,f))}class ft{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}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}_setValidators(g){this._rawValidators=g||[],this._composedValidatorFn=An(this._rawValidators)}_setAsyncValidators(g){this._rawAsyncValidators=g||[],this._composedAsyncValidatorFn=Rn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(g){this._onDestroyCallbacks.push(g)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(g=>g()),this._onDestroyCallbacks=[]}reset(g){this.control&&this.control.reset(g)}hasError(g,f){return!!this.control&&this.control.hasError(g,f)}getError(g,f){return this.control?this.control.getError(g,f):null}}class It extends ft{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vt extends ft{get formDirective(){return null}get path(){return null}}class hi{constructor(g){this._cd=g}is(g){var f,E,G;return"submitted"===g?!!(null===(f=this._cd)||void 0===f?void 0:f.submitted):!!(null===(G=null===(E=this._cd)||void 0===E?void 0:E.control)||void 0===G?void 0:G[g])}}let Nn=(()=>{class y extends hi{constructor(f){super(f)}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(It,2))},y.\u0275dir=h.lG2({type:y,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(f,E){2&f&&h.ekj("ng-untouched",E.is("untouched"))("ng-touched",E.is("touched"))("ng-pristine",E.is("pristine"))("ng-dirty",E.is("dirty"))("ng-valid",E.is("valid"))("ng-invalid",E.is("invalid"))("ng-pending",E.is("pending"))},features:[h.qOj]}),y})(),qn=(()=>{class y extends hi{constructor(f){super(f)}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(vt,10))},y.\u0275dir=h.lG2({type:y,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(f,E){2&f&&h.ekj("ng-untouched",E.is("untouched"))("ng-touched",E.is("touched"))("ng-pristine",E.is("pristine"))("ng-dirty",E.is("dirty"))("ng-valid",E.is("valid"))("ng-invalid",E.is("invalid"))("ng-pending",E.is("pending"))("ng-submitted",E.is("submitted"))},features:[h.qOj]}),y})();function Le(y,g){qe(y,g),g.valueAccessor.writeValue(y.value),function Fn(y,g){g.valueAccessor.registerOnChange(f=>{y._pendingValue=f,y._pendingChange=!0,y._pendingDirty=!0,"change"===y.updateOn&&Mr(y,g)})}(y,g),function Yt(y,g){const f=(E,G)=>{g.valueAccessor.writeValue(E),G&&g.viewToModelUpdate(E)};y.registerOnChange(f),g._registerOnDestroy(()=>{y._unregisterOnChange(f)})}(y,g),function Yn(y,g){g.valueAccessor.registerOnTouched(()=>{y._pendingTouched=!0,"blur"===y.updateOn&&y._pendingChange&&Mr(y,g),"submit"!==y.updateOn&&y.markAsTouched()})}(y,g),function nn(y,g){if(g.valueAccessor.setDisabledState){const f=E=>{g.valueAccessor.setDisabledState(E)};y.registerOnDisabledChange(f),g._registerOnDestroy(()=>{y._unregisterOnDisabledChange(f)})}}(y,g)}function Wt(y,g,f=!0){const E=()=>{};g.valueAccessor&&(g.valueAccessor.registerOnChange(E),g.valueAccessor.registerOnTouched(E)),ln(y,g),y&&(g._invokeOnDestroyCallbacks(),y._registerOnCollectionChange(()=>{}))}function yn(y,g){y.forEach(f=>{f.registerOnValidatorChange&&f.registerOnValidatorChange(g)})}function qe(y,g){const f=$e(y);null!==g.validator?y.setValidators(et(f,g.validator)):"function"==typeof f&&y.setValidators([f]);const E=fi(y);null!==g.asyncValidator?y.setAsyncValidators(et(E,g.asyncValidator)):"function"==typeof E&&y.setAsyncValidators([E]);const G=()=>y.updateValueAndValidity();yn(g._rawValidators,G),yn(g._rawAsyncValidators,G)}function ln(y,g){let f=!1;if(null!==y){if(null!==g.validator){const G=$e(y);if(Array.isArray(G)&&G.length>0){const ge=G.filter(he=>he!==g.validator);ge.length!==G.length&&(f=!0,y.setValidators(ge))}}if(null!==g.asyncValidator){const G=fi(y);if(Array.isArray(G)&&G.length>0){const ge=G.filter(he=>he!==g.asyncValidator);ge.length!==G.length&&(f=!0,y.setAsyncValidators(ge))}}}const E=()=>{};return yn(g._rawValidators,E),yn(g._rawAsyncValidators,E),f}function Mr(y,g){y._pendingDirty&&y.markAsDirty(),y.setValue(y._pendingValue,{emitModelToViewChange:!1}),g.viewToModelUpdate(y._pendingValue),y._pendingChange=!1}function Ee(y,g){const f=y.indexOf(g);f>-1&&y.splice(f,1)}const vn="VALID",gt="INVALID",Ut="PENDING",Ht="DISABLED";function Tt(y){return(In(y)?y.validators:y)||null}function lr(y){return Array.isArray(y)?An(y):y||null}function un(y,g){return(In(g)?g.asyncValidators:y)||null}function Zn(y){return Array.isArray(y)?Rn(y):y||null}function In(y){return null!=y&&!Array.isArray(y)&&"object"==typeof y}const Ge=y=>y instanceof cn,xt=y=>y instanceof mt,Et=y=>y instanceof _n;function ae(y){return Ge(y)?y.value:y.getRawValue()}function Be(y,g){const f=xt(y),E=y.controls;if(!(f?Object.keys(E):E).length)throw new h.vHH(1e3,"");if(!E[g])throw new h.vHH(1001,"")}function it(y,g){xt(y),y._forEachChild((E,G)=>{if(void 0===g[G])throw new h.vHH(1002,"")})}class Rt{constructor(g,f){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=g,this._rawAsyncValidators=f,this._composedValidatorFn=lr(this._rawValidators),this._composedAsyncValidatorFn=Zn(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(g){this._rawValidators=this._composedValidatorFn=g}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(g){this._rawAsyncValidators=this._composedAsyncValidatorFn=g}get parent(){return this._parent}get valid(){return this.status===vn}get invalid(){return this.status===gt}get pending(){return this.status==Ut}get disabled(){return this.status===Ht}get enabled(){return this.status!==Ht}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(g){this._rawValidators=g,this._composedValidatorFn=lr(g)}setAsyncValidators(g){this._rawAsyncValidators=g,this._composedAsyncValidatorFn=Zn(g)}addValidators(g){this.setValidators(_t(g,this._rawValidators))}addAsyncValidators(g){this.setAsyncValidators(_t(g,this._rawAsyncValidators))}removeValidators(g){this.setValidators(Zr(g,this._rawValidators))}removeAsyncValidators(g){this.setAsyncValidators(Zr(g,this._rawAsyncValidators))}hasValidator(g){return an(this._rawValidators,g)}hasAsyncValidator(g){return an(this._rawAsyncValidators,g)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(g={}){this.touched=!0,this._parent&&!g.onlySelf&&this._parent.markAsTouched(g)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(g=>g.markAllAsTouched())}markAsUntouched(g={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(f=>{f.markAsUntouched({onlySelf:!0})}),this._parent&&!g.onlySelf&&this._parent._updateTouched(g)}markAsDirty(g={}){this.pristine=!1,this._parent&&!g.onlySelf&&this._parent.markAsDirty(g)}markAsPristine(g={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(f=>{f.markAsPristine({onlySelf:!0})}),this._parent&&!g.onlySelf&&this._parent._updatePristine(g)}markAsPending(g={}){this.status=Ut,!1!==g.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!g.onlySelf&&this._parent.markAsPending(g)}disable(g={}){const f=this._parentMarkedDirty(g.onlySelf);this.status=Ht,this.errors=null,this._forEachChild(E=>{E.disable(Object.assign(Object.assign({},g),{onlySelf:!0}))}),this._updateValue(),!1!==g.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},g),{skipPristineCheck:f})),this._onDisabledChange.forEach(E=>E(!0))}enable(g={}){const f=this._parentMarkedDirty(g.onlySelf);this.status=vn,this._forEachChild(E=>{E.enable(Object.assign(Object.assign({},g),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:g.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},g),{skipPristineCheck:f})),this._onDisabledChange.forEach(E=>E(!1))}_updateAncestors(g){this._parent&&!g.onlySelf&&(this._parent.updateValueAndValidity(g),g.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(g){this._parent=g}updateValueAndValidity(g={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===vn||this.status===Ut)&&this._runAsyncValidator(g.emitEvent)),!1!==g.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!g.onlySelf&&this._parent.updateValueAndValidity(g)}_updateTreeValidity(g={emitEvent:!0}){this._forEachChild(f=>f._updateTreeValidity(g)),this.updateValueAndValidity({onlySelf:!0,emitEvent:g.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ht:vn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(g){if(this.asyncValidator){this.status=Ut,this._hasOwnPendingAsyncValidator=!0;const f=kt(this.asyncValidator(this));this._asyncValidationSubscription=f.subscribe(E=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(E,{emitEvent:g})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(g,f={}){this.errors=g,this._updateControlsErrors(!1!==f.emitEvent)}get(g){return function Kt(y,g,f){if(null==g||(Array.isArray(g)||(g=g.split(f)),Array.isArray(g)&&0===g.length))return null;let E=y;return g.forEach(G=>{E=xt(E)?E.controls.hasOwnProperty(G)?E.controls[G]:null:Et(E)&&E.at(G)||null}),E}(this,g,".")}getError(g,f){const E=f?this.get(f):this;return E&&E.errors?E.errors[g]:null}hasError(g,f){return!!this.getError(g,f)}get root(){let g=this;for(;g._parent;)g=g._parent;return g}_updateControlsErrors(g){this.status=this._calculateStatus(),g&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(g)}_initObservables(){this.valueChanges=new h.vpe,this.statusChanges=new h.vpe}_calculateStatus(){return this._allControlsDisabled()?Ht:this.errors?gt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ut)?Ut:this._anyControlsHaveStatus(gt)?gt:vn}_anyControlsHaveStatus(g){return this._anyControls(f=>f.status===g)}_anyControlsDirty(){return this._anyControls(g=>g.dirty)}_anyControlsTouched(){return this._anyControls(g=>g.touched)}_updatePristine(g={}){this.pristine=!this._anyControlsDirty(),this._parent&&!g.onlySelf&&this._parent._updatePristine(g)}_updateTouched(g={}){this.touched=this._anyControlsTouched(),this._parent&&!g.onlySelf&&this._parent._updateTouched(g)}_isBoxedValue(g){return"object"==typeof g&&null!==g&&2===Object.keys(g).length&&"value"in g&&"disabled"in g}_registerOnCollectionChange(g){this._onCollectionChange=g}_setUpdateStrategy(g){In(g)&&null!=g.updateOn&&(this._updateOn=g.updateOn)}_parentMarkedDirty(g){return!g&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class cn extends Rt{constructor(g=null,f,E){super(Tt(f),un(E,f)),this._onChange=[],this._pendingChange=!1,this._applyFormState(g),this._setUpdateStrategy(f),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(g,f={}){this.value=this._pendingValue=g,this._onChange.length&&!1!==f.emitModelToViewChange&&this._onChange.forEach(E=>E(this.value,!1!==f.emitViewToModelChange)),this.updateValueAndValidity(f)}patchValue(g,f={}){this.setValue(g,f)}reset(g=null,f={}){this._applyFormState(g),this.markAsPristine(f),this.markAsUntouched(f),this.setValue(this.value,f),this._pendingChange=!1}_updateValue(){}_anyControls(g){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(g){this._onChange.push(g)}_unregisterOnChange(g){Ee(this._onChange,g)}registerOnDisabledChange(g){this._onDisabledChange.push(g)}_unregisterOnDisabledChange(g){Ee(this._onDisabledChange,g)}_forEachChild(g){}_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(g){this._isBoxedValue(g)?(this.value=this._pendingValue=g.value,g.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=g}}class mt extends Rt{constructor(g,f,E){super(Tt(f),un(E,f)),this.controls=g,this._initObservables(),this._setUpdateStrategy(f),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(g,f){return this.controls[g]?this.controls[g]:(this.controls[g]=f,f.setParent(this),f._registerOnCollectionChange(this._onCollectionChange),f)}addControl(g,f,E={}){this.registerControl(g,f),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}removeControl(g,f={}){this.controls[g]&&this.controls[g]._registerOnCollectionChange(()=>{}),delete this.controls[g],this.updateValueAndValidity({emitEvent:f.emitEvent}),this._onCollectionChange()}setControl(g,f,E={}){this.controls[g]&&this.controls[g]._registerOnCollectionChange(()=>{}),delete this.controls[g],f&&this.registerControl(g,f),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}contains(g){return this.controls.hasOwnProperty(g)&&this.controls[g].enabled}setValue(g,f={}){it(this,g),Object.keys(g).forEach(E=>{Be(this,E),this.controls[E].setValue(g[E],{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f)}patchValue(g,f={}){null!=g&&(Object.keys(g).forEach(E=>{this.controls[E]&&this.controls[E].patchValue(g[E],{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f))}reset(g={},f={}){this._forEachChild((E,G)=>{E.reset(g[G],{onlySelf:!0,emitEvent:f.emitEvent})}),this._updatePristine(f),this._updateTouched(f),this.updateValueAndValidity(f)}getRawValue(){return this._reduceChildren({},(g,f,E)=>(g[E]=ae(f),g))}_syncPendingControls(){let g=this._reduceChildren(!1,(f,E)=>!!E._syncPendingControls()||f);return g&&this.updateValueAndValidity({onlySelf:!0}),g}_forEachChild(g){Object.keys(this.controls).forEach(f=>{const E=this.controls[f];E&&g(E,f)})}_setUpControls(){this._forEachChild(g=>{g.setParent(this),g._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(g){for(const f of Object.keys(this.controls)){const E=this.controls[f];if(this.contains(f)&&g(E))return!0}return!1}_reduceValue(){return this._reduceChildren({},(g,f,E)=>((f.enabled||this.disabled)&&(g[E]=f.value),g))}_reduceChildren(g,f){let E=g;return this._forEachChild((G,ge)=>{E=f(E,G,ge)}),E}_allControlsDisabled(){for(const g of Object.keys(this.controls))if(this.controls[g].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class _n extends Rt{constructor(g,f,E){super(Tt(f),un(E,f)),this.controls=g,this._initObservables(),this._setUpdateStrategy(f),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(g){return this.controls[g]}push(g,f={}){this.controls.push(g),this._registerControl(g),this.updateValueAndValidity({emitEvent:f.emitEvent}),this._onCollectionChange()}insert(g,f,E={}){this.controls.splice(g,0,f),this._registerControl(f),this.updateValueAndValidity({emitEvent:E.emitEvent})}removeAt(g,f={}){this.controls[g]&&this.controls[g]._registerOnCollectionChange(()=>{}),this.controls.splice(g,1),this.updateValueAndValidity({emitEvent:f.emitEvent})}setControl(g,f,E={}){this.controls[g]&&this.controls[g]._registerOnCollectionChange(()=>{}),this.controls.splice(g,1),f&&(this.controls.splice(g,0,f),this._registerControl(f)),this.updateValueAndValidity({emitEvent:E.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(g,f={}){it(this,g),g.forEach((E,G)=>{Be(this,G),this.at(G).setValue(E,{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f)}patchValue(g,f={}){null!=g&&(g.forEach((E,G)=>{this.at(G)&&this.at(G).patchValue(E,{onlySelf:!0,emitEvent:f.emitEvent})}),this.updateValueAndValidity(f))}reset(g=[],f={}){this._forEachChild((E,G)=>{E.reset(g[G],{onlySelf:!0,emitEvent:f.emitEvent})}),this._updatePristine(f),this._updateTouched(f),this.updateValueAndValidity(f)}getRawValue(){return this.controls.map(g=>ae(g))}clear(g={}){this.controls.length<1||(this._forEachChild(f=>f._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:g.emitEvent}))}_syncPendingControls(){let g=this.controls.reduce((f,E)=>!!E._syncPendingControls()||f,!1);return g&&this.updateValueAndValidity({onlySelf:!0}),g}_forEachChild(g){this.controls.forEach((f,E)=>{g(f,E)})}_updateValue(){this.value=this.controls.filter(g=>g.enabled||this.disabled).map(g=>g.value)}_anyControls(g){return this.controls.some(f=>f.enabled&&g(f))}_setUpControls(){this._forEachChild(g=>this._registerControl(g))}_allControlsDisabled(){for(const g of this.controls)if(g.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(g){g.setParent(this),g._registerOnCollectionChange(this._onCollectionChange)}}let Qr=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275dir=h.lG2({type:y,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),y})(),Qn=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=h.oAB({type:y}),y.\u0275inj=h.cJS({}),y})();const Jn=new h.OlP("NgModelWithFormControlWarning"),ts={provide:vt,useExisting:(0,h.Gpc)(()=>Jr)};let Jr=(()=>{class y extends vt{constructor(f,E){super(),this.validators=f,this.asyncValidators=E,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.vpe,this._setValidators(f),this._setAsyncValidators(E)}ngOnChanges(f){this._checkFormPresent(),f.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ln(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(f){const E=this.form.get(f.path);return Le(E,f),E.updateValueAndValidity({emitEvent:!1}),this.directives.push(f),E}getControl(f){return this.form.get(f.path)}removeControl(f){Wt(f.control||null,f,!1),Ee(this.directives,f)}addFormGroup(f){this._setUpFormContainer(f)}removeFormGroup(f){this._cleanUpFormContainer(f)}getFormGroup(f){return this.form.get(f.path)}addFormArray(f){this._setUpFormContainer(f)}removeFormArray(f){this._cleanUpFormContainer(f)}getFormArray(f){return this.form.get(f.path)}updateModel(f,E){this.form.get(f.path).setValue(E)}onSubmit(f){return this.submitted=!0,function xe(y,g){y._syncPendingControls(),g.forEach(f=>{const E=f.control;"submit"===E.updateOn&&E._pendingChange&&(f.viewToModelUpdate(E._pendingValue),E._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(f),!1}onReset(){this.resetForm()}resetForm(f){this.form.reset(f),this.submitted=!1}_updateDomValue(){this.directives.forEach(f=>{const E=f.control,G=this.form.get(f.path);E!==G&&(Wt(E||null,f),Ge(G)&&(Le(G,f),f.control=G))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(f){const E=this.form.get(f.path);(function Pn(y,g){qe(y,g)})(E,f),E.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(f){if(this.form){const E=this.form.get(f.path);E&&function U(y,g){return ln(y,g)}(E,f)&&E.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){qe(this.form,this),this._oldForm&&ln(this._oldForm,this)}_checkFormPresent(){}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(Ae,10),h.Y36(fe,10))},y.\u0275dir=h.lG2({type:y,selectors:[["","formGroup",""]],hostBindings:function(f,E){1&f&&h.NdJ("submit",function(ge){return E.onSubmit(ge)})("reset",function(){return E.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h._Bn([ts]),h.qOj,h.TTD]}),y})();const fr={provide:It,useExisting:(0,h.Gpc)(()=>Ir)};let Ir=(()=>{class y extends It{constructor(f,E,G,ge,he){super(),this._ngModelWarningConfig=he,this._added=!1,this.update=new h.vpe,this._ngModelWarningSent=!1,this._parent=f,this._setValidators(E),this._setAsyncValidators(G),this.valueAccessor=function ke(y,g){if(!g)return null;let f,E,G;return Array.isArray(g),g.forEach(ge=>{ge.constructor===_e?f=ge:function J(y){return Object.getPrototypeOf(y.constructor)===H}(ge)?E=ge:G=ge}),G||E||f||null}(0,ge)}set isDisabled(f){}ngOnChanges(f){this._added||this._setUpControl(),function $(y,g){if(!y.hasOwnProperty("model"))return!1;const f=y.model;return!!f.isFirstChange()||!Object.is(g,f.currentValue)}(f,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(f){this.viewModel=f,this.update.emit(f)}get path(){return function wr(y,g){return[...g.path,y]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0}}return y._ngModelWarningSentOnce=!1,y.\u0275fac=function(f){return new(f||y)(h.Y36(vt,13),h.Y36(Ae,10),h.Y36(fe,10),h.Y36(B,10),h.Y36(Jn,8))},y.\u0275dir=h.lG2({type:y,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[h._Bn([fr]),h.qOj,h.TTD]}),y})();const Pi={provide:B,useExisting:(0,h.Gpc)(()=>Xn),multi:!0};function Vi(y,g){return null==y?`${g}`:(g&&"object"==typeof g&&(g="Object"),`${y}: ${g}`.slice(0,50))}let Xn=(()=>{class y extends H{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(f){this._compareWith=f}writeValue(f){this.value=f;const E=this._getOptionId(f);null==E&&this.setProperty("selectedIndex",-1);const G=Vi(E,f);this.setProperty("value",G)}registerOnChange(f){this.onChange=E=>{this.value=this._getOptionValue(E),f(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(f){for(const E of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(E),f))return E;return null}_getOptionValue(f){const E=function Bn(y){return y.split(":")[0]}(f);return this._optionMap.has(E)?this._optionMap.get(E):f}}return y.\u0275fac=function(){let g;return function(E){return(g||(g=h.n5z(y)))(E||y)}}(),y.\u0275dir=h.lG2({type:y,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(f,E){1&f&&h.NdJ("change",function(ge){return E.onChange(ge.target.value)})("blur",function(){return E.onTouched()})},inputs:{compareWith:"compareWith"},features:[h._Bn([Pi]),h.qOj]}),y})(),hr=(()=>{class y{constructor(f,E,G){this._element=f,this._renderer=E,this._select=G,this._select&&(this.id=this._select._registerOption())}set ngValue(f){null!=this._select&&(this._select._optionMap.set(this.id,f),this._setElementValue(Vi(this.id,f)),this._select.writeValue(this._select.value))}set value(f){this._setElementValue(f),this._select&&this._select.writeValue(this._select.value)}_setElementValue(f){this._renderer.setProperty(this._element.nativeElement,"value",f)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(Xn,9))},y.\u0275dir=h.lG2({type:y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),y})();const er={provide:B,useExisting:(0,h.Gpc)(()=>rn),multi:!0};function Li(y,g){return null==y?`${g}`:("string"==typeof g&&(g=`'${g}'`),g&&"object"==typeof g&&(g="Object"),`${y}: ${g}`.slice(0,50))}let rn=(()=>{class y extends H{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(f){this._compareWith=f}writeValue(f){let E;if(this.value=f,Array.isArray(f)){const G=f.map(ge=>this._getOptionId(ge));E=(ge,he)=>{ge._setSelected(G.indexOf(he.toString())>-1)}}else E=(G,ge)=>{G._setSelected(!1)};this._optionMap.forEach(E)}registerOnChange(f){this.onChange=E=>{const G=[],ge=E.selectedOptions;if(void 0!==ge){const he=ge;for(let Jt=0;Jt{class y{constructor(f,E,G){this._element=f,this._renderer=E,this._select=G,this._select&&(this.id=this._select._registerOption(this))}set ngValue(f){null!=this._select&&(this._value=f,this._setElementValue(Li(this.id,f)),this._select.writeValue(this._select.value))}set value(f){this._select?(this._value=f,this._setElementValue(Li(this.id,f)),this._select.writeValue(this._select.value)):this._setElementValue(f)}_setElementValue(f){this._renderer.setProperty(this._element.nativeElement,"value",f)}_setSelected(f){this._renderer.setProperty(this._element.nativeElement,"selected",f)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return y.\u0275fac=function(f){return new(f||y)(h.Y36(h.SBq),h.Y36(h.Qsj),h.Y36(rn,9))},y.\u0275dir=h.lG2({type:y,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),y})(),Xe=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=h.oAB({type:y}),y.\u0275inj=h.cJS({imports:[[Qn]]}),y})(),Ve=(()=>{class y{}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=h.oAB({type:y}),y.\u0275inj=h.cJS({imports:[Xe]}),y})(),Ct=(()=>{class y{static withConfig(f){return{ngModule:y,providers:[{provide:Jn,useValue:f.warnOnNgModelWithFormControl}]}}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275mod=h.oAB({type:y}),y.\u0275inj=h.cJS({imports:[Xe]}),y})(),rt=(()=>{class y{group(f,E=null){const G=this._reduceControls(f);let Jt,ge=null,he=null;return null!=E&&(function nt(y){return void 0!==y.asyncValidators||void 0!==y.validators||void 0!==y.updateOn}(E)?(ge=null!=E.validators?E.validators:null,he=null!=E.asyncValidators?E.asyncValidators:null,Jt=null!=E.updateOn?E.updateOn:void 0):(ge=null!=E.validator?E.validator:null,he=null!=E.asyncValidator?E.asyncValidator:null)),new mt(G,{asyncValidators:he,updateOn:Jt,validators:ge})}control(f,E,G){return new cn(f,E,G)}array(f,E,G){const ge=f.map(he=>this._createControl(he));return new _n(ge,E,G)}_reduceControls(f){const E={};return Object.keys(f).forEach(G=>{E[G]=this._createControl(f[G])}),E}_createControl(f){return Ge(f)||xt(f)||Et(f)?f:Array.isArray(f)?this.control(f[0],f.length>1?f[1]:null,f.length>2?f[2]:null):this.control(f)}}return y.\u0275fac=function(f){return new(f||y)},y.\u0275prov=h.Yz7({token:y,factory:y.\u0275fac,providedIn:Ct}),y})()},313:(He,ce,V)=>{V.d(ce,{Dx:()=>On,b2:()=>ft,q6:()=>_t});var h=V(808),A=V(96);class de extends h.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ue extends de{static makeCurrent(){(0,h.HT)(new ue)}onAndCancel(N,T,$){return N.addEventListener(T,$,!1),()=>{N.removeEventListener(T,$,!1)}}dispatchEvent(N,T){N.dispatchEvent(T)}remove(N){N.parentNode&&N.parentNode.removeChild(N)}createElement(N,T){return(T=T||this.getDefaultDocument()).createElement(N)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(N){return N.nodeType===Node.ELEMENT_NODE}isShadowRoot(N){return N instanceof DocumentFragment}getGlobalEventTarget(N,T){return"window"===T?window:"document"===T?N:"body"===T?N.body:null}getBaseHref(N){const T=function K(){return Se=Se||document.querySelector("base"),Se?Se.getAttribute("href"):null}();return null==T?null:function Ce(U){pe=pe||document.createElement("a"),pe.setAttribute("href",U);const N=pe.pathname;return"/"===N.charAt(0)?N:`/${N}`}(T)}resetBaseElement(){Se=null}getUserAgent(){return window.navigator.userAgent}getCookie(N){return(0,h.Mx)(document.cookie,N)}}let pe,Se=null;const X=new A.OlP("TRANSITION_ID"),H=[{provide:A.ip1,useFactory:function k(U,N,T){return()=>{T.get(A.CZH).donePromise.then(()=>{const $=(0,h.q)(),J=N.querySelectorAll(`style[ng-transition="${U}"]`);for(let xe=0;xe{const xe=N.findTestabilityInTree($,J);if(null==xe)throw new Error("Could not find testability for element.");return xe},A.dqk.getAllAngularTestabilities=()=>N.getAllTestabilities(),A.dqk.getAllAngularRootElements=()=>N.getAllRootElements(),A.dqk.frameworkStabilizers||(A.dqk.frameworkStabilizers=[]),A.dqk.frameworkStabilizers.push($=>{const J=A.dqk.getAllAngularTestabilities();let xe=J.length,ke=!1;const Ee=function(jt){ke=ke||jt,xe--,0==xe&&$(ke)};J.forEach(function(jt){jt.whenStable(Ee)})})}findTestabilityInTree(N,T,$){if(null==T)return null;const J=N.getTestability(T);return null!=J?J:$?(0,h.q)().isShadowRoot(T)?this.findTestabilityInTree(N,T.host,!0):this.findTestabilityInTree(N,T.parentElement,!0):null}}let P=(()=>{class U{build(){return new XMLHttpRequest}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})();const F=new A.OlP("EventManagerPlugins");let Z=(()=>{class U{constructor(T,$){this._zone=$,this._eventNameToPlugin=new Map,T.forEach(J=>J.manager=this),this._plugins=T.slice().reverse()}addEventListener(T,$,J){return this._findPluginFor($).addEventListener(T,$,J)}addGlobalEventListener(T,$,J){return this._findPluginFor($).addGlobalEventListener(T,$,J)}getZone(){return this._zone}_findPluginFor(T){const $=this._eventNameToPlugin.get(T);if($)return $;const J=this._plugins;for(let xe=0;xe{class U{constructor(){this._stylesSet=new Set}addStyles(T){const $=new Set;T.forEach(J=>{this._stylesSet.has(J)||(this._stylesSet.add(J),$.add(J))}),this.onStylesAdded($)}onStylesAdded(T){}getAllStyles(){return Array.from(this._stylesSet)}}return U.\u0275fac=function(T){return new(T||U)},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})(),_e=(()=>{class U extends ne{constructor(T){super(),this._doc=T,this._hostNodes=new Map,this._hostNodes.set(T.head,[])}_addStylesToHost(T,$,J){T.forEach(xe=>{const ke=this._doc.createElement("style");ke.textContent=xe,J.push($.appendChild(ke))})}addHost(T){const $=[];this._addStylesToHost(this._stylesSet,T,$),this._hostNodes.set(T,$)}removeHost(T){const $=this._hostNodes.get(T);$&&$.forEach(re),this._hostNodes.delete(T)}onStylesAdded(T){this._hostNodes.forEach(($,J)=>{this._addStylesToHost(T,J,$)})}ngOnDestroy(){this._hostNodes.forEach(T=>T.forEach(re))}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(h.K0))},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})();function re(U){(0,h.q)().remove(U)}const q={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/"},Ae=/%COMP%/g;function Ye(U,N,T){for(let $=0;${if("__ngUnwrap__"===N)return U;!1===U(N)&&(N.preventDefault(),N.returnValue=!1)}}let me=(()=>{class U{constructor(T,$,J){this.eventManager=T,this.sharedStylesHost=$,this.appId=J,this.rendererByCompId=new Map,this.defaultRenderer=new ve(T)}createRenderer(T,$){if(!T||!$)return this.defaultRenderer;switch($.encapsulation){case A.ifc.Emulated:{let J=this.rendererByCompId.get($.id);return J||(J=new kt(this.eventManager,this.sharedStylesHost,$,this.appId),this.rendererByCompId.set($.id,J)),J.applyToHost(T),J}case 1:case A.ifc.ShadowDom:return new ci(this.eventManager,this.sharedStylesHost,T,$);default:if(!this.rendererByCompId.has($.id)){const J=Ye($.id,$.styles,[]);this.sharedStylesHost.addStyles(J),this.rendererByCompId.set($.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(Z),A.LFG(_e),A.LFG(A.AFp))},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})();class ve{constructor(N){this.eventManager=N,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(N,T){return T?document.createElementNS(q[T]||T,N):document.createElement(N)}createComment(N){return document.createComment(N)}createText(N){return document.createTextNode(N)}appendChild(N,T){N.appendChild(T)}insertBefore(N,T,$){N&&N.insertBefore(T,$)}removeChild(N,T){N&&N.removeChild(T)}selectRootElement(N,T){let $="string"==typeof N?document.querySelector(N):N;if(!$)throw new Error(`The selector "${N}" did not match any elements`);return T||($.textContent=""),$}parentNode(N){return N.parentNode}nextSibling(N){return N.nextSibling}setAttribute(N,T,$,J){if(J){T=J+":"+T;const xe=q[J];xe?N.setAttributeNS(xe,T,$):N.setAttribute(T,$)}else N.setAttribute(T,$)}removeAttribute(N,T,$){if($){const J=q[$];J?N.removeAttributeNS(J,T):N.removeAttribute(`${$}:${T}`)}else N.removeAttribute(T)}addClass(N,T){N.classList.add(T)}removeClass(N,T){N.classList.remove(T)}setStyle(N,T,$,J){J&(A.JOm.DashCase|A.JOm.Important)?N.style.setProperty(T,$,J&A.JOm.Important?"important":""):N.style[T]=$}removeStyle(N,T,$){$&A.JOm.DashCase?N.style.removeProperty(T):N.style[T]=""}setProperty(N,T,$){N[T]=$}setValue(N,T){N.nodeValue=T}listen(N,T,$){return"string"==typeof N?this.eventManager.addGlobalEventListener(N,T,ze($)):this.eventManager.addEventListener(N,T,ze($))}}class kt extends ve{constructor(N,T,$,J){super(N),this.component=$;const xe=Ye(J+"-"+$.id,$.styles,[]);T.addStyles(xe),this.contentAttr=function Ue(U){return"_ngcontent-%COMP%".replace(Ae,U)}(J+"-"+$.id),this.hostAttr=function st(U){return"_nghost-%COMP%".replace(Ae,U)}(J+"-"+$.id)}applyToHost(N){super.setAttribute(N,this.hostAttr,"")}createElement(N,T){const $=super.createElement(N,T);return super.setAttribute($,this.contentAttr,""),$}}class ci extends ve{constructor(N,T,$,J){super(N),this.sharedStylesHost=T,this.hostEl=$,this.shadowRoot=$.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const xe=Ye(J.id,J.styles,[]);for(let ke=0;ke{class U extends j{constructor(T){super(T)}supports(T){return!0}addEventListener(T,$,J){return T.addEventListener($,J,!1),()=>this.removeEventListener(T,$,J)}removeEventListener(T,$,J){return T.removeEventListener($,J)}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(h.K0))},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})();const or=["alt","control","meta","shift"],Wr={"\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"},An={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"},Sn={alt:U=>U.altKey,control:U=>U.ctrlKey,meta:U=>U.metaKey,shift:U=>U.shiftKey};let Rn=(()=>{class U extends j{constructor(T){super(T)}supports(T){return null!=U.parseEventName(T)}addEventListener(T,$,J){const xe=U.parseEventName($),ke=U.eventCallback(xe.fullKey,J,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,h.q)().onAndCancel(T,xe.domEventName,ke))}static parseEventName(T){const $=T.toLowerCase().split("."),J=$.shift();if(0===$.length||"keydown"!==J&&"keyup"!==J)return null;const xe=U._normalizeKey($.pop());let ke="";if(or.forEach(jt=>{const Zt=$.indexOf(jt);Zt>-1&&($.splice(Zt,1),ke+=jt+".")}),ke+=xe,0!=$.length||0===xe.length)return null;const Ee={};return Ee.domEventName=J,Ee.fullKey=ke,Ee}static getEventFullKey(T){let $="",J=function et(U){let N=U.key;if(null==N){if(N=U.keyIdentifier,null==N)return"Unidentified";N.startsWith("U+")&&(N=String.fromCharCode(parseInt(N.substring(2),16)),3===U.location&&An.hasOwnProperty(N)&&(N=An[N]))}return Wr[N]||N}(T);return J=J.toLowerCase()," "===J?J="space":"."===J&&(J="dot"),or.forEach(xe=>{xe!=J&&Sn[xe](T)&&($+=xe+".")}),$+=J,$}static eventCallback(T,$,J){return xe=>{U.getEventFullKey(xe)===T&&J.runGuarded(()=>$(xe))}}static _normalizeKey(T){return"esc"===T?"escape":T}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(h.K0))},U.\u0275prov=A.Yz7({token:U,factory:U.\u0275fac}),U})();const _t=(0,A.eFA)(A._c5,"browser",[{provide:A.Lbi,useValue:h.bD},{provide:A.g9A,useValue:function $e(){ue.makeCurrent(),B.init()},multi:!0},{provide:h.K0,useFactory:function Yr(){return(0,A.RDi)(document),document},deps:[]}]),Zr=[{provide:A.zSh,useValue:"root"},{provide:A.qLn,useFactory:function fi(){return new A.qLn},deps:[]},{provide:F,useClass:br,multi:!0,deps:[h.K0,A.R0b,A.Lbi]},{provide:F,useClass:Rn,multi:!0,deps:[h.K0]},{provide:me,useClass:me,deps:[Z,_e,A.AFp]},{provide:A.FYo,useExisting:me},{provide:ne,useExisting:_e},{provide:_e,useClass:_e,deps:[h.K0]},{provide:A.dDg,useClass:A.dDg,deps:[A.R0b]},{provide:Z,useClass:Z,deps:[F,A.R0b]},{provide:h.JF,useClass:P,deps:[]}];let ft=(()=>{class U{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(T){return{ngModule:U,providers:[{provide:A.AFp,useValue:T.appId},{provide:X,useExisting:A.AFp},H]}}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(U,12))},U.\u0275mod=A.oAB({type:U}),U.\u0275inj=A.cJS({providers:Zr,imports:[h.ez,A.hGG]}),U})(),On=(()=>{class U{constructor(T){this._doc=T}getTitle(){return this._doc.title}setTitle(T){this._doc.title=T||""}}return U.\u0275fac=function(T){return new(T||U)(A.LFG(h.K0))},U.\u0275prov=A.Yz7({token:U,factory:function(T){let $=null;return $=T?new T:function Bt(){return new On((0,A.LFG)(h.K0))}(),$},providedIn:"root"}),U})();"undefined"!=typeof window&&window},367:(He,ce,V)=>{V.d(ce,{gz:()=>Bn,Bz:()=>ta,lC:()=>jn});var h=V(96),A=V(254),de=V(866),ue=V(9),Se=V(454);function K(...u){let a=u[u.length-1];return(0,de.K)(a)?(u.pop(),(0,Se.r)(u,a)):(0,ue.n)(u)}var pe=V(529),Ce=V(279);class X extends pe.xQ{constructor(a){super(),this._value=a}get value(){return this.getValue()}_subscribe(a){const o=super._subscribe(a);return o&&!o.closed&&a.next(this._value),o}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new Ce.N;return this._value}next(a){super.next(this._value=a)}}var k=V(688),H=V(489);class B extends H.L{notifyNext(a,o,p,_,w){this.destination.next(o)}notifyError(a,o){this.destination.error(a)}notifyComplete(a){this.destination.complete()}}class P extends H.L{constructor(a,o,p){super(),this.parent=a,this.outerValue=o,this.outerIndex=p,this.index=0}_next(a){this.parent.notifyNext(this.outerValue,a,this.outerIndex,this.index++,this)}_error(a){this.parent.notifyError(a,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}var F=V(249),Z=V(916);function j(u,a,o,p,_=new P(u,o,p)){if(!_.closed)return a instanceof Z.y?a.subscribe(_):(0,F.s)(a)(_)}const ne={};class re{constructor(a){this.resultSelector=a}call(a,o){return o.subscribe(new q(a,this.resultSelector))}}class q extends B{constructor(a,o){super(a),this.resultSelector=o,this.active=0,this.values=[],this.observables=[]}_next(a){this.values.push(ne),this.observables.push(a)}_complete(){const a=this.observables,o=a.length;if(0===o)this.destination.complete();else{this.active=o,this.toRespond=o;for(let p=0;p{function u(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return u.prototype=Object.create(Error.prototype),u})();var De=V(146);function ye(...u){return function Lt(){return(0,De.J)(1)}()(K(...u))}const Ue=new Z.y(u=>u.complete());function st(u){return u?function Ye(u){return new Z.y(a=>u.schedule(()=>a.complete()))}(u):Ue}function ze(u){return new Z.y(a=>{let o;try{o=u()}catch(_){return void a.error(_)}return(o?(0,A.D)(o):st()).subscribe(a)})}var Fe=V(762),me=V(850),ve=V(177);function yt(u,a){return"function"==typeof a?o=>o.pipe(yt((p,_)=>(0,A.D)(u(p,_)).pipe((0,me.U)((w,I)=>a(p,w,_,I))))):o=>o.lift(new zn(u))}class zn{constructor(a){this.project=a}call(a,o){return o.subscribe(new kt(a,this.project))}}class kt extends ve.Ds{constructor(a,o){super(a),this.project=o,this.index=0}_next(a){let o;const p=this.index++;try{o=this.project(a,p)}catch(_){return void this.destination.error(_)}this._innerSub(o)}_innerSub(a){const o=this.innerSubscription;o&&o.unsubscribe();const p=new ve.IY(this),_=this.destination;_.add(p),this.innerSubscription=(0,ve.ft)(a,p),this.innerSubscription!==p&&_.add(this.innerSubscription)}_complete(){const{innerSubscription:a}=this;(!a||a.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(a){this.destination.next(a)}}const br=(()=>{function u(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return u.prototype=Object.create(Error.prototype),u})();function or(u){return a=>0===u?st():a.lift(new di(u))}class di{constructor(a){if(this.total=a,this.total<0)throw new br}call(a,o){return o.subscribe(new Wr(a,this.total))}}class Wr extends H.L{constructor(a,o){super(a),this.total=o,this.count=0}_next(a){const o=this.total,p=++this.count;p<=o&&(this.destination.next(a),p===o&&(this.destination.complete(),this.unsubscribe()))}}function Sn(u,a){let o=!1;return arguments.length>=2&&(o=!0),function(_){return _.lift(new Rn(u,a,o))}}class Rn{constructor(a,o,p=!1){this.accumulator=a,this.seed=o,this.hasSeed=p}call(a,o){return o.subscribe(new et(a,this.accumulator,this.seed,this.hasSeed))}}class et extends H.L{constructor(a,o,p,_){super(a),this.accumulator=o,this._seed=p,this.hasSeed=_,this.index=0}get seed(){return this._seed}set seed(a){this.hasSeed=!0,this._seed=a}_next(a){if(this.hasSeed)return this._tryNext(a);this.seed=a,this.destination.next(a)}_tryNext(a){const o=this.index++;let p;try{p=this.accumulator(this.seed,a,o)}catch(_){this.destination.error(_)}this.seed=p,this.destination.next(p)}}function $e(u,a){return function(p){return p.lift(new fi(u,a))}}class fi{constructor(a,o){this.predicate=a,this.thisArg=o}call(a,o){return o.subscribe(new Yr(a,this.predicate,this.thisArg))}}class Yr extends H.L{constructor(a,o,p){super(a),this.predicate=o,this.thisArg=p,this.count=0}_next(a){let o;try{o=this.predicate.call(this.thisArg,a,this.count++)}catch(p){return void this.destination.error(p)}o&&this.destination.next(a)}}function an(u){return function(o){const p=new _t(u),_=o.lift(p);return p.caught=_}}class _t{constructor(a){this.selector=a}call(a,o){return o.subscribe(new Zr(a,this.selector,this.caught))}}class Zr extends ve.Ds{constructor(a,o,p){super(a),this.selector=o,this.caught=p}error(a){if(!this.isStopped){let o;try{o=this.selector(a,this.caught)}catch(w){return void super.error(w)}this._unsubscribeAndRecycle();const p=new ve.IY(this);this.add(p);const _=(0,ve.ft)(o,p);_!==p&&this.add(_)}}}var ft=V(709);function It(u,a){return(0,ft.zg)(u,a,1)}function vt(u){return function(o){return 0===u?st():o.lift(new hi(u))}}class hi{constructor(a){if(this.total=a,this.total<0)throw new br}call(a,o){return o.subscribe(new Bt(a,this.total))}}class Bt extends H.L{constructor(a,o){super(a),this.total=o,this.ring=new Array,this.count=0}_next(a){const o=this.ring,p=this.total,_=this.count++;o.length0){const p=this.count>=this.total?this.total:this.count,_=this.ring;for(let w=0;wa.lift(new Nn(u))}class Nn{constructor(a){this.errorFactory=a}call(a,o){return o.subscribe(new qn(a,this.errorFactory))}}class qn extends H.L{constructor(a,o){super(a),this.errorFactory=o,this.hasValue=!1}_next(a){this.hasValue=!0,this.destination.next(a)}_complete(){if(this.hasValue)return this.destination.complete();{let a;try{a=this.errorFactory()}catch(o){a=o}this.destination.error(a)}}}function ar(){return new fe}function Wn(u=null){return a=>a.lift(new Re(u))}class Re{constructor(a){this.defaultValue=a}call(a,o){return o.subscribe(new Ft(a,this.defaultValue))}}class Ft extends H.L{constructor(a,o){super(a),this.defaultValue=o,this.isEmpty=!0}_next(a){this.isEmpty=!1,this.destination.next(a)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var ht=V(379);function Te(u,a){const o=arguments.length>=2;return p=>p.pipe(u?$e((_,w)=>u(_,w,p)):ht.y,or(1),o?Wn(a):On(()=>new fe))}function mn(){}var en=V(43);function Ze(u,a,o){return function(_){return _.lift(new Kr(u,a,o))}}class Kr{constructor(a,o,p){this.nextOrObserver=a,this.error=o,this.complete=p}call(a,o){return o.subscribe(new qt(a,this.nextOrObserver,this.error,this.complete))}}class qt extends H.L{constructor(a,o,p,_){super(a),this._tapNext=mn,this._tapError=mn,this._tapComplete=mn,this._tapError=p||mn,this._tapComplete=_||mn,(0,en.m)(o)?(this._context=this,this._tapNext=o):o&&(this._context=o,this._tapNext=o.next||mn,this._tapError=o.error||mn,this._tapComplete=o.complete||mn)}_next(a){try{this._tapNext.call(this._context,a)}catch(o){return void this.destination.error(o)}this.destination.next(a)}_error(a){try{this._tapError.call(this._context,a)}catch(o){return void this.destination.error(o)}this.destination.error(a)}_complete(){try{this._tapComplete.call(this._context)}catch(a){return void this.destination.error(a)}return this.destination.complete()}}var tn=V(327),pt=V(654);class tt{constructor(a){this.callback=a}call(a,o){return o.subscribe(new wr(a,this.callback))}}class wr extends H.L{constructor(a,o){super(a),this.add(new pt.w(o))}}var Le=V(808);class Wt{constructor(a,o){this.id=a,this.url=o}}class yn extends Wt{constructor(a,o,p="imperative",_=null){super(a,o),this.navigationTrigger=p,this.restoredState=_}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class nn extends Wt{constructor(a,o,p){super(a,o),this.urlAfterRedirects=p}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class qe extends Wt{constructor(a,o,p){super(a,o),this.reason=p}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ln extends Wt{constructor(a,o,p){super(a,o),this.error=p}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Fn extends Wt{constructor(a,o,p,_){super(a,o),this.urlAfterRedirects=p,this.state=_}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Yn extends Wt{constructor(a,o,p,_){super(a,o),this.urlAfterRedirects=p,this.state=_}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mr extends Wt{constructor(a,o,p,_,w){super(a,o),this.urlAfterRedirects=p,this.state=_,this.shouldActivate=w}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Yt extends Wt{constructor(a,o,p,_){super(a,o),this.urlAfterRedirects=p,this.state=_}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pn extends Wt{constructor(a,o,p,_){super(a,o),this.urlAfterRedirects=p,this.state=_}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class U{constructor(a){this.route=a}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class N{constructor(a){this.route=a}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class T{constructor(a){this.snapshot=a}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ${constructor(a){this.snapshot=a}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class J{constructor(a){this.snapshot=a}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class xe{constructor(a){this.snapshot=a}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ke{constructor(a,o,p){this.routerEvent=a,this.position=o,this.anchor=p}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ee="primary";class jt{constructor(a){this.params=a||{}}has(a){return Object.prototype.hasOwnProperty.call(this.params,a)}get(a){if(this.has(a)){const o=this.params[a];return Array.isArray(o)?o[0]:o}return null}getAll(a){if(this.has(a)){const o=this.params[a];return Array.isArray(o)?o:[o]}return[]}get keys(){return Object.keys(this.params)}}function Zt(u){return new jt(u)}const vn="ngNavigationCancelingError";function gt(u){const a=Error("NavigationCancelingError: "+u);return a[vn]=!0,a}function Ht(u,a,o){const p=o.path.split("/");if(p.length>u.length||"full"===o.pathMatch&&(a.hasChildren()||p.lengthp[w]===_)}return u===a}function un(u){return Array.prototype.concat.apply([],u)}function Zn(u){return u.length>0?u[u.length-1]:null}function Ge(u,a){for(const o in u)u.hasOwnProperty(o)&&a(u[o],o)}function xt(u){return(0,h.CqO)(u)?u:(0,h.QGY)(u)?(0,A.D)(Promise.resolve(u)):K(u)}const ae={exact:function cn(u,a,o){if(!dn(u.segments,a.segments)||!$t(u.segments,a.segments,o)||u.numberOfChildren!==a.numberOfChildren)return!1;for(const p in a.children)if(!u.children[p]||!cn(u.children[p],a.children[p],o))return!1;return!0},subset:_n},Be={exact:function Rt(u,a){return Tt(u,a)},subset:function mt(u,a){return Object.keys(a).length<=Object.keys(u).length&&Object.keys(a).every(o=>lr(u[o],a[o]))},ignored:()=>!0};function it(u,a,o){return ae[o.paths](u.root,a.root,o.matrixParams)&&Be[o.queryParams](u.queryParams,a.queryParams)&&!("exact"===o.fragment&&u.fragment!==a.fragment)}function _n(u,a,o){return lt(u,a,a.segments,o)}function lt(u,a,o,p){if(u.segments.length>o.length){const _=u.segments.slice(0,o.length);return!(!dn(_,o)||a.hasChildren()||!$t(_,o,p))}if(u.segments.length===o.length){if(!dn(u.segments,o)||!$t(u.segments,o,p))return!1;for(const _ in a.children)if(!u.children[_]||!_n(u.children[_],a.children[_],p))return!1;return!0}{const _=o.slice(0,u.segments.length),w=o.slice(u.segments.length);return!!(dn(u.segments,_)&&$t(u.segments,_,p)&&u.children[Ee])&<(u.children[Ee],a,w,p)}}function $t(u,a,o){return a.every((p,_)=>Be[o](u[_].parameters,p.parameters))}class Gt{constructor(a,o,p){this.root=a,this.queryParams=o,this.fragment=p}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zt(this.queryParams)),this._queryParamMap}toString(){return ur.serialize(this)}}class se{constructor(a,o){this.segments=a,this.children=o,this.parent=null,Ge(o,(p,_)=>p.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return bt(this)}}class Vn{constructor(a,o){this.path=a,this.parameters=o}get parameterMap(){return this._parameterMap||(this._parameterMap=Zt(this.parameters)),this._parameterMap}toString(){return dr(this)}}function dn(u,a){return u.length===a.length&&u.every((o,p)=>o.path===a[p].path)}class Ot{}class kn{parse(a){const o=new ns(a);return new Gt(o.parseRootSegment(),o.parseQueryParams(),o.parseFragment())}serialize(a){const o=`/${Ke(a.root,!0)}`,p=function Ri(u){const a=Object.keys(u).map(o=>{const p=u[o];return Array.isArray(p)?p.map(_=>`${Ar(o)}=${Ar(_)}`).join("&"):`${Ar(o)}=${Ar(p)}`}).filter(o=>!!o);return a.length?`?${a.join("&")}`:""}(a.queryParams);return`${o}${p}${"string"==typeof a.fragment?`#${function fn(u){return encodeURI(u)}(a.fragment)}`:""}`}}const ur=new kn;function bt(u){return u.segments.map(a=>dr(a)).join("/")}function Ke(u,a){if(!u.hasChildren())return bt(u);if(a){const o=u.children[Ee]?Ke(u.children[Ee],!1):"",p=[];return Ge(u.children,(_,w)=>{w!==Ee&&p.push(`${w}:${Ke(_,!1)}`)}),p.length>0?`${o}(${p.join("//")})`:o}{const o=function Ln(u,a){let o=[];return Ge(u.children,(p,_)=>{_===Ee&&(o=o.concat(a(p,_)))}),Ge(u.children,(p,_)=>{_!==Ee&&(o=o.concat(a(p,_)))}),o}(u,(p,_)=>_===Ee?[Ke(u.children[Ee],!1)]:[`${_}:${Ke(p,!1)}`]);return 1===Object.keys(u.children).length&&null!=u.children[Ee]?`${bt(u)}/${o[0]}`:`${bt(u)}/(${o.join("//")})`}}function Qr(u){return encodeURIComponent(u).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ar(u){return Qr(u).replace(/%3B/gi,";")}function ut(u){return Qr(u).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function cr(u){return decodeURIComponent(u)}function Qn(u){return cr(u.replace(/\+/g,"%20"))}function dr(u){return`${ut(u.path)}${function Qt(u){return Object.keys(u).map(a=>`;${ut(a)}=${ut(u[a])}`).join("")}(u.parameters)}`}const Oi=/^[^\/()?;=#]+/;function Jn(u){const a=u.match(Oi);return a?a[0]:""}const Ni=/^[^=?&#]+/,ts=/^[^&#]+/;class ns{constructor(a){this.url=a,this.remaining=a}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new se([],{}):new se([],this.parseChildren())}parseQueryParams(){const a={};if(this.consumeOptional("?"))do{this.parseQueryParam(a)}while(this.consumeOptional("&"));return a}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const a=[];for(this.peekStartsWith("(")||a.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),a.push(this.parseSegment());let o={};this.peekStartsWith("/(")&&(this.capture("/"),o=this.parseParens(!0));let p={};return this.peekStartsWith("(")&&(p=this.parseParens(!1)),(a.length>0||Object.keys(o).length>0)&&(p[Ee]=new se(a,o)),p}parseSegment(){const a=Jn(this.remaining);if(""===a&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(a),new Vn(cr(a),this.parseMatrixParams())}parseMatrixParams(){const a={};for(;this.consumeOptional(";");)this.parseParam(a);return a}parseParam(a){const o=Jn(this.remaining);if(!o)return;this.capture(o);let p="";if(this.consumeOptional("=")){const _=Jn(this.remaining);_&&(p=_,this.capture(p))}a[cr(o)]=cr(p)}parseQueryParam(a){const o=function Fi(u){const a=u.match(Ni);return a?a[0]:""}(this.remaining);if(!o)return;this.capture(o);let p="";if(this.consumeOptional("=")){const I=function Jr(u){const a=u.match(ts);return a?a[0]:""}(this.remaining);I&&(p=I,this.capture(p))}const _=Qn(o),w=Qn(p);if(a.hasOwnProperty(_)){let I=a[_];Array.isArray(I)||(I=[I],a[_]=I),I.push(w)}else a[_]=w}parseParens(a){const o={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const p=Jn(this.remaining),_=this.remaining[p.length];if("/"!==_&&")"!==_&&";"!==_)throw new Error(`Cannot parse url '${this.url}'`);let w;p.indexOf(":")>-1?(w=p.substr(0,p.indexOf(":")),this.capture(w),this.capture(":")):a&&(w=Ee);const I=this.parseChildren();o[w]=1===Object.keys(I).length?I[Ee]:new se([],I),this.consumeOptional("//")}return o}peekStartsWith(a){return this.remaining.startsWith(a)}consumeOptional(a){return!!this.peekStartsWith(a)&&(this.remaining=this.remaining.substring(a.length),!0)}capture(a){if(!this.consumeOptional(a))throw new Error(`Expected "${a}".`)}}class Xr{constructor(a){this._root=a}get root(){return this._root.value}parent(a){const o=this.pathFromRoot(a);return o.length>1?o[o.length-2]:null}children(a){const o=gi(a,this._root);return o?o.children.map(p=>p.value):[]}firstChild(a){const o=gi(a,this._root);return o&&o.children.length>0?o.children[0].value:null}siblings(a){const o=Sr(a,this._root);return o.length<2?[]:o[o.length-2].children.map(_=>_.value).filter(_=>_!==a)}pathFromRoot(a){return Sr(a,this._root).map(o=>o.value)}}function gi(u,a){if(u===a.value)return a;for(const o of a.children){const p=gi(u,o);if(p)return p}return null}function Sr(u,a){if(u===a.value)return[a];for(const o of a.children){const p=Sr(u,o);if(p.length)return p.unshift(a),p}return[]}class Dn{constructor(a,o){this.value=a,this.children=o}toString(){return`TreeNode(${this.value})`}}function fr(u){const a={};return u&&u.children.forEach(o=>a[o.value.outlet]=o),a}class Ir extends Xr{constructor(a,o){super(a),this.snapshot=o,mi(this,a)}toString(){return this.snapshot.toString()}}function Pi(u,a){const o=function Vi(u,a){const I=new er([],{},{},"",{},Ee,a,null,u.root,-1,{});return new Li("",new Dn(I,[]))}(u,a),p=new X([new Vn("",{})]),_=new X({}),w=new X({}),I=new X({}),O=new X(""),W=new Bn(p,_,I,O,w,Ee,a,o.root);return W.snapshot=o.root,new Ir(new Dn(W,[]),o)}class Bn{constructor(a,o,p,_,w,I,O,W){this.url=a,this.params=o,this.queryParams=p,this.fragment=_,this.data=w,this.outlet=I,this.component=O,this._futureSnapshot=W}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((0,me.U)(a=>Zt(a)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,me.U)(a=>Zt(a)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Xn(u,a="emptyOnly"){const o=u.pathFromRoot;let p=0;if("always"!==a)for(p=o.length-1;p>=1;){const _=o[p],w=o[p-1];if(_.routeConfig&&""===_.routeConfig.path)p--;else{if(w.component)break;p--}}return function hr(u){return u.reduce((a,o)=>({params:Object.assign(Object.assign({},a.params),o.params),data:Object.assign(Object.assign({},a.data),o.data),resolve:Object.assign(Object.assign({},a.resolve),o._resolvedData)}),{params:{},data:{},resolve:{}})}(o.slice(p))}class er{constructor(a,o,p,_,w,I,O,W,be,Ne,Ie){this.url=a,this.params=o,this.queryParams=p,this.fragment=_,this.data=w,this.outlet=I,this.component=O,this.routeConfig=W,this._urlSegment=be,this._lastPathIndex=Ne,this._resolve=Ie}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=Zt(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Zt(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(p=>p.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Li extends Xr{constructor(a,o){super(o),this.url=a,mi(this,o)}toString(){return ki(this._root)}}function mi(u,a){a.value._routerState=u,a.children.forEach(o=>mi(u,o))}function ki(u){const a=u.children.length>0?` { ${u.children.map(ki).join(", ")} } `:"";return`${u.value}${a}`}function rn(u){if(u.snapshot){const a=u.snapshot,o=u._futureSnapshot;u.snapshot=o,Tt(a.queryParams,o.queryParams)||u.queryParams.next(o.queryParams),a.fragment!==o.fragment&&u.fragment.next(o.fragment),Tt(a.params,o.params)||u.params.next(o.params),function Kt(u,a){if(u.length!==a.length)return!1;for(let o=0;oTt(o.parameters,a[p].parameters))}(u.url,a.url);return o&&!(!u.parent!=!a.parent)&&(!u.parent||Tr(u.parent,a.parent))}function tr(u,a,o){if(o&&u.shouldReuseRoute(a.value,o.value.snapshot)){const p=o.value;p._futureSnapshot=a.value;const _=function Rr(u,a,o){return a.children.map(p=>{for(const _ of o.children)if(u.shouldReuseRoute(p.value,_.value.snapshot))return tr(u,p,_);return tr(u,p)})}(u,a,o);return new Dn(p,_)}{if(u.shouldAttach(a.value)){const w=u.retrieve(a.value);if(null!==w){const I=w.route;return I.value._futureSnapshot=a.value,I.children=a.children.map(O=>tr(u,O)),I}}const p=function rs(u){return new Bn(new X(u.url),new X(u.params),new X(u.queryParams),new X(u.fragment),new X(u.data),u.outlet,u.component,u)}(a.value),_=a.children.map(w=>tr(u,w));return new Dn(p,_)}}function Or(u){return"object"==typeof u&&null!=u&&!u.outlets&&!u.segmentPath}function nr(u){return"object"==typeof u&&null!=u&&u.outlets}function pr(u,a,o,p,_){let w={};return p&&Ge(p,(I,O)=>{w[O]=Array.isArray(I)?I.map(W=>`${W}`):`${I}`}),new Gt(o.root===u?a:ei(o.root,u,a),w,_)}function ei(u,a,o){const p={};return Ge(u.children,(_,w)=>{p[w]=_===a?o:ei(_,a,o)}),new se(u.segments,p)}class Nt{constructor(a,o,p){if(this.isAbsolute=a,this.numberOfDoubleDots=o,this.commands=p,a&&p.length>0&&Or(p[0]))throw new Error("Root segment cannot have matrix parameters");const _=p.find(nr);if(_&&_!==Zn(p))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Nr{constructor(a,o,p){this.segmentGroup=a,this.processChildren=o,this.index=p}}function M(u,a,o){if(u||(u=new se([],{})),0===u.segments.length&&u.hasChildren())return x(u,a,o);const p=function z(u,a,o){let p=0,_=a;const w={match:!1,pathIndex:0,commandIndex:0};for(;_=o.length)return w;const I=u.segments[_],O=o[p];if(nr(O))break;const W=`${O}`,be=p0&&void 0===W)break;if(W&&be&&"object"==typeof be&&void 0===be.outlets){if(!ct(W,be,I))return w;p+=2}else{if(!ct(W,{},I))return w;p++}_++}return{match:!0,pathIndex:_,commandIndex:p}}(u,a,o),_=o.slice(p.commandIndex);if(p.match&&p.pathIndex{"string"==typeof w&&(w=[w]),null!==w&&(_[I]=M(u.children[I],a,w))}),Ge(u.children,(w,I)=>{void 0===p[I]&&(_[I]=w)}),new se(u.segments,_)}}function ee(u,a,o){const p=u.segments.slice(0,a);let _=0;for(;_{"string"==typeof o&&(o=[o]),null!==o&&(a[p]=ee(new se([],{}),0,o))}),a}function ot(u){const a={};return Ge(u,(o,p)=>a[p]=`${o}`),a}function ct(u,a,o){return u==o.path&&Tt(a,o.parameters)}class Ve{constructor(a,o,p,_){this.routeReuseStrategy=a,this.futureState=o,this.currState=p,this.forwardEvent=_}activate(a){const o=this.futureState._root,p=this.currState?this.currState._root:null;this.deactivateChildRoutes(o,p,a),rn(this.futureState.root),this.activateChildRoutes(o,p,a)}deactivateChildRoutes(a,o,p){const _=fr(o);a.children.forEach(w=>{const I=w.value.outlet;this.deactivateRoutes(w,_[I],p),delete _[I]}),Ge(_,(w,I)=>{this.deactivateRouteAndItsChildren(w,p)})}deactivateRoutes(a,o,p){const _=a.value,w=o?o.value:null;if(_===w)if(_.component){const I=p.getContext(_.outlet);I&&this.deactivateChildRoutes(a,o,I.children)}else this.deactivateChildRoutes(a,o,p);else w&&this.deactivateRouteAndItsChildren(o,p)}deactivateRouteAndItsChildren(a,o){a.value.component&&this.routeReuseStrategy.shouldDetach(a.value.snapshot)?this.detachAndStoreRouteSubtree(a,o):this.deactivateRouteAndOutlet(a,o)}detachAndStoreRouteSubtree(a,o){const p=o.getContext(a.value.outlet),_=p&&a.value.component?p.children:o,w=fr(a);for(const I of Object.keys(w))this.deactivateRouteAndItsChildren(w[I],_);if(p&&p.outlet){const I=p.outlet.detach(),O=p.children.onOutletDeactivated();this.routeReuseStrategy.store(a.value.snapshot,{componentRef:I,route:a,contexts:O})}}deactivateRouteAndOutlet(a,o){const p=o.getContext(a.value.outlet),_=p&&a.value.component?p.children:o,w=fr(a);for(const I of Object.keys(w))this.deactivateRouteAndItsChildren(w[I],_);p&&p.outlet&&(p.outlet.deactivate(),p.children.onOutletDeactivated(),p.attachRef=null,p.resolver=null,p.route=null)}activateChildRoutes(a,o,p){const _=fr(o);a.children.forEach(w=>{this.activateRoutes(w,_[w.value.outlet],p),this.forwardEvent(new xe(w.value.snapshot))}),a.children.length&&this.forwardEvent(new $(a.value.snapshot))}activateRoutes(a,o,p){const _=a.value,w=o?o.value:null;if(rn(_),_===w)if(_.component){const I=p.getOrCreateContext(_.outlet);this.activateChildRoutes(a,o,I.children)}else this.activateChildRoutes(a,o,p);else if(_.component){const I=p.getOrCreateContext(_.outlet);if(this.routeReuseStrategy.shouldAttach(_.snapshot)){const O=this.routeReuseStrategy.retrieve(_.snapshot);this.routeReuseStrategy.store(_.snapshot,null),I.children.onOutletReAttached(O.contexts),I.attachRef=O.componentRef,I.route=O.route.value,I.outlet&&I.outlet.attach(O.componentRef,O.route.value),rn(O.route.value),this.activateChildRoutes(a,null,I.children)}else{const O=function Ct(u){for(let a=u.parent;a;a=a.parent){const o=a.routeConfig;if(o&&o._loadedConfig)return o._loadedConfig;if(o&&o.component)return null}return null}(_.snapshot),W=O?O.module.componentFactoryResolver:null;I.attachRef=null,I.route=_,I.resolver=W,I.outlet&&I.outlet.activateWith(_,W),this.activateChildRoutes(a,null,I.children)}}else this.activateChildRoutes(a,null,p)}}class nt{constructor(a,o){this.routes=a,this.module=o}}function rt(u){return"function"==typeof u}function y(u){return u instanceof Gt}const ge=Symbol("INITIAL_VALUE");function he(){return yt(u=>function _e(...u){let a,o;return(0,de.K)(u[u.length-1])&&(o=u.pop()),"function"==typeof u[u.length-1]&&(a=u.pop()),1===u.length&&(0,k.k)(u[0])&&(u=u[0]),(0,ue.n)(u,o).lift(new re(a))}(u.map(a=>a.pipe(or(1),function An(...u){const a=u[u.length-1];return(0,de.K)(a)?(u.pop(),o=>ye(u,o,a)):o=>ye(u,o)}(ge)))).pipe(Sn((a,o)=>{let p=!1;return o.reduce((_,w,I)=>_!==ge?_:(w===ge&&(p=!0),p||!1!==w&&I!==o.length-1&&!y(w)?_:w),a)},ge),$e(a=>a!==ge),(0,me.U)(a=>y(a)?a:!0===a),or(1)))}class Jt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Tn,this.attachRef=null}}class Tn{constructor(){this.contexts=new Map}onChildOutletCreated(a,o){const p=this.getOrCreateContext(a);p.outlet=o,this.contexts.set(a,p)}onChildOutletDestroyed(a){const o=this.getContext(a);o&&(o.outlet=null,o.attachRef=null)}onOutletDeactivated(){const a=this.contexts;return this.contexts=new Map,a}onOutletReAttached(a){this.contexts=a}getOrCreateContext(a){let o=this.getContext(a);return o||(o=new Jt,this.contexts.set(a,o)),o}getContext(a){return this.contexts.get(a)||null}}let jn=(()=>{class u{constructor(o,p,_,w,I){this.parentContexts=o,this.location=p,this.resolver=_,this.changeDetector=I,this.activated=null,this._activatedRoute=null,this.activateEvents=new h.vpe,this.deactivateEvents=new h.vpe,this.attachEvents=new h.vpe,this.detachEvents=new h.vpe,this.name=w||Ee,o.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const o=this.parentContexts.getContext(this.name);o&&o.route&&(o.attachRef?this.attach(o.attachRef,o.route):this.activateWith(o.route,o.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 o=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(o.instance),o}attach(o,p){this.activated=o,this._activatedRoute=p,this.location.insert(o.hostView),this.attachEvents.emit(o.instance)}deactivate(){if(this.activated){const o=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(o)}}activateWith(o,p){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=o;const I=(p=p||this.resolver).resolveComponentFactory(o._futureSnapshot.routeConfig.component),O=this.parentContexts.getOrCreateContext(this.name).children,W=new Fr(o,O,this.location.injector);this.activated=this.location.createComponent(I,this.location.length,W),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return u.\u0275fac=function(o){return new(o||u)(h.Y36(Tn),h.Y36(h.s_b),h.Y36(h._Vd),h.$8M("name"),h.Y36(h.sBO))},u.\u0275dir=h.lG2({type:u,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),u})();class Fr{constructor(a,o,p){this.route=a,this.childContexts=o,this.parent=p}get(a,o){return a===Bn?this.route:a===Tn?this.childContexts:this.parent.get(a,o)}}let Bi=(()=>{class u{}return u.\u0275fac=function(o){return new(o||u)},u.\u0275cmp=h.Xpm({type:u,selectors:[["ng-component"]],decls:1,vars:0,template:function(o,p){1&o&&h._UZ(0,"router-outlet")},directives:[jn],encapsulation:2}),u})();function is(u,a=""){for(let o=0;oxn(p)===a);return o.push(...u.filter(p=>xn(p)!==a)),o}const Zs={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Pr(u,a,o){var p;if(""===a.path)return"full"===a.pathMatch&&(u.hasChildren()||o.length>0)?Object.assign({},Zs):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const w=(a.matcher||Ht)(o,u,a);if(!w)return Object.assign({},Zs);const I={};Ge(w.posParams,(W,be)=>{I[be]=W.path});const O=w.consumed.length>0?Object.assign(Object.assign({},I),w.consumed[w.consumed.length-1].parameters):I;return{matched:!0,consumedSegments:w.consumed,lastChild:w.consumed.length,parameters:O,positionalParamSegments:null!==(p=w.posParams)&&void 0!==p?p:{}}}function Cn(u,a,o,p,_="corrected"){if(o.length>0&&function gc(u,a,o){return o.some(p=>ti(u,a,p)&&xn(p)!==Ee)}(u,o,p)){const I=new se(a,function Qs(u,a,o,p){const _={};_[Ee]=p,p._sourceSegment=u,p._segmentIndexShift=a.length;for(const w of o)if(""===w.path&&xn(w)!==Ee){const I=new se([],{});I._sourceSegment=u,I._segmentIndexShift=a.length,_[xn(w)]=I}return _}(u,a,p,new se(o,u.children)));return I._sourceSegment=u,I._segmentIndexShift=a.length,{segmentGroup:I,slicedSegments:[]}}if(0===o.length&&function $a(u,a,o){return o.some(p=>ti(u,a,p))}(u,o,p)){const I=new se(u.segments,function Ks(u,a,o,p,_,w){const I={};for(const O of p)if(ti(u,o,O)&&!_[xn(O)]){const W=new se([],{});W._sourceSegment=u,W._segmentIndexShift="legacy"===w?u.segments.length:a.length,I[xn(O)]=W}return Object.assign(Object.assign({},_),I)}(u,a,o,p,u.children,_));return I._sourceSegment=u,I._segmentIndexShift=a.length,{segmentGroup:I,slicedSegments:o}}const w=new se(u.segments,u.children);return w._sourceSegment=u,w._segmentIndexShift=a.length,{segmentGroup:w,slicedSegments:o}}function ti(u,a,o){return(!(u.hasChildren()||a.length>0)||"full"!==o.pathMatch)&&""===o.path}function ji(u,a,o,p){return!!(xn(u)===p||p!==Ee&&ti(a,o,u))&&("**"===u.path||Pr(a,u,o).matched)}function Xt(u,a,o){return 0===a.length&&!u.children[o]}class En{constructor(a){this.segmentGroup=a||null}}class Js{constructor(a){this.urlTree=a}}function gr(u){return new Z.y(a=>a.error(new En(u)))}function rr(u){return new Z.y(a=>a.error(new Js(u)))}function Ga(u){return new Z.y(a=>a.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${u}'`)))}class qa{constructor(a,o,p,_,w){this.configLoader=o,this.urlSerializer=p,this.urlTree=_,this.config=w,this.allowRedirects=!0,this.ngModule=a.get(h.h0i)}apply(){const a=Cn(this.urlTree.root,[],[],this.config).segmentGroup,o=new se(a.segments,a.children);return this.expandSegmentGroup(this.ngModule,this.config,o,Ee).pipe((0,me.U)(w=>this.createUrlTree(Ui(w),this.urlTree.queryParams,this.urlTree.fragment))).pipe(an(w=>{if(w instanceof Js)return this.allowRedirects=!1,this.match(w.urlTree);throw w instanceof En?this.noMatchError(w):w}))}match(a){return this.expandSegmentGroup(this.ngModule,this.config,a.root,Ee).pipe((0,me.U)(_=>this.createUrlTree(Ui(_),a.queryParams,a.fragment))).pipe(an(_=>{throw _ instanceof En?this.noMatchError(_):_}))}noMatchError(a){return new Error(`Cannot match any routes. URL Segment: '${a.segmentGroup}'`)}createUrlTree(a,o,p){const _=a.segments.length>0?new se([],{[Ee]:a}):a;return new Gt(_,o,p)}expandSegmentGroup(a,o,p,_){return 0===p.segments.length&&p.hasChildren()?this.expandChildren(a,o,p).pipe((0,me.U)(w=>new se([],w))):this.expandSegment(a,p,o,p.segments,_,!0)}expandChildren(a,o,p){const _=[];for(const w of Object.keys(p.children))"primary"===w?_.unshift(w):_.push(w);return(0,A.D)(_).pipe(It(w=>{const I=p.children[w],O=Mt(o,w);return this.expandSegmentGroup(a,O,I,w).pipe((0,me.U)(W=>({segment:W,outlet:w})))}),Sn((w,I)=>(w[I.outlet]=I.segment,w),{}),function Me(u,a){const o=arguments.length>=2;return p=>p.pipe(u?$e((_,w)=>u(_,w,p)):ht.y,vt(1),o?Wn(a):On(()=>new fe))}())}expandSegment(a,o,p,_,w,I){return(0,A.D)(p).pipe(It(O=>this.expandSegmentAgainstRoute(a,o,p,O,_,w,I).pipe(an(be=>{if(be instanceof En)return K(null);throw be}))),Te(O=>!!O),an((O,W)=>{if(O instanceof fe||"EmptyError"===O.name){if(Xt(o,_,w))return K(new se([],{}));throw new En(o)}throw O}))}expandSegmentAgainstRoute(a,o,p,_,w,I,O){return ji(_,o,w,I)?void 0===_.redirectTo?this.matchSegmentAgainstRoute(a,o,_,w,I):O&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(a,o,p,_,w,I):gr(o):gr(o)}expandSegmentAgainstRouteUsingRedirect(a,o,p,_,w,I){return"**"===_.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(a,p,_,I):this.expandRegularSegmentAgainstRouteUsingRedirect(a,o,p,_,w,I)}expandWildCardWithParamsAgainstRouteUsingRedirect(a,o,p,_){const w=this.applyRedirectCommands([],p.redirectTo,{});return p.redirectTo.startsWith("/")?rr(w):this.lineralizeSegments(p,w).pipe((0,ft.zg)(I=>{const O=new se(I,{});return this.expandSegment(a,O,o,I,_,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(a,o,p,_,w,I){const{matched:O,consumedSegments:W,lastChild:be,positionalParamSegments:Ne}=Pr(o,_,w);if(!O)return gr(o);const Ie=this.applyRedirectCommands(W,_.redirectTo,Ne);return _.redirectTo.startsWith("/")?rr(Ie):this.lineralizeSegments(_,Ie).pipe((0,ft.zg)(Je=>this.expandSegment(a,o,p,Je.concat(w.slice(be)),I,!1)))}matchSegmentAgainstRoute(a,o,p,_,w){if("**"===p.path)return p.loadChildren?(p._loadedConfig?K(p._loadedConfig):this.configLoader.load(a.injector,p)).pipe((0,me.U)(Je=>(p._loadedConfig=Je,new se(_,{})))):K(new se(_,{}));const{matched:I,consumedSegments:O,lastChild:W}=Pr(o,p,_);if(!I)return gr(o);const be=_.slice(W);return this.getChildConfig(a,p,_).pipe((0,ft.zg)(Ie=>{const Je=Ie.module,dt=Ie.routes,{segmentGroup:Yi,slicedSegments:At}=Cn(o,O,be,dt),Pt=new se(Yi.segments,Yi.children);if(0===At.length&&Pt.hasChildren())return this.expandChildren(Je,dt,Pt).pipe((0,me.U)(ai=>new se(O,ai)));if(0===dt.length&&0===At.length)return K(new se(O,{}));const mr=xn(p)===w;return this.expandSegment(Je,Pt,dt,At,mr?Ee:w,!0).pipe((0,me.U)(bn=>new se(O.concat(bn.segments),bn.children)))}))}getChildConfig(a,o,p){return o.children?K(new nt(o.children,a)):o.loadChildren?void 0!==o._loadedConfig?K(o._loadedConfig):this.runCanLoadGuards(a.injector,o,p).pipe((0,ft.zg)(_=>_?this.configLoader.load(a.injector,o).pipe((0,me.U)(w=>(o._loadedConfig=w,w))):function Uo(u){return new Z.y(a=>a.error(gt(`Cannot load children because the guard of the route "path: '${u.path}'" returned false`)))}(o))):K(new nt([],a))}runCanLoadGuards(a,o,p){const _=o.canLoad;return _&&0!==_.length?K(_.map(I=>{const O=a.get(I);let W;if(function g(u){return u&&rt(u.canLoad)}(O))W=O.canLoad(o,p);else{if(!rt(O))throw new Error("Invalid CanLoad guard");W=O(o,p)}return xt(W)})).pipe(he(),Ze(I=>{if(!y(I))return;const O=gt(`Redirecting to "${this.urlSerializer.serialize(I)}"`);throw O.url=I,O}),(0,me.U)(I=>!0===I)):K(!0)}lineralizeSegments(a,o){let p=[],_=o.root;for(;;){if(p=p.concat(_.segments),0===_.numberOfChildren)return K(p);if(_.numberOfChildren>1||!_.children[Ee])return Ga(a.redirectTo);_=_.children[Ee]}}applyRedirectCommands(a,o,p){return this.applyRedirectCreatreUrlTree(o,this.urlSerializer.parse(o),a,p)}applyRedirectCreatreUrlTree(a,o,p,_){const w=this.createSegmentGroup(a,o.root,p,_);return new Gt(w,this.createQueryParams(o.queryParams,this.urlTree.queryParams),o.fragment)}createQueryParams(a,o){const p={};return Ge(a,(_,w)=>{if("string"==typeof _&&_.startsWith(":")){const O=_.substring(1);p[w]=o[O]}else p[w]=_}),p}createSegmentGroup(a,o,p,_){const w=this.createSegments(a,o.segments,p,_);let I={};return Ge(o.children,(O,W)=>{I[W]=this.createSegmentGroup(a,O,p,_)}),new se(w,I)}createSegments(a,o,p,_){return o.map(w=>w.path.startsWith(":")?this.findPosParam(a,w,_):this.findOrReturn(w,p))}findPosParam(a,o,p){const _=p[o.path.substring(1)];if(!_)throw new Error(`Cannot redirect to '${a}'. Cannot find '${o.path}'.`);return _}findOrReturn(a,o){let p=0;for(const _ of o){if(_.path===a.path)return o.splice(p),_;p++}return a}}function Ui(u){const a={};for(const p of Object.keys(u.children)){const w=Ui(u.children[p]);(w.segments.length>0||w.hasChildren())&&(a[p]=w)}return function Xs(u){if(1===u.numberOfChildren&&u.children[Ee]){const a=u.children[Ee];return new se(u.segments.concat(a.segments),a.children)}return u}(new se(u.segments,a))}class ss{constructor(a){this.path=a,this.route=this.path[this.path.length-1]}}class os{constructor(a,o){this.component=a,this.route=o}}function $o(u,a,o){const p=u._root;return _i(p,a?a._root:null,o,[p.value])}function Hi(u,a,o){const p=function Go(u){if(!u)return null;for(let a=u.parent;a;a=a.parent){const o=a.routeConfig;if(o&&o._loadedConfig)return o._loadedConfig}return null}(a);return(p?p.module.injector:o).get(u)}function _i(u,a,o,p,_={canDeactivateChecks:[],canActivateChecks:[]}){const w=fr(a);return u.children.forEach(I=>{(function zo(u,a,o,p,_={canDeactivateChecks:[],canActivateChecks:[]}){const w=u.value,I=a?a.value:null,O=o?o.getContext(u.value.outlet):null;if(I&&w.routeConfig===I.routeConfig){const W=function ls(u,a,o){if("function"==typeof o)return o(u,a);switch(o){case"pathParamsChange":return!dn(u.url,a.url);case"pathParamsOrQueryParamsChange":return!dn(u.url,a.url)||!Tt(u.queryParams,a.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Tr(u,a)||!Tt(u.queryParams,a.queryParams);default:return!Tr(u,a)}}(I,w,w.routeConfig.runGuardsAndResolvers);W?_.canActivateChecks.push(new ss(p)):(w.data=I.data,w._resolvedData=I._resolvedData),_i(u,a,w.component?O?O.children:null:o,p,_),W&&O&&O.outlet&&O.outlet.isActivated&&_.canDeactivateChecks.push(new os(O.outlet.component,I))}else I&&$i(a,O,_),_.canActivateChecks.push(new ss(p)),_i(u,null,w.component?O?O.children:null:o,p,_)})(I,w[I.value.outlet],o,p.concat([I.value]),_),delete w[I.value.outlet]}),Ge(w,(I,O)=>$i(I,o.getContext(O),_)),_}function $i(u,a,o){const p=fr(u),_=u.value;Ge(p,(w,I)=>{$i(w,_.component?a?a.children.getContext(I):null:a,o)}),o.canDeactivateChecks.push(new os(_.component&&a&&a.outlet&&a.outlet.isActivated?a.outlet.component:null,_))}class Ja{}function qo(u){return new Z.y(a=>a.error(u))}class cs{constructor(a,o,p,_,w,I){this.rootComponentType=a,this.config=o,this.urlTree=p,this.url=_,this.paramsInheritanceStrategy=w,this.relativeLinkResolution=I}recognize(){const a=Cn(this.urlTree.root,[],[],this.config.filter(I=>void 0===I.redirectTo),this.relativeLinkResolution).segmentGroup,o=this.processSegmentGroup(this.config,a,Ee);if(null===o)return null;const p=new er([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ee,this.rootComponentType,null,this.urlTree.root,-1,{}),_=new Dn(p,o),w=new Li(this.url,_);return this.inheritParamsAndData(w._root),w}inheritParamsAndData(a){const o=a.value,p=Xn(o,this.paramsInheritanceStrategy);o.params=Object.freeze(p.params),o.data=Object.freeze(p.data),a.children.forEach(_=>this.inheritParamsAndData(_))}processSegmentGroup(a,o,p){return 0===o.segments.length&&o.hasChildren()?this.processChildren(a,o):this.processSegment(a,o,o.segments,p)}processChildren(a,o){const p=[];for(const w of Object.keys(o.children)){const I=o.children[w],O=Mt(a,w),W=this.processSegmentGroup(O,I,w);if(null===W)return null;p.push(...W)}const _=Yo(p);return function ds(u){u.sort((a,o)=>a.value.outlet===Ee?-1:o.value.outlet===Ee?1:a.value.outlet.localeCompare(o.value.outlet))}(_),_}processSegment(a,o,p,_){for(const w of a){const I=this.processSegmentAgainstRoute(w,o,p,_);if(null!==I)return I}return Xt(o,p,_)?[]:null}processSegmentAgainstRoute(a,o,p,_){if(a.redirectTo||!ji(a,o,p,_))return null;let w,I=[],O=[];if("**"===a.path){const dt=p.length>0?Zn(p).parameters:{};w=new er(p,dt,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ko(a),xn(a),a.component,a,Di(o),Zo(o)+p.length,Ci(a))}else{const dt=Pr(o,a,p);if(!dt.matched)return null;I=dt.consumedSegments,O=p.slice(dt.lastChild),w=new er(I,dt.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ko(a),xn(a),a.component,a,Di(o),Zo(o)+I.length,Ci(a))}const W=function eo(u){return u.children?u.children:u.loadChildren?u._loadedConfig.routes:[]}(a),{segmentGroup:be,slicedSegments:Ne}=Cn(o,I,O,W.filter(dt=>void 0===dt.redirectTo),this.relativeLinkResolution);if(0===Ne.length&&be.hasChildren()){const dt=this.processChildren(W,be);return null===dt?null:[new Dn(w,dt)]}if(0===W.length&&0===Ne.length)return[new Dn(w,[])];const Ie=xn(a)===_,Je=this.processSegment(W,be,Ne,Ie?Ee:_);return null===Je?null:[new Dn(w,Je)]}}function Wo(u){const a=u.value.routeConfig;return a&&""===a.path&&void 0===a.redirectTo}function Yo(u){const a=[],o=new Set;for(const p of u){if(!Wo(p)){a.push(p);continue}const _=a.find(w=>p.value.routeConfig===w.value.routeConfig);void 0!==_?(_.children.push(...p.children),o.add(_)):a.push(p)}for(const p of o){const _=Yo(p.children);a.push(new Dn(p.value,_))}return a.filter(p=>!o.has(p))}function Di(u){let a=u;for(;a._sourceSegment;)a=a._sourceSegment;return a}function Zo(u){let a=u,o=a._segmentIndexShift?a._segmentIndexShift:0;for(;a._sourceSegment;)a=a._sourceSegment,o+=a._segmentIndexShift?a._segmentIndexShift:0;return o-1}function Ko(u){return u.data||{}}function Ci(u){return u.resolve||{}}function Ei(u){return yt(a=>{const o=u(a);return o?(0,A.D)(o).pipe((0,me.U)(()=>a)):K(a)})}class fs extends class no{shouldDetach(a){return!1}store(a,o){}shouldAttach(a){return!1}retrieve(a){return null}shouldReuseRoute(a,o){return a.routeConfig===o.routeConfig}}{}const hs=new h.OlP("ROUTES");class ro{constructor(a,o,p,_){this.injector=a,this.compiler=o,this.onLoadStartListener=p,this.onLoadEndListener=_}load(a,o){if(o._loader$)return o._loader$;this.onLoadStartListener&&this.onLoadStartListener(o);const _=this.loadModuleFactory(o.loadChildren).pipe((0,me.U)(w=>{this.onLoadEndListener&&this.onLoadEndListener(o);const I=w.create(a);return new nt(un(I.injector.get(hs,void 0,h.XFs.Self|h.XFs.Optional)).map(We),I)}),an(w=>{throw o._loader$=void 0,w}));return o._loader$=new Fe.c(_,()=>new pe.xQ).pipe((0,tn.x)()),o._loader$}loadModuleFactory(a){return xt(a()).pipe((0,ft.zg)(o=>o instanceof h.YKP?K(o):(0,A.D)(this.compiler.compileModuleAsync(o))))}}class tl{shouldProcessUrl(a){return!0}extract(a){return a}merge(a,o){return a}}function wi(u){throw u}function io(u,a,o){return a.parse("/")}function Gi(u,a){return K(null)}const vc={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Jo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let hn=(()=>{class u{constructor(o,p,_,w,I,O,W){this.rootComponentType=o,this.urlSerializer=p,this.rootContexts=_,this.location=w,this.config=W,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new pe.xQ,this.errorHandler=wi,this.malformedUriErrorHandler=io,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Gi,afterPreactivation:Gi},this.urlHandlingStrategy=new tl,this.routeReuseStrategy=new fs,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=I.get(h.h0i),this.console=I.get(h.c2e);const Ie=I.get(h.R0b);this.isNgZoneEnabled=Ie instanceof h.R0b&&h.R0b.isInAngularZone(),this.resetConfig(W),this.currentUrlTree=function Et(){return new Gt(new se([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ro(I,O,Je=>this.triggerEvent(new U(Je)),Je=>this.triggerEvent(new N(Je))),this.routerState=Pi(this.currentUrlTree,this.rootComponentType),this.transitions=new X({id:0,targetPageId: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()}get browserPageId(){var o;return null===(o=this.location.getState())||void 0===o?void 0:o.\u0275routerPageId}setupNavigations(o){const p=this.events;return o.pipe($e(_=>0!==_.id),(0,me.U)(_=>Object.assign(Object.assign({},_),{extractedUrl:this.urlHandlingStrategy.extract(_.rawUrl)})),yt(_=>{let w=!1,I=!1;return K(_).pipe(Ze(O=>{this.currentNavigation={id:O.id,initialUrl:O.currentRawUrl,extractedUrl:O.extractedUrl,trigger:O.source,extras:O.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),yt(O=>{const W=this.browserUrlTree.toString(),be=!this.navigated||O.extractedUrl.toString()!==W||W!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||be)&&this.urlHandlingStrategy.shouldProcessUrl(O.rawUrl))return ps(O.source)&&(this.browserUrlTree=O.extractedUrl),K(O).pipe(yt(Ie=>{const Je=this.transitions.getValue();return p.next(new yn(Ie.id,this.serializeUrl(Ie.extractedUrl),Ie.source,Ie.restoredState)),Je!==this.transitions.getValue()?Ue:Promise.resolve(Ie)}),function Ho(u,a,o,p){return yt(_=>function za(u,a,o,p,_){return new qa(u,a,o,p,_).apply()}(u,a,o,_.extractedUrl,p).pipe((0,me.U)(w=>Object.assign(Object.assign({},_),{urlAfterRedirects:w}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Ze(Ie=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Ie.urlAfterRedirects})}),function to(u,a,o,p,_){return(0,ft.zg)(w=>function us(u,a,o,p,_="emptyOnly",w="legacy"){try{const I=new cs(u,a,o,p,_,w).recognize();return null===I?qo(new Ja):K(I)}catch(I){return qo(I)}}(u,a,w.urlAfterRedirects,o(w.urlAfterRedirects),p,_).pipe((0,me.U)(I=>Object.assign(Object.assign({},w),{targetSnapshot:I}))))}(this.rootComponentType,this.config,Ie=>this.serializeUrl(Ie),this.paramsInheritanceStrategy,this.relativeLinkResolution),Ze(Ie=>{if("eager"===this.urlUpdateStrategy){if(!Ie.extras.skipLocationChange){const dt=this.urlHandlingStrategy.merge(Ie.urlAfterRedirects,Ie.rawUrl);this.setBrowserUrl(dt,Ie)}this.browserUrlTree=Ie.urlAfterRedirects}const Je=new Fn(Ie.id,this.serializeUrl(Ie.extractedUrl),this.serializeUrl(Ie.urlAfterRedirects),Ie.targetSnapshot);p.next(Je)}));if(be&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Je,extractedUrl:dt,source:Yi,restoredState:At,extras:Pt}=O,mr=new yn(Je,this.serializeUrl(dt),Yi,At);p.next(mr);const oi=Pi(dt,this.rootComponentType).snapshot;return K(Object.assign(Object.assign({},O),{targetSnapshot:oi,urlAfterRedirects:dt,extras:Object.assign(Object.assign({},Pt),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=O.rawUrl,O.resolve(null),Ue}),Ei(O=>{const{targetSnapshot:W,id:be,extractedUrl:Ne,rawUrl:Ie,extras:{skipLocationChange:Je,replaceUrl:dt}}=O;return this.hooks.beforePreactivation(W,{navigationId:be,appliedUrlTree:Ne,rawUrlTree:Ie,skipLocationChange:!!Je,replaceUrl:!!dt})}),Ze(O=>{const W=new Yn(O.id,this.serializeUrl(O.extractedUrl),this.serializeUrl(O.urlAfterRedirects),O.targetSnapshot);this.triggerEvent(W)}),(0,me.U)(O=>Object.assign(Object.assign({},O),{guards:$o(O.targetSnapshot,O.currentSnapshot,this.rootContexts)})),function Wa(u,a){return(0,ft.zg)(o=>{const{targetSnapshot:p,currentSnapshot:_,guards:{canActivateChecks:w,canDeactivateChecks:I}}=o;return 0===I.length&&0===w.length?K(Object.assign(Object.assign({},o),{guardsResult:!0})):function sn(u,a,o,p){return(0,A.D)(u).pipe((0,ft.zg)(_=>function Qa(u,a,o,p,_){const w=a&&a.routeConfig?a.routeConfig.canDeactivate:null;return w&&0!==w.length?K(w.map(O=>{const W=Hi(O,a,_);let be;if(function G(u){return u&&rt(u.canDeactivate)}(W))be=xt(W.canDeactivate(u,a,o,p));else{if(!rt(W))throw new Error("Invalid CanDeactivate guard");be=xt(W(u,a,o,p))}return be.pipe(Te())})).pipe(he()):K(!0)}(_.component,_.route,o,a,p)),Te(_=>!0!==_,!0))}(I,p,_,u).pipe((0,ft.zg)(O=>O&&function wt(u){return"boolean"==typeof u}(O)?function Vr(u,a,o,p){return(0,A.D)(a).pipe(It(_=>ye(function Ya(u,a){return null!==u&&a&&a(new T(u)),K(!0)}(_.route.parent,p),function Dt(u,a){return null!==u&&a&&a(new J(u)),K(!0)}(_.route,p),function Ka(u,a,o){const p=a[a.length-1],w=a.slice(0,a.length-1).reverse().map(I=>function as(u){const a=u.routeConfig?u.routeConfig.canActivateChild:null;return a&&0!==a.length?{node:u,guards:a}:null}(I)).filter(I=>null!==I).map(I=>ze(()=>K(I.guards.map(W=>{const be=Hi(W,I.node,o);let Ne;if(function E(u){return u&&rt(u.canActivateChild)}(be))Ne=xt(be.canActivateChild(p,u));else{if(!rt(be))throw new Error("Invalid CanActivateChild guard");Ne=xt(be(p,u))}return Ne.pipe(Te())})).pipe(he())));return K(w).pipe(he())}(u,_.path,o),function Za(u,a,o){const p=a.routeConfig?a.routeConfig.canActivate:null;if(!p||0===p.length)return K(!0);const _=p.map(w=>ze(()=>{const I=Hi(w,a,o);let O;if(function f(u){return u&&rt(u.canActivate)}(I))O=xt(I.canActivate(a,u));else{if(!rt(I))throw new Error("Invalid CanActivate guard");O=xt(I(a,u))}return O.pipe(Te())}));return K(_).pipe(he())}(u,_.route,o))),Te(_=>!0!==_,!0))}(p,w,u,a):K(O)),(0,me.U)(O=>Object.assign(Object.assign({},o),{guardsResult:O})))})}(this.ngModule.injector,O=>this.triggerEvent(O)),Ze(O=>{if(y(O.guardsResult)){const be=gt(`Redirecting to "${this.serializeUrl(O.guardsResult)}"`);throw be.url=O.guardsResult,be}const W=new Mr(O.id,this.serializeUrl(O.extractedUrl),this.serializeUrl(O.urlAfterRedirects),O.targetSnapshot,!!O.guardsResult);this.triggerEvent(W)}),$e(O=>!!O.guardsResult||(this.restoreHistory(O),this.cancelNavigationTransition(O,""),!1)),Ei(O=>{if(O.guards.canActivateChecks.length)return K(O).pipe(Ze(W=>{const be=new Yt(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(be)}),yt(W=>{let be=!1;return K(W).pipe(function Xa(u,a){return(0,ft.zg)(o=>{const{targetSnapshot:p,guards:{canActivateChecks:_}}=o;if(!_.length)return K(o);let w=0;return(0,A.D)(_).pipe(It(I=>function el(u,a,o,p){return function mc(u,a,o,p){const _=Object.keys(u);if(0===_.length)return K({});const w={};return(0,A.D)(_).pipe((0,ft.zg)(I=>function yc(u,a,o,p){const _=Hi(u,a,p);return xt(_.resolve?_.resolve(a,o):_(a,o))}(u[I],a,o,p).pipe(Ze(O=>{w[I]=O}))),vt(1),(0,ft.zg)(()=>Object.keys(w).length===_.length?K(w):Ue))}(u._resolve,u,a,p).pipe((0,me.U)(w=>(u._resolvedData=w,u.data=Object.assign(Object.assign({},u.data),Xn(u,o).resolve),null)))}(I.route,p,u,a)),Ze(()=>w++),vt(1),(0,ft.zg)(I=>w===_.length?K(o):Ue))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Ze({next:()=>be=!0,complete:()=>{be||(this.restoreHistory(W),this.cancelNavigationTransition(W,"At least one route resolver didn't emit any value."))}}))}),Ze(W=>{const be=new Pn(W.id,this.serializeUrl(W.extractedUrl),this.serializeUrl(W.urlAfterRedirects),W.targetSnapshot);this.triggerEvent(be)}))}),Ei(O=>{const{targetSnapshot:W,id:be,extractedUrl:Ne,rawUrl:Ie,extras:{skipLocationChange:Je,replaceUrl:dt}}=O;return this.hooks.afterPreactivation(W,{navigationId:be,appliedUrlTree:Ne,rawUrlTree:Ie,skipLocationChange:!!Je,replaceUrl:!!dt})}),(0,me.U)(O=>{const W=function xr(u,a,o){const p=tr(u,a._root,o?o._root:void 0);return new Ir(p,a)}(this.routeReuseStrategy,O.targetSnapshot,O.currentRouterState);return Object.assign(Object.assign({},O),{targetRouterState:W})}),Ze(O=>{this.currentUrlTree=O.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(O.urlAfterRedirects,O.rawUrl),this.routerState=O.targetRouterState,"deferred"===this.urlUpdateStrategy&&(O.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,O),this.browserUrlTree=O.urlAfterRedirects)}),((u,a,o)=>(0,me.U)(p=>(new Ve(a,p.targetRouterState,p.currentRouterState,o).activate(u),p)))(this.rootContexts,this.routeReuseStrategy,O=>this.triggerEvent(O)),Ze({next(){w=!0},complete(){w=!0}}),function pi(u){return a=>a.lift(new tt(u))}(()=>{var O;w||I||this.cancelNavigationTransition(_,`Navigation ID ${_.id} is not equal to the current navigation id ${this.navigationId}`),(null===(O=this.currentNavigation)||void 0===O?void 0:O.id)===_.id&&(this.currentNavigation=null)}),an(O=>{if(I=!0,function Ut(u){return u&&u[vn]}(O)){const W=y(O.url);W||(this.navigated=!0,this.restoreHistory(_,!0));const be=new qe(_.id,this.serializeUrl(_.extractedUrl),O.message);p.next(be),W?setTimeout(()=>{const Ne=this.urlHandlingStrategy.merge(O.url,this.rawUrlTree),Ie={skipLocationChange:_.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ps(_.source)};this.scheduleNavigation(Ne,"imperative",null,Ie,{resolve:_.resolve,reject:_.reject,promise:_.promise})},0):_.resolve(!1)}else{this.restoreHistory(_,!0);const W=new ln(_.id,this.serializeUrl(_.extractedUrl),O);p.next(W);try{_.resolve(this.errorHandler(O))}catch(be){_.reject(be)}}return Ue}))}))}resetRootComponentType(o){this.rootComponentType=o,this.routerState.root.component=this.rootComponentType}setTransition(o){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),o))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(o=>{const p="popstate"===o.type?"popstate":"hashchange";"popstate"===p&&setTimeout(()=>{var _;const w={replaceUrl:!0},I=(null===(_=o.state)||void 0===_?void 0:_.navigationId)?o.state:null;if(I){const W=Object.assign({},I);delete W.navigationId,delete W.\u0275routerPageId,0!==Object.keys(W).length&&(w.state=W)}const O=this.parseUrl(o.url);this.scheduleNavigation(O,p,I,w)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(o){this.events.next(o)}resetConfig(o){is(o),this.config=o.map(We),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(o,p={}){const{relativeTo:_,queryParams:w,fragment:I,queryParamsHandling:O,preserveFragment:W}=p,be=_||this.routerState.root,Ne=W?this.currentUrlTree.fragment:I;let Ie=null;switch(O){case"merge":Ie=Object.assign(Object.assign({},this.currentUrlTree.queryParams),w);break;case"preserve":Ie=this.currentUrlTree.queryParams;break;default:Ie=w||null}return null!==Ie&&(Ie=this.removeEmptyProps(Ie)),function yi(u,a,o,p,_){if(0===o.length)return pr(a.root,a.root,a,p,_);const w=function vi(u){if("string"==typeof u[0]&&1===u.length&&"/"===u[0])return new Nt(!0,0,u);let a=0,o=!1;const p=u.reduce((_,w,I)=>{if("object"==typeof w&&null!=w){if(w.outlets){const O={};return Ge(w.outlets,(W,be)=>{O[be]="string"==typeof W?W.split("/"):W}),[..._,{outlets:O}]}if(w.segmentPath)return[..._,w.segmentPath]}return"string"!=typeof w?[..._,w]:0===I?(w.split("/").forEach((O,W)=>{0==W&&"."===O||(0==W&&""===O?o=!0:".."===O?a++:""!=O&&_.push(O))}),_):[..._,w]},[]);return new Nt(o,a,p)}(o);if(w.toRoot())return pr(a.root,new se([],{}),a,p,_);const I=function m(u,a,o){if(u.isAbsolute)return new Nr(a.root,!0,0);if(-1===o.snapshot._lastPathIndex){const w=o.snapshot._urlSegment;return new Nr(w,w===a.root,0)}const p=Or(u.commands[0])?0:1;return function b(u,a,o){let p=u,_=a,w=o;for(;w>_;){if(w-=_,p=p.parent,!p)throw new Error("Invalid number of '../'");_=p.segments.length}return new Nr(p,!1,_-w)}(o.snapshot._urlSegment,o.snapshot._lastPathIndex+p,u.numberOfDoubleDots)}(w,a,u),O=I.processChildren?x(I.segmentGroup,I.index,w.commands):M(I.segmentGroup,I.index,w.commands);return pr(I.segmentGroup,O,a,p,_)}(be,this.currentUrlTree,o,Ie,null!=Ne?Ne:null)}navigateByUrl(o,p={skipLocationChange:!1}){const _=y(o)?o:this.parseUrl(o),w=this.urlHandlingStrategy.merge(_,this.rawUrlTree);return this.scheduleNavigation(w,"imperative",null,p)}navigate(o,p={skipLocationChange:!1}){return function nl(u){for(let a=0;a{const w=o[_];return null!=w&&(p[_]=w),p},{})}processNavigations(){this.navigations.subscribe(o=>{this.navigated=!0,this.lastSuccessfulId=o.id,this.currentPageId=o.targetPageId,this.events.next(new nn(o.id,this.serializeUrl(o.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,o.resolve(!0)},o=>{this.console.warn(`Unhandled Navigation Error: ${o}`)})}scheduleNavigation(o,p,_,w,I){var O,W,be;if(this.disposed)return Promise.resolve(!1);const Ne=this.transitions.value,Ie=ps(p)&&Ne&&!ps(Ne.source),Je=Ne.rawUrl.toString()===o.toString(),dt=Ne.id===(null===(O=this.currentNavigation)||void 0===O?void 0:O.id);if(Ie&&Je&&dt)return Promise.resolve(!0);let At,Pt,mr;I?(At=I.resolve,Pt=I.reject,mr=I.promise):mr=new Promise((ai,il)=>{At=ai,Pt=il});const oi=++this.navigationId;let bn;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(_=this.location.getState()),bn=_&&_.\u0275routerPageId?_.\u0275routerPageId:w.replaceUrl||w.skipLocationChange?null!==(W=this.browserPageId)&&void 0!==W?W:0:(null!==(be=this.browserPageId)&&void 0!==be?be:0)+1):bn=0,this.setTransition({id:oi,targetPageId:bn,source:p,restoredState:_,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:o,extras:w,resolve:At,reject:Pt,promise:mr,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),mr.catch(ai=>Promise.reject(ai))}setBrowserUrl(o,p){const _=this.urlSerializer.serialize(o),w=Object.assign(Object.assign({},p.extras.state),this.generateNgRouterState(p.id,p.targetPageId));this.location.isCurrentPathEqualTo(_)||p.extras.replaceUrl?this.location.replaceState(_,"",w):this.location.go(_,"",w)}restoreHistory(o,p=!1){var _,w;if("computed"===this.canceledNavigationResolution){const I=this.currentPageId-o.targetPageId;"popstate"!==o.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(_=this.currentNavigation)||void 0===_?void 0:_.finalUrl)||0===I?this.currentUrlTree===(null===(w=this.currentNavigation)||void 0===w?void 0:w.finalUrl)&&0===I&&(this.resetState(o),this.browserUrlTree=o.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(I)}else"replace"===this.canceledNavigationResolution&&(p&&this.resetState(o),this.resetUrlToCurrentUrlTree())}resetState(o){this.routerState=o.currentRouterState,this.currentUrlTree=o.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,o.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(o,p){const _=new qe(o.id,this.serializeUrl(o.extractedUrl),p);this.triggerEvent(_),o.resolve(!1)}generateNgRouterState(o,p){return"computed"===this.canceledNavigationResolution?{navigationId:o,\u0275routerPageId:p}:{navigationId:o}}}return u.\u0275fac=function(o){h.$Z()},u.\u0275prov=h.Yz7({token:u,factory:u.\u0275fac}),u})();function ps(u){return"imperative"!==u}class Xo{}class so{preload(a,o){return K(null)}}let oo=(()=>{class u{constructor(o,p,_,w){this.router=o,this.injector=_,this.preloadingStrategy=w,this.loader=new ro(_,p,W=>o.triggerEvent(new U(W)),W=>o.triggerEvent(new N(W)))}setUpPreloading(){this.subscription=this.router.events.pipe($e(o=>o instanceof nn),It(()=>this.preload())).subscribe(()=>{})}preload(){const o=this.injector.get(h.h0i);return this.processRoutes(o,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(o,p){const _=[];for(const w of p)if(w.loadChildren&&!w.canLoad&&w._loadedConfig){const I=w._loadedConfig;_.push(this.processRoutes(I.module,I.routes))}else w.loadChildren&&!w.canLoad?_.push(this.preloadConfig(o,w)):w.children&&_.push(this.processRoutes(o,w.children));return(0,A.D)(_).pipe((0,De.J)(),(0,me.U)(w=>{}))}preloadConfig(o,p){return this.preloadingStrategy.preload(p,()=>(p._loadedConfig?K(p._loadedConfig):this.loader.load(o.injector,p)).pipe((0,ft.zg)(w=>(p._loadedConfig=w,this.processRoutes(w.module,w.routes)))))}}return u.\u0275fac=function(o){return new(o||u)(h.LFG(hn),h.LFG(h.Sil),h.LFG(h.zs3),h.LFG(Xo))},u.\u0275prov=h.Yz7({token:u,factory:u.\u0275fac}),u})(),ys=(()=>{class u{constructor(o,p,_={}){this.router=o,this.viewportScroller=p,this.options=_,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},_.scrollPositionRestoration=_.scrollPositionRestoration||"disabled",_.anchorScrolling=_.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(o=>{o instanceof yn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=o.navigationTrigger,this.restoredId=o.restoredState?o.restoredState.navigationId:0):o instanceof nn&&(this.lastId=o.id,this.scheduleScrollEvent(o,this.router.parseUrl(o.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(o=>{o instanceof ke&&(o.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(o.position):o.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(o.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(o,p){this.router.triggerEvent(new ke(o,"popstate"===this.lastSource?this.store[this.restoredId]:null,p))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return u.\u0275fac=function(o){h.$Z()},u.\u0275prov=h.Yz7({token:u,factory:u.\u0275fac}),u})();const ii=new h.OlP("ROUTER_CONFIGURATION"),qi=new h.OlP("ROUTER_FORROOT_GUARD"),Wi=[Le.Ye,{provide:Ot,useClass:kn},{provide:hn,useFactory:function ao(u,a,o,p,_,w,I={},O,W){const be=new hn(null,u,a,o,p,_,un(w));return O&&(be.urlHandlingStrategy=O),W&&(be.routeReuseStrategy=W),function Ai(u,a){u.errorHandler&&(a.errorHandler=u.errorHandler),u.malformedUriErrorHandler&&(a.malformedUriErrorHandler=u.malformedUriErrorHandler),u.onSameUrlNavigation&&(a.onSameUrlNavigation=u.onSameUrlNavigation),u.paramsInheritanceStrategy&&(a.paramsInheritanceStrategy=u.paramsInheritanceStrategy),u.relativeLinkResolution&&(a.relativeLinkResolution=u.relativeLinkResolution),u.urlUpdateStrategy&&(a.urlUpdateStrategy=u.urlUpdateStrategy),u.canceledNavigationResolution&&(a.canceledNavigationResolution=u.canceledNavigationResolution)}(I,be),I.enableTracing&&be.events.subscribe(Ne=>{var Ie,Je;null===(Ie=console.group)||void 0===Ie||Ie.call(console,`Router Event: ${Ne.constructor.name}`),console.log(Ne.toString()),console.log(Ne),null===(Je=console.groupEnd)||void 0===Je||Je.call(console)}),be},deps:[Ot,Tn,Le.Ye,h.zs3,h.Sil,hs,ii,[class bi{},new h.FiY],[class Qo{},new h.FiY]]},Tn,{provide:Bn,useFactory:function Si(u){return u.routerState.root},deps:[hn]},oo,so,class ea{preload(a,o){return o().pipe(an(()=>K(null)))}},{provide:ii,useValue:{enableTracing:!1}}];function rl(){return new h.PXZ("Router",hn)}let ta=(()=>{class u{constructor(o,p){}static forRoot(o,p){return{ngModule:u,providers:[Wi,vs(o),{provide:qi,useFactory:ra,deps:[[hn,new h.FiY,new h.tp0]]},{provide:ii,useValue:p||{}},{provide:Le.S$,useFactory:Mi,deps:[Le.lw,[new h.tBr(Le.mr),new h.FiY],ii]},{provide:ys,useFactory:na,deps:[hn,Le.EM,ii]},{provide:Xo,useExisting:p&&p.preloadingStrategy?p.preloadingStrategy:so},{provide:h.PXZ,multi:!0,useFactory:rl},[kr,{provide:h.ip1,multi:!0,useFactory:ia,deps:[kr]},{provide:si,useFactory:lo,deps:[kr]},{provide:h.tb,multi:!0,useExisting:si}]]}}static forChild(o){return{ngModule:u,providers:[vs(o)]}}}return u.\u0275fac=function(o){return new(o||u)(h.LFG(qi,8),h.LFG(hn,8))},u.\u0275mod=h.oAB({type:u}),u.\u0275inj=h.cJS({}),u})();function na(u,a,o){return o.scrollOffset&&a.setOffset(o.scrollOffset),new ys(u,a,o)}function Mi(u,a,o={}){return o.useHash?new Le.Do(u,a):new Le.b0(u,a)}function ra(u){return"guarded"}function vs(u){return[{provide:h.deG,multi:!0,useValue:u},{provide:hs,multi:!0,useValue:u}]}let kr=(()=>{class u{constructor(o){this.injector=o,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new pe.xQ}appInitializer(){return this.injector.get(Le.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let p=null;const _=new Promise(O=>p=O),w=this.injector.get(hn),I=this.injector.get(ii);return"disabled"===I.initialNavigation?(w.setUpLocationChangeListener(),p(!0)):"enabled"===I.initialNavigation||"enabledBlocking"===I.initialNavigation?(w.hooks.afterPreactivation=()=>this.initNavigation?K(null):(this.initNavigation=!0,p(!0),this.resultOfPreactivationDone),w.initialNavigation()):p(!0),_})}bootstrapListener(o){const p=this.injector.get(ii),_=this.injector.get(oo),w=this.injector.get(ys),I=this.injector.get(hn),O=this.injector.get(h.z2F);o===O.components[0]&&(("enabledNonBlocking"===p.initialNavigation||void 0===p.initialNavigation)&&I.initialNavigation(),_.setUpPreloading(),w.init(),I.resetRootComponentType(O.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return u.\u0275fac=function(o){return new(o||u)(h.LFG(h.zs3))},u.\u0275prov=h.Yz7({token:u,factory:u.\u0275fac}),u})();function ia(u){return u.appInitializer.bind(u)}function lo(u){return u.bootstrapListener.bind(u)}const si=new h.OlP("Router Initializer")}},He=>{He(He.s=549)}]);