"use strict";(self.webpackChunkshop_ngenic_v2=self.webpackChunkshop_ngenic_v2||[]).push([[179],{3242:(Re,oe,C)=>{C.d(oe,{b:()=>Ve,p:()=>at});var c=C(2313),u=C(2096),H=C(9808),J=C(520);const W=void 0,j=["sv",[["fm","em"],W,W],[["fm","em"],["f.m.","e.m."],["f\xf6rmiddag","eftermiddag"]],[["S","M","T","O","T","F","L"],["s\xf6n","m\xe5n","tis","ons","tors","fre","l\xf6r"],["s\xf6ndag","m\xe5ndag","tisdag","onsdag","torsdag","fredag","l\xf6rdag"],["s\xf6","m\xe5","ti","on","to","fr","l\xf6"]],W,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]],W,[["f.Kr.","e.Kr."],W,["f\xf6re Kristus","efter Kristus"]],1,[6,0],["y-MM-dd","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",W,W,W],[",","\xa0",";","%","+","\u2212","\xd710^","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0\xa0%","#,##0.00\xa0\xa4","#E0"],"SEK","kr","svensk krona",{AUD:[W,"$"],BBD:["Bds$","$"],BMD:["BM$","$"],BRL:["BR$","R$"],BSD:["BS$","$"],BZD:["BZ$","$"],CNY:[W,"\xa5"],DKK:["Dkr","kr"],DOP:["RD$","$"],EEK:["Ekr"],EGP:["EG\xa3","E\xa3"],ESP:[],GBP:[W,"\xa3"],HKD:[W,"$"],IEP:["IE\xa3"],INR:[W,"\u20b9"],ISK:["Ikr","kr"],JMD:["JM$","$"],JPY:[W,"\xa5"],KRW:[W,"\u20a9"],NOK:["Nkr","kr"],NZD:[W,"$"],PHP:[W,"\u20b1"],RON:[W,"L"],SEK:["kr"],TWD:[W,"NT$"],USD:["US$","$"],VND:[W,"\u20ab"]},"ltr",function Z(L){const ie=Math.floor(Math.abs(L)),te=L.toString().replace(/^[^.]*\.?/,"").length;return 1===ie&&0===te?1:5}];class z{constructor(Ae,ie="/assets/i18n/",te=".json"){this.http=Ae,this.prefix=ie,this.suffix=te}getTranslation(Ae){return this.http.get(`${this.prefix}${Ae}${this.suffix}`)}}var O=C(2673),T=C(655),R=C(1750),q=C(6617),se=C(6761),ne=C(5797);function ce(L,Ae){if(1&L&&(u.TgZ(0,"div",8)(1,"span",9),u._uU(2),u.ALo(3,"number"),u.ALo(4,"translate"),u.qZA(),u._uU(5),u.ALo(6,"number"),u.ALo(7,"translate"),u.qZA()),2&L){const ie=u.oxw();u.xp6(2),u.AsE("",u.Dn7(3,4,ie.product.preSalePrices[0].once,".0-2","sv")," ",u.lcZ(4,8,"shared.currency"),""),u.xp6(3),u.AsE(" ",u.Dn7(6,10,ie.product.prices[0].once,".0-2","sv")," ",u.lcZ(7,14,"shared.currency")," ")}}function X(L,Ae){if(1&L&&(u.TgZ(0,"div",8),u._uU(1),u.ALo(2,"number"),u.ALo(3,"translate"),u.qZA()),2&L){const ie=u.oxw();u.xp6(1),u.AsE(" ",u.Dn7(2,2,ie.product.prices[0].once,".0-2","sv")," ",u.lcZ(3,6,"shared.currency")," ")}}function Se(L,Ae){if(1&L&&(u.TgZ(0,"span",10),u._uU(1),u.qZA()),2&L){const ie=u.oxw();u.xp6(1),u.Oqu(ie.byLine)}}function Te(L,Ae){1&L&&(u.TgZ(0,"div",11),u._uU(1),u.ALo(2,"translate"),u.qZA()),2&L&&(u.xp6(1),u.Oqu(u.lcZ(2,1,"shared.outOfStock")))}let Ie=(()=>{class L{get imageUrl(){return this.spotlight?this.product.imageURL:this.product.thumbURL}}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275cmp=u.Xpm({type:L,selectors:[["product"]],inputs:{product:"product",byLine:["by-line","byLine"],spotlight:"spotlight"},decls:11,vars:12,consts:[[1,"b-product-block"],[1,"b-product-block__imagewrapper"],[1,"b-product-block__image"],[3,"src","alt","srcset"],[1,"b-product-block__header"],["class","b-product-block__price",4,"ngIf"],["class","b-product-block__byline",4,"ngIf"],["class","b-product-block__outofstock",4,"ngIf"],[1,"b-product-block__price"],[1,"b-product-block__oldprice"],[1,"b-product-block__byline"],[1,"b-product-block__outofstock"]],template:function(ie,te){1&ie&&(u.TgZ(0,"div",0)(1,"div",1)(2,"div",2),u._UZ(3,"img",3),u.qZA()(),u.TgZ(4,"header",4),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.YNc(7,ce,8,16,"div",5),u.YNc(8,X,4,8,"div",5),u.YNc(9,Se,2,1,"span",6),u.YNc(10,Te,3,3,"div",7),u.qZA()),2&ie&&(u.ekj("b-product-block--spotlight",te.spotlight),u.xp6(3),u.s9C("src","./assets/"+te.imageUrl,u.LSH),u.MGl("srcset","","./assets/"+te.imageUrl.replace("1x","2x")," 2x",u.LSH),u.Q6J("alt",te.product.name),u.xp6(2),u.Oqu(u.lcZ(6,10,"root."+te.product.name)),u.xp6(2),u.Q6J("ngIf",te.product.onSale),u.xp6(1),u.Q6J("ngIf",!te.product.onSale),u.xp6(1),u.Q6J("ngIf",te.byLine),u.xp6(1),u.Q6J("ngIf",te.product.outOfStock))},directives:[H.O5],pipes:[ne.X$,H.JJ],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1}[_nghost-%COMP%]   .b-product-block[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;background:#fff;border-radius:11px;padding:9px 0 24px;flex-grow:1;position:relative;cursor:pointer}[_nghost-%COMP%]   .b-product-block--medium[_ngcontent-%COMP%]   .b-product-block__header[_ngcontent-%COMP%]{font-size:32px}[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]{padding:30px 0 52px;max-height:none}[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__byline[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__header[_ngcontent-%COMP%]{font-size:32px;line-height:normal}[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__price[_ngcontent-%COMP%]{font-size:16px;line-height:2.5;margin-top:0}[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__outofstock[_ngcontent-%COMP%]{top:auto;bottom:0;border-radius:0 0 10px 10px}[_nghost-%COMP%]   .b-product-block__imagewrapper[_ngcontent-%COMP%]{order:2;padding:0 20px 71%;width:90%;box-sizing:border-box;position:relative;max-height:355px}[_nghost-%COMP%]   .b-product-block__image[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}[_nghost-%COMP%]   .b-product-block__image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{-o-object-fit:contain;object-fit:contain;max-width:100%;max-height:100%}[_nghost-%COMP%]   .b-product-block__header[_ngcontent-%COMP%]{order:3;color:#222;text-align:center;font-family:Mohave-SemiBoldItalic,Helvetica,Arial,sans-serif;font-size:20px;line-height:24px;padding:0 20px;text-decoration:none}[_nghost-%COMP%]   .b-product-block__byline[_ngcontent-%COMP%]{order:1;color:#a7a7a7;text-align:center;font-family:Open Sans,Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;margin-bottom:44px}[_nghost-%COMP%]   .b-product-block__oldprice[_ngcontent-%COMP%]{margin-right:10px;text-decoration:line-through;color:#bbb;font-weight:400}[_nghost-%COMP%]   .b-product-block__price[_ngcontent-%COMP%]{order:4;font-size:14px;font-weight:600;line-height:20px;color:#6cc36c;text-align:center;margin-top:6px}[_nghost-%COMP%]   .b-product-block__outofstock[_ngcontent-%COMP%]{position:absolute;left:0;right:0;top:0;border-radius:10px 10px 0 0;background:#B9B9B9;height:26px;line-height:26px;color:#fff;text-align:center;font-family:Open Sans,Helvetica,Arial,sans-serif;font-size:13px;font-weight:600;letter-spacing:-.25px}@media all and (min-width: 780px){[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__price[_ngcontent-%COMP%]{font-size:18px}}@media all and (min-width: 960px){[_nghost-%COMP%]   .b-product-block--spotlight[_ngcontent-%COMP%]   .b-product-block__header[_ngcontent-%COMP%]{font-size:42px}}"]}),L})();function xe(L,Ae){if(1&L&&(u.TgZ(0,"a",12),u._UZ(1,"span",13)(2,"img",14),u.qZA()),2&L){const ie=Ae.$implicit;u.Q6J("href",ie.url,u.LSH),u.xp6(2),u.Q6J("src","/assets/images/logos/energycompanys/"+ie.image,u.LSH)("alt",ie.companyName)}}function gt(L,Ae){if(1&L&&(u.TgZ(0,"div",8)(1,"h2",9),u._uU(2),u.ALo(3,"translate"),u.qZA(),u.TgZ(4,"div",10),u.YNc(5,xe,3,3,"a",11),u.qZA()()),2&L){const ie=u.oxw();u.xp6(2),u.Oqu(u.lcZ(3,2,"start.orderFromReseller")),u.xp6(3),u.Q6J("ngForOf",ie.resellers)}}let rt=(()=>{class L{constructor(ie,te,et){this.info=ie,this.headService=te,this.ecommerceEvents=et,this.resellers=[{companyName:"Aff\xe4rsverken Karlskrona AB",image:"affarsverken-karlskrona.svg",url:"https://www.affarsverken.se/smarta-energitjanster/smart-klimatstyrning/"},{companyName:"Arvika Fj\xe4rrv\xe4rme AB",image:"arvika-teknik@2x.png",url:"https://www.teknikivast.se/sidor/fjarrvarme/energitjanster/smart-varme.html"},{companyName:"G\xf6teborg Energi AB",image:"GE_Logo_RGB.svg",url:"https://www.goteborgenergi.se/privat/fjarrvarme/smart-varme"},{companyName:"Halmstad Energi & Milj\xf6 AB",image:"halmstads-energi-och-miljo.svg",url:"https://www.hem.se/varme/klok-varme/"},{companyName:"Hammar\xf6 Energi AB",image:"hammaro-energi.svg",url:"https://hammaroenergi.se/ovriga-energitjanster/"},{companyName:"Hedemora",image:"hedemora-energi.svg",url:"https://www.hedemoraenergi.se/fjarrvarme/serviceavtal/"},{companyName:"J\xe4mtkraft",image:"j-mtkraft.svg",url:"https://www.jamtkraft.se/privat/fjarrvarme/for-fjarrvarmekunder/smart-varme/"},{companyName:"Kraftringen",image:"kraftringen.svg",url:"https://www.kraftringen.se/privat/el/elhandel/timpris/ngenic/"},{companyName:"Lidk\xf6ping Energi AB",image:"lidkoping-energi.png",url:"https://www.lidkopingenergi.se/serviceavtal/"},{companyName:"Linde Energi AB",image:"linde-energi.svg",url:"https://www.lindeenergi.se/varme/smartvarme.4.7f524f34179f5c40e965cf8d.html"},{companyName:"Ljusdal Eln\xe4t AB",image:"ljusdal-energi.png",url:"https://www.ljusdalenergi.se/fjarrvarme/for-dig-som-redan-har-fjarrvarme/ngenic-tune.html  "},{companyName:"Norrenergi AB",image:"norrenergi_ny.svg",url:"https://www.norrenergi.se/energitjanster/tjanst/Tjanster_VSNG"},{companyName:"Oxel\xf6 Energi AB",image:"oxelo-energi.png",url:"https://oxeloenergi.se/fjarrvarme/tjanster/styr-ditt-varmesystem-med-mobilapp"},{companyName:"Sandviken Energi AB",image:"sandviken-svart-431.svg",url:"https://sandvikenenergi.se/fjarrvarme/klokvarme.2662.html"},{companyName:"Skelleft\xe5 Kraft AB",image:"sk-staende-rgb.svg",url:"https://www.skekraft.se/privat/fjarrvarme/smart-varme/"},{companyName:"Sollentuna Energi & Milj\xf6 AB",image:"sollentuna-energi-miljo.png",url:"https://www.seom.se/el/smart-varme-elprisstyrning/"},{companyName:"Stockholm Exergi AB",image:"stockholm-exergi.svg",url:"https://www.stockholmexergi.se/vara-energitjanster/inomhusklimat/varmeoptimering-villa/"},{companyName:"Upplands Energi",image:"upplands-energi.svg",url:"https://www.upplandsenergi.se/energiprodukter/34977.ngenic_tune.html"},{companyName:"V\xe4nerenergi AB",image:"vanerenergi.svg",url:"https://vanerenergi.se/fjarrvarme/smart-varme"},{companyName:"V\xe4sterbergslagens Energi AB",image:"vb-energi.svg",url:"https://www.vbenergi.se/fjarrvarme/varmekoll/"},{companyName:"V\xe4xj\xf6 Energi AB",image:"veab-17@2x.png",url:"https://www.veab.se/privat/fjarrvarme/smart-varme/"},{companyName:"\xd6vik Energi AB",image:"oe-liggande@2x.png",url:"https://www.ovikenergi.se/fjarrvarme/smart-styrning/"},{companyName:"Jokkmokks V\xe4rmeverk",image:"jokkmokks-varmeverk.svg",url:"https://jokkmokksvarmeverk.se/"},{companyName:"Tibber",image:"tibber.svg",url:"https://tibber.com/se/store/produkt/ngenic-tune-smart-termostat"},{companyName:"GodEl",image:"godel.svg",url:"https://godel.se/kampanj/ngenic-tune-smartare-och-billigare-uppvarmning/"},{companyName:"Boden energi",image:"bodens-energi.jpg",url:"https://bodensenergi.se/tjanster/varmeapp/"},{companyName:"Borl\xe4nge energi",image:"borlange.png",url:"https://www.borlange-energi.se/fjarrvarme/koppla-av-med-tjansten-varmvilla"},{companyName:"V\xe4stervik energi och mij\xf6",image:"vastervik-logo.png",url:"https://www.vmeab.se/tjanster/fjarrvarme/varmetjanster/"},{companyName:"Webbhallen",image:"webhallen.svg",url:"https://www.webhallen.com/se/product/237557-Ngenic-Tune"},{companyName:"Polarpumpen",image:"polarpumpen.svg",url:"https://www.polarpumpen.se/varmepumpar/bergvarmepump/tillbehor-bergvarmepump/ngenic-tune-termostat/p-1742173"},{companyName:"V\xe4rmepumpcenter",image:"varmepumpcenter.png",url:"https://www.varmepumpcenter.se/tjanster/ekonomisk-styrning-ngenic"},{companyName:"Energipartner",image:"energipartner.png",url:"https://energipartner.se/"},{companyName:"Kjell & co",image:"kjell-company.svg",url:"https://www.kjell.com/se/varumarken/ngenic"},{companyName:"Vattenfall",image:"logo-vattenfall.svg",url:"https://www.vattenfall.se/fjarrvarme/energitjanster/smart-termostat/"},{companyName:"V\xe4stra M\xe4lardalens Energi & Milj\xf6 AB",image:"logo-vme.png",url:"https://koping.se/vme/fjarrvarme/din-fjarrvarmecentral/smart-fjarrvarme.html"},{companyName:"Smedjebacken Energi AB",image:"logo-smedjebacken.png",url:"https://www.smedjebackenenergi.se/om-oss/nyheter/nyheter/2024-01-02-erbjudande---minska-dina-fjarrvarmekostnader-med-smart-digital-termostat..html"}],this.Math=Math,this.headService.setData("start")}ngAfterViewInit(){this.ecommerceEvents.emitListView(this.productList.filter(ie=>[1,9].includes(ie.id)),"main_product_list","Main product list"),this.ecommerceEvents.emitListView(this.productList.filter(ie=>[4,6,2,3].includes(ie.id)),"accessories_product_list","Accessories product list")}ngOnInit(){return(0,T.mG)(this,void 0,void 0,function*(){this.isNgenicShop=""==this.info.getShopName(),this.shopLink=this.info.getShopLink(),this.productList=[...this.info.products.filter(ie=>ie.visible)],this.products=this.productList.reduce((ie,te)=>(ie[te.name]=te,ie),{})})}trackSelection(ie){this.ecommerceEvents.emitProductSelectedFromList(ie,"main_product_list","Main product list")}trackAccessoriesSelection(ie){this.ecommerceEvents.emitProductSelectedFromList(ie,"accessories_product_list","Accessories product list")}}return L.\u0275fac=function(ie){return new(ie||L)(u.Y36(R.T),u.Y36(q.M),u.Y36(se.P))},L.\u0275cmp=u.Xpm({type:L,selectors:[["app-start"]],decls:35,vars:42,consts:[[1,"start-header"],[1,"wrapper"],[1,"products__spotlight"],[3,"routerLink","click"],["spotlight","true",3,"product","by-line"],[1,"products__accessories"],[3,"product"],["id","energyReferences",4,"ngIf"],["id","energyReferences"],[1,"energyReferencesHeader"],["id","energyLogos"],["class","energyLink","target","_blank",3,"href",4,"ngFor","ngForOf"],["target","_blank",1,"energyLink",3,"href"],[1,"energyLinkVFix"],[1,"energyLinkImg",3,"src","alt"]],template:function(ie,te){1&ie&&(u.TgZ(0,"h1",0),u._uU(1),u.ALo(2,"translate"),u.qZA(),u.TgZ(3,"div",1)(4,"section",2)(5,"a",3),u.NdJ("click",function(){return te.trackSelection(te.products.tune)}),u.ALo(6,"translate"),u._UZ(7,"product",4),u.ALo(8,"translate"),u.qZA(),u.TgZ(9,"a",3),u.NdJ("click",function(){return te.trackSelection(te.products["airpatrol-wifi"])}),u.ALo(10,"translate"),u._UZ(11,"product",4),u.ALo(12,"translate"),u.qZA()(),u.TgZ(13,"header"),u._uU(14,"Tillbeh\xf6r"),u.qZA(),u.TgZ(15,"section",5)(16,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products["track-opto"])}),u.ALo(17,"translate"),u._UZ(18,"product",6),u.qZA(),u.TgZ(19,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products.trackandextender)}),u.ALo(20,"translate"),u._UZ(21,"product",6),u.qZA(),u.TgZ(22,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products.sensor1)}),u.ALo(23,"translate"),u._UZ(24,"product",6),u.qZA(),u.TgZ(25,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products.sensor2)}),u.ALo(26,"translate"),u._UZ(27,"product",6),u.qZA(),u.TgZ(28,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products.extender)}),u.ALo(29,"translate"),u._UZ(30,"product",6),u.qZA(),u.TgZ(31,"a",3),u.NdJ("click",function(){return te.trackAccessoriesSelection(te.products["airpatrol-nordic"])}),u.ALo(32,"translate"),u._UZ(33,"product",6),u.qZA()(),u.YNc(34,gt,6,4,"div",7),u.qZA()),2&ie&&(u.xp6(1),u.Oqu(u.lcZ(2,20,"start.header")),u.xp6(4),u.s9C("routerLink",u.lcZ(6,22,"subRoutes."+te.products.tune.name)),u.xp6(2),u.s9C("by-line",u.lcZ(8,24,"shared.waterBasedSystems")),u.Q6J("product",te.products.tune),u.xp6(2),u.s9C("routerLink",u.lcZ(10,26,"subRoutes."+te.products["airpatrol-wifi"].name)),u.xp6(2),u.s9C("by-line",u.lcZ(12,28,"shared.airBasedSystems")),u.Q6J("product",te.products["airpatrol-wifi"]),u.xp6(5),u.s9C("routerLink",u.lcZ(17,30,"subRoutes."+te.products["track-opto"].name)),u.xp6(2),u.Q6J("product",te.products["track-opto"]),u.xp6(1),u.s9C("routerLink",u.lcZ(20,32,"subRoutes."+te.products.trackandextender.name)),u.xp6(2),u.Q6J("product",te.products.trackandextender),u.xp6(1),u.s9C("routerLink",u.lcZ(23,34,"subRoutes."+te.products.sensor1.name)),u.xp6(2),u.Q6J("product",te.products.sensor1),u.xp6(1),u.s9C("routerLink",u.lcZ(26,36,"subRoutes."+te.products.sensor2.name)),u.xp6(2),u.Q6J("product",te.products.sensor2),u.xp6(1),u.s9C("routerLink",u.lcZ(29,38,"subRoutes."+te.products.extender.name)),u.xp6(2),u.Q6J("product",te.products.extender),u.xp6(1),u.s9C("routerLink",u.lcZ(32,40,"subRoutes."+te.products["airpatrol-nordic"].name)),u.xp6(2),u.Q6J("product",te.products["airpatrol-nordic"]),u.xp6(1),u.Q6J("ngIf",te.isNgenicShop))},directives:[O.yS,Ie,H.O5,H.sg],pipes:[ne.X$],styles:["@media all and (max-width: 980px){.firstMain[_ngcontent-%COMP%] > .imgScaleBox[_ngcontent-%COMP%]{margin-top:124px}}.start-header[_ngcontent-%COMP%]{font-size:72px;text-align:center;font-weight:400;line-height:1.22;margin:60px 0 110px}@media all and (max-width: 980px){.start-header[_ngcontent-%COMP%]{font-size:46px;margin:30px 0 70px}}header[_ngcontent-%COMP%]{color:#222;text-align:center;font-family:Mohave-SemiBoldItalic,Helvetica,Arial,sans-serif;font-size:32px;line-height:40px;margin:109px 0 34px}.products__spotlight[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between}.products__spotlight[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{text-decoration:none}.products__spotlight[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin-bottom:20px}@media all and (min-width: 780px){.products__spotlight[_ngcontent-%COMP%]{flex-direction:row}.products__spotlight[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:first-child{margin:0 20px 0 0}.products__spotlight[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{max-width:580px;flex:1 1 580px}}.products__accessories[_ngcontent-%COMP%]{display:flex;flex-direction:column}.products__accessories[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{text-decoration:none}.products__accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-grow:1;flex-shrink:1}.products__accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(:last-child){margin-bottom:20px}@media all and (min-width: 425px){.products__accessories[_ngcontent-%COMP%]{flex-direction:row;flex-wrap:wrap;align-items:stretch;margin-right:-20px}.products__accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin:0 20px 20px 0;flex-basis:280px}}@media all and (min-width: 960px){.products__accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:345px}}@media all and (min-width: 1261px){.products__accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{max-width:280px}}.itemContainer[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 1fr;grid-column-gap:20px;grid-row-gap:64px}@media all and (max-width: 980px){.itemContainer[_ngcontent-%COMP%]{grid-template-columns:1fr 1fr}}@media all and (max-width: 520px){.itemContainer[_ngcontent-%COMP%]{grid-template-columns:1fr}}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]{cursor:pointer}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemImgContainer[_ngcontent-%COMP%]{width:100%;padding-bottom:78.95%;background:#FFF;position:relative}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemImgContainer[_ngcontent-%COMP%]   .outOfStock[_ngcontent-%COMP%]{position:absolute;bottom:0;left:0;background:#5F5F5F;color:#fff;font-family:Mohave-SemiBoldItalic;font-weight:400;text-transform:uppercase;font-size:18px;padding:7px 7px 5px}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemImgContainer[_ngcontent-%COMP%]   .outOfStock-bg-overlay[_ngcontent-%COMP%]{position:absolute;z-index:2;width:100%;height:100%;background:rgba(255,255,255,.4)}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemImgContainer[_ngcontent-%COMP%]   .itemImg[_ngcontent-%COMP%]{position:absolute;width:100%}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]:hover   .itemImg[_ngcontent-%COMP%], .itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]:hover   .outOfStock[_ngcontent-%COMP%]{opacity:.5;transition:opacity .3s ease-in-out}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]:focus{outline:1px dashed #ccc}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemHeader[_ngcontent-%COMP%]{font-size:32px;font-weight:400;line-height:1;margin:25px 0 4px;color:#585858}@media all and (max-width: 980px){.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemHeader[_ngcontent-%COMP%]{font-size:26px}}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemHeader.outOfStock[_ngcontent-%COMP%]{opacity:.6}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemPrice[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:2.5;color:#6cc36c}.itemContainer[_ngcontent-%COMP%]   .pageItem[_ngcontent-%COMP%]   .itemPrice.outOfStock[_ngcontent-%COMP%]{opacity:.6}#energyReferences[_ngcontent-%COMP%]{grid-column:1/4;padding:15px 0;margin:24px 0}@media all and (max-width: 980px){#energyReferences[_ngcontent-%COMP%]{grid-column:1/3}}@media all and (max-width: 520px){#energyReferences[_ngcontent-%COMP%]{grid-column:1/2}}.energyReferencesHeader[_ngcontent-%COMP%]{padding:12px 16px 27px;font-size:20px;color:#585858;text-align:center}@media all and (max-width: 980px){.energyReferencesHeader[_ngcontent-%COMP%]{padding:10px 12px 27px}}@media all and (max-width: 520px){.energyReferencesHeader[_ngcontent-%COMP%]{padding:10px 12px 21px}}#energyLogos[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap;gap:16px;justify-content:space-between}@media all and (min-width: 1233px){#energyLogos[_ngcontent-%COMP%]{justify-content:center}}.energyLink[_ngcontent-%COMP%]{flex:1 1 130px;height:107px;text-align:center;background:#FFF;border-radius:11px}@media all and (min-width: 451px){.energyLink[_ngcontent-%COMP%]{max-width:133px}}.energyLinkVFix[_ngcontent-%COMP%]{display:inline-block;height:100%;vertical-align:middle}.energyLinkImg[_ngcontent-%COMP%]{max-width:90px;max-height:50px;vertical-align:middle}"]}),L})(),Le=(()=>{class L{constructor(ie){this.headService=ie,this.headService.setData("page404")}ngOnInit(){}}return L.\u0275fac=function(ie){return new(ie||L)(u.Y36(q.M))},L.\u0275cmp=u.Xpm({type:L,selectors:[["app-page404"]],decls:18,vars:15,consts:[["id","fourOFour",1,"wrapper"],["src","/assets/images/404@2x.jpg","alt","404"],[3,"href"]],template:function(ie,te){1&ie&&(u.TgZ(0,"div",0),u._UZ(1,"img",1),u.TgZ(2,"h2"),u._uU(3,"404"),u.qZA(),u.TgZ(4,"h3"),u._uU(5),u.ALo(6,"translate"),u.qZA(),u.TgZ(7,"p")(8,"span"),u._uU(9),u.ALo(10,"translate"),u.qZA(),u.TgZ(11,"a",2),u.ALo(12,"translate"),u._uU(13),u.ALo(14,"translate"),u.qZA(),u.TgZ(15,"span"),u._uU(16),u.ALo(17,"translate"),u.qZA()()()),2&ie&&(u.xp6(5),u.Oqu(u.lcZ(6,5,"PageNotFound.message")),u.xp6(4),u.Oqu(u.lcZ(10,7,"PageNotFound.text1")),u.xp6(2),u.MGl("href","mailto:",u.lcZ(12,9,"PageNotFound.email"),"",u.LSH),u.xp6(2),u.Oqu(u.lcZ(14,11,"PageNotFound.email")),u.xp6(3),u.Oqu(u.lcZ(17,13,"PageNotFound.text2")))},pipes:[ne.X$],styles:["#fourOFour[_ngcontent-%COMP%]{text-align:center;margin-top:100px}#fourOFour[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:281px}#fourOFour[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin:38px 0 11px;font-size:56px;font-weight:600;font-style:italic;color:#616161}#fourOFour[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:33px;font-size:26px;font-weight:600;font-style:italic;color:#9e9e9e}#fourOFour[_ngcontent-%COMP%]   p[_ngcontent-%COMP%], #fourOFour[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:15px;color:#616161;margin-bottom:40px}"]}),L})();const Ze=[{path:"",component:rt,data:{tracking:{title:"Home",views:["eliq"]}}},{path:"partnerbestallning/:company",loadChildren:()=>Promise.all([C.e(290),C.e(592),C.e(7)]).then(C.bind(C,9007)).then(L=>L.PartnerorderModule)},{path:"varukorg",loadChildren:()=>Promise.all([C.e(290),C.e(592),C.e(225)]).then(C.bind(C,7225)).then(L=>L.CartModule)},{path:"kvitto",loadChildren:()=>Promise.all([C.e(290),C.e(785)]).then(C.bind(C,8785)).then(L=>L.ReceiptModule)},{path:"kopvillkor",loadChildren:()=>C.e(80).then(C.bind(C,8080)).then(L=>L.TermsModule)},{path:"andra-kortuppgifter",loadChildren:()=>Promise.all([C.e(592),C.e(746)]).then(C.bind(C,7746)).then(L=>L.UpdateCardModule)},{path:"andra-kortuppgifter/:status",loadChildren:()=>Promise.all([C.e(592),C.e(746)]).then(C.bind(C,7746)).then(L=>L.UpdateCardModule)},{path:"extra-innegivare-1-pack",loadChildren:()=>C.e(868).then(C.bind(C,3868)).then(L=>L.SensorModule),data:{tracking:{title:"Product-page (1-pack extra sensor)",views:["eliq"]}}},{path:"extra-innegivare-2-pack",loadChildren:()=>C.e(975).then(C.bind(C,975)).then(L=>L.SensorDoubleModule),data:{tracking:{title:"Product-page (1-pack extra sensor)",views:["eliq"]}}},{path:"ngenic-track",loadChildren:()=>Promise.all([C.e(770),C.e(55)]).then(C.bind(C,2055)).then(L=>L.TrackModule),data:{tracking:{title:"Product-page (Track)",views:["eliq"]}}},{path:"extender-for-ngenic-track",loadChildren:()=>C.e(206).then(C.bind(C,4206)).then(L=>L.ExtenderModule),data:{tracking:{title:"Product-page (Extender for track)",views:["eliq"]}}},{path:"ngenic-track-och-extender",loadChildren:()=>Promise.all([C.e(770),C.e(183)]).then(C.bind(C,2183)).then(L=>L.TrackandextenderModule),data:{tracking:{title:"Product-page (Track + extender)",views:["eliq"]}}},{path:"ngenic-tune",loadChildren:()=>C.e(971).then(C.bind(C,9971)).then(L=>L.TuneModule),data:{tracking:{title:"Product-page (Tune)",views:["eliq"]}}},{path:"airpatrol-wifi",loadChildren:()=>C.e(809).then(C.bind(C,809)).then(L=>L.AirpatrolWifiModule),data:{tracking:{title:"Product-page (AirPatrol Wifi)",views:["eliq"]}}},{path:"airpatrol-nordic",loadChildren:()=>C.e(502).then(C.bind(C,1502)).then(L=>L.AirpatrolNordicModule),data:{tracking:{title:"Product-page (AirPatrol Nordic)",views:["eliq"]}}},{path:"en",component:rt},{path:"en/cart",loadChildren:()=>Promise.all([C.e(290),C.e(592),C.e(225)]).then(C.bind(C,7225)).then(L=>L.CartModule)},{path:"en/receipt",loadChildren:()=>Promise.all([C.e(290),C.e(785)]).then(C.bind(C,8785)).then(L=>L.ReceiptModule)},{path:"en/terms",loadChildren:()=>C.e(80).then(C.bind(C,8080)).then(L=>L.TermsModule)},{path:"en/update-card-details",loadChildren:()=>Promise.all([C.e(592),C.e(746)]).then(C.bind(C,7746)).then(L=>L.UpdateCardModule)},{path:"en/update-card-details/:status",loadChildren:()=>Promise.all([C.e(592),C.e(746)]).then(C.bind(C,7746)).then(L=>L.UpdateCardModule)},{path:"en/extra-indoor-sensor-1-pack",loadChildren:()=>C.e(868).then(C.bind(C,3868)).then(L=>L.SensorModule),data:{tracking:{title:"Product-page (1-pack extra sensor)",views:["eliq"]}}},{path:"en/extra-indoor-sensor-2-pack",loadChildren:()=>C.e(975).then(C.bind(C,975)).then(L=>L.SensorDoubleModule),data:{tracking:{title:"Product-page (1-pack extra sensor)",views:["eliq"]}}},{path:"en/ngenic-track",loadChildren:()=>Promise.all([C.e(770),C.e(55)]).then(C.bind(C,2055)).then(L=>L.TrackModule),data:{tracking:{title:"Product-page (Track)",views:["eliq"]}}},{path:"en/extender-for-ngenic-track",loadChildren:()=>C.e(206).then(C.bind(C,4206)).then(L=>L.ExtenderModule),data:{tracking:{title:"Product-page (Extender for track)",views:["eliq"]}}},{path:"en/ngenic-track-and-extender",loadChildren:()=>Promise.all([C.e(770),C.e(183)]).then(C.bind(C,2183)).then(L=>L.TrackandextenderModule),data:{tracking:{title:"Product-page (Track + extender)",views:["eliq"]}}},{path:"en/ngenic-tune",loadChildren:()=>C.e(971).then(C.bind(C,9971)).then(L=>L.TuneModule),data:{tracking:{title:"Product-page (Tune)",views:["eliq"]}}},{path:"en/airpatrol-wifi",loadChildren:()=>C.e(809).then(C.bind(C,809)).then(L=>L.AirpatrolWifiModule),data:{tracking:{title:"Product-page (AirPatrol Wifi)",views:["eliq"]}}},{path:"en/airpatrol-nordic",loadChildren:()=>C.e(502).then(C.bind(C,1502)).then(L=>L.AirpatrolNordicModule),data:{tracking:{title:"Product-page (AirPatrol Nordic)",views:["eliq"]}}},{path:"demo",loadChildren:()=>C.e(812).then(C.bind(C,5812)).then(L=>L.DemoModule)},{path:"404",component:Le},{path:"**",component:Le}];let Fe=(()=>{class L{}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275mod=u.oAB({type:L}),L.\u0275inj=u.cJS({imports:[[O.Bz.forRoot(Ze,{relativeLinkResolution:"legacy"})],O.Bz]}),L})();var He=C(3640),le=C(2160),pe=C(3905),ge=C(4128);function fe(L,Ae){if(1&L&&(u.ynx(0),u._UZ(1,"img",23)(2,"div",24),u.BQk()),2&L){const ie=u.oxw();u.xp6(1),u.s9C("alt",ie.shopName),u.Q6J("src","./assets/images/logos/shop-logos/"+ie.logoPath,u.LSH)}}function De(L,Ae){if(1&L&&(u.ynx(0),u.TgZ(1,"a",25),u._UZ(2,"div",24),u.qZA(),u.BQk()),2&L){const ie=u.oxw();u.xp6(1),u.Q6J("href","https://ngenic.se"+ie.appendLangToNgenicLink,u.LSH)}}function ue(L,Ae){1&L&&u._UZ(0,"span",4)}function $e(L,Ae){if(1&L&&(u.TgZ(0,"a",5),u.ALo(1,"translate"),u._uU(2),u.ALo(3,"translate"),u.qZA()),2&L){const ie=u.oxw();u.hYB("routerLink","",ie.shopLink,"",u.lcZ(1,3,"routes."+ie.breadcrumbLink),""),u.xp6(2),u.Oqu(u.lcZ(3,5,"root."+ie.breadcrumbText))}}function mt(L,Ae){if(1&L){const ie=u.EpF();u.TgZ(0,"div",26)(1,"span",27),u._uU(2," DEMO"),u.qZA(),u._uU(3," - "),u.TgZ(4,"a",28),u.ALo(5,"translate"),u._uU(6,"Partner"),u.qZA(),u._uU(7," - "),u.TgZ(8,"a",28),u.ALo(9,"translate"),u._uU(10,"Updatera kort"),u.qZA(),u._uU(11," - "),u.TgZ(12,"a",28),u.ALo(13,"translate"),u._uU(14,"Kvitto"),u.qZA(),u._uU(15," - "),u.TgZ(16,"span",29),u.NdJ("click",function(){return u.CHM(ie),u.oxw().endDemo()}),u._uU(17,"Avsluta DEMO"),u.qZA()()}if(2&L){const ie=u.oxw();u.xp6(4),u.MGl("routerLink","",u.lcZ(5,4,"routes.partnerbestallning"),"/demo"),u.xp6(4),u.s9C("routerLink",u.lcZ(9,6,"routes.updatecard")),u.xp6(4),u.hYB("routerLink","",ie.shopLink,"",u.lcZ(13,8,"routes.receipt"),"")}}function wt(L,Ae){1&L&&u._UZ(0,"router-outlet")}function We(L,Ae){if(1&L&&(u.TgZ(0,"a",30),u._UZ(1,"img",31),u.qZA()),2&L){const ie=u.oxw();u.Q6J("href","https://ngenic.se"+ie.appendLangToNgenicLink,u.LSH)}}function Rt(L,Ae){if(1&L&&(u.TgZ(0,"a",32),u.ALo(1,"translate"),u._UZ(2,"img",31),u.qZA()),2&L){const ie=u.oxw();u.hYB("routerLink","",ie.shopLink,"",u.lcZ(1,2,"routes.start"),"")}}function Xt(L,Ae){1&L&&(u.TgZ(0,"a",33),u._uU(1,"English"),u.qZA())}function St(L,Ae){1&L&&(u.TgZ(0,"a",34),u._uU(1,"Svenska"),u.qZA())}const en=function(L){return{hidden:L}},Bt=function(L){return{"routerLink cartLink":!0,cartLinkFull:L}},xt=function(L){return{cartIcon:!0,cartIconFull:L}},yn=function(L){return{"cookie-padding-main":L}};let ht=(()=>{class L{constructor(ie,te,et,Dt,Jt,pt,Je,jn){this.cookieService=ie,this.router=te,this.translate=et,this.headService=Dt,this.dataService=Jt,this.cartService=pt,this.info=Je,this.renderer=jn,this.showCookieBanner=!0,this.cookieInEnglish=!1,this.hideHeaderAndFooter=!1,this.hasBreadcrumb=!1,this.yScrollStack=[]}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){return(0,T.mG)(this,void 0,void 0,function*(){this.isNgenicShop=!1,window.location.pathname.split("/"),this.isNgenicShop=!0,this.shopName="ngenic",this.info.setShopName(""),this.shopLink=this.info.getShopLink(),"ngenic"!=this.shopName&&this.cartService.removeFromCart(5),"undefined"!=typeof window&&this.router.events.subscribe(Dt=>{if(Dt instanceof O.m2){this.lastPoppedUrl=this.router.url,Dt.url!=this.lastPoppedUrl&&this.yScrollStack.push(window.scrollY);let Jt=Dt.url.split("/");switch(this.hideHeaderAndFooter=!("partnerbestallning"!=Jt[1]||!Jt[2]),Jt[Jt.length-1]){case"ngenic-tune":this.breadcrumbLink="tune",this.breadcrumbText="tune",this.hasBreadcrumb=!0;break;case"extra-innegivare-1-pack":case"extra-indoor-sensor-1-pack":this.breadcrumbLink="sensor1",this.breadcrumbText="sensor1",this.hasBreadcrumb=!0;break;case"extra-innegivare-2-pack":case"extra-indoor-sensor-2-pack":this.breadcrumbLink="sensor2",this.breadcrumbText="sensor2",this.hasBreadcrumb=!0;break;case"ngenic-track":this.breadcrumbLink="track-opto",this.breadcrumbText="track-opto",this.hasBreadcrumb=!0;break;case"ngenic-track-och-extender":case"ngenic-track-and-extender":this.breadcrumbLink="track-and-extender",this.breadcrumbText="trackandextender",this.hasBreadcrumb=!0;break;case"extender-for-ngenic-track":this.breadcrumbLink="extender",this.breadcrumbText="extender",this.hasBreadcrumb=!0;break;case"airpatrol-wifi":this.breadcrumbLink="airpatrol-wifi",this.breadcrumbText="airpatrol-wifi",this.hasBreadcrumb=!0;break;case"airpatrol-nordic":this.breadcrumbLink="airpatrol-nordic",this.breadcrumbText="airpatrol-nordic",this.hasBreadcrumb=!0;break;case"varukorg":case"cart":this.breadcrumbLink="cart",this.breadcrumbText="cart",this.hasBreadcrumb=!0;break;case"kopvillkor":case"terms":this.breadcrumbLink="terms",this.breadcrumbText="terms",this.hasBreadcrumb=!0;break;case"kvitto":case"receipt":this.breadcrumbLink="receipt",this.breadcrumbText="receipt",this.hasBreadcrumb=!0}}else Dt instanceof O.m2&&(Dt.url==this.lastPoppedUrl?(this.lastPoppedUrl=void 0,window.scrollTo(0,this.yScrollStack.pop())):window.scrollTo(0,0))}),yield this.dataService.productServiceGet("0",this.shopName).toPromise().then(Dt=>{this.info.products=Dt,this.info.productsLoaded=!0}).catch(Dt=>{this.info.products=[],this.info.productsLoaded=!1}),this.translate.addLangs(["sv","en"]),this.translate.setDefaultLang("sv");const te=window.location.pathname.split("/");let et=!1;for(let Dt of te)if("en"==Dt){this.translate.use("en"),this.setPath("en"),et=!0;break}et?this.appendLangToNgenicLink="/en":(this.translate.use("sv"),this.setPath(this.translate.currentLang),this.appendLangToNgenicLink=""),this.languages=["Svenska","English"],void 0!==window.Cookiebot?Cookiebot.consented||this.persistItemsInCartCookie(!0):window.addEventListener("CookiebotOnLoad",()=>{Cookiebot.consented||this.persistItemsInCartCookie(!0)}),this.addCookieConsentChangeHandler()})}addCookieConsentChangeHandler(){this.renderer.listen("window","CookiebotOnAccept",ie=>{Cookiebot.consent.preferences&&this.persistItemsInCartCookie()}),this.renderer.listen("window","CookiebotOnDecline",ie=>{Cookiebot.consent.preferences||this.persistItemsInCartCookie(!0)})}persistItemsInCartCookie(ie=!1){if(ie)return void(He.N.production?this.cookieService.delete("itemsInCart","/",".ngenic.se"):this.cookieService.delete("itemsInCart","/"));let te=new Date,et=this.cartService.cartItems.length;te.setDate(te.getDate()+3650),He.N.production?this.cookieService.set("itemsInCart",et.toString(),te,"/",".ngenic.se"):this.cookieService.set("itemsInCart",et.toString(),te,"/")}changeCookieConsent(){Cookiebot.show()}getFullLanguage(ie){return this.translate.getLangs()[ie]==this.translate.currentLang?"Language":this.languages[ie]}setPath(ie){this.headService.setCurrentLang(ie)}endDemo(){this.info.setDemoActive(!1)}}return L.\u0275fac=function(ie){return new(ie||L)(u.Y36(le.N),u.Y36(O.F0),u.Y36(ne.sK),u.Y36(q.M),u.Y36(pe.Do),u.Y36(ge.N),u.Y36(R.T),u.Y36(u.Qsj))},L.\u0275cmp=u.Xpm({type:L,selectors:[["app-root"]],decls:44,vars:57,consts:[[3,"ngClass"],[1,"wrapper"],[4,"ngIf"],["id","breadcrumbs"],[1,"breadcrumb-arrow"],[1,"breadcrumb",3,"routerLink"],["class","breadcrumb-arrow",4,"ngIf"],["class","breadcrumb",3,"routerLink",4,"ngIf"],["style","float: left; margin-top: -2px; margin-left: 20px;",4,"ngIf"],["id","cart"],[3,"routerLink","ngClass"],["id","cartIcon",3,"ngClass"],["id","cartText"],["id","cartCount"],["id","footerBorderBox"],["id","footerLogo",3,"href",4,"ngIf"],["id","footerLogo",3,"routerLink",4,"ngIf"],["id","footerLinkBox"],[1,"routerLink",3,"routerLink"],["href","#",1,"routerLink",3,"click"],["id","selectLangBox"],["href","/en","class","selectLangBoxText",4,"ngIf"],["href","/","class","selectLangBoxText",4,"ngIf"],[1,"extraLogo",3,"src","alt"],["id","logo","alt","Ngenic"],[3,"href"],[2,"float","left","margin-top","-2px","margin-left","20px"],[2,"color","#F00","font-weight","bold","display","inline-block"],[1,"routerLink",2,"color","#F00",3,"routerLink"],[2,"color","#F00","font-weight","bold","display","inline-block",3,"click"],["id","footerLogo",3,"href"],["src","/assets/images/icons/clean_logo.svg","alt","Ngenic"],["id","footerLogo",3,"routerLink"],["href","/en",1,"selectLangBoxText"],["href","/",1,"selectLangBoxText"]],template:function(ie,te){1&ie&&(u.TgZ(0,"header",0)(1,"div",1),u.YNc(2,fe,3,2,"ng-container",2),u.YNc(3,De,3,1,"ng-container",2),u.TgZ(4,"div",3),u._UZ(5,"span",4),u.TgZ(6,"a",5),u.ALo(7,"translate"),u._uU(8),u.ALo(9,"translate"),u.qZA(),u.YNc(10,ue,1,0,"span",6),u.YNc(11,$e,4,7,"a",7),u.qZA(),u.YNc(12,mt,18,10,"div",8),u.TgZ(13,"div",9)(14,"a",10),u.ALo(15,"translate"),u._UZ(16,"span",11),u.TgZ(17,"span",12),u._uU(18),u.ALo(19,"translate"),u.qZA(),u.TgZ(20,"span",13),u._uU(21),u.qZA()()()()(),u.TgZ(22,"main",0),u.YNc(23,wt,1,0,"router-outlet",2),u.qZA(),u.TgZ(24,"footer",0),u._UZ(25,"div",14),u.TgZ(26,"nav"),u.YNc(27,We,2,1,"a",15),u.YNc(28,Rt,3,4,"a",16),u.TgZ(29,"div",17)(30,"a",18),u.ALo(31,"translate"),u._uU(32),u.ALo(33,"translate"),u.qZA(),u.TgZ(34,"a",18),u.ALo(35,"translate"),u._uU(36),u.ALo(37,"translate"),u.qZA(),u.TgZ(38,"button",19),u.NdJ("click",function(){return te.changeCookieConsent()}),u._uU(39),u.ALo(40,"translate"),u.qZA()(),u.TgZ(41,"div",20),u.YNc(42,Xt,2,0,"a",21),u.YNc(43,St,2,0,"a",22),u.qZA()()()),2&ie&&(u.Q6J("ngClass",u.VKq(47,en,te.hideHeaderAndFooter)),u.xp6(2),u.Q6J("ngIf",!te.isNgenicShop),u.xp6(1),u.Q6J("ngIf",te.isNgenicShop),u.xp6(3),u.hYB("routerLink","",te.shopLink,"",u.lcZ(7,29,"routes.start"),""),u.xp6(2),u.Oqu(u.lcZ(9,31,"root.breadcrumbs")),u.xp6(2),u.Q6J("ngIf",te.hasBreadcrumb),u.xp6(1),u.Q6J("ngIf",te.hasBreadcrumb),u.xp6(1),u.Q6J("ngIf",te.info.demoActive),u.xp6(2),u.hYB("routerLink","",te.shopLink,"",u.lcZ(15,33,"routes.cart"),""),u.Q6J("ngClass",u.VKq(49,Bt,te.cartService.cartItems.length>0)),u.xp6(2),u.Q6J("ngClass",u.VKq(51,xt,te.cartService.cartItems.length>0)),u.xp6(2),u.Oqu(u.lcZ(19,35,"root.cart")),u.xp6(3),u.hij("(",te.cartService.cartItems.length,")"),u.xp6(1),u.Q6J("ngClass",u.VKq(53,yn,te.showCookieBanner)),u.xp6(1),u.Q6J("ngIf",te.info.productsLoaded),u.xp6(1),u.Q6J("ngClass",u.VKq(55,en,te.hideHeaderAndFooter)),u.xp6(3),u.Q6J("ngIf",te.isNgenicShop),u.xp6(1),u.Q6J("ngIf",!te.isNgenicShop),u.xp6(2),u.hYB("routerLink","",te.shopLink,"",u.lcZ(31,37,"routes.start"),""),u.xp6(2),u.Oqu(u.lcZ(33,39,"root.breadcrumbs")),u.xp6(2),u.hYB("routerLink","",te.shopLink,"",u.lcZ(35,41,"routes.terms"),""),u.xp6(2),u.Oqu(u.lcZ(37,43,"root.terms")),u.xp6(3),u.Oqu(u.lcZ(40,45,"root.changeCookieConsent")),u.xp6(3),u.Q6J("ngIf","sv"==te.translate.currentLang),u.xp6(1),u.Q6J("ngIf","en"==te.translate.currentLang))},directives:[H.mk,H.O5,O.yS,O.lC],pipes:[ne.X$],styles:[".extraLogo[_ngcontent-%COMP%]{width:100px;padding-right:20px;margin-right:20px;border-right:1px solid #ccc}@media all and (max-width: 980px){.extraLogo[_ngcontent-%COMP%]{width:80px;padding-right:10px;margin-right:10px}}#selectLangBox[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}  a#CybotCookiebotDialogPoweredbyCybot,   div#CybotCookiebotDialogPoweredByText{display:none}  #CookiebotWidget .CookiebotWidget-body .CookiebotWidget-main-logo{display:none!important}"]}),L})();var qe=C(3075);function bn(L){return new z(L,"./assets/i18n/",".json?cb="+(new Date).getTime())}C(6861);const Yt=()=>new pe.VK({shopBackendBasePath:He.N.PHPServiceRef,backendBasePath:He.N.externalApiBaseRef,backendV2BasePath:He.N.externalApiRef});let ot=(()=>{class L{}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275mod=u.oAB({type:L}),L.\u0275inj=u.cJS({providers:[le.N],imports:[[H.ez,ne.aw.forRoot({loader:{provide:ne.Zw,useFactory:bn,deps:[J.eN]},isolate:!1}),pe.au.forRoot(Yt),qe.u5,qe.UX,O.Bz],ne.aw]}),L})();var Zt=C(3875),Ct=C(9905);function Wt(L){return()=>L.handleQueryString()}var Cn=C(2198),$t=C(2986);let un=(()=>{class L{constructor(ie,te,et,Dt){this.config=ie,this.router=te,this.route=et,this.ngenicCampaign=Dt}handleQueryString(){const ie=this.router.events.pipe((0,Cn.h)(te=>te instanceof O.m2));ie.pipe((0,$t.q)(1)).subscribe(()=>{this.parseQueryStringParams(this.route.snapshot.queryParams)}),ie.subscribe(this.handleRouterNavigation.bind(this))}parseQueryStringParams(ie){const te=ie[this.config.querystringParameter];!te||this.ngenicCampaign.setCampaignActive(te)}handleRouterNavigation(ie){const te=this.getCurrentRouteData(),et=this.ngenicCampaign.getActiveCampaignNames();if(0===Object.keys(te).length)return;const{tracking:{title:Dt="",views:Jt=[]}={}}=te;if(0==((L,Ae)=>L.filter(Set.prototype.has,new Set(Ae)))(et,Jt).length)return;const pt=this.ngenicCampaign.createEvent(`View page (${Dt})`);this.ngenicCampaign.postEvent(pt)}getCurrentRouteData(){let ie=this.route.snapshot;for(;ie.firstChild;)ie=ie.firstChild;return ie.data}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(Ct.C),u.LFG(O.F0),u.LFG(O.gz),u.LFG(Zt.$))},L.\u0275prov=u.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})();var on=C(6854);let Dn=(()=>{class L{constructor(ie,te,et){this.orderService=ie,this.cartService=te,this.campaignHandlers=et,this.orderService.orderEvents$.subscribe(this.handleOrderEvent.bind(this)),this.cartService.activeCouponCode&&this.activateCampaign(this.cartService.activeCouponCode)}activateCampaign(ie){return(0,T.mG)(this,void 0,void 0,function*(){for(const te of this.campaignHandlers)if(te.shouldHandle(ie))return this.activeCampaign=te,void(yield te.activateCampign());throw Error(`Campaign with ${ie} not supported`)})}navigate(){return(0,T.mG)(this,void 0,void 0,function*(){this.activeCampaign&&this.activeCampaign.navigate()})}handleOrderEvent(ie){this.activeCampaign&&setTimeout(()=>(0,T.mG)(this,void 0,void 0,function*(){yield this.activeCampaign.deactivateCampaign(),this.activeCampaign=null}),0)}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(on.p),u.LFG(ge.N),u.LFG(V))},L.\u0275prov=u.Yz7({token:L,factory:L.\u0275fac}),L})();const Y=[{path:"c/:campaign",component:(()=>{class L{constructor(ie,te,et){this.router=ie,this.activatedRoute=te,this.routeCampaignManager=et}ngOnInit(){const ie=this.activatedRoute.snapshot.params.campaign;ie||(console.info("No campaign defined in URL."),this.router.navigate([]));try{this.routeCampaignManager.activateCampaign(ie),this.routeCampaignManager.navigate()}catch(te){console.error(te),this.router.navigate([])}}}return L.\u0275fac=function(ie){return new(ie||L)(u.Y36(O.F0),u.Y36(O.gz),u.Y36(Dn))},L.\u0275cmp=u.Xpm({type:L,selectors:[["ng-component"]],decls:0,vars:0,template:function(ie,te){},encapsulation:2,changeDetection:0}),L})()}],V=new u.OlP("RouteCampaignHandler");let U=(()=>{class L{constructor(ie,te,et,Dt){this.router=ie,this.cartService=te,this.orderService=et,this.ngenicCampaignService=Dt}shouldHandle(ie){return"email-campaign"===ie}activateCampign(){this.orderSubscription=this.orderService.orderEvents$.subscribe(this.handleOrderEvent.bind(this)),this.cartService.setCoupon({valid:!0,expired:!1,productId:1,isPercentage:!0,percentage:10,fixed:0,required:!0,children:[],siblings:[],stackable:!1,clientSideOnly:!0},"email-campaign"),this.cartService.addToCart(1)}navigate(){this.router.navigate(["/varukorg"])}deactivateCampaign(){this.cartService.removeCoupon(null,null),this.cartService.removeFromCart(1),this.orderSubscription&&this.orderSubscription.unsubscribe()}handleOrderEvent(ie){const te=this.ngenicCampaignService.createEvent("purchase");this.ngenicCampaignService.postEvent(te,"email-addicts")}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(O.F0),u.LFG(ge.N),u.LFG(on.p),u.LFG(Zt.$))},L.\u0275prov=u.Yz7({token:L,factory:L.\u0275fac}),L})(),P=(()=>{class L{constructor(ie,te){if(ie)throw new Error("NgenicCampaignModule is already loaded.")}static withConfig(ie){const te=new Ct.C;return{ngModule:L,providers:[{provide:u.ip1,useFactory:Wt,deps:[un],multi:!0},{provide:Dn,useClass:Dn},{provide:V,useClass:U,multi:!0},{provide:Ct.C,useValue:Object.assign(Object.assign({},te),ie)}]}}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(L,12),u.LFG(Dn))},L.\u0275mod=u.oAB({type:L}),L.\u0275inj=u.cJS({providers:[Zt.$],imports:[[O.Bz.forChild(Y)]]}),L})();function w(L){return()=>L.handleQueryString()}var k=C(1635);class de{constructor(){this.querystringParameter="ext_user"}}let ve=(()=>{class L{constructor(ie,te,et,Dt){this.config=ie,this.router=te,this.route=et,this.customerStorage=Dt}handleQueryString(){this.router.events.pipe((0,Cn.h)(ie=>ie instanceof O.m2),(0,$t.q)(1)).subscribe(()=>{this.parseQueryStringParams(this.route.snapshot.queryParams)})}parseQueryStringParams(ie){const te=ie[this.config.querystringParameter];if(!te)return;try{const Dt=JSON.parse(te);this.customerStorage.save(Dt)}catch(Dt){console.error(`Error parsing JSON for query parameter '${this.config.querystringParameter}':`,Dt)}const et=Object.assign({},ie);delete et[this.config.querystringParameter],this.router.navigate([],{relativeTo:this.route,queryParams:et})}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(de),u.LFG(O.F0),u.LFG(O.gz),u.LFG(k.y))},L.\u0275prov=u.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),be=(()=>{class L{constructor(){this.STORAGE_KEY="ngenic_extcustomer"}save(ie){sessionStorage.setItem(this.STORAGE_KEY,JSON.stringify(ie))}get(){const ie=sessionStorage.getItem(this.STORAGE_KEY);return ie?JSON.parse(ie):null}}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275prov=u.Yz7({token:L,factory:L.\u0275fac}),L})();var tt=C(8542);let ut=(()=>{class L{constructor(ie){if(ie)throw new Error("NgenicExternalCustomerModule is already loaded.")}static forRoot(ie={}){const te=new de;return{ngModule:L,providers:[{provide:u.ip1,useFactory:w,deps:[ve],multi:!0},{provide:de,useValue:Object.assign(Object.assign({},te),ie)},{provide:k.y,useClass:be}]}}}return L.\u0275fac=function(ie){return new(ie||L)(u.LFG(L,12))},L.\u0275mod=u.oAB({type:L}),L.\u0275inj=u.cJS({providers:[tt._],imports:[[]]}),L})();function at(L){return new z(L,"./assets/i18n/",".json?cb="+(new Date).getTime())}(0,H.qS)(j);let Ve=(()=>{class L{}return L.\u0275fac=function(ie){return new(ie||L)},L.\u0275mod=u.oAB({type:L,bootstrap:[ht]}),L.\u0275inj=u.cJS({providers:[{provide:u.soG,useValue:"sv"}],imports:[[c.b2,J.JF,ot,P.withConfig({sourceApplication:"shop.ngenic.se",querystringParameter:"tracking_campaign",cookieExpire:30,cookieDomain:He.N.production?"ngenic.se":".ngenic.local",cookieSecure:He.N.production}),Fe,ut.forRoot()]]}),L})()},6861:(Re,oe,C)=>{C.d(oe,{a:()=>T});var c=C(8263),u=C(3463),H=C(2987),J=C(5990),W=C(9433),Z=C(5803),j=C(1103),z=C(2096),O=C(520);let T=(()=>{class R{constructor(se,ne){if(se)throw new Error("ApiModule is already loaded. Import in your base AppModule only.");if(!ne)throw new Error("You need to import the HttpClientModule in your AppModule! \nSee also https://github.com/angular/angular/issues/20575")}static forRoot(se){return{ngModule:R,providers:[{provide:c.V,useFactory:se}]}}}return R.\u0275fac=function(se){return new(se||R)(z.LFG(R,12),z.LFG(O.eN,8))},R.\u0275mod=z.oAB({type:R}),R.\u0275inj=z.cJS({providers:[u.j,H.D,J.Y,W.G,Z.t,j.F],imports:[[]]}),R})()},3463:(Re,oe,C)=>{C.d(oe,{j:()=>Z});var c=C(520),u=C(7936),H=C(5228),J=C(8263),W=C(2096);let Z=(()=>{class j{constructor(O,T,R){this.httpClient=O,this.basePath="",this.defaultHeaders=new c.WM,this.configuration=new J.V,T&&(this.basePath=T),R&&(this.configuration=R,this.basePath=T||R.shopBackendBasePath||this.basePath)}canConsumeForm(O){for(const R of O)if("multipart/form-data"===R)return!0;return!1}couponServiceGet(O,T,R,q="body",se=!1){let ne=new c.LE({encoder:new u.i});null!=O&&(ne=ne.set("string",O)),null!=T&&(ne=ne.set("data",T)),null!=R&&(ne=ne.set("tuneIndex",R));let ce=this.defaultHeaders;const Se=this.configuration.selectHeaderAccept(["application/json"]);return null!=Se&&(ce=ce.set("Accept",Se)),this.httpClient.get(`${this.basePath}/coupon-service.php`,{params:ne,withCredentials:this.configuration.withCredentials,headers:ce,observe:q,reportProgress:se})}}return j.\u0275fac=function(O){return new(O||j)(W.LFG(c.eN),W.LFG(H.G,8),W.LFG(J.V,8))},j.\u0275prov=W.Yz7({token:j,factory:j.\u0275fac}),j})()},2987:(Re,oe,C)=>{C.d(oe,{D:()=>Z});var c=C(520),u=C(7936),H=C(5228),J=C(8263),W=C(2096);let Z=(()=>{class j{constructor(O,T,R){this.httpClient=O,this.basePath="",this.defaultHeaders=new c.WM,this.configuration=new J.V,T&&(this.basePath=T),R&&(this.configuration=R,this.basePath=T||R.shopBackendBasePath||this.basePath)}canConsumeForm(O){for(const R of O)if("multipart/form-data"===R)return!0;return!1}productServiceGet(O,T,R="body",q=!1){let se=new c.LE({encoder:new u.i});null!=O&&(se=se.set("product",O)),null!=T&&(se=se.set("shop",T));let ne=this.defaultHeaders;const X=this.configuration.selectHeaderAccept(["application/json"]);return null!=X&&(ne=ne.set("Accept",X)),this.httpClient.get(`${this.basePath}/product-service.php`,{params:se,withCredentials:this.configuration.withCredentials,headers:ne,observe:R,reportProgress:q})}}return j.\u0275fac=function(O){return new(O||j)(W.LFG(c.eN),W.LFG(H.G,8),W.LFG(J.V,8))},j.\u0275prov=W.Yz7({token:j,factory:j.\u0275fac}),j})()},5990:(Re,oe,C)=>{C.d(oe,{Y:()=>Z});var c=C(520),u=C(7936),H=C(5228),J=C(8263),W=C(2096);let Z=(()=>{class j{constructor(O,T,R){this.httpClient=O,this.basePath="",this.defaultHeaders=new c.WM,this.configuration=new J.V,T&&(this.basePath=T),R&&(this.configuration=R,this.basePath=T||R.shopBackendBasePath||this.basePath)}canConsumeForm(O){for(const R of O)if("multipart/form-data"===R)return!0;return!1}mailServiceGet(O,T,R,q,se,ne,ce,X,Se,Te,Ie,xe,gt,rt="body",Le=!1){let Ze=new c.LE({encoder:new u.i});null!=O&&(Ze=Ze.set("ngenic",O)),null!=T&&(Ze=Ze.set("test",T)),null!=R&&(Ze=Ze.set("data",R)),null!=q&&(Ze=Ze.set("email",q)),null!=se&&(Ze=Ze.set("pin",se)),null!=ne&&(Ze=Ze.set("confirmation",ne)),null!=ce&&(Ze=Ze.set("issuccess",ce)),null!=X&&(Ze=Ze.set("item",X)),null!=Se&&(Ze=Ze.set("type",Se)),null!=Te&&(Ze=Ze.set("details",Te)),null!=Ie&&(Ze=Ze.set("lang",Ie)),null!=xe&&(Ze=Ze.set("postnr",xe)),null!=gt&&(Ze=Ze.set("brand",gt));let Fe=this.defaultHeaders;const le=this.configuration.selectHeaderAccept(["application/json"]);return null!=le&&(Fe=Fe.set("Accept",le)),this.httpClient.get(`${this.basePath}/mail-service.php`,{params:Ze,withCredentials:this.configuration.withCredentials,headers:Fe,observe:rt,reportProgress:Le})}}return j.\u0275fac=function(O){return new(O||j)(W.LFG(c.eN),W.LFG(H.G,8),W.LFG(J.V,8))},j.\u0275prov=W.Yz7({token:j,factory:j.\u0275fac}),j})()},1103:(Re,oe,C)=>{C.d(oe,{F:()=>J});var c=C(5228),u=C(8263),H=C(2096);let J=(()=>{class W{constructor(j,z){this.basePath="",this.configuration=new u.V,this.maxRetries=5,j&&(this.basePath=j),z&&(this.configuration=z,this.basePath=j||z.backendBasePath||this.basePath),this.basePath=this.basePath.replace(/\/$/,"")}postTrackingEvent(j){if(null==j)throw new Error("Required parameter data was null or undefined when calling postTrackingEvent.");var z=new Blob([JSON.stringify(j)],{type:"application/json"});navigator.sendBeacon(`${this.basePath}/website/track`,z)}}return W.\u0275fac=function(j){return new(j||W)(H.LFG(c.G,8),H.LFG(u.V,8))},W.\u0275prov=H.Yz7({token:W,factory:W.\u0275fac}),W})()},9433:(Re,oe,C)=>{C.d(oe,{G:()=>W});var c=C(520),u=C(5228),H=C(8263),J=C(2096);let W=(()=>{class Z{constructor(z,O,T){this.httpClient=z,this.basePath="",this.defaultHeaders=new c.WM,this.configuration=new H.V,O&&(this.basePath=O),T&&(this.configuration=T,this.basePath=O||T.backendV2BasePath||this.basePath)}canConsumeForm(z){for(const T of z)if("multipart/form-data"===T)return!0;return!1}httpsAppNgenicSeApiV2EnergymetersGet(z="body",O=!1){let T=this.defaultHeaders;const q=this.configuration.selectHeaderAccept(["application/json"]);return null!=q&&(T=T.set("Accept",q)),this.httpClient.get(`${this.basePath}/energymeters`,{withCredentials:this.configuration.withCredentials,headers:T,observe:z,reportProgress:O})}httpsAppNgenicSeApiV2HeatsystemsGet(z="body",O=!1){let T=this.defaultHeaders;const q=this.configuration.selectHeaderAccept(["application/json"]);return null!=q&&(T=T.set("Accept",q)),this.httpClient.get(`${this.basePath}/heatsystems`,{withCredentials:this.configuration.withCredentials,headers:T,observe:z,reportProgress:O})}}return Z.\u0275fac=function(z){return new(z||Z)(J.LFG(c.eN),J.LFG(u.G,8),J.LFG(H.V,8))},Z.\u0275prov=J.Yz7({token:Z,factory:Z.\u0275fac}),Z})()},5803:(Re,oe,C)=>{C.d(oe,{t:()=>Z});var c=C(520),u=C(7936),H=C(5228),J=C(8263),W=C(2096);let Z=(()=>{class j{constructor(O,T,R){this.httpClient=O,this.basePath="",this.defaultHeaders=new c.WM,this.configuration=new J.V,T&&(this.basePath=T),R&&(this.configuration=R,this.basePath=T||R.shopBackendBasePath||this.basePath)}canConsumeForm(O){for(const R of O)if("multipart/form-data"===R)return!0;return!1}billogramServicePost(O,T,R,q="body",se=!1){if(null==O)throw new Error("Required parameter data was null or undefined when calling billogramServicePost.");let ne=new c.LE({encoder:new u.i});null!=T&&(ne=ne.set("test",T)),null!=R&&(ne=ne.set("local",R));let ce=this.defaultHeaders;const Se=this.configuration.selectHeaderAccept(["application/json"]);null!=Se&&(ce=ce.set("Accept",Se));const Ie=this.configuration.selectHeaderContentType(["application/json"]);return null!=Ie&&(ce=ce.set("Content-Type",Ie)),this.httpClient.post(`${this.basePath}/billogram-service.php`,O,{params:ne,withCredentials:this.configuration.withCredentials,headers:ce,observe:q,reportProgress:se})}mondidoServiceGet(O,T,R,q,se="body",ne=!1){let ce=new c.LE({encoder:new u.i});null!=O&&(ce=ce.set("amount",O)),null!=T&&(ce=ce.set("subscription",T)),null!=R&&(ce=ce.set("test",R)),null!=q&&(ce=ce.set("project",q));let X=this.defaultHeaders;const Te=this.configuration.selectHeaderAccept(["application/json"]);return null!=Te&&(X=X.set("Accept",Te)),this.httpClient.get(`${this.basePath}/mondido-service.php`,{params:ce,withCredentials:this.configuration.withCredentials,headers:X,observe:se,reportProgress:ne})}}return j.\u0275fac=function(O){return new(O||j)(W.LFG(c.eN),W.LFG(H.G,8),W.LFG(J.V,8))},j.\u0275prov=W.Yz7({token:j,factory:j.\u0275fac}),j})()},8263:(Re,oe,C)=>{C.d(oe,{V:()=>c});class c{constructor(H={}){this.apiKeys=H.apiKeys,this.username=H.username,this.password=H.password,this.accessToken=H.accessToken,this.shopBackendBasePath=H.shopBackendBasePath,this.backendBasePath=H.backendBasePath,this.backendV2BasePath=H.backendV2BasePath,this.withCredentials=H.withCredentials}selectHeaderContentType(H){if(0==H.length)return;let J=H.find(W=>this.isJsonMime(W));return void 0===J?H[0]:J}selectHeaderAccept(H){if(0==H.length)return;let J=H.find(W=>this.isJsonMime(W));return void 0===J?H[0]:J}isJsonMime(H){const J=new RegExp("^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$","i");return null!=H&&(J.test(H)||"application/json-patch+json"===H.toLowerCase())}}},7936:(Re,oe,C)=>{C.d(oe,{i:()=>u});var c=C(520);class u extends c.mL{encodeKey(J){return(J=super.encodeKey(J)).replace(/\+/gi,"%2B")}encodeValue(J){return(J=super.encodeValue(J)).replace(/\+/gi,"%2B")}}},3905:(Re,oe,C)=>{C.d(oe,{au:()=>T.a,VK:()=>O.V,jb:()=>c.j,Do:()=>u.D,YT:()=>H.Y,FC:()=>Z.F,GX:()=>J.G,te:()=>W.t});var c=C(3463),u=C(2987),H=C(5990),J=C(9433),W=C(5803),Z=C(1103);C(5228);var O=C(8263),T=C(6861)},5228:(Re,oe,C)=>{C.d(oe,{G:()=>u});const u=new(C(2096).OlP)("basePath")},4128:(Re,oe,C)=>{C.d(oe,{N:()=>Z});var c=C(655),u=C(3640),H=C(2096),J=C(3905),W=C(2160);let Z=(()=>{class j{constructor(O,T){this.couponService=O,this.cookieService=T,this.allowReceiptView=!1,this.cartItems=[],this.heatSysSelected=!1,this.energyMeterSelected=!1,this.cartItems=this.getLocalStorageData("items"),this.allowReceiptView=this.getLocalStorageData("allowReceiptView"),this.selectedHeatSystem=this.getLocalStorageData("heatSys"),this.selectedHeatSystemType=this.getLocalStorageData("heatSysType"),this.selectedEnergyMeterId=this.getLocalStorageData("energyMeterId"),this.selectedEnergyMeter=this.getLocalStorageData("energyMeter"),this.selectedEnergyMeterType=this.getLocalStorageData("energyMeterType"),this.energyMeterSelected=!!this.getLocalStorageData("energyMeterSelected"),this.selectedTunePayment=this.getLocalStorageData("payment");var R=this.getLocalStorageData("heatSysSelected");this.heatSysSelected=!(R instanceof Array)&&R,this.orderDetails=this.getLocalStorageData("orderDetails"),this.activeCouponCode=this.getLocalStorageData("coupon"),this.activeCoupon=this.getLocalStorageData("couponInstance"),this.activeCouponCode.length>0?this.checkCouponString(this.activeCouponCode):this.activeCouponCode="",this.installationLocation=this.getLocalStorageData("installationLocation"),"true"==localStorage.getItem("activeDemo")&&(this.allowReceiptView=!0,this.orderDetails={payWithCard:!0,name:"Test Testdottir",email:"test@testdottir.se",phone:"0123456789",street:"Testgatan 1",zipCode:"12345",city:"Teststad",sameAddress:!1,deliveryCompany:"Testf\xf6retaget AB",deliveryStreet:"Jobbgatan 1",deliveryZipCode:"54321",deliveryCity:"Jobbstad",termsAccepted:!1})}setAllowReceiptView(O){this.allowReceiptView=O,this.setLocalStorageData("allowReceiptView",O)}checkCouponString(O){return(0,c.mG)(this,void 0,void 0,function*(){if(this.activeCoupon&&this.activeCoupon.clientSideOnly)return!1;let R,T="";if(this.cartItems)for(let q=0;q<this.cartItems.length;q++)T+=this.cartItems[q],this.cartItems[q+1]&&(T+="-");yield this.couponService.couponServiceGet(O,T,this.selectedTunePayment).toPromise().then(q=>{R=q,R.clientSideOnly=!1}).catch(q=>{u.N.production||console.log(q)}),R.valid&&!R.expired&&(this.activeCoupon=R)})}setOrderDetails(O){this.orderDetails=O,this.setLocalStorageData("orderDetails",O)}setInstallationLocation(O){this.installationLocation=O,this.setLocalStorageData("installationLocation",O)}setCoupon(O,T){this.activeCoupon=O,this.activeCouponCode=T,this.setLocalStorageData("coupon",T),O.clientSideOnly&&this.setLocalStorageData("couponInstance",O)}removeCoupon(O,T){this.activeCoupon=O,this.activeCouponCode=null,localStorage.removeItem("coupon"),localStorage.removeItem("couponInstance")}setTuneData(O,T){this.selectedHeatSystem=O,this.selectedHeatSystemType=T,this.heatSysSelected=!0,this.setLocalStorageData("heatSys",O),this.setLocalStorageData("heatSysType",T),this.setLocalStorageData("heatSysSelected",!0)}setTrackData(O,T,R){this.selectedEnergyMeterId=O,this.selectedEnergyMeter=T,this.selectedEnergyMeterType=R,this.energyMeterSelected=!0,this.setLocalStorageData("energyMeterId",O),this.setLocalStorageData("energyMeter",T),this.setLocalStorageData("energyMeterType",R),this.setLocalStorageData("energyMeterSelected",!0)}clearTrackData(){this.selectedEnergyMeterId=null,this.selectedEnergyMeter=null,this.selectedEnergyMeterType=null,this.energyMeterSelected=!1,localStorage.removeItem("energyMeterId"),localStorage.removeItem("energyMeter"),localStorage.removeItem("energyMeterType"),localStorage.removeItem("energyMeterSelected")}setTunePayment(O,T=!0,R=1){this.selectedTunePayment=O,this.setLocalStorageData("payment",O),T&&this.addToCart(R)}addToCart(O){-1==this.cartItems.indexOf(O)&&(7==O?this.cartItems.indexOf(4)>-1?(this.removeFromCart(4),this.cartItems.push(6)):this.cartItems.push(O):4==O&&this.cartItems.indexOf(7)>-1?(this.removeFromCart(7),this.cartItems.push(6)):this.cartItems.push(O),this.setLocalStorageData("items",this.cartItems),this.writeCartCookie())}writeCartCookie(){const O=()=>{if(Cookiebot.consented&&Cookiebot.consent.preferences){let T=this.cartItems.length,R=new Date;R.setDate(R.getDate()+3650),T>0?u.N.production?this.cookieService.set("itemsInCart",T.toString(),R,"/",".ngenic.se"):this.cookieService.set("itemsInCart",T.toString(),R,"/"):u.N.production?this.cookieService.delete("itemsInCart","/",".ngenic.se"):this.cookieService.delete("itemsInCart","/")}};void 0!==window.Cookiebot?O():window.addEventListener("CookiebotOnLoad",()=>{O()})}removeFromCart(O){const T=this.cartItems.indexOf(O,0);T>-1&&(this.cartItems.splice(T,1),this.setLocalStorageData("items",this.cartItems),this.writeCartCookie(),1==O&&(this.selectedTunePayment=0,this.activeCouponCode&&this.activeCouponCode.length>0&&this.checkCouponString(this.activeCouponCode)))}getLocalStorageData(O){let T=JSON.parse(localStorage.getItem(O));return null==T?[]:T.itemName}setLocalStorageData(O,T){localStorage.setItem(O,JSON.stringify({itemName:T}))}clearLocalStorage(){localStorage.removeItem("allowReceiptView"),localStorage.removeItem("coupon"),localStorage.removeItem("heatSys"),localStorage.removeItem("heatSysSelected"),localStorage.removeItem("heatSysType"),localStorage.removeItem("installationLocation"),localStorage.removeItem("items"),localStorage.removeItem("orderDetails"),localStorage.removeItem("payment"),localStorage.removeItem("checkout-customer-validation"),this.clearTrackData()}clearTempStorage(){this.allowReceiptView=!1,this.cartItems=[],this.selectedHeatSystem="",this.selectedHeatSystemType="",this.heatSysSelected=!1,this.selectedEnergyMeterId=null,this.selectedEnergyMeter="",this.selectedEnergyMeterType="",this.energyMeterSelected=!1,this.selectedTunePayment=0,this.activeCouponCode="",this.activeCoupon=null,this.installationLocation="",this.orderDetails=null}}return j.\u0275fac=function(O){return new(O||j)(H.LFG(J.jb),H.LFG(W.N))},j.\u0275prov=H.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})()},6761:(Re,oe,C)=>{C.d(oe,{P:()=>J,h:()=>H});var c=C(2096);let u=(()=>{class W{emitEcommerceEvent(j){dataLayer.push({ecommerce:null}),dataLayer.push(j)}}return W.\u0275fac=function(j){return new(j||W)},W.\u0275prov=c.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})();var H=(()=>{return(W=H||(H={}))[W.OneTime=0]="OneTime",W[W.Subscription=1]="Subscription",H;var W})();let J=(()=>{class W{constructor(j){this.tagManagerEvents=j}emitListView(j,z,O){this.tagManagerEvents.emitEcommerceEvent({event:"view_item_list",ecommerce:{item_list_id:z,item_list_name:O,items:j.map(T=>this.getItem(T,H.OneTime))}})}emitProductSelectedFromList(j,z,O){this.tagManagerEvents.emitEcommerceEvent({event:"select_item",ecommerce:{item_list_id:z,item_list_name:O,items:[this.getItem(j,H.OneTime)]}})}emitViewItem(j,z=H.OneTime,O="SEK"){const T=this.getProductPrice(j);this.tagManagerEvents.emitEcommerceEvent({event:"view_item",ecommerce:{currency:O,value:T[0],items:[this.getItem(j,z)]}})}emitViewCart(j,z,O=H.OneTime,T="SEK"){this.tagManagerEvents.emitEcommerceEvent({event:"view_cart",ecommerce:{currency:T,value:z,items:j.map(R=>this.getItem(R,O))}})}emitAddToCart(j,z=H.OneTime,O="SEK"){this.tagManagerEvents.emitEcommerceEvent({event:"add_to_cart",ecommerce:{currency:O,value:this.getProductPriceSum(j),items:j.map(T=>this.getItem(T,z))}})}emitRemoveFromCart(j,z=H.OneTime,O="SEK"){this.tagManagerEvents.emitEcommerceEvent({event:"remove_from_cart",ecommerce:{currency:O,value:this.getProductPriceSum(j),items:j.map(T=>this.getItem(T,z))}})}emitBeginCheckout(j,z,O,T=H.OneTime,R="SEK"){this.tagManagerEvents.emitEcommerceEvent({event:"begin_checkout",ecommerce:{currency:R,coupon:O,value:z,items:j.map(q=>this.getItem(q,T))}})}emitPurchase(j,z,O,T,R,q,se=H.OneTime,ne="SEK"){this.tagManagerEvents.emitEcommerceEvent({event:"purchase",ecommerce:{transaction_id:z,currency:ne,coupon:R,value:T,tax:q,items:j.map(ce=>this.getItem(ce,se)),payment_method:O}})}getItem(j,z){var O;const T=this.getProductPrice(j),R=this.getProductDiscount(j);return{item_id:j.id.toString(),item_name:null!==(O={"track-opto":"track",track:"track-wired"}[j.name])&&void 0!==O?O:j.name,index:j.shopOrder,in_stock:!j.outOfStock,on_sale:j.onSale,price:z==H.OneTime?T[0]:T[1].once,discount:R[0],monthly_price:z==H.OneTime?0:T[1].monthly,monthly_discount:R[1]}}getProductPrice(j){return[j.prices[0].once,j.prices[1]]}getProductDiscount(j){return j.onSale&&j.preSalePrices?[j.preSalePrices[0].once-j.prices[0].once,j.prices[1]?j.preSalePrices[1].monthly-j.prices[1].monthly:0]:[0,0]}getProductPriceSum(j){return j.map(z=>this.getProductPrice(z)).reduce((z,O)=>z+O[0],0)}}return W.\u0275fac=function(j){return new(j||W)(c.LFG(u))},W.\u0275prov=c.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})()},1750:(Re,oe,C)=>{C.d(oe,{T:()=>W});var c=C(655),u=C(3640),H=C(2096),J=C(3905);let W=(()=>{class Z{constructor(z){this.otherApiData=z,this.productsLoaded=!1,this.demoActive="true"==localStorage.getItem("activeDemo")}setDemoActive(z){this.demoActive=z,1==z?localStorage.setItem("activeDemo","true"):localStorage.setItem("activeDemo","false")}getShopName(){return this.shopName}setShopName(z){this.shopName=z,this.setShopLink(z)}getShopLink(){return this.shopLink}setShopLink(z){this.shopLink="ngenic"==z?"":z+"/"}getShopFullName(){let z="";switch(this.getShopName()){case"jamtkraft":z="J\xe4mtkraft";break;case"jonkopingsenergi":z="J\xf6nk\xf6ping energi";break;case"oresundskraft":z="\xd6resundskraft";break;case"tekniskaverken":z="Tekniska verken";break;case"umeaenergi":z="Ume\xe5 energi"}return z}getEnergyMeters(){return(0,c.mG)(this,void 0,void 0,function*(){return(!this.energyMeters||0==this.energyMeters.length)&&(yield this.otherApiData.httpsAppNgenicSeApiV2EnergymetersGet().toPromise().then(z=>{this.energyMeters=z}).catch(z=>{u.N.production||console.log(z),this.energyMeters=[]})),this.energyMeters})}getHeatsystems(){return(0,c.mG)(this,void 0,void 0,function*(){return this.heatsystems&&0!=this.heatsystems.length||(yield this.otherApiData.httpsAppNgenicSeApiV2HeatsystemsGet().toPromise().then(z=>{this.heatsystems=z}).catch(z=>{u.N.production||console.log(z),this.heatsystems=[]})),this.heatsystems})}setCustomerValidationRequestData(z){localStorage.setItem("checkout-customer-validation",JSON.stringify(z))}getCustomerValidationRequestData(){return localStorage.getItem("checkout-customer-validation")}}return Z.\u0275fac=function(z){return new(z||Z)(H.LFG(J.GX))},Z.\u0275prov=H.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})()},6854:(Re,oe,C)=>{C.d(oe,{p:()=>J});var c=C(591),u=C(2198),H=C(2096);let J=(()=>{class W{constructor(){this._orderEvents=new c.X(null),this.orderEvents$=this._orderEvents.asObservable().pipe((0,u.h)(j=>null!==j))}registerOrder(){this._orderEvents.next({})}}return W.\u0275fac=function(j){return new(j||W)},W.\u0275prov=H.Yz7({token:W,factory:W.\u0275fac,providedIn:"root"}),W})()},6617:(Re,oe,C)=>{C.d(oe,{M:()=>Z});var c=C(655),u=C(9808),H=C(2096),J=C(2313),W=C(1750);let Z=(()=>{class j{constructor(O,T,R,q){this.meta=O,this.title=T,this.infoKeeper=R,this.doc=q,this.langPath="",this.metaArray={start:{robots:"index, follow",alt_se:"default",alt_en:"default",se:{canonical:"default",title:"K\xf6p smart termostat | Ngenic Tune f\xf6r smarta hem | Ngenic",descr:"Handla f\xf6r ett smartare hem. H\xe4r kan du k\xf6pa Ngenic Tune samt extra innegivare."},en:{canonical:"en/",title:"Buy a smart thermostat | Ngenic Tune for a smart home | Ngenic",descr:"Make your home a smart home! Here you can buy Ngenic Tune and  also extra indoor sensors."}},terms:{robots:"index, follow",alt_se:"kopvillkor",alt_en:"terms",se:{canonical:"kopvillkor",title:"K\xf6pvillkor | Ngenic",descr:"H\xe4r hittar du fullst\xe4ndiga k\xf6pvillkor f\xf6r dig som ska handla fr\xe5n Ngenic."},en:{canonical:"en/terms",title:"Terms and conditions | Ngenic",descr:"Here you find complete terms and conditions for your purchase from Ngenic."}},cart:{robots:"noindex, nofollow",se:{title:"Din varukorg | Ngenic",descr:""},en:{title:"Your cart | Ngenic",descr:""}},tune:{robots:"index, follow",alt_se:"ngenic-tune",alt_en:"ngenic-tune",se:{canonical:"ngenic-tune",title:"K\xf6p Ngenic Tune | Ngenic",descr:"H\xe4r kan du k\xf6pa den smarta termostaten Ngenic Tune som ger dig \xf6kad komfort, j\xe4mnare temperatur och full kontroll fr\xe5n fickan!"},en:{canonical:"en/ngenic-tune",title:"Buy Ngenic Tune | Ngenic",descr:"Buy the smart thermostat Ngenic Tune that gives you increased comfort, a consistent temperature and full control from the mobile app!"}},"tune-roomsensor":{robots:"index, follow",alt_se:"ngenic-tune-extra-innegivare-1-pack",alt_en:"ngenic-tune-extra-roomsensor-1-pack",se:{canonical:"ngenic-tune-extra-innegivare-1-pack",title:"K\xf6p Ngenic Tune + Extra innegivare 1-pack | Ngenic",descr:"H\xe4r kan du k\xf6pa den smarta termostaten Ngenic Tune som ger dig \xf6kad komfort, j\xe4mnare temperatur och full kontroll fr\xe5n fickan!"},en:{canonical:"en/ngenic-tune-extra-roomsensor-1-pack",title:"Buy Ngenic Tune + Extra roomsensor 1-pack | Ngenic",descr:"Buy the smart thermostat Ngenic Tune that gives you increased comfort, a consistent temperature and full control from the mobile app!"}},"track-opto":{robots:"index, follow",alt_se:"ngenic-track",alt_en:"ngenic-track",se:{canonical:"ngenic-track",title:"K\xf6p Ngenic Track | Ngenic",descr:"H\xe4r kan du k\xf6pa Ngenic Track som kopplas till den smarta termostaten Ngenic Tune."},en:{canonical:"en/ngenic-track",title:"Buy Ngenic Track | Ngenic",descr:"Here you can buy Ngenic Track which is connected to the smart thermostat Ngenic Tune."}},trackandextender:{robots:"index, follow",alt_se:"ngenic-track-och-extender",alt_en:"ngenic-track-and-extender",se:{canonical:"ngenic-track-och-extender",title:"K\xf6p Ngenic Track | Ngenic",descr:"H\xe4r kan du k\xf6pa Ngenic Track och Extender som kopplas till den smarta termostaten Ngenic Tune."},en:{canonical:"en/ngenic-track-and-extender",title:"Buy Ngenic Track | Ngenic",descr:"Here you can buy Ngenic Track and Extender which is connected to the smart thermostat Ngenic Tune."}},extender:{robots:"index, follow",alt_se:"extender-for-ngenic-track",alt_en:"extender-for-ngenic-track",se:{canonical:"extender-for-ngenic-track",title:"K\xf6p Extender till Ngenic Track | Ngenic",descr:"H\xe4r kan du k\xf6pa en Extender till en Ngenic Track som kopplas till den smarta termostaten Ngenic Tune."},en:{canonical:"en/extender-for-ngenic-track",title:"Buy Extender for Ngenic Track | Ngenic",descr:"Here you can buy Extender for Ngenic Track which is connected to the smart thermostat Ngenic Tune."}},sensor1:{robots:"index, follow",alt_se:"extra-innegivare-1-pack",alt_en:"extra-indoor-sensor-1-pack",se:{canonical:"extra-innegivare-1-pack",title:"K\xf6p extra innegivare | Ngenic",descr:"H\xe4r kan du k\xf6pa extra innegivare till den smarta termostaten Ngenic Tune."},en:{canonical:"en/extra-indoor-sensor-1-pack",title:"Buy extra indoor sensors | Ngenic",descr:"Here you can buy extra indoor sensors for the smart thermostat Ngenic Tune."}},sensor2:{robots:"index, follow",alt_se:"extra-innegivare-2-pack",alt_en:"extra-indoor-sensor-2-pack",se:{canonical:"extra-innegivare-2-pack",title:"K\xf6p extra innegivare | Ngenic",descr:"H\xe4r kan du k\xf6pa extra innegivare till den smarta termostaten Ngenic Tune."},en:{canonical:"en/extra-indoor-sensor-2-pack",title:"Buy extra indoor sensors | Ngenic",descr:"Here you can buy extra indoor sensors for the smart thermostat Ngenic Tune."}},"airpatrol-wifi":{robots:"index, follow",alt_se:"airpatrol-wifi",alt_en:"airpatrol-wifi",se:{canonical:"airpatrol-wifi",title:"K\xf6p AirPatrol WiFi | Ngenic",descr:"AirPatrol WiFi ansluts till hemmets WiFi-n\xe4t och g\xf6r det m\xf6jligt att styra din v\xe4rmepump eller luftkonditionering var som helst med din mobil."},en:{canonical:"en/airpatrol-wifi",title:"Buy AirPatrol WiFi | Ngenic",descr:"AirPatrol WiFi connects to your home WiFi network and lets you control your heat pump or air conditioner from anywhere using your smartphone!"}},"airpatrol-nordic":{robots:"index, follow",alt_se:"airpatrol-nordic",alt_en:"airpatrol-nordic",se:{canonical:"airpatrol-nordic",title:"K\xf6p AirPatrol Nordic | Ngenic",descr:"AirPatrol Nordic anv\xe4nder GSM-n\xe4tet f\xf6r att ge dig kontroll \xf6ver din luftkonditionering eller dina v\xe4rmepumpar vilket g\xf6r den perfekt \xe4ven f\xf6r de mest avl\xe4gsna fritidshusen."},en:{canonical:"en/airpatrol-nordic",title:"Buy AirPatrol Nordic | Ngenic",descr:"AirPatrol Nordic uses GSM network to give you control over your AC or heat pumps making it ideal for summer houses even in the remotest of locations."}},receipt:{robots:"noindex, nofollow",se:{title:"Kvitto | Ngenic",descr:""},en:{title:"Receipt | Ngenic",descr:""}},updatecard:{robots:"noindex, nofollow",se:{title:"\xc4ndra kortuppgifter | Ngenic",descr:""},en:{title:"Change card details | Ngenic",descr:""}},trackpreorder:{robots:"noindex, nofollow",se:{title:"Ngenic Track | F\xf6rbest\xe4ll",descr:""},en:{title:"Ngenic Track | Pre order",descr:""}},partnerbestallning:{robots:"noindex, nofollow",se:{title:"Partnerbest\xe4llning av Ngenic Tune | Ngenic",descr:""},en:{title:"Partnerbest\xe4llning av Ngenic Tune | Ngenic",descr:""}},page404:{robots:"noindex, nofollow",se:{title:"404 - Sidan kunde inte hittas | Ngenic",descr:""},en:{title:"404 - Page not found | Ngenic",descr:""}}}}setData(O){return(0,c.mG)(this,void 0,void 0,function*(){let T="se";"/en"==this.langPath&&(T="en"),this.setTitle(this.metaArray[O][T].title?this.metaArray[O][T].title:"Ngenic"),""==this.infoKeeper.getShopName()?(this.setDescription(this.metaArray[O][T].descr?this.metaArray[O][T].descr:""),this.metaArray[O][T].canonical?this.setCanonical(this.metaArray[O][T].canonical):this.removeCanonical(),this.metaArray[O].alt_se?this.setAlternate("se",this.metaArray[O].alt_se):this.removeAlternate("se"),this.metaArray[O].alt_en?this.setAlternate("en",this.metaArray[O].alt_en):this.removeAlternate("en"),this.setRobots(this.metaArray[O].robots)):this.setRobots("noindex, nofollow")})}setAlternate(O,T){if("default"==T&&(T=""),"se"==O){if(this.doc.getElementById("alternate_default"))this.doc.getElementById("alternate_default").setAttribute("href","https://shop.ngenic.se/"+T);else{let R=this.doc.createElement("link");R.setAttribute("rel","alternate"),R.setAttribute("id","alternate_default"),R.setAttribute("hreflang","x-default"),this.doc.head.appendChild(R),R.setAttribute("href","https://shop.ngenic.se/"+T)}if(this.doc.getElementById("alternate_se"))this.doc.getElementById("alternate_se").setAttribute("href","https://shop.ngenic.se/"+T);else{let R=this.doc.createElement("link");R.setAttribute("rel","alternate"),R.setAttribute("id","alternate_se"),R.setAttribute("hreflang","sv"),this.doc.head.appendChild(R),R.setAttribute("href","https://shop.ngenic.se/"+T)}}else if("en"==O)if(this.doc.getElementById("alternate_en"))this.doc.getElementById("alternate_en").setAttribute("href","https://shop.ngenic.se/en/"+T);else{let R=this.doc.createElement("link");R.setAttribute("rel","alternate"),R.setAttribute("id","alternate_en"),R.setAttribute("hreflang","en"),this.doc.head.appendChild(R),R.setAttribute("href","https://shop.ngenic.se/en/"+T)}}removeAlternate(O){"se"==O?(this.doc.getElementById("alternate_default")&&this.doc.getElementById("alternate_default").remove(),this.doc.getElementById("alternate_se")&&this.doc.getElementById("alternate_se").remove()):this.doc.getElementById("alternate_en")&&this.doc.getElementById("alternate_en").remove()}setCanonical(O){if("default"==O&&(O=""),this.doc.getElementById("canonical"))this.doc.getElementById("canonical").setAttribute("href","https://shop.ngenic.se/"+O);else{let T=this.doc.createElement("link");T.setAttribute("rel","canonical"),T.setAttribute("id","canonical"),this.doc.head.appendChild(T),T.setAttribute("href","https://shop.ngenic.se/"+O)}}removeCanonical(){this.doc.getElementById("canonical")&&this.doc.getElementById("canonical").remove()}setTitle(O){this.title.setTitle(O)}setDescription(O){this.meta.updateTag({name:"description",content:O})}setRobots(O){this.meta.updateTag({name:"robots",content:O})}setKeywords(O){this.meta.updateTag({name:"keywords",content:O})}setCurrentLang(O){this.langPath="en"===O?"/en":"nb"===O?"/nb":""}}return j.\u0275fac=function(O){return new(O||j)(H.LFG(J.h_),H.LFG(J.Dx),H.LFG(W.T),H.LFG(u.K0))},j.\u0275prov=H.Yz7({token:j,factory:j.\u0275fac,providedIn:"root"}),j})()},3640:(Re,oe,C)=>{var u;C.d(oe,{N:()=>c}),(u="object"==typeof window?window:void 0)&&(u.process=u.process||{},u.process.env=u.process.env||{});const c={production:!0,serverRef:process.env.FE_HOSTNAME||"https://shop.ngenic.se",PHPServiceRef:process.env.FE_PHP_BACKEND_URL||"https://shop.ngenic.se/php",externalApiRef:process.env.FE_BACKEND_URL||"https://app.ngenic.se/api/v2",externalApiBaseRef:process.env.FE_BACKEND_BASE_URL||"https://app.ngenic.se/api/"}},4431:(Re,oe,C)=>{var c=C(2313),u=C(2096),H=C(3242);C(3640).N.production&&(0,u.G48)(),c.q6().bootstrapModule(H.b).catch(W=>console.error(W))},9905:(Re,oe,C)=>{C.d(oe,{C:()=>c});class c{constructor(){this.querystringParameter="tracking_campaign",this.cookieNameprefix="ng-tracking.identifier",this.cookieDelimiter="___",this.cookieExpire=30,this.cookieSamesite="lax",this.cookieDomain="ngenic.se",this.cookieSecure=!0,this.cookiePath="/"}}},3875:(Re,oe,C)=>{C.d(oe,{$:()=>ce});var c=C(655),u="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),H=new Uint8Array(16);function J(){if(!u)throw new Error("uuid: This browser does not seem to support crypto.getRandomValues(). If you need to support this browser, please provide a custom random number generator through options.rng.");return u(H)}for(var W=[],Z=0;Z<256;++Z)W[Z]=(Z+256).toString(16).substr(1);const T=function O(X,Se,Te){var Ie=Se&&Te||0;"string"==typeof X&&(Se="binary"===X?new Array(16):null,X=null);var xe=(X=X||{}).random||(X.rng||J)();if(xe[6]=15&xe[6]|64,xe[8]=63&xe[8]|128,Se)for(var gt=0;gt<16;++gt)Se[Ie+gt]=xe[gt];return Se||function j(X,Se){var Te=Se||0;return[W[X[Te++]],W[X[Te++]],W[X[Te++]],W[X[Te++]],"-",W[X[Te++]],W[X[Te++]],"-",W[X[Te++]],W[X[Te++]],"-",W[X[Te++]],W[X[Te++]],"-",W[X[Te++]],W[X[Te++]],W[X[Te++]],W[X[Te++]],W[X[Te++]],W[X[Te++]]].join("")}(xe)};var R=C(2096),q=C(9905),se=C(2160),ne=C(3905);let ce=(()=>{class X{constructor(Te,Ie,xe){this.config=Te,this.cookieService=Ie,this.trackingApiService=xe}setCampaignActive(Te){return(0,c.mG)(this,void 0,void 0,function*(){const Ie=`${this.config.cookieNameprefix}${this.config.cookieDelimiter}${Te}`;this.cookieService.check(Ie)||this.cookieService.set(Ie,T(),this.config.cookieExpire,this.config.cookiePath,this.config.cookieDomain,this.config.cookieSecure,this.config.cookieSamesite)})}createEvent(Te){return Object.freeze({Name:Te,Timestamp:(new Date).toISOString()})}postEvent(Te,Ie=null){(null==Ie?this.getActiveCampaigns():[{campaignName:Ie,identifier:T()}]).map(rt=>Object.assign(Object.assign({},Te),{SourceApplication:this.config.sourceApplication,CampaignName:rt.campaignName,Identifier:rt.identifier})).map(rt=>this.trackingApiService.postTrackingEvent(rt))}getActiveCampaignNames(){const Te=this.cookieService.getAll();return Object.keys(Te).filter(Ie=>Ie.startsWith(this.config.cookieNameprefix)).map(Ie=>Ie.split(this.config.cookieDelimiter)[1])}getActiveCampaigns(){const Te=this.cookieService.getAll();return Object.keys(Te).filter(Ie=>Ie.startsWith(this.config.cookieNameprefix)).map(Ie=>({campaignName:Ie.split(this.config.cookieDelimiter)[1],identifier:Te[Ie]}))}}return X.\u0275fac=function(Te){return new(Te||X)(R.LFG(q.C),R.LFG(se.N),R.LFG(ne.FC))},X.\u0275prov=R.Yz7({token:X,factory:X.\u0275fac,providedIn:"root"}),X})()},1635:(Re,oe,C)=>{C.d(oe,{y:()=>u});const u=new(C(2096).OlP)("customer-storage")},8542:(Re,oe,C)=>{C.d(oe,{_:()=>H});var c=C(1635),u=C(2096);let H=(()=>{class J{constructor(Z){this.customerStorage=Z}get currentUser(){return this.customerStorage.get()||{}}set currentUser(Z){this.customerStorage.save(Z)}}return J.\u0275fac=function(Z){return new(Z||J)(u.LFG(c.y))},J.\u0275prov=u.Yz7({token:J,factory:J.\u0275fac}),J})()},5797:(Re,oe,C)=>{C.d(oe,{Zw:()=>We,aw:()=>V,X$:()=>_e,sK:()=>on});var c=C(2096),u=C(1086),H=C(2916);function J(U){return!!U&&(U instanceof H.y||"function"==typeof U.lift&&"function"==typeof U.subscribe)}var W=C(567),Z=C(1221),j=C(8514),z=C(2986),O=C(8929),T=C(2654);class R extends T.w{constructor(P,w){super()}schedule(P,w=0){return this}}class q extends R{constructor(P,w){super(P,w),this.scheduler=P,this.work=w,this.pending=!1}schedule(P,w=0){if(this.closed)return this;this.state=P;const k=this.id,de=this.scheduler;return null!=k&&(this.id=this.recycleAsyncId(de,k,w)),this.pending=!0,this.delay=w,this.id=this.id||this.requestAsyncId(de,this.id,w),this}requestAsyncId(P,w,k=0){return setInterval(P.flush.bind(P,this),k)}recycleAsyncId(P,w,k=0){if(null!==k&&this.delay===k&&!1===this.pending)return w;clearInterval(w)}execute(P,w){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const k=this._execute(P,w);if(k)return k;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(P,w){let de,k=!1;try{this.work(P)}catch(ve){k=!0,de=!!ve&&ve||new Error(ve)}if(k)return this.unsubscribe(),de}_unsubscribe(){const P=this.id,w=this.scheduler,k=w.actions,de=k.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==de&&k.splice(de,1),null!=P&&(this.id=this.recycleAsyncId(w,P,null)),this.delay=null}}let ne=(()=>{class U{constructor(w,k=U.now){this.SchedulerAction=w,this.now=k}schedule(w,k=0,de){return new this.SchedulerAction(this,w).schedule(de,k)}}return U.now=()=>Date.now(),U})();class ce extends ne{constructor(P,w=ne.now){super(P,()=>ce.delegate&&ce.delegate!==this?ce.delegate.now():w()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(P,w=0,k){return ce.delegate&&ce.delegate!==this?ce.delegate.schedule(P,w,k):super.schedule(P,w,k)}flush(P){const{actions:w}=this;if(this.active)return void w.push(P);let k;this.active=!0;do{if(k=P.execute(P.state,P.delay))break}while(P=w.shift());if(this.active=!1,k){for(;P=w.shift();)P.unsubscribe();throw k}}}const Se=new class X extends ce{}(class se extends q{constructor(P,w){super(P,w),this.scheduler=P,this.work=w}schedule(P,w=0){return w>0?super.schedule(P,w):(this.delay=w,this.state=P,this.scheduler.flush(this),this)}execute(P,w){return w>0||this.closed?super.execute(P,w):this._execute(P,w)}requestAsyncId(P,w,k=0){return null!==k&&k>0||null===k&&this.delay>0?super.requestAsyncId(P,w,k):P.flush(this)}});var Te=C(3489),Ie=C(8896),xe=C(1737);class rt{constructor(P,w,k){this.kind=P,this.value=w,this.error=k,this.hasValue="N"===P}observe(P){switch(this.kind){case"N":return P.next&&P.next(this.value);case"E":return P.error&&P.error(this.error);case"C":return P.complete&&P.complete()}}do(P,w,k){switch(this.kind){case"N":return P&&P(this.value);case"E":return w&&w(this.error);case"C":return k&&k()}}accept(P,w,k){return P&&"function"==typeof P.next?this.observe(P):this.do(P,w,k)}toObservable(){switch(this.kind){case"N":return(0,u.of)(this.value);case"E":return(0,xe._)(this.error);case"C":return(0,Ie.c)()}throw new Error("unexpected notification kind value")}static createNext(P){return void 0!==P?new rt("N",P):rt.undefinedValueNotification}static createError(P){return new rt("E",void 0,P)}static createComplete(){return rt.completeNotification}}rt.completeNotification=new rt("C"),rt.undefinedValueNotification=new rt("N",void 0);class Fe extends Te.L{constructor(P,w,k=0){super(P),this.scheduler=w,this.delay=k}static dispatch(P){const{notification:w,destination:k}=P;w.observe(k),this.unsubscribe()}scheduleMessage(P){this.destination.add(this.scheduler.schedule(Fe.dispatch,this.delay,new He(P,this.destination)))}_next(P){this.scheduleMessage(rt.createNext(P))}_error(P){this.scheduleMessage(rt.createError(P)),this.unsubscribe()}_complete(){this.scheduleMessage(rt.createComplete()),this.unsubscribe()}}class He{constructor(P,w){this.notification=P,this.destination=w}}var le=C(5279),pe=C(5283);class ge extends O.xQ{constructor(P=Number.POSITIVE_INFINITY,w=Number.POSITIVE_INFINITY,k){super(),this.scheduler=k,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=P<1?1:P,this._windowTime=w<1?1:w,w===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(P){const w=this._events;w.push(P),w.length>this._bufferSize&&w.shift(),super.next(P)}nextTimeWindow(P){this._events.push(new fe(this._getNow(),P)),this._trimBufferThenGetEvents(),super.next(P)}_subscribe(P){const w=this._infiniteTimeWindow,k=w?this._events:this._trimBufferThenGetEvents(),de=this.scheduler,ve=k.length;let be;if(this.closed)throw new le.N;if(this.isStopped||this.hasError?be=T.w.EMPTY:(this.observers.push(P),be=new pe.W(this,P)),de&&P.add(P=new Fe(P,de)),w)for(let tt=0;tt<ve&&!P.closed;tt++)P.next(k[tt]);else for(let tt=0;tt<ve&&!P.closed;tt++)P.next(k[tt].value);return this.hasError?P.error(this.thrownError):this.isStopped&&P.complete(),be}_getNow(){return(this.scheduler||Se).now()}_trimBufferThenGetEvents(){const P=this._getNow(),w=this._bufferSize,k=this._windowTime,de=this._events,ve=de.length;let be=0;for(;be<ve&&!(P-de[be].time<k);)be++;return ve>w&&(be=Math.max(be,ve-w)),be>0&&de.splice(0,be),de}}class fe{constructor(P,w){this.time=P,this.value=w}}function De(U,P,w){let k;return k=U&&"object"==typeof U?U:{bufferSize:U,windowTime:P,refCount:!1,scheduler:w},de=>de.lift(function ue({bufferSize:U=Number.POSITIVE_INFINITY,windowTime:P=Number.POSITIVE_INFINITY,refCount:w,scheduler:k}){let de,be,ve=0,tt=!1,ut=!1;return function(Ve){ve++,(!de||tt)&&(tt=!1,de=new ge(U,P,k),be=Ve.subscribe({next(Ae){de.next(Ae)},error(Ae){tt=!0,de.error(Ae)},complete(){ut=!0,be=void 0,de.complete()}}));const L=de.subscribe(this);this.add(()=>{ve--,L.unsubscribe(),be&&!ut&&w&&0===ve&&(be.unsubscribe(),be=void 0,de=void 0)})}}(k))}var $e=C(4850),mt=C(1406),wt=C(7545);class We{}let Rt=(()=>{class U extends We{getTranslation(w){return(0,u.of)({})}}return U.\u0275fac=function(){let P;return function(k){return(P||(P=c.n5z(U)))(k||U)}}(),U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})();class St{}let en=(()=>{class U{handle(w){return w.key}}return U.\u0275fac=function(w){return new(w||U)},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})();function Bt(U,P){if(U===P)return!0;if(null===U||null===P)return!1;if(U!=U&&P!=P)return!0;let de,ve,be,w=typeof U;if(w==typeof P&&"object"==w){if(!Array.isArray(U)){if(Array.isArray(P))return!1;for(ve in be=Object.create(null),U){if(!Bt(U[ve],P[ve]))return!1;be[ve]=!0}for(ve in P)if(!(ve in be)&&void 0!==P[ve])return!1;return!0}if(!Array.isArray(P))return!1;if((de=U.length)==P.length){for(ve=0;ve<de;ve++)if(!Bt(U[ve],P[ve]))return!1;return!0}}return!1}function xt(U){return null!=U}function yn(U){return U&&"object"==typeof U&&!Array.isArray(U)}function ht(U,P){let w=Object.assign({},U);return yn(U)&&yn(P)&&Object.keys(P).forEach(k=>{yn(P[k])?k in U?w[k]=ht(U[k],P[k]):Object.assign(w,{[k]:P[k]}):Object.assign(w,{[k]:P[k]})}),w}class qe{}let zn=(()=>{class U extends qe{constructor(){super(...arguments),this.templateMatcher=/{{\s?([^{}\s]*)\s?}}/g}interpolate(w,k){let de;return de="string"==typeof w?this.interpolateString(w,k):"function"==typeof w?this.interpolateFunction(w,k):w,de}getValue(w,k){let de="string"==typeof k?k.split("."):[k];k="";do{k+=de.shift(),!xt(w)||!xt(w[k])||"object"!=typeof w[k]&&de.length?de.length?k+=".":w=void 0:(w=w[k],k="")}while(de.length);return w}interpolateFunction(w,k){return w(k)}interpolateString(w,k){return k?w.replace(this.templateMatcher,(de,ve)=>{let be=this.getValue(k,ve);return xt(be)?be:de}):w}}return U.\u0275fac=function(){let P;return function(k){return(P||(P=c.n5z(U)))(k||U)}}(),U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})();class bn{}let Yt=(()=>{class U extends bn{compile(w,k){return w}compileTranslations(w,k){return w}}return U.\u0275fac=function(){let P;return function(k){return(P||(P=c.n5z(U)))(k||U)}}(),U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})();class ot{constructor(){this.currentLang=this.defaultLang,this.translations={},this.langs=[],this.onTranslationChange=new c.vpe,this.onLangChange=new c.vpe,this.onDefaultLangChange=new c.vpe}}const Zt=new c.OlP("USE_STORE"),Ct=new c.OlP("USE_DEFAULT_LANG"),Wt=new c.OlP("DEFAULT_LANGUAGE"),Cn=new c.OlP("USE_EXTEND");let on=(()=>{class U{constructor(w,k,de,ve,be,tt=!0,ut=!1,at=!1,Ve){this.store=w,this.currentLoader=k,this.compiler=de,this.parser=ve,this.missingTranslationHandler=be,this.useDefaultLang=tt,this.isolate=ut,this.extend=at,this.pending=!1,this._onTranslationChange=new c.vpe,this._onLangChange=new c.vpe,this._onDefaultLangChange=new c.vpe,this._langs=[],this._translations={},this._translationRequests={},Ve&&this.setDefaultLang(Ve)}get onTranslationChange(){return this.isolate?this._onTranslationChange:this.store.onTranslationChange}get onLangChange(){return this.isolate?this._onLangChange:this.store.onLangChange}get onDefaultLangChange(){return this.isolate?this._onDefaultLangChange:this.store.onDefaultLangChange}get defaultLang(){return this.isolate?this._defaultLang:this.store.defaultLang}set defaultLang(w){this.isolate?this._defaultLang=w:this.store.defaultLang=w}get currentLang(){return this.isolate?this._currentLang:this.store.currentLang}set currentLang(w){this.isolate?this._currentLang=w:this.store.currentLang=w}get langs(){return this.isolate?this._langs:this.store.langs}set langs(w){this.isolate?this._langs=w:this.store.langs=w}get translations(){return this.isolate?this._translations:this.store.translations}set translations(w){this.isolate?this._translations=w:this.store.translations=w}setDefaultLang(w){if(w===this.defaultLang)return;let k=this.retrieveTranslations(w);void 0!==k?(null==this.defaultLang&&(this.defaultLang=w),k.pipe((0,z.q)(1)).subscribe(de=>{this.changeDefaultLang(w)})):this.changeDefaultLang(w)}getDefaultLang(){return this.defaultLang}use(w){if(w===this.currentLang)return(0,u.of)(this.translations[w]);let k=this.retrieveTranslations(w);return void 0!==k?(this.currentLang||(this.currentLang=w),k.pipe((0,z.q)(1)).subscribe(de=>{this.changeLang(w)}),k):(this.changeLang(w),(0,u.of)(this.translations[w]))}retrieveTranslations(w){let k;return(void 0===this.translations[w]||this.extend)&&(this._translationRequests[w]=this._translationRequests[w]||this.getTranslation(w),k=this._translationRequests[w]),k}getTranslation(w){this.pending=!0;const k=this.currentLoader.getTranslation(w).pipe(De(1),(0,z.q)(1));return this.loadingTranslations=k.pipe((0,$e.U)(de=>this.compiler.compileTranslations(de,w)),De(1),(0,z.q)(1)),this.loadingTranslations.subscribe({next:de=>{this.translations[w]=this.extend&&this.translations[w]?Object.assign(Object.assign({},de),this.translations[w]):de,this.updateLangs(),this.pending=!1},error:de=>{this.pending=!1}}),k}setTranslation(w,k,de=!1){k=this.compiler.compileTranslations(k,w),this.translations[w]=(de||this.extend)&&this.translations[w]?ht(this.translations[w],k):k,this.updateLangs(),this.onTranslationChange.emit({lang:w,translations:this.translations[w]})}getLangs(){return this.langs}addLangs(w){w.forEach(k=>{-1===this.langs.indexOf(k)&&this.langs.push(k)})}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResult(w,k,de){let ve;if(k instanceof Array){let be={},tt=!1;for(let ut of k)be[ut]=this.getParsedResult(w,ut,de),J(be[ut])&&(tt=!0);if(tt){const ut=k.map(at=>J(be[at])?be[at]:(0,u.of)(be[at]));return(0,W.D)(ut).pipe((0,$e.U)(at=>{let Ve={};return at.forEach((L,Ae)=>{Ve[k[Ae]]=L}),Ve}))}return be}if(w&&(ve=this.parser.interpolate(this.parser.getValue(w,k),de)),void 0===ve&&null!=this.defaultLang&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(ve=this.parser.interpolate(this.parser.getValue(this.translations[this.defaultLang],k),de)),void 0===ve){let be={key:k,translateService:this};void 0!==de&&(be.interpolateParams=de),ve=this.missingTranslationHandler.handle(be)}return void 0!==ve?ve:k}get(w,k){if(!xt(w)||!w.length)throw new Error('Parameter "key" required');if(this.pending)return this.loadingTranslations.pipe((0,mt.b)(de=>J(de=this.getParsedResult(de,w,k))?de:(0,u.of)(de)));{let de=this.getParsedResult(this.translations[this.currentLang],w,k);return J(de)?de:(0,u.of)(de)}}getStreamOnTranslationChange(w,k){if(!xt(w)||!w.length)throw new Error('Parameter "key" required');return(0,Z.z)((0,j.P)(()=>this.get(w,k)),this.onTranslationChange.pipe((0,wt.w)(de=>{const ve=this.getParsedResult(de.translations,w,k);return"function"==typeof ve.subscribe?ve:(0,u.of)(ve)})))}stream(w,k){if(!xt(w)||!w.length)throw new Error('Parameter "key" required');return(0,Z.z)((0,j.P)(()=>this.get(w,k)),this.onLangChange.pipe((0,wt.w)(de=>{const ve=this.getParsedResult(de.translations,w,k);return J(ve)?ve:(0,u.of)(ve)})))}instant(w,k){if(!xt(w)||!w.length)throw new Error('Parameter "key" required');let de=this.getParsedResult(this.translations[this.currentLang],w,k);if(J(de)){if(w instanceof Array){let ve={};return w.forEach((be,tt)=>{ve[w[tt]]=w[tt]}),ve}return w}return de}set(w,k,de=this.currentLang){this.translations[de][w]=this.compiler.compile(k,de),this.updateLangs(),this.onTranslationChange.emit({lang:de,translations:this.translations[de]})}changeLang(w){this.currentLang=w,this.onLangChange.emit({lang:w,translations:this.translations[w]}),null==this.defaultLang&&this.changeDefaultLang(w)}changeDefaultLang(w){this.defaultLang=w,this.onDefaultLangChange.emit({lang:w,translations:this.translations[w]})}reloadLang(w){return this.resetLang(w),this.getTranslation(w)}resetLang(w){this._translationRequests[w]=void 0,this.translations[w]=void 0}getBrowserLang(){if("undefined"==typeof window||void 0===window.navigator)return;let w=window.navigator.languages?window.navigator.languages[0]:null;return w=w||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,void 0!==w?(-1!==w.indexOf("-")&&(w=w.split("-")[0]),-1!==w.indexOf("_")&&(w=w.split("_")[0]),w):void 0}getBrowserCultureLang(){if("undefined"==typeof window||void 0===window.navigator)return;let w=window.navigator.languages?window.navigator.languages[0]:null;return w=w||window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage,w}}return U.\u0275fac=function(w){return new(w||U)(c.LFG(ot),c.LFG(We),c.LFG(bn),c.LFG(qe),c.LFG(St),c.LFG(Ct),c.LFG(Zt),c.LFG(Cn),c.LFG(Wt))},U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})(),_e=(()=>{class U{constructor(w,k){this.translate=w,this._ref=k,this.value=""}updateValue(w,k,de){let ve=be=>{this.value=void 0!==be?be:w,this.lastKey=w,this._ref.markForCheck()};if(de){let be=this.translate.getParsedResult(de,w,k);J(be.subscribe)?be.subscribe(ve):ve(be)}this.translate.get(w,k).subscribe(ve)}transform(w,...k){if(!w||!w.length)return w;if(Bt(w,this.lastKey)&&Bt(k,this.lastParams))return this.value;let de;if(xt(k[0])&&k.length)if("string"==typeof k[0]&&k[0].length){let ve=k[0].replace(/(\')?([a-zA-Z0-9_]+)(\')?(\s)?:/g,'"$2":').replace(/:(\s)?(\')(.*?)(\')/g,':"$3"');try{de=JSON.parse(ve)}catch(be){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${k[0]}`)}}else"object"==typeof k[0]&&!Array.isArray(k[0])&&(de=k[0]);return this.lastKey=w,this.lastParams=k,this.updateValue(w,de),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(ve=>{this.lastKey&&ve.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(w,de,ve.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(ve=>{this.lastKey&&(this.lastKey=null,this.updateValue(w,de,ve.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(w,de))})),this.value}_dispose(){void 0!==this.onTranslationChange&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),void 0!==this.onLangChange&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),void 0!==this.onDefaultLangChange&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}}return U.\u0275fac=function(w){return new(w||U)(c.Y36(on,16),c.Y36(c.sBO,16))},U.\u0275pipe=c.Yjl({name:"translate",type:U,pure:!1}),U.\u0275prov=c.Yz7({token:U,factory:U.\u0275fac}),U})(),V=(()=>{class U{static forRoot(w={}){return{ngModule:U,providers:[w.loader||{provide:We,useClass:Rt},w.compiler||{provide:bn,useClass:Yt},w.parser||{provide:qe,useClass:zn},w.missingTranslationHandler||{provide:St,useClass:en},ot,{provide:Zt,useValue:w.isolate},{provide:Ct,useValue:w.useDefaultLang},{provide:Cn,useValue:w.extend},{provide:Wt,useValue:w.defaultLanguage},on]}}static forChild(w={}){return{ngModule:U,providers:[w.loader||{provide:We,useClass:Rt},w.compiler||{provide:bn,useClass:Yt},w.parser||{provide:qe,useClass:zn},w.missingTranslationHandler||{provide:St,useClass:en},{provide:Zt,useValue:w.isolate},{provide:Ct,useValue:w.useDefaultLang},{provide:Cn,useValue:w.extend},{provide:Wt,useValue:w.defaultLanguage},on]}}}return U.\u0275fac=function(w){return new(w||U)},U.\u0275mod=c.oAB({type:U}),U.\u0275inj=c.cJS({}),U})()},591:(Re,oe,C)=>{C.d(oe,{X:()=>H});var c=C(8929),u=C(5279);class H extends c.xQ{constructor(W){super(),this._value=W}get value(){return this.getValue()}_subscribe(W){const Z=super._subscribe(W);return Z&&!Z.closed&&W.next(this._value),Z}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new u.N;return this._value}next(W){super.next(this._value=W)}}},1869:(Re,oe,C)=>{C.d(oe,{d:()=>u});var c=C(3489);class u extends c.L{constructor(J,W,Z){super(),this.parent=J,this.outerValue=W,this.outerIndex=Z,this.index=0}_next(J){this.parent.notifyNext(this.outerValue,J,this.outerIndex,this.index++,this)}_error(J){this.parent.notifyError(J,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}},2916:(Re,oe,C)=>{C.d(oe,{y:()=>R});var c=C(3489),H=C(7668),J=C(3292),Z=C(3821),j=C(5379);var T=C(2830);let R=(()=>{class se{constructor(ce){this._isScalar=!1,ce&&(this._subscribe=ce)}lift(ce){const X=new se;return X.source=this,X.operator=ce,X}subscribe(ce,X,Se){const{operator:Te}=this,Ie=function W(se,ne,ce){if(se){if(se instanceof c.L)return se;if(se[H.b])return se[H.b]()}return se||ne||ce?new c.L(se,ne,ce):new c.L(J.c)}(ce,X,Se);if(Ie.add(Te?Te.call(Ie,this.source):this.source||T.v.useDeprecatedSynchronousErrorHandling&&!Ie.syncErrorThrowable?this._subscribe(Ie):this._trySubscribe(Ie)),T.v.useDeprecatedSynchronousErrorHandling&&Ie.syncErrorThrowable&&(Ie.syncErrorThrowable=!1,Ie.syncErrorThrown))throw Ie.syncErrorValue;return Ie}_trySubscribe(ce){try{return this._subscribe(ce)}catch(X){T.v.useDeprecatedSynchronousErrorHandling&&(ce.syncErrorThrown=!0,ce.syncErrorValue=X),function u(se){for(;se;){const{closed:ne,destination:ce,isStopped:X}=se;if(ne||X)return!1;se=ce&&ce instanceof c.L?ce:null}return!0}(ce)?ce.error(X):console.warn(X)}}forEach(ce,X){return new(X=q(X))((Se,Te)=>{let Ie;Ie=this.subscribe(xe=>{try{ce(xe)}catch(gt){Te(gt),Ie&&Ie.unsubscribe()}},Te,Se)})}_subscribe(ce){const{source:X}=this;return X&&X.subscribe(ce)}[Z.L](){return this}pipe(...ce){return 0===ce.length?this:function O(se){return 0===se.length?j.y:1===se.length?se[0]:function(ce){return se.reduce((X,Se)=>Se(X),ce)}}(ce)(this)}toPromise(ce){return new(ce=q(ce))((X,Se)=>{let Te;this.subscribe(Ie=>Te=Ie,Ie=>Se(Ie),()=>X(Te))})}}return se.create=ne=>new se(ne),se})();function q(se){if(se||(se=T.v.Promise||Promise),!se)throw new Error("no Promise impl found");return se}},3292:(Re,oe,C)=>{C.d(oe,{c:()=>H});var c=C(2830),u=C(2782);const H={closed:!0,next(J){},error(J){if(c.v.useDeprecatedSynchronousErrorHandling)throw J;(0,u.z)(J)},complete(){}}},826:(Re,oe,C)=>{C.d(oe,{L:()=>u});var c=C(3489);class u extends c.L{notifyNext(J,W,Z,j,z){this.destination.next(W)}notifyError(J,W){this.destination.error(J)}notifyComplete(J){this.destination.complete()}}},8929:(Re,oe,C)=>{C.d(oe,{Yc:()=>j,xQ:()=>z});var c=C(2916),u=C(3489),H=C(2654),J=C(5279),W=C(5283),Z=C(7668);class j extends u.L{constructor(R){super(R),this.destination=R}}let z=(()=>{class T extends c.y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Z.b](){return new j(this)}lift(q){const se=new O(this,this);return se.operator=q,se}next(q){if(this.closed)throw new J.N;if(!this.isStopped){const{observers:se}=this,ne=se.length,ce=se.slice();for(let X=0;X<ne;X++)ce[X].next(q)}}error(q){if(this.closed)throw new J.N;this.hasError=!0,this.thrownError=q,this.isStopped=!0;const{observers:se}=this,ne=se.length,ce=se.slice();for(let X=0;X<ne;X++)ce[X].error(q);this.observers.length=0}complete(){if(this.closed)throw new J.N;this.isStopped=!0;const{observers:q}=this,se=q.length,ne=q.slice();for(let ce=0;ce<se;ce++)ne[ce].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(q){if(this.closed)throw new J.N;return super._trySubscribe(q)}_subscribe(q){if(this.closed)throw new J.N;return this.hasError?(q.error(this.thrownError),H.w.EMPTY):this.isStopped?(q.complete(),H.w.EMPTY):(this.observers.push(q),new W.W(this,q))}asObservable(){const q=new c.y;return q.source=this,q}}return T.create=(R,q)=>new O(R,q),T})();class O extends z{constructor(R,q){super(),this.destination=R,this.source=q}next(R){const{destination:q}=this;q&&q.next&&q.next(R)}error(R){const{destination:q}=this;q&&q.error&&this.destination.error(R)}complete(){const{destination:R}=this;R&&R.complete&&this.destination.complete()}_subscribe(R){const{source:q}=this;return q?this.source.subscribe(R):H.w.EMPTY}}},5283:(Re,oe,C)=>{C.d(oe,{W:()=>u});var c=C(2654);class u extends c.w{constructor(J,W){super(),this.subject=J,this.subscriber=W,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const J=this.subject,W=J.observers;if(this.subject=null,!W||0===W.length||J.isStopped||J.closed)return;const Z=W.indexOf(this.subscriber);-1!==Z&&W.splice(Z,1)}}},3489:(Re,oe,C)=>{C.d(oe,{L:()=>j});var c=C(7043),u=C(3292),H=C(2654),J=C(7668),W=C(2830),Z=C(2782);class j extends H.w{constructor(T,R,q){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=u.c;break;case 1:if(!T){this.destination=u.c;break}if("object"==typeof T){T instanceof j?(this.syncErrorThrowable=T.syncErrorThrowable,this.destination=T,T.add(this)):(this.syncErrorThrowable=!0,this.destination=new z(this,T));break}default:this.syncErrorThrowable=!0,this.destination=new z(this,T,R,q)}}[J.b](){return this}static create(T,R,q){const se=new j(T,R,q);return se.syncErrorThrowable=!1,se}next(T){this.isStopped||this._next(T)}error(T){this.isStopped||(this.isStopped=!0,this._error(T))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(T){this.destination.next(T)}_error(T){this.destination.error(T),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:T}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=T,this}}class z extends j{constructor(T,R,q,se){super(),this._parentSubscriber=T;let ne,ce=this;(0,c.m)(R)?ne=R:R&&(ne=R.next,q=R.error,se=R.complete,R!==u.c&&(ce=Object.create(R),(0,c.m)(ce.unsubscribe)&&this.add(ce.unsubscribe.bind(ce)),ce.unsubscribe=this.unsubscribe.bind(this))),this._context=ce,this._next=ne,this._error=q,this._complete=se}next(T){if(!this.isStopped&&this._next){const{_parentSubscriber:R}=this;W.v.useDeprecatedSynchronousErrorHandling&&R.syncErrorThrowable?this.__tryOrSetError(R,this._next,T)&&this.unsubscribe():this.__tryOrUnsub(this._next,T)}}error(T){if(!this.isStopped){const{_parentSubscriber:R}=this,{useDeprecatedSynchronousErrorHandling:q}=W.v;if(this._error)q&&R.syncErrorThrowable?(this.__tryOrSetError(R,this._error,T),this.unsubscribe()):(this.__tryOrUnsub(this._error,T),this.unsubscribe());else if(R.syncErrorThrowable)q?(R.syncErrorValue=T,R.syncErrorThrown=!0):(0,Z.z)(T),this.unsubscribe();else{if(this.unsubscribe(),q)throw T;(0,Z.z)(T)}}}complete(){if(!this.isStopped){const{_parentSubscriber:T}=this;if(this._complete){const R=()=>this._complete.call(this._context);W.v.useDeprecatedSynchronousErrorHandling&&T.syncErrorThrowable?(this.__tryOrSetError(T,R),this.unsubscribe()):(this.__tryOrUnsub(R),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(T,R){try{T.call(this._context,R)}catch(q){if(this.unsubscribe(),W.v.useDeprecatedSynchronousErrorHandling)throw q;(0,Z.z)(q)}}__tryOrSetError(T,R,q){if(!W.v.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{R.call(this._context,q)}catch(se){return W.v.useDeprecatedSynchronousErrorHandling?(T.syncErrorValue=se,T.syncErrorThrown=!0,!0):((0,Z.z)(se),!0)}return!1}_unsubscribe(){const{_parentSubscriber:T}=this;this._context=null,this._parentSubscriber=null,T.unsubscribe()}}},2654:(Re,oe,C)=>{C.d(oe,{w:()=>Z});var c=C(6688),u=C(7830),H=C(7043);const W=(()=>{function z(O){return Error.call(this),this.message=O?`${O.length} errors occurred during unsubscription:\n${O.map((T,R)=>`${R+1}) ${T.toString()}`).join("\n  ")}`:"",this.name="UnsubscriptionError",this.errors=O,this}return z.prototype=Object.create(Error.prototype),z})();class Z{constructor(O){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,O&&(this._unsubscribe=O)}unsubscribe(){let O;if(this.closed)return;let{_parentOrParents:T,_unsubscribe:R,_subscriptions:q}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,T instanceof Z)T.remove(this);else if(null!==T)for(let se=0;se<T.length;++se)T[se].remove(this);if((0,H.m)(R))try{R.call(this)}catch(se){O=se instanceof W?j(se.errors):[se]}if((0,c.k)(q)){let se=-1,ne=q.length;for(;++se<ne;){const ce=q[se];if((0,u.K)(ce))try{ce.unsubscribe()}catch(X){O=O||[],X instanceof W?O=O.concat(j(X.errors)):O.push(X)}}}if(O)throw new W(O)}add(O){let T=O;if(!O)return Z.EMPTY;switch(typeof O){case"function":T=new Z(O);case"object":if(T===this||T.closed||"function"!=typeof T.unsubscribe)return T;if(this.closed)return T.unsubscribe(),T;if(!(T instanceof Z)){const se=T;T=new Z,T._subscriptions=[se]}break;default:throw new Error("unrecognized teardown "+O+" added to Subscription.")}let{_parentOrParents:R}=T;if(null===R)T._parentOrParents=this;else if(R instanceof Z){if(R===this)return T;T._parentOrParents=[R,this]}else{if(-1!==R.indexOf(this))return T;R.push(this)}const q=this._subscriptions;return null===q?this._subscriptions=[T]:q.push(T),T}remove(O){const T=this._subscriptions;if(T){const R=T.indexOf(O);-1!==R&&T.splice(R,1)}}}var z;function j(z){return z.reduce((O,T)=>O.concat(T instanceof W?T.errors:T),[])}Z.EMPTY=((z=new Z).closed=!0,z)},2830:(Re,oe,C)=>{C.d(oe,{v:()=>u});let c=!1;const u={Promise:void 0,set useDeprecatedSynchronousErrorHandling(H){if(H){const J=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+J.stack)}else c&&console.log("RxJS: Back to a better error behavior. Thank you. <3");c=H},get useDeprecatedSynchronousErrorHandling(){return c}}},1762:(Re,oe,C)=>{C.d(oe,{N:()=>Z,c:()=>W});var c=C(8929),u=C(2916),H=C(2654),J=C(4327);class W extends u.y{constructor(R,q){super(),this.source=R,this.subjectFactory=q,this._refCount=0,this._isComplete=!1}_subscribe(R){return this.getSubject().subscribe(R)}getSubject(){const R=this._subject;return(!R||R.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let R=this._connection;return R||(this._isComplete=!1,R=this._connection=new H.w,R.add(this.source.subscribe(new j(this.getSubject(),this))),R.closed&&(this._connection=null,R=H.w.EMPTY)),R}refCount(){return(0,J.x)()(this)}}const Z=(()=>{const T=W.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:T._subscribe},_isComplete:{value:T._isComplete,writable:!0},getSubject:{value:T.getSubject},connect:{value:T.connect},refCount:{value:T.refCount}}})();class j extends c.Yc{constructor(R,q){super(R),this.connectable=q}_error(R){this._unsubscribe(),super._error(R)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const R=this.connectable;if(R){this.connectable=null;const q=R._connection;R._refCount=0,R._subject=null,R._connection=null,q&&q.unsubscribe()}}}},1221:(Re,oe,C)=>{C.d(oe,{z:()=>J});var c=C(1086),u=C(9146);function J(...W){return function H(){return(0,u.J)(1)}()((0,c.of)(...W))}},8514:(Re,oe,C)=>{C.d(oe,{P:()=>J});var c=C(2916),u=C(5254),H=C(8896);function J(W){return new c.y(Z=>{let j;try{j=W()}catch(O){return void Z.error(O)}return(j?(0,u.D)(j):(0,H.c)()).subscribe(Z)})}},8896:(Re,oe,C)=>{C.d(oe,{E:()=>u,c:()=>H});var c=C(2916);const u=new c.y(W=>W.complete());function H(W){return W?function J(W){return new c.y(Z=>W.schedule(()=>Z.complete()))}(W):u}},567:(Re,oe,C)=>{C.d(oe,{D:()=>Z});var c=C(2916),u=C(6688),H=C(4850),J=C(7830),W=C(5254);function Z(...z){if(1===z.length){const O=z[0];if((0,u.k)(O))return j(O,null);if((0,J.K)(O)&&Object.getPrototypeOf(O)===Object.prototype){const T=Object.keys(O);return j(T.map(R=>O[R]),T)}}if("function"==typeof z[z.length-1]){const O=z.pop();return j(z=1===z.length&&(0,u.k)(z[0])?z[0]:z,null).pipe((0,H.U)(T=>O(...T)))}return j(z,null)}function j(z,O){return new c.y(T=>{const R=z.length;if(0===R)return void T.complete();const q=new Array(R);let se=0,ne=0;for(let ce=0;ce<R;ce++){const X=(0,W.D)(z[ce]);let Se=!1;T.add(X.subscribe({next:Te=>{Se||(Se=!0,ne++),q[ce]=Te},error:Te=>T.error(Te),complete:()=>{se++,(se===R||!Se)&&(ne===R&&T.next(O?O.reduce((Te,Ie,xe)=>(Te[Ie]=q[xe],Te),{}):q),T.complete())}}))}})}},5254:(Re,oe,C)=>{C.d(oe,{D:()=>ce});var c=C(2916),u=C(9249),H=C(2654),J=C(3821),j=C(6454),z=C(5430),R=C(8955),q=C(8515);function ce(X,Se){return Se?function ne(X,Se){if(null!=X){if(function T(X){return X&&"function"==typeof X[J.L]}(X))return function W(X,Se){return new c.y(Te=>{const Ie=new H.w;return Ie.add(Se.schedule(()=>{const xe=X[J.L]();Ie.add(xe.subscribe({next(gt){Ie.add(Se.schedule(()=>Te.next(gt)))},error(gt){Ie.add(Se.schedule(()=>Te.error(gt)))},complete(){Ie.add(Se.schedule(()=>Te.complete()))}}))})),Ie})}(X,Se);if((0,R.t)(X))return function Z(X,Se){return new c.y(Te=>{const Ie=new H.w;return Ie.add(Se.schedule(()=>X.then(xe=>{Ie.add(Se.schedule(()=>{Te.next(xe),Ie.add(Se.schedule(()=>Te.complete()))}))},xe=>{Ie.add(Se.schedule(()=>Te.error(xe)))}))),Ie})}(X,Se);if((0,q.z)(X))return(0,j.r)(X,Se);if(function se(X){return X&&"function"==typeof X[z.hZ]}(X)||"string"==typeof X)return function O(X,Se){if(!X)throw new Error("Iterable cannot be null");return new c.y(Te=>{const Ie=new H.w;let xe;return Ie.add(()=>{xe&&"function"==typeof xe.return&&xe.return()}),Ie.add(Se.schedule(()=>{xe=X[z.hZ](),Ie.add(Se.schedule(function(){if(Te.closed)return;let gt,rt;try{const Le=xe.next();gt=Le.value,rt=Le.done}catch(Le){return void Te.error(Le)}rt?Te.complete():(Te.next(gt),this.schedule())}))})),Ie})}(X,Se)}throw new TypeError((null!==X&&typeof X||X)+" is not observable")}(X,Se):X instanceof c.y?X:new c.y((0,u.s)(X))}},3009:(Re,oe,C)=>{C.d(oe,{n:()=>J});var c=C(2916),u=C(3650),H=C(6454);function J(W,Z){return Z?(0,H.r)(W,Z):new c.y((0,u.V)(W))}},1086:(Re,oe,C)=>{C.d(oe,{of:()=>J});var c=C(2866),u=C(3009),H=C(6454);function J(...W){let Z=W[W.length-1];return(0,c.K)(Z)?(W.pop(),(0,H.r)(W,Z)):(0,u.n)(W)}},1737:(Re,oe,C)=>{C.d(oe,{_:()=>u});var c=C(2916);function u(J,W){return new c.y(W?Z=>W.schedule(H,0,{error:J,subscriber:Z}):Z=>Z.error(J))}function H({error:J,subscriber:W}){W.error(J)}},1406:(Re,oe,C)=>{C.d(oe,{b:()=>u});var c=C(1709);function u(H,J){return(0,c.zg)(H,J,1)}},2198:(Re,oe,C)=>{C.d(oe,{h:()=>u});var c=C(3489);function u(W,Z){return function(z){return z.lift(new H(W,Z))}}class H{constructor(Z,j){this.predicate=Z,this.thisArg=j}call(Z,j){return j.subscribe(new J(Z,this.predicate,this.thisArg))}}class J extends c.L{constructor(Z,j,z){super(Z),this.predicate=j,this.thisArg=z,this.count=0}_next(Z){let j;try{j=this.predicate.call(this.thisArg,Z,this.count++)}catch(z){return void this.destination.error(z)}j&&this.destination.next(Z)}}},4850:(Re,oe,C)=>{C.d(oe,{U:()=>u});var c=C(3489);function u(W,Z){return function(z){if("function"!=typeof W)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return z.lift(new H(W,Z))}}class H{constructor(Z,j){this.project=Z,this.thisArg=j}call(Z,j){return j.subscribe(new J(Z,this.project,this.thisArg))}}class J extends c.L{constructor(Z,j,z){super(Z),this.project=j,this.count=0,this.thisArg=z||this}_next(Z){let j;try{j=this.project.call(this.thisArg,Z,this.count++)}catch(z){return void this.destination.error(z)}this.destination.next(j)}}},9146:(Re,oe,C)=>{C.d(oe,{J:()=>H});var c=C(1709),u=C(5379);function H(J=Number.POSITIVE_INFINITY){return(0,c.zg)(u.y,J)}},1709:(Re,oe,C)=>{C.d(oe,{zg:()=>Z});var c=C(9054),u=C(826),H=C(1869),J=C(4850),W=C(5254);function Z(O,T,R=Number.POSITIVE_INFINITY){return"function"==typeof T?q=>q.pipe(Z((se,ne)=>(0,W.D)(O(se,ne)).pipe((0,J.U)((ce,X)=>T(se,ce,ne,X))),R)):("number"==typeof T&&(R=T),q=>q.lift(new j(O,R)))}class j{constructor(T,R=Number.POSITIVE_INFINITY){this.project=T,this.concurrent=R}call(T,R){return R.subscribe(new z(T,this.project,this.concurrent))}}class z extends u.L{constructor(T,R,q=Number.POSITIVE_INFINITY){super(T),this.project=R,this.concurrent=q,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(T){this.active<this.concurrent?this._tryNext(T):this.buffer.push(T)}_tryNext(T){let R;const q=this.index++;try{R=this.project(T,q)}catch(se){return void this.destination.error(se)}this.active++,this._innerSub(R,T,q)}_innerSub(T,R,q){const se=new H.d(this,R,q),ne=this.destination;ne.add(se);const ce=(0,c.D)(this,T,void 0,void 0,se);ce!==se&&ne.add(ce)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(T,R,q,se,ne){this.destination.next(R)}notifyComplete(T){const R=this.buffer;this.remove(T),this.active--,R.length>0?this._next(R.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}},4327:(Re,oe,C)=>{C.d(oe,{x:()=>u});var c=C(3489);function u(){return function(Z){return Z.lift(new H(Z))}}class H{constructor(Z){this.connectable=Z}call(Z,j){const{connectable:z}=this;z._refCount++;const O=new J(Z,z),T=j.subscribe(O);return O.closed||(O.connection=z.connect()),T}}class J extends c.L{constructor(Z,j){super(Z),this.connectable=j}_unsubscribe(){const{connectable:Z}=this;if(!Z)return void(this.connection=null);this.connectable=null;const j=Z._refCount;if(j<=0)return void(this.connection=null);if(Z._refCount=j-1,j>1)return void(this.connection=null);const{connection:z}=this,O=Z._connection;this.connection=null,O&&(!z||O===z)&&O.unsubscribe()}}},7545:(Re,oe,C)=>{C.d(oe,{w:()=>Z});var c=C(826),u=C(1869),H=C(9054),J=C(4850),W=C(5254);function Z(O,T){return"function"==typeof T?R=>R.pipe(Z((q,se)=>(0,W.D)(O(q,se)).pipe((0,J.U)((ne,ce)=>T(q,ne,se,ce))))):R=>R.lift(new j(O))}class j{constructor(T){this.project=T}call(T,R){return R.subscribe(new z(T,this.project))}}class z extends c.L{constructor(T,R){super(T),this.project=R,this.index=0}_next(T){let R;const q=this.index++;try{R=this.project(T,q)}catch(se){return void this.destination.error(se)}this._innerSub(R,T,q)}_innerSub(T,R,q){const se=this.innerSubscription;se&&se.unsubscribe();const ne=new u.d(this,R,q),ce=this.destination;ce.add(ne),this.innerSubscription=(0,H.D)(this,T,void 0,void 0,ne),this.innerSubscription!==ne&&ce.add(this.innerSubscription)}_complete(){const{innerSubscription:T}=this;(!T||T.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=null}notifyComplete(T){this.destination.remove(T),this.innerSubscription=null,this.isStopped&&super._complete()}notifyNext(T,R,q,se,ne){this.destination.next(R)}}},2986:(Re,oe,C)=>{C.d(oe,{q:()=>J});var c=C(3489),u=C(4231),H=C(8896);function J(j){return z=>0===j?(0,H.c)():z.lift(new W(j))}class W{constructor(z){if(this.total=z,this.total<0)throw new u.W}call(z,O){return O.subscribe(new Z(z,this.total))}}class Z extends c.L{constructor(z,O){super(z),this.total=O,this.count=0}_next(z){const O=this.total,T=++this.count;T<=O&&(this.destination.next(z),T===O&&(this.destination.complete(),this.unsubscribe()))}}},6454:(Re,oe,C)=>{C.d(oe,{r:()=>H});var c=C(2916),u=C(2654);function H(J,W){return new c.y(Z=>{const j=new u.w;let z=0;return j.add(W.schedule(function(){z!==J.length?(Z.next(J[z++]),Z.closed||j.add(this.schedule())):Z.complete()})),j})}},5430:(Re,oe,C)=>{C.d(oe,{hZ:()=>u});const u=function c(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3821:(Re,oe,C)=>{C.d(oe,{L:()=>c});const c="function"==typeof Symbol&&Symbol.observable||"@@observable"},7668:(Re,oe,C)=>{C.d(oe,{b:()=>c});const c="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},4231:(Re,oe,C)=>{C.d(oe,{W:()=>u});const u=(()=>{function H(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return H.prototype=Object.create(Error.prototype),H})()},5279:(Re,oe,C)=>{C.d(oe,{N:()=>u});const u=(()=>{function H(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return H.prototype=Object.create(Error.prototype),H})()},2782:(Re,oe,C)=>{function c(u){setTimeout(()=>{throw u},0)}C.d(oe,{z:()=>c})},5379:(Re,oe,C)=>{function c(u){return u}C.d(oe,{y:()=>c})},6688:(Re,oe,C)=>{C.d(oe,{k:()=>c});const c=Array.isArray||(u=>u&&"number"==typeof u.length)},8515:(Re,oe,C)=>{C.d(oe,{z:()=>c});const c=u=>u&&"number"==typeof u.length&&"function"!=typeof u},7043:(Re,oe,C)=>{function c(u){return"function"==typeof u}C.d(oe,{m:()=>c})},7830:(Re,oe,C)=>{function c(u){return null!==u&&"object"==typeof u}C.d(oe,{K:()=>c})},8955:(Re,oe,C)=>{function c(u){return!!u&&"function"!=typeof u.subscribe&&"function"==typeof u.then}C.d(oe,{t:()=>c})},2866:(Re,oe,C)=>{function c(u){return u&&"function"==typeof u.schedule}C.d(oe,{K:()=>c})},9249:(Re,oe,C)=>{C.d(oe,{s:()=>R});var c=C(3650),u=C(2782),J=C(5430),Z=C(3821),z=C(8515),O=C(8955),T=C(7830);const R=q=>{if(q&&"function"==typeof q[Z.L])return(q=>se=>{const ne=q[Z.L]();if("function"!=typeof ne.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return ne.subscribe(se)})(q);if((0,z.z)(q))return(0,c.V)(q);if((0,O.t)(q))return(q=>se=>(q.then(ne=>{se.closed||(se.next(ne),se.complete())},ne=>se.error(ne)).then(null,u.z),se))(q);if(q&&"function"==typeof q[J.hZ])return(q=>se=>{const ne=q[J.hZ]();for(;;){const ce=ne.next();if(ce.done){se.complete();break}if(se.next(ce.value),se.closed)break}return"function"==typeof ne.return&&se.add(()=>{ne.return&&ne.return()}),se})(q);{const ne=`You provided ${(0,T.K)(q)?"an invalid object":`'${q}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(ne)}}},3650:(Re,oe,C)=>{C.d(oe,{V:()=>c});const c=u=>H=>{for(let J=0,W=u.length;J<W&&!H.closed;J++)H.next(u[J]);H.complete()}},9054:(Re,oe,C)=>{C.d(oe,{D:()=>J});var c=C(1869),u=C(9249),H=C(2916);function J(W,Z,j,z,O=new c.d(W,j,z)){if(!O.closed)return Z instanceof H.y?Z.subscribe(O):(0,u.s)(Z)(O)}},655:(Re,oe,C)=>{function z(le,pe,ge,fe){return new(ge||(ge=Promise))(function(ue,$e){function mt(Rt){try{We(fe.next(Rt))}catch(Xt){$e(Xt)}}function wt(Rt){try{We(fe.throw(Rt))}catch(Xt){$e(Xt)}}function We(Rt){Rt.done?ue(Rt.value):function De(ue){return ue instanceof ge?ue:new ge(function($e){$e(ue)})}(Rt.value).then(mt,wt)}We((fe=fe.apply(le,pe||[])).next())})}C.d(oe,{mG:()=>z})},9808:(Re,oe,C)=>{C.d(oe,{Do:()=>gt,EM:()=>Ss,HT:()=>W,JF:()=>fo,JJ:()=>ws,K0:()=>j,Mx:()=>an,NF:()=>Nn,O5:()=>Xe,PC:()=>Qi,S$:()=>Se,V_:()=>T,Ye:()=>rt,b0:()=>xe,bD:()=>Tr,ez:()=>yi,lw:()=>z,mk:()=>tr,mr:()=>Ie,q:()=>H,qS:()=>Ot,sg:()=>At,uU:()=>_s,w_:()=>Z});var c=C(2096);let u=null;function H(){return u}function W(f){u||(u=f)}class Z{}const j=new c.OlP("DocumentToken");let z=(()=>{class f{historyGo(g){throw new Error("Not implemented")}}return f.\u0275fac=function(g){return new(g||f)},f.\u0275prov=c.Yz7({token:f,factory:function(){return function O(){return(0,c.LFG)(R)}()},providedIn:"platform"}),f})();const T=new c.OlP("Location Initialized");let R=(()=>{class f extends z{constructor(g){super(),this._doc=g,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return H().getBaseHref(this._doc)}onPopState(g){const S=H().getGlobalEventTarget(this._doc,"window");return S.addEventListener("popstate",g,!1),()=>S.removeEventListener("popstate",g)}onHashChange(g){const S=H().getGlobalEventTarget(this._doc,"window");return S.addEventListener("hashchange",g,!1),()=>S.removeEventListener("hashchange",g)}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(g){this.location.pathname=g}pushState(g,S,B){q()?this._history.pushState(g,S,B):this.location.hash=B}replaceState(g,S,B){q()?this._history.replaceState(g,S,B):this.location.hash=B}forward(){this._history.forward()}back(){this._history.back()}historyGo(g=0){this._history.go(g)}getState(){return this._history.state}}return f.\u0275fac=function(g){return new(g||f)(c.LFG(j))},f.\u0275prov=c.Yz7({token:f,factory:function(){return function se(){return new R((0,c.LFG)(j))}()},providedIn:"platform"}),f})();function q(){return!!window.history.pushState}function ne(f,E){if(0==f.length)return E;if(0==E.length)return f;let g=0;return f.endsWith("/")&&g++,E.startsWith("/")&&g++,2==g?f+E.substring(1):1==g?f+E:f+"/"+E}function ce(f){const E=f.match(/#|\?|$/),g=E&&E.index||f.length;return f.slice(0,g-("/"===f[g-1]?1:0))+f.slice(g)}function X(f){return f&&"?"!==f[0]?"?"+f:f}let Se=(()=>{class f{historyGo(g){throw new Error("Not implemented")}}return f.\u0275fac=function(g){return new(g||f)},f.\u0275prov=c.Yz7({token:f,factory:function(){return function Te(f){const E=(0,c.LFG)(j).location;return new xe((0,c.LFG)(z),E&&E.origin||"")}()},providedIn:"root"}),f})();const Ie=new c.OlP("appBaseHref");let xe=(()=>{class f extends Se{constructor(g,S){if(super(),this._platformLocation=g,this._removeListenerFns=[],null==S&&(S=this._platformLocation.getBaseHrefFromDOM()),null==S)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=S}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(g){this._removeListenerFns.push(this._platformLocation.onPopState(g),this._platformLocation.onHashChange(g))}getBaseHref(){return this._baseHref}prepareExternalUrl(g){return ne(this._baseHref,g)}path(g=!1){const S=this._platformLocation.pathname+X(this._platformLocation.search),B=this._platformLocation.hash;return B&&g?`${S}${B}`:S}pushState(g,S,B,ae){const Ee=this.prepareExternalUrl(B+X(ae));this._platformLocation.pushState(g,S,Ee)}replaceState(g,S,B,ae){const Ee=this.prepareExternalUrl(B+X(ae));this._platformLocation.replaceState(g,S,Ee)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(g=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,g)}}return f.\u0275fac=function(g){return new(g||f)(c.LFG(z),c.LFG(Ie,8))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),gt=(()=>{class f extends Se{constructor(g,S){super(),this._platformLocation=g,this._baseHref="",this._removeListenerFns=[],null!=S&&(this._baseHref=S)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(g){this._removeListenerFns.push(this._platformLocation.onPopState(g),this._platformLocation.onHashChange(g))}getBaseHref(){return this._baseHref}path(g=!1){let S=this._platformLocation.hash;return null==S&&(S="#"),S.length>0?S.substring(1):S}prepareExternalUrl(g){const S=ne(this._baseHref,g);return S.length>0?"#"+S:S}pushState(g,S,B,ae){let Ee=this.prepareExternalUrl(B+X(ae));0==Ee.length&&(Ee=this._platformLocation.pathname),this._platformLocation.pushState(g,S,Ee)}replaceState(g,S,B,ae){let Ee=this.prepareExternalUrl(B+X(ae));0==Ee.length&&(Ee=this._platformLocation.pathname),this._platformLocation.replaceState(g,S,Ee)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(g=0){var S,B;null===(B=(S=this._platformLocation).historyGo)||void 0===B||B.call(S,g)}}return f.\u0275fac=function(g){return new(g||f)(c.LFG(z),c.LFG(Ie,8))},f.\u0275prov=c.Yz7({token:f,factory:f.\u0275fac}),f})(),rt=(()=>{class f{constructor(g,S){this._subject=new c.vpe,this._urlChangeListeners=[],this._platformStrategy=g;const B=this._platformStrategy.getBaseHref();this._platformLocation=S,this._baseHref=ce(Fe(B)),this._platformStrategy.onPopState(ae=>{this._subject.emit({url:this.path(!0),pop:!0,state:ae.state,type:ae.type})})}path(g=!1){return this.normalize(this._platformStrategy.path(g))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(g,S=""){return this.path()==this.normalize(g+X(S))}normalize(g){return f.stripTrailingSlash(function Ze(f,E){return f&&E.startsWith(f)?E.substring(f.length):E}(this._baseHref,Fe(g)))}prepareExternalUrl(g){return g&&"/"!==g[0]&&(g="/"+g),this._platformStrategy.prepareExternalUrl(g)}go(g,S="",B=null){this._platformStrategy.pushState(B,"",g,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(g+X(S)),B)}replaceState(g,S="",B=null){this._platformStrategy.replaceState(B,"",g,S),this._notifyUrlChangeListeners(this.prepareExternalUrl(g+X(S)),B)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(g=0){var S,B;null===(B=(S=this._platformStrategy).historyGo)||void 0===B||B.call(S,g)}onUrlChange(g){this._urlChangeListeners.push(g),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(S=>{this._notifyUrlChangeListeners(S.url,S.state)}))}_notifyUrlChangeListeners(g="",S){this._urlChangeListeners.forEach(B=>B(g,S))}subscribe(g,S,B){return this._subject.subscribe({next:g,error:S,complete:B})}}return f.normalizeQueryParams=X,f.joinWithSlash=ne,f.stripTrailingSlash=ce,f.\u0275fac=function(g){return new(g||f)(c.LFG(Se),c.LFG(z))},f.\u0275prov=c.Yz7({token:f,factory:function(){return function Le(){return new rt((0,c.LFG)(Se),(0,c.LFG)(z))}()},providedIn:"root"}),f})();function Fe(f){return f.replace(/\/index.html$/,"")}var le=(()=>((le=le||{})[le.Decimal=0]="Decimal",le[le.Percent=1]="Percent",le[le.Currency=2]="Currency",le[le.Scientific=3]="Scientific",le))(),ge=(()=>((ge=ge||{})[ge.Format=0]="Format",ge[ge.Standalone=1]="Standalone",ge))(),fe=(()=>((fe=fe||{})[fe.Narrow=0]="Narrow",fe[fe.Abbreviated=1]="Abbreviated",fe[fe.Wide=2]="Wide",fe[fe.Short=3]="Short",fe))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),ue=(()=>((ue=ue||{})[ue.Decimal=0]="Decimal",ue[ue.Group=1]="Group",ue[ue.List=2]="List",ue[ue.PercentSign=3]="PercentSign",ue[ue.PlusSign=4]="PlusSign",ue[ue.MinusSign=5]="MinusSign",ue[ue.Exponential=6]="Exponential",ue[ue.SuperscriptingExponent=7]="SuperscriptingExponent",ue[ue.PerMille=8]="PerMille",ue[ue.Infinity=9]="Infinity",ue[ue.NaN=10]="NaN",ue[ue.TimeSeparator=11]="TimeSeparator",ue[ue.CurrencyDecimal=12]="CurrencyDecimal",ue[ue.CurrencyGroup=13]="CurrencyGroup",ue))();function Bt(f,E){return jt((0,c.cg1)(f)[c.wAp.DateFormat],E)}function xt(f,E){return jt((0,c.cg1)(f)[c.wAp.TimeFormat],E)}function yn(f,E){return jt((0,c.cg1)(f)[c.wAp.DateTimeFormat],E)}function ht(f,E){const g=(0,c.cg1)(f),S=g[c.wAp.NumberSymbols][E];if(void 0===S){if(E===ue.CurrencyDecimal)return g[c.wAp.NumberSymbols][ue.Decimal];if(E===ue.CurrencyGroup)return g[c.wAp.NumberSymbols][ue.Group]}return S}function Ct(f){if(!f[c.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${f[c.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function jt(f,E){for(let g=E;g>-1;g--)if(void 0!==f[g])return f[g];throw new Error("Locale data API: locale data undefined")}function un(f){const[E,g]=f.split(":");return{hours:+E,minutes:+g}}const Y=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,V={},U=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var P=(()=>((P=P||{})[P.Short=0]="Short",P[P.ShortGMT=1]="ShortGMT",P[P.Long=2]="Long",P[P.Extended=3]="Extended",P))(),w=(()=>((w=w||{})[w.FullYear=0]="FullYear",w[w.Month=1]="Month",w[w.Date=2]="Date",w[w.Hours=3]="Hours",w[w.Minutes=4]="Minutes",w[w.Seconds=5]="Seconds",w[w.FractionalSeconds=6]="FractionalSeconds",w[w.Day=7]="Day",w))(),k=(()=>((k=k||{})[k.DayPeriods=0]="DayPeriods",k[k.Days=1]="Days",k[k.Months=2]="Months",k[k.Eras=3]="Eras",k))();function de(f,E,g,S){let B=function K(f){if(Q(f))return f;if("number"==typeof f&&!isNaN(f))return new Date(f);if("string"==typeof f){if(f=f.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(f)){const[B,ae=1,Ee=1]=f.split("-").map(Be=>+Be);return ve(B,ae-1,Ee)}const g=parseFloat(f);if(!isNaN(f-g))return new Date(g);let S;if(S=f.match(Y))return function x(f){const E=new Date(0);let g=0,S=0;const B=f[8]?E.setUTCFullYear:E.setFullYear,ae=f[8]?E.setUTCHours:E.setHours;f[9]&&(g=Number(f[9]+f[10]),S=Number(f[9]+f[11])),B.call(E,Number(f[1]),Number(f[2])-1,Number(f[3]));const Ee=Number(f[4]||0)-g,Be=Number(f[5]||0)-S,ct=Number(f[6]||0),vt=Math.floor(1e3*parseFloat("0."+(f[7]||0)));return ae.call(E,Ee,Be,ct,vt),E}(S)}const E=new Date(f);if(!Q(E))throw new Error(`Unable to convert "${f}" into a date`);return E}(f);E=be(g,E)||E;let Be,Ee=[];for(;E;){if(Be=U.exec(E),!Be){Ee.push(E);break}{Ee=Ee.concat(Be.slice(1));const It=Ee.pop();if(!It)break;E=It}}let ct=B.getTimezoneOffset();S&&(ct=cn(S,ct),B=function re(f,E,g){const S=g?-1:1,B=f.getTimezoneOffset();return function ar(f,E){return(f=new Date(f.getTime())).setMinutes(f.getMinutes()+E),f}(f,S*(cn(E,B)-B))}(B,S,!0));let vt="";return Ee.forEach(It=>{const yt=function Gr(f){if(wn[f])return wn[f];let E;switch(f){case"G":case"GG":case"GGG":E=Ae(k.Eras,fe.Abbreviated);break;case"GGGG":E=Ae(k.Eras,fe.Wide);break;case"GGGGG":E=Ae(k.Eras,fe.Narrow);break;case"y":E=Ve(w.FullYear,1,0,!1,!0);break;case"yy":E=Ve(w.FullYear,2,0,!0,!0);break;case"yyy":E=Ve(w.FullYear,3,0,!1,!0);break;case"yyyy":E=Ve(w.FullYear,4,0,!1,!0);break;case"Y":E=jn(1);break;case"YY":E=jn(2,!0);break;case"YYY":E=jn(3);break;case"YYYY":E=jn(4);break;case"M":case"L":E=Ve(w.Month,1,1);break;case"MM":case"LL":E=Ve(w.Month,2,1);break;case"MMM":E=Ae(k.Months,fe.Abbreviated);break;case"MMMM":E=Ae(k.Months,fe.Wide);break;case"MMMMM":E=Ae(k.Months,fe.Narrow);break;case"LLL":E=Ae(k.Months,fe.Abbreviated,ge.Standalone);break;case"LLLL":E=Ae(k.Months,fe.Wide,ge.Standalone);break;case"LLLLL":E=Ae(k.Months,fe.Narrow,ge.Standalone);break;case"w":E=Je(1);break;case"ww":E=Je(2);break;case"W":E=Je(1,!0);break;case"d":E=Ve(w.Date,1);break;case"dd":E=Ve(w.Date,2);break;case"c":case"cc":E=Ve(w.Day,1);break;case"ccc":E=Ae(k.Days,fe.Abbreviated,ge.Standalone);break;case"cccc":E=Ae(k.Days,fe.Wide,ge.Standalone);break;case"ccccc":E=Ae(k.Days,fe.Narrow,ge.Standalone);break;case"cccccc":E=Ae(k.Days,fe.Short,ge.Standalone);break;case"E":case"EE":case"EEE":E=Ae(k.Days,fe.Abbreviated);break;case"EEEE":E=Ae(k.Days,fe.Wide);break;case"EEEEE":E=Ae(k.Days,fe.Narrow);break;case"EEEEEE":E=Ae(k.Days,fe.Short);break;case"a":case"aa":case"aaa":E=Ae(k.DayPeriods,fe.Abbreviated);break;case"aaaa":E=Ae(k.DayPeriods,fe.Wide);break;case"aaaaa":E=Ae(k.DayPeriods,fe.Narrow);break;case"b":case"bb":case"bbb":E=Ae(k.DayPeriods,fe.Abbreviated,ge.Standalone,!0);break;case"bbbb":E=Ae(k.DayPeriods,fe.Wide,ge.Standalone,!0);break;case"bbbbb":E=Ae(k.DayPeriods,fe.Narrow,ge.Standalone,!0);break;case"B":case"BB":case"BBB":E=Ae(k.DayPeriods,fe.Abbreviated,ge.Format,!0);break;case"BBBB":E=Ae(k.DayPeriods,fe.Wide,ge.Format,!0);break;case"BBBBB":E=Ae(k.DayPeriods,fe.Narrow,ge.Format,!0);break;case"h":E=Ve(w.Hours,1,-12);break;case"hh":E=Ve(w.Hours,2,-12);break;case"H":E=Ve(w.Hours,1);break;case"HH":E=Ve(w.Hours,2);break;case"m":E=Ve(w.Minutes,1);break;case"mm":E=Ve(w.Minutes,2);break;case"s":E=Ve(w.Seconds,1);break;case"ss":E=Ve(w.Seconds,2);break;case"S":E=Ve(w.FractionalSeconds,1);break;case"SS":E=Ve(w.FractionalSeconds,2);break;case"SSS":E=Ve(w.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":E=te(P.Short);break;case"ZZZZZ":E=te(P.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":E=te(P.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":E=te(P.Long);break;default:return null}return wn[f]=E,E}(It);vt+=yt?yt(B,g,ct):"''"===It?"'":It.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),vt}function ve(f,E,g){const S=new Date(0);return S.setFullYear(f,E,g),S.setHours(0,0,0),S}function be(f,E){const g=function mt(f){return(0,c.cg1)(f)[c.wAp.LocaleId]}(f);if(V[g]=V[g]||{},V[g][E])return V[g][E];let S="";switch(E){case"shortDate":S=Bt(f,De.Short);break;case"mediumDate":S=Bt(f,De.Medium);break;case"longDate":S=Bt(f,De.Long);break;case"fullDate":S=Bt(f,De.Full);break;case"shortTime":S=xt(f,De.Short);break;case"mediumTime":S=xt(f,De.Medium);break;case"longTime":S=xt(f,De.Long);break;case"fullTime":S=xt(f,De.Full);break;case"short":const B=be(f,"shortTime"),ae=be(f,"shortDate");S=tt(yn(f,De.Short),[B,ae]);break;case"medium":const Ee=be(f,"mediumTime"),Be=be(f,"mediumDate");S=tt(yn(f,De.Medium),[Ee,Be]);break;case"long":const ct=be(f,"longTime"),vt=be(f,"longDate");S=tt(yn(f,De.Long),[ct,vt]);break;case"full":const It=be(f,"fullTime"),yt=be(f,"fullDate");S=tt(yn(f,De.Full),[It,yt])}return S&&(V[g][E]=S),S}function tt(f,E){return E&&(f=f.replace(/\{([^}]+)}/g,function(g,S){return null!=E&&S in E?E[S]:g})),f}function ut(f,E,g="-",S,B){let ae="";(f<0||B&&f<=0)&&(B?f=1-f:(f=-f,ae=g));let Ee=String(f);for(;Ee.length<E;)Ee="0"+Ee;return S&&(Ee=Ee.substr(Ee.length-E)),ae+Ee}function Ve(f,E,g=0,S=!1,B=!1){return function(ae,Ee){let Be=function L(f,E){switch(f){case w.FullYear:return E.getFullYear();case w.Month:return E.getMonth();case w.Date:return E.getDate();case w.Hours:return E.getHours();case w.Minutes:return E.getMinutes();case w.Seconds:return E.getSeconds();case w.FractionalSeconds:return E.getMilliseconds();case w.Day:return E.getDay();default:throw new Error(`Unknown DateType value "${f}".`)}}(f,ae);if((g>0||Be>-g)&&(Be+=g),f===w.Hours)0===Be&&-12===g&&(Be=12);else if(f===w.FractionalSeconds)return function at(f,E){return ut(f,3).substr(0,E)}(Be,E);const ct=ht(Ee,ue.MinusSign);return ut(Be,E,ct,S,B)}}function Ae(f,E,g=ge.Format,S=!1){return function(B,ae){return function ie(f,E,g,S,B,ae){switch(g){case k.Months:return function Rt(f,E,g){const S=(0,c.cg1)(f),ae=jt([S[c.wAp.MonthsFormat],S[c.wAp.MonthsStandalone]],E);return jt(ae,g)}(E,B,S)[f.getMonth()];case k.Days:return function We(f,E,g){const S=(0,c.cg1)(f),ae=jt([S[c.wAp.DaysFormat],S[c.wAp.DaysStandalone]],E);return jt(ae,g)}(E,B,S)[f.getDay()];case k.DayPeriods:const Ee=f.getHours(),Be=f.getMinutes();if(ae){const vt=function Wt(f){const E=(0,c.cg1)(f);return Ct(E),(E[c.wAp.ExtraData][2]||[]).map(S=>"string"==typeof S?un(S):[un(S[0]),un(S[1])])}(E),It=function Cn(f,E,g){const S=(0,c.cg1)(f);Ct(S);const ae=jt([S[c.wAp.ExtraData][0],S[c.wAp.ExtraData][1]],E)||[];return jt(ae,g)||[]}(E,B,S),yt=vt.findIndex(Vt=>{if(Array.isArray(Vt)){const[Pt,mn]=Vt,qt=Ee>=Pt.hours&&Be>=Pt.minutes,pr=Ee<mn.hours||Ee===mn.hours&&Be<mn.minutes;if(Pt.hours<mn.hours){if(qt&&pr)return!0}else if(qt||pr)return!0}else if(Vt.hours===Ee&&Vt.minutes===Be)return!0;return!1});if(-1!==yt)return It[yt]}return function wt(f,E,g){const S=(0,c.cg1)(f),ae=jt([S[c.wAp.DayPeriodsFormat],S[c.wAp.DayPeriodsStandalone]],E);return jt(ae,g)}(E,B,S)[Ee<12?0:1];case k.Eras:return function Xt(f,E){return jt((0,c.cg1)(f)[c.wAp.Eras],E)}(E,S)[f.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${g}`)}}(B,ae,f,E,g,S)}}function te(f){return function(E,g,S){const B=-1*S,ae=ht(g,ue.MinusSign),Ee=B>0?Math.floor(B/60):Math.ceil(B/60);switch(f){case P.Short:return(B>=0?"+":"")+ut(Ee,2,ae)+ut(Math.abs(B%60),2,ae);case P.ShortGMT:return"GMT"+(B>=0?"+":"")+ut(Ee,1,ae);case P.Long:return"GMT"+(B>=0?"+":"")+ut(Ee,2,ae)+":"+ut(Math.abs(B%60),2,ae);case P.Extended:return 0===S?"Z":(B>=0?"+":"")+ut(Ee,2,ae)+":"+ut(Math.abs(B%60),2,ae);default:throw new Error(`Unknown zone width "${f}"`)}}}function pt(f){return ve(f.getFullYear(),f.getMonth(),f.getDate()+(4-f.getDay()))}function Je(f,E=!1){return function(g,S){let B;if(E){const ae=new Date(g.getFullYear(),g.getMonth(),1).getDay()-1,Ee=g.getDate();B=1+Math.floor((Ee+ae)/7)}else{const ae=pt(g),Ee=function Jt(f){const E=ve(f,0,1).getDay();return ve(f,0,1+(E<=4?4:11)-E)}(ae.getFullYear()),Be=ae.getTime()-Ee.getTime();B=1+Math.round(Be/6048e5)}return ut(B,f,ht(S,ue.MinusSign))}}function jn(f,E=!1){return function(g,S){return ut(pt(g).getFullYear(),f,ht(S,ue.MinusSign),E)}}const wn={};function cn(f,E){f=f.replace(/:/g,"");const g=Date.parse("Jan 01, 1970 00:00:00 "+f)/6e4;return isNaN(g)?E:g}function Q(f){return f instanceof Date&&!isNaN(f.valueOf())}const Ce=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function er(f){const E=parseInt(f);if(isNaN(E))throw new Error("Invalid integer literal when parsing "+f);return E}function Ot(f,E,g){return(0,c.dwT)(f,E,g)}function an(f,E){E=encodeURIComponent(E);for(const g of f.split(";")){const S=g.indexOf("="),[B,ae]=-1==S?[g,""]:[g.slice(0,S),g.slice(S+1)];if(B.trim()===E)return decodeURIComponent(ae)}return null}let tr=(()=>{class f{constructor(g,S,B,ae){this._iterableDiffers=g,this._keyValueDiffers=S,this._ngEl=B,this._renderer=ae,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(g){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof g?g.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(g){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof g?g.split(/\s+/):g,this._rawClass&&((0,c.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const g=this._iterableDiffer.diff(this._rawClass);g&&this._applyIterableChanges(g)}else if(this._keyValueDiffer){const g=this._keyValueDiffer.diff(this._rawClass);g&&this._applyKeyValueChanges(g)}}_applyKeyValueChanges(g){g.forEachAddedItem(S=>this._toggleClass(S.key,S.currentValue)),g.forEachChangedItem(S=>this._toggleClass(S.key,S.currentValue)),g.forEachRemovedItem(S=>{S.previousValue&&this._toggleClass(S.key,!1)})}_applyIterableChanges(g){g.forEachAddedItem(S=>{if("string"!=typeof S.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,c.AaK)(S.item)}`);this._toggleClass(S.item,!0)}),g.forEachRemovedItem(S=>this._toggleClass(S.item,!1))}_applyClasses(g){g&&(Array.isArray(g)||g instanceof Set?g.forEach(S=>this._toggleClass(S,!0)):Object.keys(g).forEach(S=>this._toggleClass(S,!!g[S])))}_removeClasses(g){g&&(Array.isArray(g)||g instanceof Set?g.forEach(S=>this._toggleClass(S,!1)):Object.keys(g).forEach(S=>this._toggleClass(S,!1)))}_toggleClass(g,S){(g=g.trim())&&g.split(/\s+/g).forEach(B=>{S?this._renderer.addClass(this._ngEl.nativeElement,B):this._renderer.removeClass(this._ngEl.nativeElement,B)})}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.ZZ4),c.Y36(c.aQg),c.Y36(c.SBq),c.Y36(c.Qsj))},f.\u0275dir=c.lG2({type:f,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),f})();class fn{constructor(E,g,S,B){this.$implicit=E,this.ngForOf=g,this.index=S,this.count=B}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 At=(()=>{class f{constructor(g,S,B){this._viewContainer=g,this._template=S,this._differs=B,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(g){this._ngForOf=g,this._ngForOfDirty=!0}set ngForTrackBy(g){this._trackByFn=g}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(g){g&&(this._template=g)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const g=this._ngForOf;!this._differ&&g&&(this._differ=this._differs.find(g).create(this.ngForTrackBy))}if(this._differ){const g=this._differ.diff(this._ngForOf);g&&this._applyChanges(g)}}_applyChanges(g){const S=this._viewContainer;g.forEachOperation((B,ae,Ee)=>{if(null==B.previousIndex)S.createEmbeddedView(this._template,new fn(B.item,this._ngForOf,-1,-1),null===Ee?void 0:Ee);else if(null==Ee)S.remove(null===ae?void 0:ae);else if(null!==ae){const Be=S.get(ae);S.move(Be,Ee),Un(Be,B)}});for(let B=0,ae=S.length;B<ae;B++){const Be=S.get(B).context;Be.index=B,Be.count=ae,Be.ngForOf=this._ngForOf}g.forEachIdentityChange(B=>{Un(S.get(B.currentIndex),B)})}static ngTemplateContextGuard(g,S){return!0}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.s_b),c.Y36(c.Rgc),c.Y36(c.ZZ4))},f.\u0275dir=c.lG2({type:f,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),f})();function Un(f,E){f.context.$implicit=E.item}let Xe=(()=>{class f{constructor(g,S){this._viewContainer=g,this._context=new Cr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=S}set ngIf(g){this._context.$implicit=this._context.ngIf=g,this._updateView()}set ngIfThen(g){lr("ngIfThen",g),this._thenTemplateRef=g,this._thenViewRef=null,this._updateView()}set ngIfElse(g){lr("ngIfElse",g),this._elseTemplateRef=g,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(g,S){return!0}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.s_b),c.Y36(c.Rgc))},f.\u0275dir=c.lG2({type:f,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),f})();class Cr{constructor(){this.$implicit=null,this.ngIf=null}}function lr(f,E){if(E&&!E.createEmbeddedView)throw new Error(`${f} must be a TemplateRef, but received '${(0,c.AaK)(E)}'.`)}const Tr="browser";function Nn(f){return f===Tr}let Qi=(()=>{class f{constructor(g,S,B){this._ngEl=g,this._differs=S,this._renderer=B,this._ngStyle=null,this._differ=null}set ngStyle(g){this._ngStyle=g,!this._differ&&g&&(this._differ=this._differs.find(g).create())}ngDoCheck(){if(this._differ){const g=this._differ.diff(this._ngStyle);g&&this._applyChanges(g)}}_setStyle(g,S){const[B,ae]=g.split(".");null!=(S=null!=S&&ae?`${S}${ae}`:S)?this._renderer.setStyle(this._ngEl.nativeElement,B,S):this._renderer.removeStyle(this._ngEl.nativeElement,B)}_applyChanges(g){g.forEachRemovedItem(S=>this._setStyle(S.key,null)),g.forEachAddedItem(S=>this._setStyle(S.key,S.currentValue)),g.forEachChangedItem(S=>this._setStyle(S.key,S.currentValue))}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.SBq),c.Y36(c.aQg),c.Y36(c.Qsj))},f.\u0275dir=c.lG2({type:f,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),f})();function Fn(f,E){return new c.vHH(2100,"")}const Vn=new c.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let _s=(()=>{class f{constructor(g,S){this.locale=g,this.defaultTimezone=S}transform(g,S="mediumDate",B,ae){var Ee;if(null==g||""===g||g!=g)return null;try{return de(g,S,ae||this.locale,null!==(Ee=null!=B?B:this.defaultTimezone)&&void 0!==Ee?Ee:void 0)}catch(Be){throw Fn()}}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.soG,16),c.Y36(Vn,24))},f.\u0275pipe=c.Yjl({name:"date",type:f,pure:!0}),f})(),ws=(()=>{class f{constructor(g){this._locale=g}transform(g,S,B){if(!function Li(f){return!(null==f||""===f||f!=f)}(g))return null;B=B||this._locale;try{return function Ir(f,E,g){return function On(f,E,g,S,B,ae,Ee=!1){let Be="",ct=!1;if(isFinite(f)){let vt=function dn(f){let S,B,ae,Ee,Be,E=Math.abs(f)+"",g=0;for((B=E.indexOf("."))>-1&&(E=E.replace(".","")),(ae=E.search(/e/i))>0?(B<0&&(B=ae),B+=+E.slice(ae+1),E=E.substring(0,ae)):B<0&&(B=E.length),ae=0;"0"===E.charAt(ae);ae++);if(ae===(Be=E.length))S=[0],B=1;else{for(Be--;"0"===E.charAt(Be);)Be--;for(B-=ae,S=[],Ee=0;ae<=Be;ae++,Ee++)S[Ee]=Number(E.charAt(ae))}return B>22&&(S=S.splice(0,21),g=B-1,B=1),{digits:S,exponent:g,integerLen:B}}(f);Ee&&(vt=function Xn(f){if(0===f.digits[0])return f;const E=f.digits.length-f.integerLen;return f.exponent?f.exponent+=2:(0===E?f.digits.push(0,0):1===E&&f.digits.push(0),f.integerLen+=2),f}(vt));let It=E.minInt,yt=E.minFrac,Vt=E.maxFrac;if(ae){const xn=ae.match(Ce);if(null===xn)throw new Error(`${ae} is not a valid digit info`);const Mr=xn[1],or=xn[3],Ci=xn[5];null!=Mr&&(It=er(Mr)),null!=or&&(yt=er(or)),null!=Ci?Vt=er(Ci):null!=or&&yt>Vt&&(Vt=yt)}!function Ke(f,E,g){if(E>g)throw new Error(`The minimum number of digits after fraction (${E}) is higher than the maximum (${g}).`);let S=f.digits,B=S.length-f.integerLen;const ae=Math.min(Math.max(E,B),g);let Ee=ae+f.integerLen,Be=S[Ee];if(Ee>0){S.splice(Math.max(f.integerLen,Ee));for(let yt=Ee;yt<S.length;yt++)S[yt]=0}else{B=Math.max(0,B),f.integerLen=1,S.length=Math.max(1,Ee=ae+1),S[0]=0;for(let yt=1;yt<Ee;yt++)S[yt]=0}if(Be>=5)if(Ee-1<0){for(let yt=0;yt>Ee;yt--)S.unshift(0),f.integerLen++;S.unshift(1),f.integerLen++}else S[Ee-1]++;for(;B<Math.max(0,ae);B++)S.push(0);let ct=0!==ae;const vt=E+f.integerLen,It=S.reduceRight(function(yt,Vt,Pt,mn){return mn[Pt]=(Vt+=yt)<10?Vt:Vt-10,ct&&(0===mn[Pt]&&Pt>=vt?mn.pop():ct=!1),Vt>=10?1:0},0);It&&(S.unshift(It),f.integerLen++)}(vt,yt,Vt);let Pt=vt.digits,mn=vt.integerLen;const qt=vt.exponent;let pr=[];for(ct=Pt.every(xn=>!xn);mn<It;mn++)Pt.unshift(0);for(;mn<0;mn++)Pt.unshift(0);mn>0?pr=Pt.splice(mn,Pt.length):(pr=Pt,Pt=[0]);const Fr=[];for(Pt.length>=E.lgSize&&Fr.unshift(Pt.splice(-E.lgSize,Pt.length).join(""));Pt.length>E.gSize;)Fr.unshift(Pt.splice(-E.gSize,Pt.length).join(""));Pt.length&&Fr.unshift(Pt.join("")),Be=Fr.join(ht(g,S)),pr.length&&(Be+=ht(g,B)+pr.join("")),qt&&(Be+=ht(g,ue.Exponential)+"+"+qt)}else Be=ht(g,ue.Infinity);return Be=f<0&&!ct?E.negPre+Be+E.negSuf:E.posPre+Be+E.posSuf,Be}(f,function Pn(f,E="-"){const g={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},S=f.split(";"),B=S[0],ae=S[1],Ee=-1!==B.indexOf(".")?B.split("."):[B.substring(0,B.lastIndexOf("0")+1),B.substring(B.lastIndexOf("0")+1)],Be=Ee[0],ct=Ee[1]||"";g.posPre=Be.substr(0,Be.indexOf("#"));for(let It=0;It<ct.length;It++){const yt=ct.charAt(It);"0"===yt?g.minFrac=g.maxFrac=It+1:"#"===yt?g.maxFrac=It+1:g.posSuf+=yt}const vt=Be.split(",");if(g.gSize=vt[1]?vt[1].length:0,g.lgSize=vt[2]||vt[1]?(vt[2]||vt[1]).length:0,ae){const It=B.length-g.posPre.length-g.posSuf.length,yt=ae.indexOf("#");g.negPre=ae.substr(0,yt).replace(/'/g,""),g.negSuf=ae.substr(yt+It).replace(/'/g,"")}else g.negPre=E+g.posPre,g.negSuf=g.posSuf;return g}(function qe(f,E){return(0,c.cg1)(f)[c.wAp.NumberFormats][E]}(E,le.Decimal),ht(E,ue.MinusSign)),E,ue.Group,ue.Decimal,g)}(function Fi(f){if("string"==typeof f&&!isNaN(Number(f)-parseFloat(f)))return Number(f);if("number"!=typeof f)throw new Error(`${f} is not a number`);return f}(g),B,S)}catch(ae){throw Fn()}}}return f.\u0275fac=function(g){return new(g||f)(c.Y36(c.soG,16))},f.\u0275pipe=c.Yjl({name:"number",type:f,pure:!0}),f})();let yi=(()=>{class f{}return f.\u0275fac=function(g){return new(g||f)},f.\u0275mod=c.oAB({type:f}),f.\u0275inj=c.cJS({}),f})(),Ss=(()=>{class f{}return f.\u0275prov=(0,c.Yz7)({token:f,providedIn:"root",factory:()=>new En((0,c.LFG)(j),window)}),f})();class En{constructor(E,g){this.document=E,this.window=g,this.offset=()=>[0,0]}setOffset(E){this.offset=Array.isArray(E)?()=>E:E}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(E){this.supportsScrolling()&&this.window.scrollTo(E[0],E[1])}scrollToAnchor(E){if(!this.supportsScrolling())return;const g=function kt(f,E){const g=f.getElementById(E)||f.getElementsByName(E)[0];if(g)return g;if("function"==typeof f.createTreeWalker&&f.body&&(f.body.createShadowRoot||f.body.attachShadow)){const S=f.createTreeWalker(f.body,NodeFilter.SHOW_ELEMENT);let B=S.currentNode;for(;B;){const ae=B.shadowRoot;if(ae){const Ee=ae.getElementById(E)||ae.querySelector(`[name="${E}"]`);if(Ee)return Ee}B=S.nextNode()}}return null}(this.document,E);g&&(this.scrollToElement(g),g.focus())}setHistoryScrollRestoration(E){if(this.supportScrollRestoration()){const g=this.window.history;g&&g.scrollRestoration&&(g.scrollRestoration=E)}}scrollToElement(E){const g=E.getBoundingClientRect(),S=g.left+this.window.pageXOffset,B=g.top+this.window.pageYOffset,ae=this.offset();this.window.scrollTo(S-ae[0],B-ae[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const E=sr(this.window.history)||sr(Object.getPrototypeOf(this.window.history));return!(!E||!E.writable&&!E.set)}catch(E){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(E){return!1}}}function sr(f){return Object.getOwnPropertyDescriptor(f,"scrollRestoration")}class fo{}},520:(Re,oe,C)=>{C.d(oe,{JF:()=>un,LE:()=>Se,WM:()=>T,eN:()=>ue,mL:()=>R});var c=C(9808),u=C(2096),H=C(1086),J=C(2916),W=C(1406),Z=C(2198),j=C(4850);class z{}class O{}class T{constructor(Y){this.normalizedNames=new Map,this.lazyUpdate=null,Y?this.lazyInit="string"==typeof Y?()=>{this.headers=new Map,Y.split("\n").forEach(V=>{const U=V.indexOf(":");if(U>0){const P=V.slice(0,U),w=P.toLowerCase(),k=V.slice(U+1).trim();this.maybeSetNormalizedName(P,w),this.headers.has(w)?this.headers.get(w).push(k):this.headers.set(w,[k])}})}:()=>{this.headers=new Map,Object.keys(Y).forEach(V=>{let U=Y[V];const P=V.toLowerCase();"string"==typeof U&&(U=[U]),U.length>0&&(this.headers.set(P,U),this.maybeSetNormalizedName(V,P))})}:this.headers=new Map}has(Y){return this.init(),this.headers.has(Y.toLowerCase())}get(Y){this.init();const V=this.headers.get(Y.toLowerCase());return V&&V.length>0?V[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(Y){return this.init(),this.headers.get(Y.toLowerCase())||null}append(Y,V){return this.clone({name:Y,value:V,op:"a"})}set(Y,V){return this.clone({name:Y,value:V,op:"s"})}delete(Y,V){return this.clone({name:Y,value:V,op:"d"})}maybeSetNormalizedName(Y,V){this.normalizedNames.has(V)||this.normalizedNames.set(V,Y)}init(){this.lazyInit&&(this.lazyInit instanceof T?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(Y=>this.applyUpdate(Y)),this.lazyUpdate=null))}copyFrom(Y){Y.init(),Array.from(Y.headers.keys()).forEach(V=>{this.headers.set(V,Y.headers.get(V)),this.normalizedNames.set(V,Y.normalizedNames.get(V))})}clone(Y){const V=new T;return V.lazyInit=this.lazyInit&&this.lazyInit instanceof T?this.lazyInit:this,V.lazyUpdate=(this.lazyUpdate||[]).concat([Y]),V}applyUpdate(Y){const V=Y.name.toLowerCase();switch(Y.op){case"a":case"s":let U=Y.value;if("string"==typeof U&&(U=[U]),0===U.length)return;this.maybeSetNormalizedName(Y.name,V);const P=("a"===Y.op?this.headers.get(V):void 0)||[];P.push(...U),this.headers.set(V,P);break;case"d":const w=Y.value;if(w){let k=this.headers.get(V);if(!k)return;k=k.filter(de=>-1===w.indexOf(de)),0===k.length?(this.headers.delete(V),this.normalizedNames.delete(V)):this.headers.set(V,k)}else this.headers.delete(V),this.normalizedNames.delete(V)}}forEach(Y){this.init(),Array.from(this.normalizedNames.keys()).forEach(V=>Y(this.normalizedNames.get(V),this.headers.get(V)))}}class R{encodeKey(Y){return ce(Y)}encodeValue(Y){return ce(Y)}decodeKey(Y){return decodeURIComponent(Y)}decodeValue(Y){return decodeURIComponent(Y)}}const se=/%(\d[a-f0-9])/gi,ne={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function ce(_e){return encodeURIComponent(_e).replace(se,(Y,V)=>{var U;return null!==(U=ne[V])&&void 0!==U?U:Y})}function X(_e){return`${_e}`}class Se{constructor(Y={}){if(this.updates=null,this.cloneFrom=null,this.encoder=Y.encoder||new R,Y.fromString){if(Y.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function q(_e,Y){const V=new Map;return _e.length>0&&_e.replace(/^\?/,"").split("&").forEach(P=>{const w=P.indexOf("="),[k,de]=-1==w?[Y.decodeKey(P),""]:[Y.decodeKey(P.slice(0,w)),Y.decodeValue(P.slice(w+1))],ve=V.get(k)||[];ve.push(de),V.set(k,ve)}),V}(Y.fromString,this.encoder)}else Y.fromObject?(this.map=new Map,Object.keys(Y.fromObject).forEach(V=>{const U=Y.fromObject[V];this.map.set(V,Array.isArray(U)?U:[U])})):this.map=null}has(Y){return this.init(),this.map.has(Y)}get(Y){this.init();const V=this.map.get(Y);return V?V[0]:null}getAll(Y){return this.init(),this.map.get(Y)||null}keys(){return this.init(),Array.from(this.map.keys())}append(Y,V){return this.clone({param:Y,value:V,op:"a"})}appendAll(Y){const V=[];return Object.keys(Y).forEach(U=>{const P=Y[U];Array.isArray(P)?P.forEach(w=>{V.push({param:U,value:w,op:"a"})}):V.push({param:U,value:P,op:"a"})}),this.clone(V)}set(Y,V){return this.clone({param:Y,value:V,op:"s"})}delete(Y,V){return this.clone({param:Y,value:V,op:"d"})}toString(){return this.init(),this.keys().map(Y=>{const V=this.encoder.encodeKey(Y);return this.map.get(Y).map(U=>V+"="+this.encoder.encodeValue(U)).join("&")}).filter(Y=>""!==Y).join("&")}clone(Y){const V=new Se({encoder:this.encoder});return V.cloneFrom=this.cloneFrom||this,V.updates=(this.updates||[]).concat(Y),V}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(Y=>this.map.set(Y,this.cloneFrom.map.get(Y))),this.updates.forEach(Y=>{switch(Y.op){case"a":case"s":const V=("a"===Y.op?this.map.get(Y.param):void 0)||[];V.push(X(Y.value)),this.map.set(Y.param,V);break;case"d":if(void 0===Y.value){this.map.delete(Y.param);break}{let U=this.map.get(Y.param)||[];const P=U.indexOf(X(Y.value));-1!==P&&U.splice(P,1),U.length>0?this.map.set(Y.param,U):this.map.delete(Y.param)}}}),this.cloneFrom=this.updates=null)}}class Ie{constructor(){this.map=new Map}set(Y,V){return this.map.set(Y,V),this}get(Y){return this.map.has(Y)||this.map.set(Y,Y.defaultValue()),this.map.get(Y)}delete(Y){return this.map.delete(Y),this}has(Y){return this.map.has(Y)}keys(){return this.map.keys()}}function gt(_e){return"undefined"!=typeof ArrayBuffer&&_e instanceof ArrayBuffer}function rt(_e){return"undefined"!=typeof Blob&&_e instanceof Blob}function Le(_e){return"undefined"!=typeof FormData&&_e instanceof FormData}class Fe{constructor(Y,V,U,P){let w;if(this.url=V,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=Y.toUpperCase(),function xe(_e){switch(_e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||P?(this.body=void 0!==U?U:null,w=P):w=U,w&&(this.reportProgress=!!w.reportProgress,this.withCredentials=!!w.withCredentials,w.responseType&&(this.responseType=w.responseType),w.headers&&(this.headers=w.headers),w.context&&(this.context=w.context),w.params&&(this.params=w.params)),this.headers||(this.headers=new T),this.context||(this.context=new Ie),this.params){const k=this.params.toString();if(0===k.length)this.urlWithParams=V;else{const de=V.indexOf("?");this.urlWithParams=V+(-1===de?"?":de<V.length-1?"&":"")+k}}else this.params=new Se,this.urlWithParams=V}serializeBody(){return null===this.body?null:gt(this.body)||rt(this.body)||Le(this.body)||function Ze(_e){return"undefined"!=typeof URLSearchParams&&_e instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof Se?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||Le(this.body)?null:rt(this.body)?this.body.type||null:gt(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof Se?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(Y={}){var V;const U=Y.method||this.method,P=Y.url||this.url,w=Y.responseType||this.responseType,k=void 0!==Y.body?Y.body:this.body,de=void 0!==Y.withCredentials?Y.withCredentials:this.withCredentials,ve=void 0!==Y.reportProgress?Y.reportProgress:this.reportProgress;let be=Y.headers||this.headers,tt=Y.params||this.params;const ut=null!==(V=Y.context)&&void 0!==V?V:this.context;return void 0!==Y.setHeaders&&(be=Object.keys(Y.setHeaders).reduce((at,Ve)=>at.set(Ve,Y.setHeaders[Ve]),be)),Y.setParams&&(tt=Object.keys(Y.setParams).reduce((at,Ve)=>at.set(Ve,Y.setParams[Ve]),tt)),new Fe(U,P,k,{params:tt,headers:be,context:ut,reportProgress:ve,responseType:w,withCredentials:de})}}var He=(()=>((He=He||{})[He.Sent=0]="Sent",He[He.UploadProgress=1]="UploadProgress",He[He.ResponseHeader=2]="ResponseHeader",He[He.DownloadProgress=3]="DownloadProgress",He[He.Response=4]="Response",He[He.User=5]="User",He))();class le{constructor(Y,V=200,U="OK"){this.headers=Y.headers||new T,this.status=void 0!==Y.status?Y.status:V,this.statusText=Y.statusText||U,this.url=Y.url||null,this.ok=this.status>=200&&this.status<300}}class pe extends le{constructor(Y={}){super(Y),this.type=He.ResponseHeader}clone(Y={}){return new pe({headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class ge extends le{constructor(Y={}){super(Y),this.type=He.Response,this.body=void 0!==Y.body?Y.body:null}clone(Y={}){return new ge({body:void 0!==Y.body?Y.body:this.body,headers:Y.headers||this.headers,status:void 0!==Y.status?Y.status:this.status,statusText:Y.statusText||this.statusText,url:Y.url||this.url||void 0})}}class fe extends le{constructor(Y){super(Y,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${Y.url||"(unknown url)"}`:`Http failure response for ${Y.url||"(unknown url)"}: ${Y.status} ${Y.statusText}`,this.error=Y.error||null}}function De(_e,Y){return{body:Y,headers:_e.headers,context:_e.context,observe:_e.observe,params:_e.params,reportProgress:_e.reportProgress,responseType:_e.responseType,withCredentials:_e.withCredentials}}let ue=(()=>{class _e{constructor(V){this.handler=V}request(V,U,P={}){let w;if(V instanceof Fe)w=V;else{let ve,be;ve=P.headers instanceof T?P.headers:new T(P.headers),P.params&&(be=P.params instanceof Se?P.params:new Se({fromObject:P.params})),w=new Fe(V,U,void 0!==P.body?P.body:null,{headers:ve,context:P.context,params:be,reportProgress:P.reportProgress,responseType:P.responseType||"json",withCredentials:P.withCredentials})}const k=(0,H.of)(w).pipe((0,W.b)(ve=>this.handler.handle(ve)));if(V instanceof Fe||"events"===P.observe)return k;const de=k.pipe((0,Z.h)(ve=>ve instanceof ge));switch(P.observe||"body"){case"body":switch(w.responseType){case"arraybuffer":return de.pipe((0,j.U)(ve=>{if(null!==ve.body&&!(ve.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return ve.body}));case"blob":return de.pipe((0,j.U)(ve=>{if(null!==ve.body&&!(ve.body instanceof Blob))throw new Error("Response is not a Blob.");return ve.body}));case"text":return de.pipe((0,j.U)(ve=>{if(null!==ve.body&&"string"!=typeof ve.body)throw new Error("Response is not a string.");return ve.body}));default:return de.pipe((0,j.U)(ve=>ve.body))}case"response":return de;default:throw new Error(`Unreachable: unhandled observe type ${P.observe}}`)}}delete(V,U={}){return this.request("DELETE",V,U)}get(V,U={}){return this.request("GET",V,U)}head(V,U={}){return this.request("HEAD",V,U)}jsonp(V,U){return this.request("JSONP",V,{params:(new Se).append(U,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(V,U={}){return this.request("OPTIONS",V,U)}patch(V,U,P={}){return this.request("PATCH",V,De(P,U))}post(V,U,P={}){return this.request("POST",V,De(P,U))}put(V,U,P={}){return this.request("PUT",V,De(P,U))}}return _e.\u0275fac=function(V){return new(V||_e)(u.LFG(z))},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})();class $e{constructor(Y,V){this.next=Y,this.interceptor=V}handle(Y){return this.interceptor.intercept(Y,this.next)}}const mt=new u.OlP("HTTP_INTERCEPTORS");let wt=(()=>{class _e{intercept(V,U){return U.handle(V)}}return _e.\u0275fac=function(V){return new(V||_e)},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const ht=/^\)\]\}',?\n/;let zn=(()=>{class _e{constructor(V){this.xhrFactory=V}handle(V){if("JSONP"===V.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new J.y(U=>{const P=this.xhrFactory.build();if(P.open(V.method,V.urlWithParams),V.withCredentials&&(P.withCredentials=!0),V.headers.forEach((Ve,L)=>P.setRequestHeader(Ve,L.join(","))),V.headers.has("Accept")||P.setRequestHeader("Accept","application/json, text/plain, */*"),!V.headers.has("Content-Type")){const Ve=V.detectContentTypeHeader();null!==Ve&&P.setRequestHeader("Content-Type",Ve)}if(V.responseType){const Ve=V.responseType.toLowerCase();P.responseType="json"!==Ve?Ve:"text"}const w=V.serializeBody();let k=null;const de=()=>{if(null!==k)return k;const Ve=P.statusText||"OK",L=new T(P.getAllResponseHeaders()),Ae=function qe(_e){return"responseURL"in _e&&_e.responseURL?_e.responseURL:/^X-Request-URL:/m.test(_e.getAllResponseHeaders())?_e.getResponseHeader("X-Request-URL"):null}(P)||V.url;return k=new pe({headers:L,status:P.status,statusText:Ve,url:Ae}),k},ve=()=>{let{headers:Ve,status:L,statusText:Ae,url:ie}=de(),te=null;204!==L&&(te=void 0===P.response?P.responseText:P.response),0===L&&(L=te?200:0);let et=L>=200&&L<300;if("json"===V.responseType&&"string"==typeof te){const Dt=te;te=te.replace(ht,"");try{te=""!==te?JSON.parse(te):null}catch(Jt){te=Dt,et&&(et=!1,te={error:Jt,text:te})}}et?(U.next(new ge({body:te,headers:Ve,status:L,statusText:Ae,url:ie||void 0})),U.complete()):U.error(new fe({error:te,headers:Ve,status:L,statusText:Ae,url:ie||void 0}))},be=Ve=>{const{url:L}=de(),Ae=new fe({error:Ve,status:P.status||0,statusText:P.statusText||"Unknown Error",url:L||void 0});U.error(Ae)};let tt=!1;const ut=Ve=>{tt||(U.next(de()),tt=!0);let L={type:He.DownloadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(L.total=Ve.total),"text"===V.responseType&&!!P.responseText&&(L.partialText=P.responseText),U.next(L)},at=Ve=>{let L={type:He.UploadProgress,loaded:Ve.loaded};Ve.lengthComputable&&(L.total=Ve.total),U.next(L)};return P.addEventListener("load",ve),P.addEventListener("error",be),P.addEventListener("timeout",be),P.addEventListener("abort",be),V.reportProgress&&(P.addEventListener("progress",ut),null!==w&&P.upload&&P.upload.addEventListener("progress",at)),P.send(w),U.next({type:He.Sent}),()=>{P.removeEventListener("error",be),P.removeEventListener("abort",be),P.removeEventListener("load",ve),P.removeEventListener("timeout",be),V.reportProgress&&(P.removeEventListener("progress",ut),null!==w&&P.upload&&P.upload.removeEventListener("progress",at)),P.readyState!==P.DONE&&P.abort()}})}}return _e.\u0275fac=function(V){return new(V||_e)(u.LFG(c.JF))},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})();const bn=new u.OlP("XSRF_COOKIE_NAME"),Yt=new u.OlP("XSRF_HEADER_NAME");class ot{}let Zt=(()=>{class _e{constructor(V,U,P){this.doc=V,this.platform=U,this.cookieName=P,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const V=this.doc.cookie||"";return V!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,c.Mx)(V,this.cookieName),this.lastCookieString=V),this.lastToken}}return _e.\u0275fac=function(V){return new(V||_e)(u.LFG(c.K0),u.LFG(u.Lbi),u.LFG(bn))},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Ct=(()=>{class _e{constructor(V,U){this.tokenService=V,this.headerName=U}intercept(V,U){const P=V.url.toLowerCase();if("GET"===V.method||"HEAD"===V.method||P.startsWith("http://")||P.startsWith("https://"))return U.handle(V);const w=this.tokenService.getToken();return null!==w&&!V.headers.has(this.headerName)&&(V=V.clone({headers:V.headers.set(this.headerName,w)})),U.handle(V)}}return _e.\u0275fac=function(V){return new(V||_e)(u.LFG(ot),u.LFG(Yt))},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),Wt=(()=>{class _e{constructor(V,U){this.backend=V,this.injector=U,this.chain=null}handle(V){if(null===this.chain){const U=this.injector.get(mt,[]);this.chain=U.reduceRight((P,w)=>new $e(P,w),this.backend)}return this.chain.handle(V)}}return _e.\u0275fac=function(V){return new(V||_e)(u.LFG(O),u.LFG(u.zs3))},_e.\u0275prov=u.Yz7({token:_e,factory:_e.\u0275fac}),_e})(),jt=(()=>{class _e{static disable(){return{ngModule:_e,providers:[{provide:Ct,useClass:wt}]}}static withOptions(V={}){return{ngModule:_e,providers:[V.cookieName?{provide:bn,useValue:V.cookieName}:[],V.headerName?{provide:Yt,useValue:V.headerName}:[]]}}}return _e.\u0275fac=function(V){return new(V||_e)},_e.\u0275mod=u.oAB({type:_e}),_e.\u0275inj=u.cJS({providers:[Ct,{provide:mt,useExisting:Ct,multi:!0},{provide:ot,useClass:Zt},{provide:bn,useValue:"XSRF-TOKEN"},{provide:Yt,useValue:"X-XSRF-TOKEN"}]}),_e})(),un=(()=>{class _e{}return _e.\u0275fac=function(V){return new(V||_e)},_e.\u0275mod=u.oAB({type:_e}),_e.\u0275inj=u.cJS({providers:[ue,{provide:z,useClass:Wt},zn,{provide:O,useExisting:zn}],imports:[[jt.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),_e})()},2096:(Re,oe,C)=>{C.d(oe,{deG:()=>ca,tb:()=>mg,AFp:()=>fg,ip1:()=>hg,CZH:()=>Xu,hGG:()=>KE,z2F:()=>ac,sBO:()=>OE,Sil:()=>cE,_Vd:()=>Ga,EJc:()=>lE,SBq:()=>Ko,qLn:()=>Ea,vpe:()=>ui,tBr:()=>pa,XFs:()=>V,OlP:()=>zt,zs3:()=>si,ZZ4:()=>fc,aQg:()=>pc,soG:()=>tc,YKP:()=>Dp,h0i:()=>to,PXZ:()=>bE,R0b:()=>$r,FiY:()=>Ao,Lbi:()=>sE,g9A:()=>gg,Qsj:()=>a_,FYo:()=>mp,JOm:()=>ti,q3G:()=>vn,tp0:()=>Io,Rgc:()=>Qo,dDg:()=>Cg,GfV:()=>vp,s_b:()=>Ka,ifc:()=>at,eFA:()=>Eg,G48:()=>xE,Gpc:()=>Ie,_c5:()=>WE,VLi:()=>DE,c2e:()=>oE,zSh:()=>ru,wAp:()=>Qe,vHH:()=>Le,EiD:()=>yd,mCW:()=>No,qzn:()=>Ns,JVY:()=>Um,pB0:()=>zm,eBb:()=>$m,L6k:()=>Hm,LAX:()=>Gm,cg1:()=>xu,kL8:()=>jf,yhl:()=>cd,dqk:()=>te,sIi:()=>Bo,CqO:()=>Zh,QGY:()=>Cu,F4k:()=>Yh,dwT:()=>nD,RDi:()=>Yi,AaK:()=>X,z3N:()=>Ei,qOj:()=>lu,TTD:()=>gi,_Bn:()=>fp,xp6:()=>Ad,uIk:()=>du,Tol:()=>mf,ekj:()=>wu,Suo:()=>Gp,Xpm:()=>K,lG2:()=>qn,Yz7:()=>ot,cJS:()=>Ct,oAB:()=>ft,Yjl:()=>Wn,Y36:()=>Uo,_UZ:()=>yu,BQk:()=>La,ynx:()=>Ra,qZA:()=>Na,TgZ:()=>Pa,EpF:()=>Kh,n5z:()=>I,LFG:()=>Bn,$8M:()=>G,$Z:()=>zh,NdJ:()=>Du,CRH:()=>zp,oxw:()=>Xh,ALo:()=>Pp,lcZ:()=>Np,xi3:()=>Rp,Dn7:()=>Lp,gM2:()=>Fp,Q6J:()=>mu,s9C:()=>Eu,MGl:()=>Fa,hYB:()=>bu,DdM:()=>wp,VKq:()=>Mp,WLB:()=>Sp,iGM:()=>Hp,MAs:()=>Rh,CHM:()=>Ji,oJD:()=>Cd,LSH:()=>Pl,B6R:()=>x,kYT:()=>it,YNc:()=>Nh,W1O:()=>Zp,_uU:()=>bf,Oqu:()=>Su,hij:()=>Va,AsE:()=>Au,lnq:()=>Iu,HOy:()=>Tu,Gf:()=>$p});var c=C(8929),u=C(2654),H=C(2916),J=C(2866),W=C(9146),Z=C(3009),z=C(1762);class T{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 R=C(4327);function q(){return new c.xQ}function ne(e){for(let t in e)if(e[t]===ne)return t;throw Error("Could not find renamed property on target object.")}function ce(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function X(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(X).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 Se(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Te=ne({__forward_ref__:ne});function Ie(e){return e.__forward_ref__=Ie,e.toString=function(){return X(this())},e}function xe(e){return gt(e)?e():e}function gt(e){return"function"==typeof e&&e.hasOwnProperty(Te)&&e.__forward_ref__===Ie}class Le extends Error{constructor(t,n){super(function Ze(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function Fe(e){return"string"==typeof e?e:null==e?"":String(e)}function He(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Fe(e)}function fe(e,t){const n=t?` in ${t}`:"";throw new Le(-201,`No provider for ${He(e)} found${n}`)}function ht(e,t){null==e&&function qe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function ot(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ct(e){return{providers:e.providers||[],imports:e.imports||[]}}function Wt(e){return Cn(e,on)||Cn(e,_e)}function Cn(e,t){return e.hasOwnProperty(t)?e[t]:null}function un(e){return e&&(e.hasOwnProperty(Dn)||e.hasOwnProperty(Y))?e[Dn]:null}const on=ne({\u0275prov:ne}),Dn=ne({\u0275inj:ne}),_e=ne({ngInjectableDef:ne}),Y=ne({ngInjectorDef:ne});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let U;function w(e){const t=U;return U=e,t}function k(e,t,n){const r=Wt(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&V.Optional?null:void 0!==t?t:void fe(X(e),"Injector")}function ve(e){return{toString:e}.toString()}var be=(()=>((be=be||{})[be.OnPush=0]="OnPush",be[be.Default=1]="Default",be))(),at=(()=>{return(e=at||(at={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",at;var e})();const Ve="undefined"!=typeof globalThis&&globalThis,L="undefined"!=typeof window&&window,Ae="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,te=Ve||"undefined"!=typeof global&&global||L||Ae,Jt={},pt=[],Je=ne({\u0275cmp:ne}),jn=ne({\u0275dir:ne}),wn=ne({\u0275pipe:ne}),Gr=ne({\u0275mod:ne}),cn=ne({\u0275fac:ne}),ar=ne({__NG_ELEMENT_ID__:ne});let re=0;function K(e){return ve(()=>{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===be.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||pt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||at.Emulated,id:"c",styles:e.styles||pt,_:null,setInput:null,schemas:e.schemas||null,tView:null},i=e.directives,s=e.features,o=e.pipes;return r.id+=re++,r.inputs=Mt(e.inputs,n),r.outputs=Mt(e.outputs),s&&s.forEach(d=>d(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Q):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(Ce):null,r})}function x(e,t,n){const r=e.\u0275cmp;r.directiveDefs=()=>t.map(Q),r.pipeDefs=()=>n.map(Ce)}function Q(e){return Ft(e)||function Kn(e){return e[jn]||null}(e)}function Ce(e){return function On(e){return e[wn]||null}(e)}const Ge={};function ft(e){return ve(()=>{const t={type:e.type,bootstrap:e.bootstrap||pt,declarations:e.declarations||pt,imports:e.imports||pt,exports:e.exports||pt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(Ge[e.id]=e.type),t})}function it(e,t){return ve(()=>{const n=_n(e,!0);n.declarations=t.declarations||pt,n.imports=t.imports||pt,n.exports=t.exports||pt})}function Mt(e,t){if(null==e)return Jt;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 qn=K;function Wn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function Ft(e){return e[Je]||null}function _n(e,t){const n=e[Gr]||null;if(!n&&!0===t)throw new Error(`Type ${X(e)} does not have '\u0275mod' property.`);return n}function nr(e){return Array.isArray(e)&&"object"==typeof e[1]}function gn(e){return Array.isArray(e)&&!0===e[1]}function Wr(e){return 0!=(8&e.flags)}function rr(e){return 2==(2&e.flags)}function In(e){return 1==(1&e.flags)}function tn(e){return null!==e.template}function cr(e){return 0!=(512&e[2])}function Yn(e,t){return e.hasOwnProperty(cn)?e[cn]:null}class vs{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function gi(){return ir}function ir(e){return e.type.prototype.ngOnChanges&&(e.setInput=Yr),zi}function zi(){const e=Er(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===Jt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Yr(e,t,n,r){const i=Er(e)||function Ki(e,t){return e[Wi]=t}(e,{previous:Jt,current:null}),s=i.current||(i.current={}),o=i.previous,d=this.declaredInputs[n],p=o[d];s[d]=new vs(p&&p.currentValue,t,o===Jt),e[r]=t}gi.ngInherit=!0;const Wi="__ngSimpleChanges__";function Er(e){return e[Wi]||null}let Hn;function Yi(e){Hn=e}function wr(){return void 0!==Hn?Hn:"undefined"!=typeof document?document:void 0}function Gt(e){return!!e.listen}const Jr={createRenderer:(e,t)=>wr()};function Kt(e){for(;Array.isArray(e);)e=e[0];return e}function xi(e,t){return Kt(t[e])}function Tn(e,t){return Kt(t[e.index])}function y(e,t){return e.data[t]}function m(e,t){return e[t]}function A(e,t){const n=t[e];return nr(n)?n:n[0]}function he(e){return 4==(4&e[2])}function Ue(e){return 128==(128&e[2])}function rn(e,t){return null==t?null:e[t]}function fr(e){e[18]=0}function qr(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 nt={lFrame:Fi(null),bindingsEnabled:!0};function Rr(){return nt.bindingsEnabled}function Me(){return nt.lFrame.lView}function _t(){return nt.lFrame.tView}function Ji(e){return nt.lFrame.contextLView=e,e[8]}function sn(){let e=Qi();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qi(){return nt.lFrame.currentTNode}function Zn(e,t){const n=nt.lFrame;n.currentTNode=e,n.isParent=t}function Fn(){return nt.lFrame.isParent}function Pi(){nt.lFrame.isParent=!1}function Mn(){const e=nt.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function kn(){return nt.lFrame.bindingIndex}function Xr(){return nt.lFrame.bindingIndex++}function Vn(e){const t=nt.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function uo(e,t){const n=nt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Xi(t)}function Xi(e){nt.lFrame.currentDirectiveIndex=e}function bs(){return nt.lFrame.currentQueryIndex}function Ni(e){nt.lFrame.currentQueryIndex=e}function ws(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function ts(e,t,n){if(n&V.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&V.Host||(i=ws(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;t=i,e=s}const r=nt.lFrame=Li();return r.currentTNode=t,r.lView=e,!0}function Ri(e){const t=Li(),n=e[1];nt.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Li(){const e=nt.lFrame,t=null===e?null:e.child;return null===t?Fi(e):t}function Fi(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 Ms(){const e=nt.lFrame;return nt.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const ho=Ms;function yi(){const e=Ms();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 En(){return nt.lFrame.selectedIndex}function sr(e){nt.lFrame.selectedIndex=e}function kt(){const e=nt.lFrame;return y(e.tView,e.selectedIndex)}function g(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:d,ngAfterViewInit:p,ngAfterViewChecked:b,ngOnDestroy:M}=s;o&&(e.contentHooks||(e.contentHooks=[])).push(-n,o),d&&((e.contentHooks||(e.contentHooks=[])).push(n,d),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,d)),p&&(e.viewHooks||(e.viewHooks=[])).push(-n,p),b&&((e.viewHooks||(e.viewHooks=[])).push(n,b),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,b)),null!=M&&(e.destroyHooks||(e.destroyHooks=[])).push(n,M)}}function S(e,t,n){Ee(e,t,3,n)}function B(e,t,n,r){(3&e[2])===n&&Ee(e,t,n,r)}function ae(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function Ee(e,t,n,r){const s=null!=r?r:-1,o=t.length-1;let d=0;for(let p=void 0!==r?65535&e[18]:0;p<o;p++)if("number"==typeof t[p+1]){if(d=t[p],null!=r&&d>=r)break}else t[p]<0&&(e[18]+=65536),(d<s||-1==s)&&(Be(e,n,t,p),e[18]=(4294901760&e[18])+p+2),p++}function Be(e,t,n,r){const i=n[r]<0,s=n[r+1],d=e[i?-n[r]:n[r]];if(i){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{s.call(d)}finally{}}}else try{s.call(d)}finally{}}class vt{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function xn(e,t,n){const r=Gt(e);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],d=n[i++],p=n[i++];r?e.setAttribute(t,d,p,o):t.setAttributeNS(o,d,p)}else{const o=s,d=n[++i];or(o)?r&&e.setProperty(t,o,d):r?e.setAttribute(t,o,d):t.setAttribute(o,d),i++}}return i}function Mr(e){return 3===e||4===e||6===e}function or(e){return 64===e.charCodeAt(0)}function Ci(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||ra(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function ra(e,t,n,r,i){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const d=e[s++];if("number"==typeof d){if(d===t){o=-1;break}if(d>t){o=s-1;break}}}for(;s<e.length;){const d=e[s];if("number"==typeof d)break;if(d===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function go(e){return-1!==e}function ki(e){return 32767&e}function Di(e,t){let n=function ia(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let ns=!0;function mo(e){const t=ns;return ns=e,t}let tl=0;function rs(e,t){const n=Co(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,yo(r.data,e),yo(t,null),yo(r.blueprint,null));const i=is(e,t),s=e.injectorIndex;if(go(i)){const o=ki(i),d=Di(i,t),p=d[1].data;for(let b=0;b<8;b++)t[s+b]=d[o+b]|p[o+b]}return t[s+8]=i,s}function yo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Co(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function is(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],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function As(e,t,n){!function nl(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ar)&&(r=n[ar]),null==r&&(r=n[ar]=tl++);const i=255&r;t.data[e+(i>>5)]|=1<<i}(e,t,n)}function oa(e,t,n){if(n&V.Optional)return e;fe(t,"NodeInjector")}function Is(e,t,n,r){if(n&V.Optional&&void 0===r&&(r=null),0==(n&(V.Self|V.Host))){const i=e[9],s=w(void 0);try{return i?i.get(t,r,n&V.Optional):k(t,r,n&V.Optional)}finally{w(s)}}return oa(r,t,n)}function aa(e,t,n,r=V.Default,i){if(null!==e){const s=function l(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(ar)?e[ar]:void 0;return"number"==typeof t?t>=0?255&t:ua:t}(n);if("function"==typeof s){if(!ts(t,e,r))return r&V.Host?oa(i,n,r):Is(t,n,r,i);try{const o=s(r);if(null!=o||r&V.Optional)return o;fe(n)}finally{ho()}}else if("number"==typeof s){let o=null,d=Co(e,t),p=-1,b=r&V.Host?t[16][6]:null;for((-1===d||r&V.SkipSelf)&&(p=-1===d?is(e,t):t[d+8],-1!==p&&v(r,!1)?(o=t[1],d=ki(p),t=Di(p,t)):d=-1);-1!==d;){const M=t[1];if(a(s,d,M.data)){const N=il(d,t,n,o,r,b);if(N!==la)return N}p=t[d+8],-1!==p&&v(r,t[1].data[d+8]===b)&&a(s,d,t)?(o=M,d=ki(p),t=Di(p,t)):d=-1}}}return Is(t,n,r,i)}const la={};function ua(){return new _(sn(),Me())}function il(e,t,n,r,i,s){const o=t[1],d=o.data[e+8],M=Do(d,o,n,null==r?rr(d)&&ns:r!=o&&0!=(3&d.type),i&V.Host&&s===d);return null!==M?h(t,o,M,d):la}function Do(e,t,n,r,i){const s=e.providerIndexes,o=t.data,d=1048575&s,p=e.directiveStart,M=s>>20,$=i?d+M:e.directiveEnd;for(let ee=r?d:d+M;ee<$;ee++){const ye=o[ee];if(ee<p&&n===ye||ee>=p&&ye.type===n)return ee}if(i){const ee=o[p];if(ee&&tn(ee)&&ee.type===n)return p}return null}function h(e,t,n,r){let i=e[n];const s=t.data;if(function It(e){return e instanceof vt}(i)){const o=i;o.resolving&&function le(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new Le(-200,`Circular dependency in DI detected for ${e}${n}`)}(He(s[n]));const d=mo(o.canSeeViewProviders);o.resolving=!0;const p=o.injectImpl?w(o.injectImpl):null;ts(e,r,V.Default);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function E(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const o=ir(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o)}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!==p&&w(p),mo(d),o.resolving=!1,ho()}}return i}function a(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function v(e,t){return!(e&V.Self||e&V.Host&&t)}class _{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return aa(this._tNode,this._lView,t,r,n)}}function I(e){return ve(()=>{const t=e.prototype.constructor,n=t[cn]||F(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[cn]||F(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function F(e){return gt(e)?()=>{const t=F(xe(e));return t&&t()}:Yn(e)}function G(e){return function rl(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<r;){const s=n[i];if(Mr(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===t)return n[i+1];i+=2}}}return null}(sn(),e)}const ke="__parameters__";function Et(e,t,n){return ve(()=>{const r=function Tt(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 o=new i(...s);return d.annotation=o,d;function d(p,b,M){const N=p.hasOwnProperty(ke)?p[ke]:Object.defineProperty(p,ke,{value:[]})[ke];for(;N.length<=M;)N.push(null);return(N[M]=N[M]||[]).push(o),p}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}class zt{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=ot({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const ca=new zt("AnalyzeForEntryComponents");function Sr(e,t){void 0===t&&(t=e);for(let n=0;n<e.length;n++){let r=e[n];Array.isArray(r)?(t===e&&(t=e.slice(0,n)),Sr(r,t)):t!==e&&t.push(r)}return t}function ei(e,t){e.forEach(n=>Array.isArray(n)?ei(n,t):t(n))}function Mc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function da(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function gr(e,t,n){let r=xs(e,t);return r>=0?e[1|r]=n:(r=~r,function Bg(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 ol(e,t){const n=xs(e,t);if(n>=0)return e[1|n]}function xs(e,t){return function Ic(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),o=e[s<<n];if(t===o)return s<<n;o>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const wo={},ll="__NG_DI_FLAG__",fa="ngTempTokenPath",Wg=/\n/gm,xc="__source",Yg=ne({provide:String,useValue:ne});let Mo;function Oc(e){const t=Mo;return Mo=e,t}function Zg(e,t=V.Default){if(void 0===Mo)throw new Le(203,"");return null===Mo?k(e,void 0,t):Mo.get(e,t&V.Optional?null:void 0,t)}function Bn(e,t=V.Default){return(function P(){return U}()||Zg)(xe(e),t)}const Jg=Bn;function ul(e){const t=[];for(let n=0;n<e.length;n++){const r=xe(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Le(900,"");let i,s=V.Default;for(let o=0;o<r.length;o++){const d=r[o],p=Qg(d);"number"==typeof p?-1===p?i=d.token:s|=p:i=d}t.push(Bn(i,s))}else t.push(Bn(r))}return t}function So(e,t){return e[ll]=t,e.prototype[ll]=t,e}function Qg(e){return e[ll]}const pa=So(Et("Inject",e=>({token:e})),-1),Ao=So(Et("Optional"),8),Io=So(Et("SkipSelf"),4);var ti=(()=>((ti=ti||{})[ti.Important=1]="Important",ti[ti.DashCase=2]="DashCase",ti))();const Bc="__ngContext__";function $n(e,t){e[Bc]=t}function hl(e){const t=function xo(e){return e[Bc]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function pl(e,t){return undefined(e,t)}function Oo(e){const t=e[3];return gn(t)?t[3]:t}function gl(e){return Wc(e[13])}function ml(e){return Wc(e[4])}function Wc(e){for(;null!==e&&!gn(e);)e=e[4];return e}function Ps(e,t,n,r,i){if(null!=r){let s,o=!1;gn(r)?s=r:nr(r)&&(o=!0,r=r[0]);const d=Kt(r);0===e&&null!==n?null==i?qc(t,n,d):ss(t,n,d,i||null,!0):1===e&&null!==n?ss(t,n,d,i||null,!0):2===e?function bl(e,t,n){const r=ma(e,t);r&&function Im(e,t,n,r){Gt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,d,o):3===e&&t.destroyNode(d),null!=s&&function Om(e,t,n,r,i){const s=n[7];s!==Kt(n)&&Ps(t,e,r,s,i);for(let d=10;d<n.length;d++){const p=n[d];Po(p[1],p,e,t,r,s)}}(t,e,s,n,i)}}function yl(e,t,n){if(Gt(e))return e.createElement(t,n);{const r=null!==n?function ys(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?e.createElement(t):e.createElementNS(r,t)}}function Yc(e,t){const n=e[9],r=n.indexOf(t),i=t[3];1024&t[2]&&(t[2]&=-1025,qr(i,-1)),n.splice(r,1)}function Cl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Yc(i,r),t>0&&(e[n-1][4]=r[4]);const s=da(e,10+t);!function Dm(e,t){Po(e,t,t[11],2,null,null),t[0]=null,t[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Zc(e,t){if(!(256&t[2])){const n=t[11];Gt(n)&&n.destroyNode&&Po(e,t,n,3,null,null),function bm(e){let t=e[13];if(!t)return Dl(e[1],e);for(;t;){let n=null;if(nr(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)nr(t)&&Dl(t[1],t),t=t[3];null===t&&(t=e),nr(t)&&Dl(t[1],t),n=t&&t[4]}t=n}}(t)}}function Dl(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function Am(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const i=t[n[r]];if(!(i instanceof vt)){const s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const d=i[s[o]],p=s[o+1];try{p.call(d)}finally{}}else try{s.call(i)}finally{}}}}(e,t),function Sm(e,t){const n=e.cleanup,r=t[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const o=n[s+1],d="function"==typeof o?o(t):Kt(t[o]),p=r[i=n[s+2]],b=n[s+3];"boolean"==typeof b?d.removeEventListener(n[s],p,b):b>=0?r[i=b]():r[i=-b].unsubscribe(),s+=2}else{const o=r[i=n[s+1]];n[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();t[7]=null}}(e,t),1===t[1].type&&Gt(t[11])&&t[11].destroy();const n=t[17];if(null!==n&&gn(t[3])){n!==t[3]&&Yc(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Jc(e,t,n){return function Qc(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const i=e.data[r.directiveStart].encapsulation;if(i===at.None||i===at.Emulated)return null}return Tn(r,n)}(e,t.parent,n)}function ss(e,t,n,r,i){Gt(e)?e.insertBefore(t,n,r,i):t.insertBefore(n,r,i)}function qc(e,t,n){Gt(e)?e.appendChild(t,n):t.appendChild(n)}function Xc(e,t,n,r,i){null!==r?ss(e,t,n,r,i):qc(e,t,n)}function ma(e,t){return Gt(e)?e.parentNode(t):t.parentNode}let Ca,Da,nd=function td(e,t,n){return 40&e.type?Tn(e,n):null};function va(e,t,n,r){const i=Jc(e,r,t),s=t[11],d=function ed(e,t,n){return nd(e,t,n)}(r.parent||t[6],r,t);if(null!=i)if(Array.isArray(n))for(let p=0;p<n.length;p++)Xc(s,i,n[p],d,!1);else Xc(s,i,n,d,!1)}function ya(e,t){if(null!==t){const n=t.type;if(3&n)return Tn(t,e);if(4&n)return El(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return ya(e,r);{const i=e[t.index];return gn(i)?El(-1,i):Kt(i)}}if(32&n)return pl(t,e)()||Kt(e[t.index]);{const r=id(e,t);return null!==r?Array.isArray(r)?r[0]:ya(Oo(e[16]),r):ya(e,t.next)}}return null}function id(e,t){return null!==t?e[16][6].projection[t.projection]:null}function El(e,t){const n=10+e+1;if(n<t.length){const r=t[n],i=r[1].firstChild;if(null!==i)return ya(r,i)}return t[7]}function wl(e,t,n,r,i,s,o){for(;null!=n;){const d=r[n.index],p=n.type;if(o&&0===t&&(d&&$n(Kt(d),r),n.flags|=4),64!=(64&n.flags))if(8&p)wl(e,t,n.child,r,i,s,!1),Ps(t,e,i,d,s);else if(32&p){const b=pl(n,r);let M;for(;M=b();)Ps(t,e,i,M,s);Ps(t,e,i,d,s)}else 16&p?sd(e,t,r,n,i,s):Ps(t,e,i,d,s);n=o?n.projectionNext:n.next}}function Po(e,t,n,r,i,s){wl(n,r,e.firstChild,t,i,s,!1)}function sd(e,t,n,r,i,s){const o=n[16],p=o[6].projection[r.projection];if(Array.isArray(p))for(let b=0;b<p.length;b++)Ps(t,e,i,p[b],s);else wl(e,t,p,o[3],i,s,!0)}function od(e,t,n){Gt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ml(e,t,n){Gt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function os(e){var t;return(null===(t=function Sl(){if(void 0===Ca&&(Ca=null,te.trustedTypes))try{Ca=te.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Ca}())||void 0===t?void 0:t.createHTML(e))||e}function ad(e){var t;return(null===(t=function Al(){if(void 0===Da&&(Da=null,te.trustedTypes))try{Da=te.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch(e){}return Da}())||void 0===t?void 0:t.createHTML(e))||e}class as{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class Fm extends as{getTypeName(){return"HTML"}}class km extends as{getTypeName(){return"Style"}}class Vm extends as{getTypeName(){return"Script"}}class Bm extends as{getTypeName(){return"URL"}}class jm extends as{getTypeName(){return"ResourceURL"}}function Ei(e){return e instanceof as?e.changingThisBreaksApplicationSecurity:e}function Ns(e,t){const n=cd(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}function cd(e){return e instanceof as&&e.getTypeName()||null}function Um(e){return new Fm(e)}function Hm(e){return new km(e)}function $m(e){return new Vm(e)}function Gm(e){return new Bm(e)}function zm(e){return new jm(e)}class Wm{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(os(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch(n){return null}}}class Km{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);const r=this.inertDocument.createElement("body");n.appendChild(r)}}getInertBodyElement(t){const n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=os(t),n;const r=this.inertDocument.createElement("body");return r.innerHTML=os(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(r),r}stripCustomNsAttrs(t){const n=t.attributes;for(let i=n.length-1;0<i;i--){const o=n.item(i).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let r=t.firstChild;for(;r;)r.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(r),r=r.nextSibling}}const Zm=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Jm=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function No(e){return(e=String(e)).match(Zm)||e.match(Jm)?e:"unsafe:"+e}function ni(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Ro(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const fd=ni("area,br,col,hr,img,wbr"),pd=ni("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gd=ni("rp,rt"),Il=Ro(fd,Ro(pd,ni("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ro(gd,ni("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ro(gd,pd)),Tl=ni("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),xl=ni("srcset"),md=Ro(Tl,xl,ni("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),ni("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Qm=ni("script,style,template");class qm{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0;for(;n;)if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=this.checkClobberedElement(n,n.nextSibling);if(i){n=i;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}startElement(t){const n=t.nodeName.toLowerCase();if(!Il.hasOwnProperty(n))return this.sanitizedSomething=!0,!Qm.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);const r=t.attributes;for(let i=0;i<r.length;i++){const s=r.item(i),o=s.name,d=o.toLowerCase();if(!md.hasOwnProperty(d)){this.sanitizedSomething=!0;continue}let p=s.value;Tl[d]&&(p=No(p)),xl[d]&&(e=p,p=(e=String(e)).split(",").map(t=>No(t.trim())).join(", ")),this.buf.push(" ",o,'="',vd(p),'"')}var e;return this.buf.push(">"),!0}endElement(t){const n=t.nodeName.toLowerCase();Il.hasOwnProperty(n)&&!fd.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(vd(t))}checkClobberedElement(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return n}}const Xm=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ev=/([^\#-~ |!])/g;function vd(e){return e.replace(/&/g,"&amp;").replace(Xm,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ev,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let _a;function yd(e,t){let n=null;try{_a=_a||function dd(e){const t=new Km(e);return function Ym(){try{return!!(new window.DOMParser).parseFromString(os(""),"text/html")}catch(e){return!1}}()?new Wm(t):t}(e);let r=t?String(t):"";n=_a.getInertBodyElement(r);let i=5,s=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=s,s=n.innerHTML,n=_a.getInertBodyElement(r)}while(r!==s);return os((new qm).sanitizeChildren(Ol(n)||n))}finally{if(n){const r=Ol(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function Ol(e){return"content"in e&&function tv(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var vn=(()=>((vn=vn||{})[vn.NONE=0]="NONE",vn[vn.HTML=1]="HTML",vn[vn.STYLE=2]="STYLE",vn[vn.SCRIPT=3]="SCRIPT",vn[vn.URL=4]="URL",vn[vn.RESOURCE_URL=5]="RESOURCE_URL",vn))();function Cd(e){const t=Lo();return t?ad(t.sanitize(vn.HTML,e)||""):Ns(e,"HTML")?ad(Ei(e)):yd(wr(),Fe(e))}function Pl(e){const t=Lo();return t?t.sanitize(vn.URL,e)||"":Ns(e,"URL")?Ei(e):No(Fe(e))}function Lo(){const e=Me();return e&&e[12]}function Rl(e){return e.ngOriginalError}function dv(e,...t){e.error(...t)}class Ea{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=function cv(e){return e&&e.ngErrorLogger||dv}(t);r(this._console,"ERROR",t),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Rl(t);for(;n&&Rl(n);)n=Rl(n);return n||null}}const yv=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(te))();function ri(e){return e instanceof Function?e():e}function Ed(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const s=t.length;if(i+s===r||e.charCodeAt(i+s)<=32)return i}n=i+1}}const bd="ng-template";function Ev(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==Ed(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function wd(e){return 4===e.type&&e.value!==bd}function bv(e,t,n){return t===(4!==e.type||n?e.value:bd)}function wv(e,t,n){let r=4;const i=e.attrs||[],s=function Av(e){for(let t=0;t<e.length;t++)if(Mr(e[t]))return t;return e.length}(i);let o=!1;for(let d=0;d<t.length;d++){const p=t[d];if("number"!=typeof p){if(!o)if(4&r){if(r=2|1&r,""!==p&&!bv(e,p,n)||""===p&&1===t.length){if(Vr(r))return!1;o=!0}}else{const b=8&r?p:t[++d];if(8&r&&null!==e.attrs){if(!Ev(e.attrs,b,n)){if(Vr(r))return!1;o=!0}continue}const N=Mv(8&r?"class":p,i,wd(e),n);if(-1===N){if(Vr(r))return!1;o=!0;continue}if(""!==b){let $;$=N>s?"":i[N+1].toLowerCase();const ee=8&r?$:null;if(ee&&-1!==Ed(ee,b,0)||2&r&&b!==$){if(Vr(r))return!1;o=!0}}}}else{if(!o&&!Vr(r)&&!Vr(p))return!1;if(o&&Vr(p))continue;o=!1,r=p|1&r}}return Vr(r)||o}function Vr(e){return 0==(1&e)}function Mv(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const o=t[i];if(o===e)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let d=t[++i];for(;"string"==typeof d;)d=t[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function Iv(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function Md(e,t,n=!1){for(let r=0;r<t.length;r++)if(wv(e,t[r],n))return!0;return!1}function Sd(e,t){return e?":not("+t.trim()+")":t}function xv(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&r){const d=e[++n];i+="["+o+(d.length>0?'="'+d+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Vr(o)&&(t+=Sd(s,i),i=""),r=o,s=s||!Vr(r);n++}return""!==i&&(t+=Sd(s,i)),t}const lt={};function Ad(e){Id(_t(),Me(),En()+e,!1)}function Id(e,t,n,r){if(!r)if(3==(3&t[2])){const s=e.preOrderCheckHooks;null!==s&&S(t,s,n)}else{const s=e.preOrderHooks;null!==s&&B(t,s,0,n)}sr(n)}function ba(e,t){return e<<17|t<<2}function Br(e){return e>>17&32767}function Ll(e){return 2|e}function bi(e){return(131068&e)>>2}function Fl(e,t){return-131069&e|t<<2}function kl(e){return 1|e}function Bd(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const o=e.data[s];Ni(i),o.contentQueries(2,t[s],s)}}}function Fo(e,t,n,r,i,s,o,d,p,b){const M=t.blueprint.slice();return M[0]=i,M[2]=140|r,fr(M),M[3]=M[15]=e,M[8]=n,M[10]=o||e&&e[10],M[11]=d||e&&e[11],M[12]=p||e&&e[12]||null,M[9]=b||e&&e[9]||null,M[6]=s,M[16]=2==t.type?e[16]:M,M}function Ls(e,t,n,r,i){let s=e.data[t];if(null===s)s=function Wl(e,t,n,r,i){const s=Qi(),o=Fn(),p=e.data[t]=function Yv(e,t,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=p),null!==s&&(o?null==s.child&&null!==p.parent&&(s.child=p):null===s.next&&(s.next=p)),p}(e,t,n,r,i),function _s(){return nt.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const o=function vi(){const e=nt.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Zn(s,!0),s}function Fs(e,t,n,r){if(0===n)return-1;const i=t.length;for(let s=0;s<n;s++)t.push(r),e.blueprint.push(r),e.data.push(null);return i}function ko(e,t,n){Ri(t);try{const r=e.viewQuery;null!==r&&tu(1,r,n);const i=e.template;null!==i&&jd(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Bd(e,t),e.staticViewQueries&&tu(2,e.viewQuery,n);const s=e.components;null!==s&&function zv(e,t){for(let n=0;n<t.length;n++)hy(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,yi()}}function ks(e,t,n,r){const i=t[2];if(256!=(256&i)){Ri(t);try{fr(t),function Ds(e){return nt.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&jd(e,t,n,2,r);const o=3==(3&i);if(o){const b=e.preOrderCheckHooks;null!==b&&S(t,b,null)}else{const b=e.preOrderHooks;null!==b&&B(t,b,0,null),ae(t,0)}if(function cy(e){for(let t=gl(e);null!==t;t=ml(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(1024&i[2])&&qr(s,1),i[2]|=1024}}}(t),function uy(e){for(let t=gl(e);null!==t;t=ml(t))for(let n=10;n<t.length;n++){const r=t[n],i=r[1];Ue(r)&&ks(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Bd(e,t),o){const b=e.contentCheckHooks;null!==b&&S(t,b)}else{const b=e.contentHooks;null!==b&&B(t,b,1),ae(t,1)}!function $v(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)sr(~i);else{const s=i,o=n[++r],d=n[++r];uo(o,s),d(2,t[s])}}}finally{sr(-1)}}(e,t);const d=e.components;null!==d&&function Gv(e,t){for(let n=0;n<t.length;n++)dy(e,t[n])}(t,d);const p=e.viewQuery;if(null!==p&&tu(2,p,r),o){const b=e.viewCheckHooks;null!==b&&S(t,b)}else{const b=e.viewHooks;null!==b&&B(t,b,2),ae(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[2]&=-73,1024&t[2]&&(t[2]&=-1025,qr(t[3],-1))}finally{yi()}}}function Wv(e,t,n,r){const i=t[10],o=he(t);try{!o&&i.begin&&i.begin(),o&&ko(e,t,r),ks(e,t,n,r)}finally{!o&&i.end&&i.end()}}function jd(e,t,n,r,i){const s=En(),o=2&r;try{sr(-1),o&&t.length>20&&Id(e,t,20,!1),n(r,i)}finally{sr(s)}}function Ud(e,t,n){if(Wr(t)){const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const o=e.data[s];o.contentQueries&&o.contentQueries(1,n[s],s)}}}function Kl(e,t,n){!Rr()||(function ty(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||rs(n,t),$n(r,t);const o=n.initialInputs;for(let d=i;d<s;d++){const p=e.data[d],b=tn(p);b&&oy(t,n,p);const M=h(t,e,d,n);$n(M,t),null!==o&&ay(0,d-i,M,p,0,o),b&&(A(n.index,t)[8]=M)}}(e,t,n,Tn(n,t)),128==(128&n.flags)&&function ny(e,t,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,d=function co(){return nt.lFrame.currentDirectiveIndex}();try{sr(o);for(let p=r;p<i;p++){const b=e.data[p],M=t[p];Xi(p),(null!==b.hostBindings||0!==b.hostVars||null!==b.hostAttrs)&&Zd(b,M)}}finally{sr(-1),Xi(d)}}(e,t,n))}function Yl(e,t,n=Tn){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],d=-1===o?n(t,e):e[o];e[i++]=d}}}function Hd(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Sa(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Sa(e,t,n,r,i,s,o,d,p,b){const M=20+r,N=M+i,$=function Kv(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:lt);return n}(M,N),ee="function"==typeof b?b():b;return $[1]={type:e,blueprint:$,template:n,queries:null,viewQuery:d,declTNode:t,data:$.slice().fill(null,M),bindingStartIndex:M,expandoStartIndex:N,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:p,consts:ee,incompleteFirstPass:!1}}function zd(e,t,n,r){const i=th(t);null===n?i.push(r):(i.push(n),e.firstCreatePass&&nh(e).push(r,i.length-1))}function Wd(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function mr(e,t,n,r,i,s,o,d){const p=Tn(t,n);let M,b=t.inputs;!d&&null!=b&&(M=b[r])?(sh(e,n,M,r,i),rr(t)&&function Qv(e,t){const n=A(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function Jv(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=o?o(i,t.value||"",r):i,Gt(s)?s.setProperty(p,r,i):or(r)||(p.setProperty?p.setProperty(r,i):p[r]=i))}function Zl(e,t,n,r){let i=!1;if(Rr()){const s=function ry(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];Md(n,o.selectors,!1)&&(i||(i=[]),As(rs(n,t),e,o.type),tn(o)?(Jd(e,n),i.unshift(o)):i.push(o))}return i}(e,t,n),o=null===r?null:{"":-1};if(null!==s){i=!0,Qd(n,e.data.length,s.length);for(let M=0;M<s.length;M++){const N=s[M];N.providersResolver&&N.providersResolver(N)}let d=!1,p=!1,b=Fs(e,t,s.length,null);for(let M=0;M<s.length;M++){const N=s[M];n.mergedAttrs=Ci(n.mergedAttrs,N.hostAttrs),qd(e,n,t,b,N),sy(b,N,o),null!==N.contentQueries&&(n.flags|=8),(null!==N.hostBindings||null!==N.hostAttrs||0!==N.hostVars)&&(n.flags|=128);const $=N.type.prototype;!d&&($.ngOnChanges||$.ngOnInit||$.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),d=!0),!p&&($.ngOnChanges||$.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),p=!0),b++}!function Zv(e,t){const r=t.directiveEnd,i=e.data,s=t.attrs,o=[];let d=null,p=null;for(let b=t.directiveStart;b<r;b++){const M=i[b],N=M.inputs,$=null===s||wd(t)?null:ly(N,s);o.push($),d=Wd(N,b,d),p=Wd(M.outputs,b,p)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=16),d.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=d,t.outputs=p}(e,n)}o&&function iy(e,t,n){if(t){const r=e.localNames=[];for(let i=0;i<t.length;i+=2){const s=n[t[i+1]];if(null==s)throw new Le(-301,!1);r.push(t[i],s)}}}(n,r,o)}return n.mergedAttrs=Ci(n.mergedAttrs,n.attrs),i}function Yd(e,t,n,r,i,s){const o=s.hostBindings;if(o){let d=e.hostBindingOpCodes;null===d&&(d=e.hostBindingOpCodes=[]);const p=~t.index;(function ey(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(d)!=p&&d.push(p),d.push(r,i,o)}}function Zd(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Jd(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function sy(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;tn(t)&&(n[""]=e)}}function Qd(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function qd(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=Yn(i.type)),o=new vt(s,tn(i),null);e.blueprint[r]=o,n[r]=o,Yd(e,t,0,r,Fs(e,n,i.hostVars,lt),i)}function oy(e,t,n){const r=Tn(t,e),i=Hd(n),s=e[10],o=Aa(e,Fo(e,i,null,n.onPush?64:16,r,t,s,s.createRenderer(r,n),null,null));e[t.index]=o}function ii(e,t,n,r,i,s){const o=Tn(e,t);!function Jl(e,t,n,r,i,s,o){if(null==s)Gt(e)?e.removeAttribute(t,i,n):t.removeAttribute(i);else{const d=null==o?Fe(s):o(s,r||"",i);Gt(e)?e.setAttribute(t,i,d,n):n?t.setAttributeNS(n,i,d):t.setAttribute(i,d)}}(t[11],o,s,e.value,n,r,i)}function ay(e,t,n,r,i,s){const o=s[t];if(null!==o){const d=r.setInput;for(let p=0;p<o.length;){const b=o[p++],M=o[p++],N=o[p++];null!==d?r.setInput(n,N,b,M):n[M]=N}}}function ly(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Xd(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function dy(e,t){const n=A(t,e);if(Ue(n)){const r=n[1];80&n[2]?ks(r,n,r.template,n[8]):n[5]>0&&Ql(n)}}function Ql(e){for(let r=gl(e);null!==r;r=ml(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];ks(o,s,o.template,s[8])}else s[5]>0&&Ql(s)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=A(n[r],e);Ue(i)&&i[5]>0&&Ql(i)}}function hy(e,t){const n=A(t,e),r=n[1];(function fy(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),ko(r,n,n[8])}function Aa(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ql(e){for(;e;){e[2]|=64;const t=Oo(e);if(cr(e)&&!t)return e;e=t}return null}function eh(e){!function Xl(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=hl(n),i=r[1];Wv(i,r,i.template,n)}}(e[8])}function tu(e,t,n){Ni(0),t(e,n)}const gy=(()=>Promise.resolve(null))();function th(e){return e[7]||(e[7]=[])}function nh(e){return e.cleanup||(e.cleanup=[])}function ih(e,t){const n=e[9],r=n?n.get(Ea,null):null;r&&r.handleError(t)}function sh(e,t,n,r,i){for(let s=0;s<n.length;){const o=n[s++],d=n[s++],p=t[o],b=e.data[o];null!==b.setInput?b.setInput(p,i,r,d):p[d]=i}}function wi(e,t,n){const r=xi(t,e);!function Kc(e,t,n){Gt(e)?e.setValue(t,n):t.textContent=n}(e[11],r,n)}function Ia(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const d=t[o];"number"==typeof d?s=d:1==s?i=Se(i,d):2==s&&(r=Se(r,d+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}const nu=new zt("INJECTOR",-1);class oh{get(t,n=wo){if(n===wo){const r=new Error(`NullInjectorError: No provider for ${X(t)}!`);throw r.name="NullInjectorError",r}return n}}const ru=new zt("Set Injector scope."),Vo={},yy={};let iu;function ah(){return void 0===iu&&(iu=new oh),iu}function lh(e,t=null,n=null,r){const i=uh(e,t,n,r);return i._resolveInjectorDefTypes(),i}function uh(e,t=null,n=null,r){return new Cy(e,n,t||ah(),r)}class Cy{constructor(t,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&ei(n,d=>this.processProvider(d,t,n)),ei([t],d=>this.processInjectorType(d,[],s)),this.records.set(nu,Vs(void 0,this));const o=this.records.get(ru);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof t?null:X(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=wo,r=V.Default){this.assertNotDestroyed();const i=Oc(this),s=w(void 0);try{if(!(r&V.SkipSelf)){let d=this.records.get(t);if(void 0===d){const p=function Ay(e){return"function"==typeof e||"object"==typeof e&&e instanceof zt}(t)&&Wt(t);d=p&&this.injectableDefInScope(p)?Vs(su(t),Vo):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&V.Self?ah():this.parent).get(t,n=r&V.Optional&&n===wo?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[fa]=o[fa]||[]).unshift(X(t)),i)throw o;return function qg(e,t,n,r){const i=e[fa];throw t[xc]&&i.unshift(t[xc]),e.message=function Xg(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=X(t);if(Array.isArray(t))i=t.map(X).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let d=t[o];s.push(o+":"+("string"==typeof d?JSON.stringify(d):X(d)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Wg,"\n  ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[fa]=null,e}(o,t,"R3InjectorError",this.source)}throw o}finally{w(s),Oc(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,i)=>t.push(X(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Le(205,!1)}processInjectorType(t,n,r){if(!(t=xe(t)))return!1;let i=un(t);const s=null==i&&t.ngModule||void 0,o=void 0===s?t:s,d=-1!==r.indexOf(o);if(void 0!==s&&(i=un(s)),null==i)return!1;if(null!=i.imports&&!d){let M;r.push(o);try{ei(i.imports,N=>{this.processInjectorType(N,n,r)&&(void 0===M&&(M=[]),M.push(N))})}finally{}if(void 0!==M)for(let N=0;N<M.length;N++){const{ngModule:$,providers:ee}=M[N];ei(ee,ye=>this.processProvider(ye,$,ee||pt))}}this.injectorDefTypes.add(o);const p=Yn(o)||(()=>new o);this.records.set(o,Vs(p,Vo));const b=i.providers;if(null!=b&&!d){const M=t;ei(b,N=>this.processProvider(N,M,b))}return void 0!==s&&void 0!==t.providers}processProvider(t,n,r){let i=Bs(t=xe(t))?t:xe(t&&t.provide);const s=function _y(e,t,n){return dh(e)?Vs(void 0,e.useValue):Vs(ch(e),Vo)}(t);if(Bs(t)||!0!==t.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=Vs(void 0,Vo,!0),o.factory=()=>ul(o.multi),this.records.set(i,o)),i=t,o.multi.push(t)}this.records.set(i,s)}hydrate(t,n){return n.value===Vo&&(n.value=yy,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Sy(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=xe(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function su(e){const t=Wt(e),n=null!==t?t.factory:Yn(e);if(null!==n)return n;if(e instanceof zt)throw new Le(204,!1);if(e instanceof Function)return function Dy(e){const t=e.length;if(t>0)throw function bo(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?"),new Le(204,!1);const n=function $t(e){const t=e&&(e[on]||e[_e]);if(t){const n=function jt(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Le(204,!1)}function ch(e,t,n){let r;if(Bs(e)){const i=xe(e);return Yn(i)||su(i)}if(dh(e))r=()=>xe(e.useValue);else if(function by(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...ul(e.deps||[]));else if(function Ey(e){return!(!e||!e.useExisting)}(e))r=()=>Bn(xe(e.useExisting));else{const i=xe(e&&(e.useClass||e.provide));if(!function My(e){return!!e.deps}(e))return Yn(i)||su(i);r=()=>new i(...ul(e.deps))}return r}function Vs(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function dh(e){return null!==e&&"object"==typeof e&&Yg in e}function Bs(e){return"function"==typeof e}let si=(()=>{class e{static create(n,r){var i;if(Array.isArray(n))return lh({name:""},r,n,"");{const s=null!==(i=n.name)&&void 0!==i?i:"";return lh({name:s},n.parent,n.providers,s)}}}return e.THROW_IF_NOT_FOUND=wo,e.NULL=new oh,e.\u0275prov=ot({token:e,providedIn:"any",factory:()=>Bn(nu)}),e.__NG_ELEMENT_ID__=-1,e})();function Ly(e,t){g(hl(e)[1],sn())}function lu(e){let t=function bh(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(tn(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Le(903,"");i=t.\u0275dir}if(i){if(n){r.push(i);const o=e;o.inputs=uu(e.inputs),o.declaredInputs=uu(e.declaredInputs),o.outputs=uu(e.outputs);const d=i.hostBindings;d&&By(e,d);const p=i.viewQuery,b=i.contentQueries;if(p&&ky(e,p),b&&Vy(e,b),ce(e.inputs,i.inputs),ce(e.declaredInputs,i.declaredInputs),ce(e.outputs,i.outputs),tn(i)&&i.data.animation){const M=e.data;M.animation=(M.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let o=0;o<s.length;o++){const d=s[o];d&&d.ngInherit&&d(e),d===lu&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Fy(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=Ci(i.hostAttrs,n=Ci(n,i.hostAttrs))}}(r)}function uu(e){return e===Jt?{}:e===pt?[]:e}function ky(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function Vy(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function By(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}let Ta=null;function js(){if(!Ta){const e=te.Symbol;if(e&&e.iterator)Ta=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ta=r)}}}return Ta}function Bo(e){return!!cu(e)&&(Array.isArray(e)||!(e instanceof Map)&&js()in e)}function cu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function oi(e,t,n){return e[t]=n}function Gn(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ls(e,t,n,r){const i=Gn(e,t,n);return Gn(e,t+1,r)||i}function xa(e,t,n,r,i){const s=ls(e,t,n,r);return Gn(e,t+2,i)||s}function Ar(e,t,n,r,i,s){const o=ls(e,t,n,r);return ls(e,t+2,i,s)||o}function du(e,t,n,r){const i=Me();return Gn(i,Xr(),t)&&(_t(),ii(kt(),i,e,t,n,r)),du}function Hs(e,t,n,r){return Gn(e,Xr(),n)?t+Fe(n)+r:lt}function $s(e,t,n,r,i,s){const d=ls(e,kn(),n,i);return Vn(2),d?t+Fe(n)+r+Fe(i)+s:lt}function Nh(e,t,n,r,i,s,o,d){const p=Me(),b=_t(),M=e+20,N=b.firstCreatePass?function Wy(e,t,n,r,i,s,o,d,p){const b=t.consts,M=Ls(t,e,4,o||null,rn(b,d));Zl(t,n,M,rn(b,p)),g(t,M);const N=M.tViews=Sa(2,M,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,b);return null!==t.queries&&(t.queries.template(t,M),N.queries=t.queries.embeddedTView(M)),M}(M,b,p,t,n,r,i,s,o):b.data[M];Zn(N,!1);const $=p[11].createComment("");va(b,p,$,N),$n($,p),Aa(p,p[M]=Xd($,p,$,N)),In(N)&&Kl(b,p,N),null!=o&&Yl(p,N,d)}function Rh(e){return m(function lo(){return nt.lFrame.contextLView}(),20+e)}function Uo(e,t=V.Default){const n=Me();return null===n?Bn(e,t):aa(sn(),n,xe(e),t)}function zh(){throw new Error("invalid")}function mu(e,t,n){const r=Me();return Gn(r,Xr(),t)&&mr(_t(),kt(),r,e,t,r[11],n,!1),mu}function vu(e,t,n,r,i){const o=i?"class":"style";sh(e,n,t.inputs[o],o,r)}function Pa(e,t,n,r){const i=Me(),s=_t(),o=20+e,d=i[11],p=i[o]=yl(d,t,function f(){return nt.lFrame.currentNamespace}()),b=s.firstCreatePass?function fC(e,t,n,r,i,s,o){const d=t.consts,b=Ls(t,e,2,i,rn(d,s));return Zl(t,n,b,rn(d,o)),null!==b.attrs&&Ia(b,b.attrs,!1),null!==b.mergedAttrs&&Ia(b,b.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,b),b}(o,s,i,0,t,n,r):s.data[o];Zn(b,!0);const M=b.mergedAttrs;null!==M&&xn(d,p,M);const N=b.classes;null!==N&&Ml(d,p,N);const $=b.styles;return null!==$&&od(d,p,$),64!=(64&b.flags)&&va(s,i,p,b),0===function Zi(){return nt.lFrame.elementDepthCount}()&&$n(p,i),function oo(){nt.lFrame.elementDepthCount++}(),In(b)&&(Kl(s,i,b),Ud(s,b,i)),null!==r&&Yl(i,b),Pa}function Na(){let e=sn();Fn()?Pi():(e=e.parent,Zn(e,!1));const t=e;!function ao(){nt.lFrame.elementDepthCount--}();const n=_t();return n.firstCreatePass&&(g(n,e),Wr(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function mn(e){return 0!=(16&e.flags)}(t)&&vu(n,t,Me(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function qt(e){return 0!=(32&e.flags)}(t)&&vu(n,t,Me(),t.stylesWithoutHost,!1),Na}function yu(e,t,n,r){return Pa(e,t,n,r),Na(),yu}function Ra(e,t,n){const r=Me(),i=_t(),s=e+20,o=i.firstCreatePass?function pC(e,t,n,r,i){const s=t.consts,o=rn(s,r),d=Ls(t,e,8,"ng-container",o);return null!==o&&Ia(d,o,!0),Zl(t,n,d,rn(s,i)),null!==t.queries&&t.queries.elementStart(t,d),d}(s,i,r,t,n):i.data[s];Zn(o,!0);const d=r[s]=r[11].createComment("");return va(i,r,d,o),$n(d,r),In(o)&&(Kl(i,r,o),Ud(i,o,r)),null!=n&&Yl(r,o),Ra}function La(){let e=sn();const t=_t();return Fn()?Pi():(e=e.parent,Zn(e,!1)),t.firstCreatePass&&(g(t,e),Wr(e)&&t.queries.elementEnd(e)),La}function Kh(){return Me()}function Cu(e){return!!e&&"function"==typeof e.then}function Yh(e){return!!e&&"function"==typeof e.subscribe}const Zh=Yh;function Du(e,t,n,r){const i=Me(),s=_t(),o=sn();return function Qh(e,t,n,r,i,s,o,d){const p=In(r),M=e.firstCreatePass&&nh(e),N=t[8],$=th(t);let ee=!0;if(3&r.type||d){const Ne=Tn(r,t),je=d?d(Ne):Ne,we=$.length,Ye=d?bt=>d(Kt(bt[r.index])):r.index;if(Gt(n)){let bt=null;if(!d&&p&&(bt=function gC(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const o=i[s];if(o===n&&i[s+1]===r){const d=t[7],p=i[s+2];return d.length>p?d[p]:null}"string"==typeof o&&(s+=2)}return null}(e,t,i,r.index)),null!==bt)(bt.__ngLastListenerFn__||bt).__ngNextListenerFn__=s,bt.__ngLastListenerFn__=s,ee=!1;else{s=_u(r,t,N,s,!1);const Lt=n.listen(je,i,s);$.push(s,Lt),M&&M.push(i,Ye,we,we+1)}}else s=_u(r,t,N,s,!0),je.addEventListener(i,s,o),$.push(s),M&&M.push(i,Ye,we,o)}else s=_u(r,t,N,s,!1);const ye=r.outputs;let Oe;if(ee&&null!==ye&&(Oe=ye[i])){const Ne=Oe.length;if(Ne)for(let je=0;je<Ne;je+=2){const vr=t[Oe[je]][Oe[je+1]].subscribe(s),hs=$.length;$.push(s,vr),M&&M.push(i,r.index,hs,-(hs+1))}}}(s,i,i[11],o,e,t,!!n,r),Du}function qh(e,t,n,r){try{return!1!==n(r)}catch(i){return ih(e,i),!1}}function _u(e,t,n,r,i){return function s(o){if(o===Function)return r;const d=2&e.flags?A(e.index,t):t;0==(32&t[2])&&ql(d);let p=qh(t,0,r,o),b=s.__ngNextListenerFn__;for(;b;)p=qh(t,0,b,o)&&p,b=b.__ngNextListenerFn__;return i&&!1===p&&(o.preventDefault(),o.returnValue=!1),p}}function Xh(e=1){return function el(e){return(nt.lFrame.contextLView=function Ss(e,t){for(;e>0;)t=t[15],e--;return t}(e,nt.lFrame.contextLView))[8]}(e)}function Eu(e,t,n){return Fa(e,"",t,"",n),Eu}function Fa(e,t,n,r,i){const s=Me(),o=Hs(s,t,n,r);return o!==lt&&mr(_t(),kt(),s,e,o,s[11],i,!1),Fa}function bu(e,t,n,r,i,s,o){const d=Me(),p=$s(d,t,n,r,i,s);return p!==lt&&mr(_t(),kt(),d,e,p,d[11],o,!1),bu}function lf(e,t,n,r,i){const s=e[n+1],o=null===t;let d=r?Br(s):bi(s),p=!1;for(;0!==d&&(!1===p||o);){const M=e[d+1];_C(e[d],t)&&(p=!0,e[d+1]=r?kl(M):Ll(M)),d=r?Br(M):bi(M)}p&&(e[n+1]=r?Ll(s):kl(s))}function _C(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&xs(e,t)>=0}const An={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function uf(e){return e.substring(An.key,An.keyEnd)}function cf(e,t){const n=An.textEnd;return n===t?-1:(t=An.keyEnd=function MC(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,An.key=t,n),Qs(e,t,n))}function Qs(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function wu(e,t){return function Ur(e,t,n,r){const i=Me(),s=_t(),o=Vn(2);s.firstUpdatePass&&yf(s,e,o,r),t!==lt&&Gn(i,o,t)&&Df(s,s.data[En()],i,i[11],e,i[o+1]=function LC(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=X(Ei(e)))),e}(t,n),r,o)}(e,t,null,!0),wu}function mf(e){!function Hr(e,t,n,r){const i=_t(),s=Vn(2);i.firstUpdatePass&&yf(i,null,s,r);const o=Me();if(n!==lt&&Gn(o,s,n)){const d=i.data[En()];if(Ef(d,r)&&!vf(i,s)){let p=r?d.classesWithoutHost:d.stylesWithoutHost;null!==p&&(n=Se(p,n||"")),vu(i,d,o,n,r)}else!function RC(e,t,n,r,i,s,o,d){i===lt&&(i=pt);let p=0,b=0,M=0<i.length?i[0]:null,N=0<s.length?s[0]:null;for(;null!==M||null!==N;){const $=p<i.length?i[p+1]:void 0,ee=b<s.length?s[b+1]:void 0;let Oe,ye=null;M===N?(p+=2,b+=2,$!==ee&&(ye=N,Oe=ee)):null===N||null!==M&&M<N?(p+=2,ye=M):(b+=2,ye=N,Oe=ee),null!==ye&&Df(e,t,n,r,ye,Oe,o,d),M=p<i.length?i[p]:null,N=b<s.length?s[b]:null}}(i,d,o,o[11],o[s+1],o[s+1]=function NC(e,t,n){if(null==n||""===n)return pt;const r=[],i=Ei(n);if(Array.isArray(i))for(let s=0;s<i.length;s++)e(r,i[s],!0);else if("object"==typeof i)for(const s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),r,s)}}(gr,li,e,!0)}function li(e,t){for(let n=function bC(e){return function hf(e){An.key=0,An.keyEnd=0,An.value=0,An.valueEnd=0,An.textEnd=e.length}(e),cf(e,Qs(e,0,An.textEnd))}(t);n>=0;n=cf(t,n))gr(e,uf(t),!0)}function vf(e,t){return t>=e.expandoStartIndex}function yf(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[En()],o=vf(e,n);Ef(s,r)&&null===t&&!o&&(t=!1),t=function TC(e,t,n,r){const i=function es(e){const t=nt.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=Ho(n=Mu(null,e,t,n,r),t.attrs,r),s=null);else{const o=t.directiveStylingLast;if(-1===o||e[o]!==i)if(n=Mu(i,e,t,n,r),null===s){let p=function xC(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==bi(r))return e[Br(r)]}(e,t,r);void 0!==p&&Array.isArray(p)&&(p=Mu(null,e,t,p[1],r),p=Ho(p,t.attrs,r),function OC(e,t,n,r){e[Br(n?t.classBindings:t.styleBindings)]=r}(e,t,r,p))}else s=function PC(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=Ho(r,e[s].hostAttrs,n);return Ho(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function CC(e,t,n,r,i,s){let o=s?t.classBindings:t.styleBindings,d=Br(o),p=bi(o);e[r]=n;let M,b=!1;if(Array.isArray(n)){const N=n;M=N[1],(null===M||xs(N,M)>0)&&(b=!0)}else M=n;if(i)if(0!==p){const $=Br(e[d+1]);e[r+1]=ba($,d),0!==$&&(e[$+1]=Fl(e[$+1],r)),e[d+1]=function Nv(e,t){return 131071&e|t<<17}(e[d+1],r)}else e[r+1]=ba(d,0),0!==d&&(e[d+1]=Fl(e[d+1],r)),d=r;else e[r+1]=ba(p,0),0===d?d=r:e[p+1]=Fl(e[p+1],r),p=r;b&&(e[r+1]=Ll(e[r+1])),lf(e,M,r,!0),lf(e,M,r,!1),function DC(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&xs(s,t)>=0&&(n[r+1]=kl(n[r+1]))}(t,M,e,r,s),o=ba(d,p),s?t.classBindings=o:t.styleBindings=o}(i,s,t,n,o,r)}}function Mu(e,t,n,r,i){let s=null;const o=n.directiveEnd;let d=n.directiveStylingLast;for(-1===d?d=n.directiveStart:d++;d<o&&(s=t[d],r=Ho(r,s.hostAttrs,i),s!==e);)d++;return null!==e&&(n.directiveStylingLast=d),r}function Ho(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?i=o:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),gr(e,o,!!n||t[++s]))}return void 0===e?null:e}function Df(e,t,n,r,i,s,o,d){if(!(3&t.type))return;const p=e.data,b=p[d+1];ka(function Od(e){return 1==(1&e)}(b)?_f(p,t,n,i,bi(b),o):void 0)||(ka(s)||function xd(e){return 2==(2&e)}(b)&&(s=_f(p,null,n,i,d,o)),function Pm(e,t,n,r,i){const s=Gt(e);if(t)i?s?e.addClass(n,r):n.classList.add(r):s?e.removeClass(n,r):n.classList.remove(r);else{let o=-1===r.indexOf("-")?void 0:ti.DashCase;if(null==i)s?e.removeStyle(n,r,o):n.style.removeProperty(r);else{const d="string"==typeof i&&i.endsWith("!important");d&&(i=i.slice(0,-10),o|=ti.Important),s?e.setStyle(n,r,i,o):n.style.setProperty(r,i,d?"important":"")}}}(r,o,xi(En(),n),i,s))}function _f(e,t,n,r,i,s){const o=null===t;let d;for(;i>0;){const p=e[i],b=Array.isArray(p),M=b?p[1]:p,N=null===M;let $=n[i+1];$===lt&&($=N?pt:void 0);let ee=N?ol($,r):M===r?$:void 0;if(b&&!ka(ee)&&(ee=ol(p,r)),ka(ee)&&(d=ee,o))return d;const ye=e[i+1];i=o?Br(ye):bi(ye)}if(null!==t){let p=s?t.residualClasses:t.residualStyles;null!=p&&(d=ol(p,r))}return d}function ka(e){return void 0!==e}function Ef(e,t){return 0!=(e.flags&(t?16:32))}function bf(e,t=""){const n=Me(),r=_t(),i=e+20,s=r.firstCreatePass?Ls(r,i,1,t,null):r.data[i],o=n[i]=function vl(e,t){return Gt(e)?e.createText(t):e.createTextNode(t)}(n[11],t);va(r,n,o,s),Zn(s,!1)}function Su(e){return Va("",e,""),Su}function Va(e,t,n){const r=Me(),i=Hs(r,e,t,n);return i!==lt&&wi(r,En(),i),Va}function Au(e,t,n,r,i){const s=Me(),o=$s(s,e,t,n,r,i);return o!==lt&&wi(s,En(),o),Au}function Iu(e,t,n,r,i,s,o){const d=Me(),p=function Gs(e,t,n,r,i,s,o,d){const b=xa(e,kn(),n,i,o);return Vn(3),b?t+Fe(n)+r+Fe(i)+s+Fe(o)+d:lt}(d,e,t,n,r,i,s,o);return p!==lt&&wi(d,En(),p),Iu}function Tu(e,t,n,r,i,s,o,d,p){const b=Me(),M=function zs(e,t,n,r,i,s,o,d,p,b){const N=Ar(e,kn(),n,i,o,p);return Vn(4),N?t+Fe(n)+r+Fe(i)+s+Fe(o)+d+Fe(p)+b:lt}(b,e,t,n,r,i,s,o,d,p);return M!==lt&&wi(b,En(),M),Tu}const us=void 0;var tD=["en",[["a","p"],["AM","PM"],us],[["AM","PM"],us,us],[["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"]],us,[["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"]],us,[["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}",us,"{1} 'at' {0}",us],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function eD(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let qs={};function nD(e,t,n){"string"!=typeof t&&(n=t,t=e[Qe.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),qs[t]=e,n&&(qs[t][Qe.ExtraData]=n)}function xu(e){const t=function rD(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Uf(t);if(n)return n;const r=t.split("-")[0];if(n=Uf(r),n)return n;if("en"===r)return tD;throw new Error(`Missing locale data for the locale "${e}".`)}function jf(e){return xu(e)[Qe.PluralCase]}function Uf(e){return e in qs||(qs[e]=te.ng&&te.ng.common&&te.ng.common.locales&&te.ng.common.locales[e]),qs[e]}var Qe=(()=>((Qe=Qe||{})[Qe.LocaleId=0]="LocaleId",Qe[Qe.DayPeriodsFormat=1]="DayPeriodsFormat",Qe[Qe.DayPeriodsStandalone=2]="DayPeriodsStandalone",Qe[Qe.DaysFormat=3]="DaysFormat",Qe[Qe.DaysStandalone=4]="DaysStandalone",Qe[Qe.MonthsFormat=5]="MonthsFormat",Qe[Qe.MonthsStandalone=6]="MonthsStandalone",Qe[Qe.Eras=7]="Eras",Qe[Qe.FirstDayOfWeek=8]="FirstDayOfWeek",Qe[Qe.WeekendRange=9]="WeekendRange",Qe[Qe.DateFormat=10]="DateFormat",Qe[Qe.TimeFormat=11]="TimeFormat",Qe[Qe.DateTimeFormat=12]="DateTimeFormat",Qe[Qe.NumberSymbols=13]="NumberSymbols",Qe[Qe.NumberFormats=14]="NumberFormats",Qe[Qe.CurrencyCode=15]="CurrencyCode",Qe[Qe.CurrencySymbol=16]="CurrencySymbol",Qe[Qe.CurrencyName=17]="CurrencyName",Qe[Qe.Currencies=18]="Currencies",Qe[Qe.Directionality=19]="Directionality",Qe[Qe.PluralCase=20]="PluralCase",Qe[Qe.ExtraData=21]="ExtraData",Qe))();const Ba="en-US";let Hf=Ba;function Nu(e,t,n,r,i){if(e=xe(e),Array.isArray(e))for(let s=0;s<e.length;s++)Nu(e[s],t,n,r,i);else{const s=_t(),o=Me();let d=Bs(e)?e:xe(e.provide),p=ch(e);const b=sn(),M=1048575&b.providerIndexes,N=b.directiveStart,$=b.providerIndexes>>20;if(Bs(e)||!e.multi){const ee=new vt(p,i,Uo),ye=Lu(d,t,i?M:M+$,N);-1===ye?(As(rs(b,o),s,d),Ru(s,e,t.length),t.push(d),b.directiveStart++,b.directiveEnd++,i&&(b.providerIndexes+=1048576),n.push(ee),o.push(ee)):(n[ye]=ee,o[ye]=ee)}else{const ee=Lu(d,t,M+$,N),ye=Lu(d,t,M,M+$),Oe=ee>=0&&n[ee],Ne=ye>=0&&n[ye];if(i&&!Ne||!i&&!Oe){As(rs(b,o),s,d);const je=function t_(e,t,n,r,i){const s=new vt(e,n,Uo);return s.multi=[],s.index=t,s.componentProviders=0,hp(s,i,r&&!n),s}(i?e_:XD,n.length,i,r,p);!i&&Ne&&(n[ye].providerFactory=je),Ru(s,e,t.length,0),t.push(d),b.directiveStart++,b.directiveEnd++,i&&(b.providerIndexes+=1048576),n.push(je),o.push(je)}else Ru(s,e,ee>-1?ee:ye,hp(n[i?ye:ee],p,!i&&r));!i&&r&&Ne&&n[ye].componentProviders++}}}function Ru(e,t,n,r){const i=Bs(t),s=function wy(e){return!!e.useClass}(t);if(i||s){const p=(s?xe(t.useClass):t).prototype.ngOnDestroy;if(p){const b=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const M=b.indexOf(n);-1===M?b.push(n,[r,p]):b[M+1].push(r,p)}else b.push(n,p)}}}function hp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Lu(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function XD(e,t,n,r){return Fu(this.multi,[])}function e_(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,d=h(n,n[1],this.providerFactory.index,r);s=d.slice(0,o),Fu(i,s);for(let p=o;p<d.length;p++)s.push(d[p])}else s=[],Fu(i,s);return s}function Fu(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function fp(e,t=[]){return n=>{n.providersResolver=(r,i)=>function qD(e,t,n){const r=_t();if(r.firstCreatePass){const i=tn(e);Nu(n,r.data,r.blueprint,i,!0),Nu(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}class pp{}class i_{resolveComponentFactory(t){throw function r_(e){const t=Error(`No component factory found for ${X(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(t)}}let Ga=(()=>{class e{}return e.NULL=new i_,e})();function s_(){return eo(sn(),Me())}function eo(e,t){return new Ko(Tn(e,t))}let Ko=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=s_,e})();function o_(e){return e instanceof Ko?e.nativeElement:e}class mp{}let a_=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function u_(){const e=Me(),n=A(sn().index,e);return function l_(e){return e[11]}(nr(n)?n:e)}(),e})(),c_=(()=>{class e{}return e.\u0275prov=ot({token:e,providedIn:"root",factory:()=>null}),e})();class vp{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const d_=new vp("13.4.0"),ku={};function za(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];if(null!==s&&r.push(Kt(s)),gn(s))for(let d=10;d<s.length;d++){const p=s[d],b=p[1].firstChild;null!==b&&za(p[1],p,b,r)}const o=n.type;if(8&o)za(e,t,n.child,r);else if(32&o){const d=pl(n,t);let p;for(;p=d();)r.push(p)}else if(16&o){const d=id(t,n);if(Array.isArray(d))r.push(...d);else{const p=Oo(t[16]);za(p[1],p,d,r,!0)}}n=i?n.projectionNext:n.next}return r}class Yo{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return za(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(gn(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Cl(t,r),da(n,r))}this._attachedToViewContainer=!1}Zc(this._lView[1],this._lView)}onDestroy(t){zd(this._lView[1],this._lView,null,t)}markForCheck(){ql(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function eu(e,t,n){const r=t[10];r.begin&&r.begin();try{ks(e,t,e.template,n)}catch(i){throw ih(t,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Le(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Em(e,t){Po(e,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Le(902,"");this._appRef=t}}class h_ extends Yo{constructor(t){super(t),this._view=t}detectChanges(){eh(this._view)}checkNoChanges(){}get context(){return null}}class yp extends Ga{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Ft(t);return new Vu(n,this.ngModule)}}function Cp(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class Vu extends pp{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Ov(e){return e.map(xv).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Cp(this.componentDef.inputs)}get outputs(){return Cp(this.componentDef.outputs)}create(t,n,r,i){const s=(i=i||this.ngModule)?function p_(e,t){return{get:(n,r,i)=>{const s=e.get(n,ku,i);return s!==ku||r===ku?s:t.get(n,r,i)}}}(t,i.injector):t,o=s.get(mp,Jr),d=s.get(c_,null),p=o.createRenderer(null,this.componentDef),b=this.componentDef.selectors[0][0]||"div",M=r?function Gd(e,t,n){if(Gt(e))return e.selectRootElement(t,n===at.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(p,r,this.componentDef.encapsulation):yl(o.createRenderer(null,this.componentDef),b,function f_(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(b)),N=this.componentDef.onPush?576:528,$=function Eh(e,t){return{components:[],scheduler:e||yv,clean:gy,playerHandler:t||null,flags:0}}(),ee=Sa(0,null,null,1,0,null,null,null,null,null),ye=Fo(null,ee,$,N,null,null,o,p,d,s);let Oe,Ne;Ri(ye);try{const je=function Dh(e,t,n,r,i,s){const o=n[1];n[20]=e;const p=Ls(o,20,2,"#host",null),b=p.mergedAttrs=t.hostAttrs;null!==b&&(Ia(p,b,!0),null!==e&&(xn(i,e,b),null!==p.classes&&Ml(i,e,p.classes),null!==p.styles&&od(i,e,p.styles)));const M=r.createRenderer(e,t),N=Fo(n,Hd(t),null,t.onPush?64:16,n[20],p,r,M,s||null,null);return o.firstCreatePass&&(As(rs(p,n),o,t.type),Jd(o,p),Qd(p,n.length,1)),Aa(n,N),n[20]=N}(M,this.componentDef,ye,o,p);if(M)if(r)xn(p,M,["ng-version",d_.full]);else{const{attrs:we,classes:Ye}=function Pv(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!Vr(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);we&&xn(p,M,we),Ye&&Ye.length>0&&Ml(p,M,Ye.join(" "))}if(Ne=y(ee,20),void 0!==n){const we=Ne.projection=[];for(let Ye=0;Ye<this.ngContentSelectors.length;Ye++){const bt=n[Ye];we.push(null!=bt?Array.from(bt):null)}}Oe=function _h(e,t,n,r,i){const s=n[1],o=function Xv(e,t,n){const r=sn();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),qd(e,r,t,Fs(e,t,1,null),n));const i=h(t,e,r.directiveStart,r);$n(i,t);const s=Tn(r,t);return s&&$n(s,t),i}(s,n,t);if(r.components.push(o),e[8]=o,i&&i.forEach(p=>p(o,t)),t.contentQueries){const p=sn();t.contentQueries(1,o,p.directiveStart)}const d=sn();return!s.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(sr(d.index),Yd(n[1],d,0,d.directiveStart,d.directiveEnd,t),Zd(t,o)),o}(je,this.componentDef,ye,$,[Ly]),ko(ee,ye,null)}finally{yi()}return new m_(this.componentType,Oe,eo(Ne,ye),ye,Ne)}}class m_ extends class n_{}{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new h_(i),this.componentType=t}get injector(){return new _(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}class to{}class Dp{}const no=new Map;class bp extends to{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new yp(this);const r=_n(t);this._bootstrapComponents=ri(r.bootstrap),this._r3Injector=uh(t,n,[{provide:to,useValue:this},{provide:Ga,useValue:this.componentFactoryResolver}],X(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=si.THROW_IF_NOT_FOUND,r=V.Default){return t===si||t===to||t===nu?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 Bu extends Dp{constructor(t){super(),this.moduleType=t,null!==_n(t)&&function y_(e){const t=new Set;!function n(r){const i=_n(r,!0),s=i.id;null!==s&&(function _p(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${X(t)} vs ${X(t.name)}`)}(s,no.get(s),r),no.set(s,r));const o=ri(i.imports);for(const d of o)t.has(d)||(t.add(d),n(d))}(e)}(t)}create(t){return new bp(this.moduleType,t)}}function wp(e,t,n){const r=Mn()+e,i=Me();return i[r]===lt?oi(i,r,n?t.call(n):t()):function jo(e,t){return e[t]}(i,r)}function Mp(e,t,n,r){return Ap(Me(),Mn(),e,t,n,r)}function Sp(e,t,n,r,i){return Ip(Me(),Mn(),e,t,n,r,i)}function Zo(e,t){const n=e[t];return n===lt?void 0:n}function Ap(e,t,n,r,i,s){const o=t+n;return Gn(e,o,i)?oi(e,o+1,s?r.call(s,i):r(i)):Zo(e,o+1)}function Ip(e,t,n,r,i,s,o){const d=t+n;return ls(e,d,i,s)?oi(e,d+2,o?r.call(o,i,s):r(i,s)):Zo(e,d+2)}function Pp(e,t){const n=_t();let r;const i=e+20;n.firstCreatePass?(r=function S_(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=Yn(r.type)),o=w(Uo);try{const d=mo(!1),p=s();return mo(d),function Ky(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,Me(),i,p),p}finally{w(o)}}function Np(e,t,n){const r=e+20,i=Me(),s=m(i,r);return Jo(i,r)?Ap(i,Mn(),t,s.transform,n,s):s.transform(n)}function Rp(e,t,n,r){const i=e+20,s=Me(),o=m(s,i);return Jo(s,i)?Ip(s,Mn(),t,o.transform,n,r,o):o.transform(n,r)}function Lp(e,t,n,r,i){const s=e+20,o=Me(),d=m(o,s);return Jo(o,s)?function Tp(e,t,n,r,i,s,o,d){const p=t+n;return xa(e,p,i,s,o)?oi(e,p+3,d?r.call(d,i,s,o):r(i,s,o)):Zo(e,p+3)}(o,Mn(),t,d.transform,n,r,i,d):d.transform(n,r,i)}function Fp(e,t,n,r,i,s){const o=e+20,d=Me(),p=m(d,o);return Jo(d,o)?function xp(e,t,n,r,i,s,o,d,p){const b=t+n;return Ar(e,b,i,s,o,d)?oi(e,b+4,p?r.call(p,i,s,o,d):r(i,s,o,d)):Zo(e,b+4)}(d,Mn(),t,p.transform,n,r,i,s,p):p.transform(n,r,i,s)}function Jo(e,t){return e[1].data[t].pure}function ju(e){return t=>{setTimeout(e,void 0,t)}}const ui=class I_ extends c.xQ{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var i,s,o;let d=t,p=n||(()=>null),b=r;if(t&&"object"==typeof t){const N=t;d=null===(i=N.next)||void 0===i?void 0:i.bind(N),p=null===(s=N.error)||void 0===s?void 0:s.bind(N),b=null===(o=N.complete)||void 0===o?void 0:o.bind(N)}this.__isAsync&&(p=ju(p),d&&(d=ju(d)),b&&(b=ju(b)));const M=super.subscribe({next:d,error:p,complete:b});return t instanceof u.w&&t.add(M),M}};function T_(){return this._results[js()]()}class Uu{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=js(),r=Uu.prototype;r[n]||(r[n]=T_)}get changes(){return this._changes||(this._changes=new ui)}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=Sr(t);(this._changesDetected=!function kg(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],s=t[r];if(n&&(i=n(i),s=n(s)),s!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Qo=(()=>{class e{}return e.__NG_ELEMENT_ID__=P_,e})();const x_=Qo,O_=class extends x_{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Fo(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)),ko(n,r,t),new Yo(r)}};function P_(){return Wa(sn(),Me())}function Wa(e,t){return 4&e.type?new O_(t,e,eo(e,t)):null}let Ka=(()=>{class e{}return e.__NG_ELEMENT_ID__=N_,e})();function N_(){return Bp(sn(),Me())}const R_=Ka,kp=class extends R_{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return eo(this._hostTNode,this._hostLView)}get injector(){return new _(this._hostTNode,this._hostLView)}get parentInjector(){const t=is(this._hostTNode,this._hostLView);if(go(t)){const n=Di(t,this._hostLView),r=ki(t);return new _(n[1].data[r+8],n)}return new _(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Vp(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 o=t&&!function Eo(e){return"function"==typeof e}(t);let d;if(o)d=n;else{const N=n||{};d=N.index,r=N.injector,i=N.projectableNodes,s=N.ngModuleRef}const p=o?t:new Vu(Ft(t)),b=r||this.parentInjector;if(!s&&null==p.ngModule){const $=(o?b:this.parentInjector).get(to,null);$&&(s=$)}const M=p.create(b,i,void 0,s);return this.insert(M.hostView,d),M}insert(t,n){const r=t._lView,i=r[1];if(function nn(e){return gn(e[3])}(r)){const M=this.indexOf(t);if(-1!==M)this.detach(M);else{const N=r[3],$=new kp(N,N[6],N[3]);$.detach($.indexOf(t))}}const s=this._adjustIndex(n),o=this._lContainer;!function wm(e,t,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=t),r<s-10?(t[4]=n[i],Mc(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function Mm(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const d=t[19];null!==d&&d.insertView(e),t[2]|=128}(i,r,o,s);const d=El(s,o),p=r[11],b=ma(p,o[7]);return null!==b&&function _m(e,t,n,r,i,s){r[0]=i,r[6]=t,Po(e,r,n,1,i,s)}(i,o[6],p,r,b,d),t.attachToViewContainerRef(),Mc(Hu(o),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=Vp(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Cl(this._lContainer,n);r&&(da(Hu(this._lContainer),n),Zc(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Cl(this._lContainer,n);return r&&null!=da(Hu(this._lContainer),n)?new Yo(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function Vp(e){return e[8]}function Hu(e){return e[8]||(e[8]=[])}function Bp(e,t){let n;const r=t[e.index];if(gn(r))n=r;else{let i;if(8&e.type)i=Kt(r);else{const s=t[11];i=s.createComment("");const o=Tn(e,t);ss(s,ma(s,o),i,function Tm(e,t){return Gt(e)?e.nextSibling(t):t.nextSibling}(s,o),!1)}t[e.index]=n=Xd(r,t,i,e),Aa(t,n)}return new kp(n,e,t)}class $u{constructor(t){this.queryList=t,this.matches=null}clone(){return new $u(this.queryList)}setDirty(){this.queryList.setDirty()}}class Gu{constructor(t=[]){this.queries=t}createEmbeddedView(t){const n=t.queries;if(null!==n){const r=null!==t.contentQueries?t.contentQueries[0]:n.length,i=[];for(let s=0;s<r;s++){const o=n.getByIndex(s);i.push(this.queries[o.indexInDeclarationView].clone())}return new Gu(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==Yp(t,n).matches&&this.queries[n].setDirty()}}class jp{constructor(t,n,r=null){this.predicate=t,this.flags=n,this.read=r}}class zu{constructor(t=[]){this.queries=t}elementStart(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(t,n)}elementEnd(t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(t)}embeddedTView(t){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,s=this.getByIndex(r).embeddedTView(t,i);s&&(s.indexInDeclarationView=r,null!==n?n.push(s):n=[s])}return null!==n?new zu(n):null}template(t,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(t,n)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Wu{constructor(t,n=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(t,n){this.isApplyingToNode(n)&&this.matchTNode(t,n)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,n){this.elementStart(t,n)}embeddedTView(t,n){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,n),new Wu(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=t.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(t,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const s=r[i];this.matchTNodeWithReadOption(t,n,k_(n,s)),this.matchTNodeWithReadOption(t,n,Do(n,t,s,!1,!1))}else r===Qo?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,Do(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===Ko||i===Ka||i===Qo&&4&n.type)this.addMatch(n.index,-2);else{const s=Do(n,t,i,!1,!1);null!==s&&this.addMatch(n.index,s)}else this.addMatch(n.index,r)}}addMatch(t,n){null===this.matches?this.matches=[t,n]:this.matches.push(t,n)}}function k_(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function B_(e,t,n,r){return-1===n?function V_(e,t){return 11&e.type?eo(e,t):4&e.type?Wa(e,t):null}(t,e):-2===n?function j_(e,t,n){return n===Ko?eo(t,e):n===Qo?Wa(t,e):n===Ka?Bp(t,e):void 0}(e,t,r):h(e,e[1],n,t)}function Up(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const s=e.data,o=n.matches,d=[];for(let p=0;p<o.length;p+=2){const b=o[p];d.push(b<0?null:B_(t,s[b],o[p+1],n.metadata.read))}i.matches=d}return i.matches}function Ku(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const o=Up(e,t,i,n);for(let d=0;d<s.length;d+=2){const p=s[d];if(p>0)r.push(o[d/2]);else{const b=s[d+1],M=t[-p];for(let N=10;N<M.length;N++){const $=M[N];$[17]===$[3]&&Ku($[1],$,b,r)}if(null!==M[9]){const N=M[9];for(let $=0;$<N.length;$++){const ee=N[$];Ku(ee[1],ee,b,r)}}}}}return r}function Hp(e){const t=Me(),n=_t(),r=bs();Ni(r+1);const i=Yp(n,r);if(e.dirty&&he(t)===(2==(2&i.metadata.flags))){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?Ku(n,t,r,[]):Up(n,t,i,r);e.reset(s,o_),e.notifyOnChanges()}return!0}return!1}function $p(e,t,n){const r=_t();r.firstCreatePass&&(Kp(r,new jp(e,t,n),-1),2==(2&t)&&(r.staticViewQueries=!0)),Wp(r,Me(),t)}function Gp(e,t,n,r){const i=_t();if(i.firstCreatePass){const s=sn();Kp(i,new jp(t,n,r),s.index),function H_(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(i,e),2==(2&n)&&(i.staticContentQueries=!0)}Wp(i,Me(),n)}function zp(){return function U_(e,t){return e[19].queries[t].queryList}(Me(),bs())}function Wp(e,t,n){const r=new Uu(4==(4&n));zd(e,t,r,r.destroy),null===t[19]&&(t[19]=new Gu),t[19].queries.push(new $u(r))}function Kp(e,t,n){null===e.queries&&(e.queries=new zu),e.queries.track(new Wu(t,n))}function Yp(e,t){return e.queries.getByIndex(t)}function Zp(e,t){return Wa(e,t)}function Ja(...e){}const hg=new zt("Application Initializer");let Xu=(()=>{class e{constructor(n){this.appInits=n,this.resolve=Ja,this.reject=Ja,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<this.appInits.length;i++){const s=this.appInits[i]();if(Cu(s))n.push(s);else if(Zh(s)){const o=new Promise((d,p)=>{s.subscribe({complete:d,error:p})});n.push(o)}}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)(Bn(hg,8))},e.\u0275prov=ot({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const fg=new zt("AppId",{providedIn:"root",factory:function pg(){return`${ec()}${ec()}${ec()}`}});function ec(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gg=new zt("Platform Initializer"),sE=new zt("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mg=new zt("appBootstrapListener");let oE=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ot({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const tc=new zt("LocaleId",{providedIn:"root",factory:()=>Jg(tc,V.Optional|V.SkipSelf)||function aE(){return"undefined"!=typeof $localize&&$localize.locale||Ba}()}),lE=new zt("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class uE{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let cE=(()=>{class e{compileModuleSync(n){return new Bu(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=ri(_n(n).declarations).reduce((o,d)=>{const p=Ft(d);return p&&o.push(new Vu(p)),o},[]);return new uE(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=ot({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hE=(()=>Promise.resolve(0))();function nc(e){"undefined"==typeof Zone?hE.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class $r{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ui(!1),this.onMicrotaskEmpty=new ui(!1),this.onStable=new ui(!1),this.onError=new ui(!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 fE(){let e=te.requestAnimationFrame,t=te.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 mE(e){const t=()=>{!function gE(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(te,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,ic(e),e.isCheckStableRunning=!0,rc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),ic(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,o,d)=>{try{return vg(e),n.invokeTask(i,s,o,d)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),yg(e)}},onInvoke:(n,r,i,s,o,d,p)=>{try{return vg(e),n.invoke(i,s,o,d,p)}finally{e.shouldCoalesceRunChangeDetection&&t(),yg(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,ic(e),rc(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"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!$r.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if($r.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,o=s.scheduleEventTask("NgZoneEvent: "+i,t,pE,Ja,Ja);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const pE={};function rc(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 ic(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function vg(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function yg(e){e._nesting--,rc(e)}class vE{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ui,this.onMicrotaskEmpty=new ui,this.onStable=new ui,this.onError=new ui}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 Cg=(()=>{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:()=>{$r.assertNotInAngularZone(),nc(()=>{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())nc(()=>{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(o=>o.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)(Bn($r))},e.\u0275prov=ot({token:e,factory:e.\u0275fac}),e})(),yE=(()=>{class e{constructor(){this._applications=new Map,sc.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 sc.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ot({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();class CE{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}function DE(e){sc=e}let sc=new CE,cs=null;const Dg=new zt("AllowMultipleToken"),_g=new zt("PlatformOnDestroy");class bE{constructor(t,n){this.name=t,this.token=n}}function Eg(e,t,n=[]){const r=`Platform: ${t}`,i=new zt(r);return(s=[])=>{let o=oc();if(!o||o.injector.get(Dg,!1)){const d=[...n,...s,{provide:i,useValue:!0}];e?e(d):function wE(e){if(cs&&!cs.get(Dg,!1))throw new Le(400,"");cs=e;const t=e.get(bg),n=e.get(gg,null);n&&n.forEach(r=>r())}(function SE(e=[],t){return si.create({name:t,providers:[{provide:ru,useValue:"platform"},{provide:_g,useValue:()=>cs=null},...e]})}(d,r))}return function ME(e){const t=oc();if(!t)throw new Le(401,"");return t}()}}function oc(){var e;return null!==(e=null==cs?void 0:cs.get(bg))&&void 0!==e?e:null}let bg=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const d=function AE(e,t){let n;return n="noop"===e?new vE:("zone.js"===e?void 0:e)||new $r({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}),p=[{provide:$r,useValue:d}];return d.run(()=>{const b=si.create({providers:p,parent:this.injector,name:n.moduleType.name}),M=n.create(b),N=M.injector.get(Ea,null);if(!N)throw new Le(402,"");return d.runOutsideAngular(()=>{const $=d.onError.subscribe({next:ee=>{N.handleError(ee)}});M.onDestroy(()=>{lc(this._modules,M),$.unsubscribe()})}),function IE(e,t,n){try{const r=n();return Cu(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(N,d,()=>{const $=M.injector.get(Xu);return $.runInitializers(),$.donePromise.then(()=>(function aD(e){ht(e,"Expected localeId to be defined"),"string"==typeof e&&(Hf=e.toLowerCase().replace(/_/g,"-"))}(M.injector.get(tc,Ba)||Ba),this._moduleDoBootstrap(M),M))})})}bootstrapModule(n,r=[]){const i=wg({},r);return function _E(e,t,n){const r=new Bu(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(ac);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Le(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 Le(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(_g,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(Bn(si))},e.\u0275prov=ot({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function wg(e,t){return Array.isArray(t)?t.reduce(wg,e):Object.assign(Object.assign({},e),t)}let ac=(()=>{class e{constructor(n,r,i,s){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=s,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 o=new H.y(p=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{p.next(this._stable),p.complete()})}),d=new H.y(p=>{let b;this._zone.runOutsideAngular(()=>{b=this._zone.onStable.subscribe(()=>{$r.assertNotInAngularZone(),nc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,p.next(!0))})})});const M=this._zone.onUnstable.subscribe(()=>{$r.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{p.next(!1)}))});return()=>{b.unsubscribe(),M.unsubscribe()}});this.isStable=function j(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return(0,J.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 H.y?e[0]:(0,W.J)(t)((0,Z.n)(e,n))}(o,d.pipe(function se(){return e=>(0,R.x)()(function O(e,t){return function(r){let i;if(i="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new T(i,t));const s=Object.create(r,z.N);return s.source=r,s.subjectFactory=i,s}}(q)(e))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Le(405,"");let i;i=n instanceof pp?n:this._injector.get(Ga).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const s=function EE(e){return e.isBoundToModule}(i)?void 0:this._injector.get(to),d=i.create(si.NULL,[],r||i.selector,s),p=d.location.nativeElement,b=d.injector.get(Cg,null),M=b&&d.injector.get(yE);return b&&M&&M.registerApplication(p,b),d.onDestroy(()=>{this.detachView(d.hostView),lc(this.components,d),M&&M.unregisterApplication(p)}),this._loadComponent(d),d}tick(){if(this._runningTick)throw new Le(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;lc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(mg,[]).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)(Bn($r),Bn(si),Bn(Ea),Bn(Xu))},e.\u0275prov=ot({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function lc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}let Sg=!0;function xE(){Sg=!1}let OE=(()=>{class e{}return e.__NG_ELEMENT_ID__=PE,e})();function PE(e){return function NE(e,t,n){if(rr(e)&&!n){const r=A(e.index,t);return new Yo(r,r)}return 47&e.type?new Yo(t[16],t):null}(sn(),Me(),16==(16&e))}class Og{constructor(){}supports(t){return Bo(t)}create(t){return new BE(t)}}const VE=(e,t)=>t;class BE{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||VE}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 o=!r||n&&n.currentIndex<Ng(r,i,s)?n:r,d=Ng(o,i,s),p=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(n=n._next,null==o.previousIndex)i++;else{s||(s=[]);const b=d-i,M=p-i;if(b!=M){for(let $=0;$<b;$++){const ee=$<s.length?s[$]:s[$]=0,ye=ee+$;M<=ye&&ye<b&&(s[$]=ee+1)}s[o.previousIndex]=M-b}}d!==p&&t(o,d,p)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!Bo(t))throw new Le(900,"");return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,o,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let d=0;d<this.length;d++)s=t[d],o=this._trackByFn(d,s),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,s,o,d)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,o,d),r=!0),n=n._next}else i=0,function zy(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[js()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,d=>{o=this._trackByFn(i,d),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,d,o,i)),Object.is(n.item,d)||this._addIdentityChange(n,d)):(n=this._mismatch(n,d,o,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 jE(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 Pg),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 Pg),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 jE{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 UE{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 Pg{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new UE,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 Ng(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class Rg{constructor(){}supports(t){return t instanceof Map||cu(t)}create(){return new HE}}class HE{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||cu(t)))throw new Le(900,"")}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,i)=>{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,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new $E(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 $E{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 Lg(){return new fc([new Og])}let fc=(()=>{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||Lg()),deps:[[e,new Io,new Ao]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Le(901,"")}}return e.\u0275prov=ot({token:e,providedIn:"root",factory:Lg}),e})();function Fg(){return new pc([new Rg])}let pc=(()=>{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||Fg()),deps:[[e,new Io,new Ao]]}}find(n){const r=this.factories.find(s=>s.supports(n));if(r)return r;throw new Le(901,"")}}return e.\u0275prov=ot({token:e,providedIn:"root",factory:Fg}),e})();const WE=Eg(null,"core",[]);let KE=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(Bn(ac))},e.\u0275mod=ft({type:e}),e.\u0275inj=Ct({}),e})()},3075:(Re,oe,C)=>{C.d(oe,{Cf:()=>Se,EJ:()=>fi,F:()=>At,Fj:()=>ne,JJ:()=>Cn,JL:()=>$t,Kr:()=>ms,On:()=>Nn,Q7:()=>hr,UX:()=>Qr,Wl:()=>T,YN:()=>Gi,Zs:()=>Qt,_:()=>rr,_Y:()=>Rn,c5:()=>wr,nD:()=>Hn,on:()=>Ti,u5:()=>Kt,wO:()=>Ln});var c=C(2096),u=C(9808),H=C(5254),J=C(567),W=C(4850);let Z=(()=>{class D{constructor(m,A){this._renderer=m,this._elementRef=A,this.onChange=he=>{},this.onTouched=()=>{}}setProperty(m,A){this._renderer.setProperty(this._elementRef.nativeElement,m,A)}registerOnTouched(m){this.onTouched=m}registerOnChange(m){this.onChange=m}setDisabledState(m){this.setProperty("disabled",m)}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(c.Qsj),c.Y36(c.SBq))},D.\u0275dir=c.lG2({type:D}),D})(),j=(()=>{class D extends Z{}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,features:[c.qOj]}),D})();const z=new c.OlP("NgValueAccessor"),O={provide:z,useExisting:(0,c.Gpc)(()=>T),multi:!0};let T=(()=>{class D extends j{writeValue(m){this.setProperty("checked",m)}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(m,A){1&m&&c.NdJ("change",function(Ue){return A.onChange(Ue.target.checked)})("blur",function(){return A.onTouched()})},features:[c._Bn([O]),c.qOj]}),D})();const R={provide:z,useExisting:(0,c.Gpc)(()=>ne),multi:!0},se=new c.OlP("CompositionEventMode");let ne=(()=>{class D extends Z{constructor(m,A,he){super(m,A),this._compositionMode=he,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function q(){const D=(0,u.q)()?(0,u.q)().getUserAgent():"";return/android (\d+)/.test(D.toLowerCase())}())}writeValue(m){this.setProperty("value",null==m?"":m)}_handleInput(m){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(m)}_compositionStart(){this._composing=!0}_compositionEnd(m){this._composing=!1,this._compositionMode&&this.onChange(m)}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(c.Qsj),c.Y36(c.SBq),c.Y36(se,8))},D.\u0275dir=c.lG2({type:D,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(m,A){1&m&&c.NdJ("input",function(Ue){return A._handleInput(Ue.target.value)})("blur",function(){return A.onTouched()})("compositionstart",function(){return A._compositionStart()})("compositionend",function(Ue){return A._compositionEnd(Ue.target.value)})},features:[c._Bn([R]),c.qOj]}),D})();function ce(D){return null==D||0===D.length}function X(D){return null!=D&&"number"==typeof D.length}const Se=new c.OlP("NgValidators"),Te=new c.OlP("NgAsyncValidators"),Ie=/^(?=.{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])?)*$/;function Le(D){return ce(D.value)?{required:!0}:null}function Ze(D){return!0===D.value?null:{required:!0}}function Fe(D){return ce(D.value)||Ie.test(D.value)?null:{email:!0}}function ge(D){return null}function fe(D){return null!=D}function De(D){const y=(0,c.QGY)(D)?(0,H.D)(D):D;return(0,c.CqO)(y),y}function ue(D){let y={};return D.forEach(m=>{y=null!=m?Object.assign(Object.assign({},y),m):y}),0===Object.keys(y).length?null:y}function $e(D,y){return y.map(m=>m(D))}function wt(D){return D.map(y=>function mt(D){return!D.validate}(y)?y:m=>y.validate(m))}function Rt(D){return null!=D?function We(D){if(!D)return null;const y=D.filter(fe);return 0==y.length?null:function(m){return ue($e(m,y))}}(wt(D)):null}function St(D){return null!=D?function Xt(D){if(!D)return null;const y=D.filter(fe);return 0==y.length?null:function(m){const A=$e(m,y).map(De);return(0,J.D)(A).pipe((0,W.U)(ue))}}(wt(D)):null}function en(D,y){return null===D?[y]:Array.isArray(D)?[...D,y]:[D,y]}function yn(D){return D?Array.isArray(D)?D:[D]:[]}function ht(D,y){return Array.isArray(D)?D.includes(y):D===y}function qe(D,y){const m=yn(y);return yn(D).forEach(he=>{ht(m,he)||m.push(he)}),m}function zn(D,y){return yn(y).filter(m=>!ht(D,m))}class bn{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(y){this._rawValidators=y||[],this._composedValidatorFn=Rt(this._rawValidators)}_setAsyncValidators(y){this._rawAsyncValidators=y||[],this._composedAsyncValidatorFn=St(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(y){this._onDestroyCallbacks.push(y)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(y=>y()),this._onDestroyCallbacks=[]}reset(y){this.control&&this.control.reset(y)}hasError(y,m){return!!this.control&&this.control.hasError(y,m)}getError(y,m){return this.control?this.control.getError(y,m):null}}class Yt extends bn{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class ot extends bn{get formDirective(){return null}get path(){return null}}class Zt{constructor(y){this._cd=y}is(y){var m,A,he;return"submitted"===y?!!(null===(m=this._cd)||void 0===m?void 0:m.submitted):!!(null===(he=null===(A=this._cd)||void 0===A?void 0:A.control)||void 0===he?void 0:he[y])}}let Cn=(()=>{class D extends Zt{constructor(m){super(m)}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(Yt,2))},D.\u0275dir=c.lG2({type:D,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(m,A){2&m&&c.ekj("ng-untouched",A.is("untouched"))("ng-touched",A.is("touched"))("ng-pristine",A.is("pristine"))("ng-dirty",A.is("dirty"))("ng-valid",A.is("valid"))("ng-invalid",A.is("invalid"))("ng-pending",A.is("pending"))},features:[c.qOj]}),D})(),$t=(()=>{class D extends Zt{constructor(m){super(m)}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(ot,10))},D.\u0275dir=c.lG2({type:D,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(m,A){2&m&&c.ekj("ng-untouched",A.is("untouched"))("ng-touched",A.is("touched"))("ng-pristine",A.is("pristine"))("ng-dirty",A.is("dirty"))("ng-valid",A.is("valid"))("ng-invalid",A.is("invalid"))("ng-pending",A.is("pending"))("ng-submitted",A.is("submitted"))},features:[c.qOj]}),D})();function Ve(D,y){te(D,y),y.valueAccessor.writeValue(D.value),function Dt(D,y){y.valueAccessor.registerOnChange(m=>{D._pendingValue=m,D._pendingChange=!0,D._pendingDirty=!0,"change"===D.updateOn&&pt(D,y)})}(D,y),function Je(D,y){const m=(A,he)=>{y.valueAccessor.writeValue(A),he&&y.viewToModelUpdate(A)};D.registerOnChange(m),y._registerOnDestroy(()=>{D._unregisterOnChange(m)})}(D,y),function Jt(D,y){y.valueAccessor.registerOnTouched(()=>{D._pendingTouched=!0,"blur"===D.updateOn&&D._pendingChange&&pt(D,y),"submit"!==D.updateOn&&D.markAsTouched()})}(D,y),function ie(D,y){if(y.valueAccessor.setDisabledState){const m=A=>{y.valueAccessor.setDisabledState(A)};D.registerOnDisabledChange(m),y._registerOnDestroy(()=>{D._unregisterOnDisabledChange(m)})}}(D,y)}function Ae(D,y){D.forEach(m=>{m.registerOnValidatorChange&&m.registerOnValidatorChange(y)})}function te(D,y){const m=function Bt(D){return D._rawValidators}(D);null!==y.validator?D.setValidators(en(m,y.validator)):"function"==typeof m&&D.setValidators([m]);const A=function xt(D){return D._rawAsyncValidators}(D);null!==y.asyncValidator?D.setAsyncValidators(en(A,y.asyncValidator)):"function"==typeof A&&D.setAsyncValidators([A]);const he=()=>D.updateValueAndValidity();Ae(y._rawValidators,he),Ae(y._rawAsyncValidators,he)}function pt(D,y){D._pendingDirty&&D.markAsDirty(),D.setValue(D._pendingValue,{emitModelToViewChange:!1}),y.viewToModelUpdate(D._pendingValue),D._pendingChange=!1}function Ge(D,y){const m=D.indexOf(y);m>-1&&D.splice(m,1)}const Mt="VALID",qn="INVALID",Wn="PENDING",Ft="DISABLED";function On(D){return(Pn(D)?D.validators:D)||null}function _n(D){return Array.isArray(D)?Rt(D):D||null}function yr(D,y){return(Pn(y)?y.asyncValidators:D)||null}function Ir(D){return Array.isArray(D)?St(D):D||null}function Pn(D){return null!=D&&!Array.isArray(D)&&"object"==typeof D}const dn=D=>D instanceof an;function er(D){return(D=>D instanceof Ot)(D)?D.value:D.getRawValue()}function hn(D,y){const m=dn(D),A=D.controls;if(!(m?Object.keys(A):A).length)throw new c.vHH(1e3,"");if(!A[y])throw new c.vHH(1001,"")}function Pe(D,y){dn(D),D._forEachChild((A,he)=>{if(void 0===y[he])throw new c.vHH(1002,"")})}class st{constructor(y,m){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=y,this._rawAsyncValidators=m,this._composedValidatorFn=_n(this._rawValidators),this._composedAsyncValidatorFn=Ir(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(y){this._rawValidators=this._composedValidatorFn=y}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(y){this._rawAsyncValidators=this._composedAsyncValidatorFn=y}get parent(){return this._parent}get valid(){return this.status===Mt}get invalid(){return this.status===qn}get pending(){return this.status==Wn}get disabled(){return this.status===Ft}get enabled(){return this.status!==Ft}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(y){this._rawValidators=y,this._composedValidatorFn=_n(y)}setAsyncValidators(y){this._rawAsyncValidators=y,this._composedAsyncValidatorFn=Ir(y)}addValidators(y){this.setValidators(qe(y,this._rawValidators))}addAsyncValidators(y){this.setAsyncValidators(qe(y,this._rawAsyncValidators))}removeValidators(y){this.setValidators(zn(y,this._rawValidators))}removeAsyncValidators(y){this.setAsyncValidators(zn(y,this._rawAsyncValidators))}hasValidator(y){return ht(this._rawValidators,y)}hasAsyncValidator(y){return ht(this._rawAsyncValidators,y)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(y={}){this.touched=!0,this._parent&&!y.onlySelf&&this._parent.markAsTouched(y)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(y=>y.markAllAsTouched())}markAsUntouched(y={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(m=>{m.markAsUntouched({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}markAsDirty(y={}){this.pristine=!1,this._parent&&!y.onlySelf&&this._parent.markAsDirty(y)}markAsPristine(y={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(m=>{m.markAsPristine({onlySelf:!0})}),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}markAsPending(y={}){this.status=Wn,!1!==y.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!y.onlySelf&&this._parent.markAsPending(y)}disable(y={}){const m=this._parentMarkedDirty(y.onlySelf);this.status=Ft,this.errors=null,this._forEachChild(A=>{A.disable(Object.assign(Object.assign({},y),{onlySelf:!0}))}),this._updateValue(),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},y),{skipPristineCheck:m})),this._onDisabledChange.forEach(A=>A(!0))}enable(y={}){const m=this._parentMarkedDirty(y.onlySelf);this.status=Mt,this._forEachChild(A=>{A.enable(Object.assign(Object.assign({},y),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},y),{skipPristineCheck:m})),this._onDisabledChange.forEach(A=>A(!1))}_updateAncestors(y){this._parent&&!y.onlySelf&&(this._parent.updateValueAndValidity(y),y.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(y){this._parent=y}updateValueAndValidity(y={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Mt||this.status===Wn)&&this._runAsyncValidator(y.emitEvent)),!1!==y.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!y.onlySelf&&this._parent.updateValueAndValidity(y)}_updateTreeValidity(y={emitEvent:!0}){this._forEachChild(m=>m._updateTreeValidity(y)),this.updateValueAndValidity({onlySelf:!0,emitEvent:y.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ft:Mt}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(y){if(this.asyncValidator){this.status=Wn,this._hasOwnPendingAsyncValidator=!0;const m=De(this.asyncValidator(this));this._asyncValidationSubscription=m.subscribe(A=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(A,{emitEvent:y})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(y,m={}){this.errors=y,this._updateControlsErrors(!1!==m.emitEvent)}get(y){return function Kn(D,y,m){if(null==y||(Array.isArray(y)||(y=y.split(m)),Array.isArray(y)&&0===y.length))return null;let A=D;return y.forEach(he=>{A=dn(A)?A.controls.hasOwnProperty(he)?A.controls[he]:null:(D=>D instanceof tr)(A)&&A.at(he)||null}),A}(this,y,".")}getError(y,m){const A=m?this.get(m):this;return A&&A.errors?A.errors[y]:null}hasError(y,m){return!!this.getError(y,m)}get root(){let y=this;for(;y._parent;)y=y._parent;return y}_updateControlsErrors(y){this.status=this._calculateStatus(),y&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(y)}_initObservables(){this.valueChanges=new c.vpe,this.statusChanges=new c.vpe}_calculateStatus(){return this._allControlsDisabled()?Ft:this.errors?qn:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Wn)?Wn:this._anyControlsHaveStatus(qn)?qn:Mt}_anyControlsHaveStatus(y){return this._anyControls(m=>m.status===y)}_anyControlsDirty(){return this._anyControls(y=>y.dirty)}_anyControlsTouched(){return this._anyControls(y=>y.touched)}_updatePristine(y={}){this.pristine=!this._anyControlsDirty(),this._parent&&!y.onlySelf&&this._parent._updatePristine(y)}_updateTouched(y={}){this.touched=this._anyControlsTouched(),this._parent&&!y.onlySelf&&this._parent._updateTouched(y)}_isBoxedValue(y){return"object"==typeof y&&null!==y&&2===Object.keys(y).length&&"value"in y&&"disabled"in y}_registerOnCollectionChange(y){this._onCollectionChange=y}_setUpdateStrategy(y){Pn(y)&&null!=y.updateOn&&(this._updateOn=y.updateOn)}_parentMarkedDirty(y){return!y&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ot extends st{constructor(y=null,m,A){super(On(m),yr(A,m)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(y),this._setUpdateStrategy(m),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pn(m)&&m.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(y)?y.value:y)}setValue(y,m={}){this.value=this._pendingValue=y,this._onChange.length&&!1!==m.emitModelToViewChange&&this._onChange.forEach(A=>A(this.value,!1!==m.emitViewToModelChange)),this.updateValueAndValidity(m)}patchValue(y,m={}){this.setValue(y,m)}reset(y=this.defaultValue,m={}){this._applyFormState(y),this.markAsPristine(m),this.markAsUntouched(m),this.setValue(this.value,m),this._pendingChange=!1}_updateValue(){}_anyControls(y){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(y){this._onChange.push(y)}_unregisterOnChange(y){Ge(this._onChange,y)}registerOnDisabledChange(y){this._onDisabledChange.push(y)}_unregisterOnDisabledChange(y){Ge(this._onDisabledChange,y)}_forEachChild(y){}_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(y){this._isBoxedValue(y)?(this.value=this._pendingValue=y.value,y.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=y}}class an extends st{constructor(y,m,A){super(On(m),yr(A,m)),this.controls=y,this._initObservables(),this._setUpdateStrategy(m),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(y,m){return this.controls[y]?this.controls[y]:(this.controls[y]=m,m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange),m)}addControl(y,m,A={}){this.registerControl(y,m),this.updateValueAndValidity({emitEvent:A.emitEvent}),this._onCollectionChange()}removeControl(y,m={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],this.updateValueAndValidity({emitEvent:m.emitEvent}),this._onCollectionChange()}setControl(y,m,A={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),delete this.controls[y],m&&this.registerControl(y,m),this.updateValueAndValidity({emitEvent:A.emitEvent}),this._onCollectionChange()}contains(y){return this.controls.hasOwnProperty(y)&&this.controls[y].enabled}setValue(y,m={}){Pe(this,y),Object.keys(y).forEach(A=>{hn(this,A),this.controls[A].setValue(y[A],{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m)}patchValue(y,m={}){null!=y&&(Object.keys(y).forEach(A=>{this.controls[A]&&this.controls[A].patchValue(y[A],{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m))}reset(y={},m={}){this._forEachChild((A,he)=>{A.reset(y[he],{onlySelf:!0,emitEvent:m.emitEvent})}),this._updatePristine(m),this._updateTouched(m),this.updateValueAndValidity(m)}getRawValue(){return this._reduceChildren({},(y,m,A)=>(y[A]=er(m),y))}_syncPendingControls(){let y=this._reduceChildren(!1,(m,A)=>!!A._syncPendingControls()||m);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){Object.keys(this.controls).forEach(m=>{const A=this.controls[m];A&&y(A,m)})}_setUpControls(){this._forEachChild(y=>{y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(y){for(const m of Object.keys(this.controls)){const A=this.controls[m];if(this.contains(m)&&y(A))return!0}return!1}_reduceValue(){return this._reduceChildren({},(y,m,A)=>((m.enabled||this.disabled)&&(y[A]=m.value),y))}_reduceChildren(y,m){let A=y;return this._forEachChild((he,Ue)=>{A=m(A,he,Ue)}),A}_allControlsDisabled(){for(const y of Object.keys(this.controls))if(this.controls[y].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class tr extends st{constructor(y,m,A){super(On(m),yr(A,m)),this.controls=y,this._initObservables(),this._setUpdateStrategy(m),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(y){return this.controls[y]}push(y,m={}){this.controls.push(y),this._registerControl(y),this.updateValueAndValidity({emitEvent:m.emitEvent}),this._onCollectionChange()}insert(y,m,A={}){this.controls.splice(y,0,m),this._registerControl(m),this.updateValueAndValidity({emitEvent:A.emitEvent})}removeAt(y,m={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),this.controls.splice(y,1),this.updateValueAndValidity({emitEvent:m.emitEvent})}setControl(y,m,A={}){this.controls[y]&&this.controls[y]._registerOnCollectionChange(()=>{}),this.controls.splice(y,1),m&&(this.controls.splice(y,0,m),this._registerControl(m)),this.updateValueAndValidity({emitEvent:A.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(y,m={}){Pe(this,y),y.forEach((A,he)=>{hn(this,he),this.at(he).setValue(A,{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m)}patchValue(y,m={}){null!=y&&(y.forEach((A,he)=>{this.at(he)&&this.at(he).patchValue(A,{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m))}reset(y=[],m={}){this._forEachChild((A,he)=>{A.reset(y[he],{onlySelf:!0,emitEvent:m.emitEvent})}),this._updatePristine(m),this._updateTouched(m),this.updateValueAndValidity(m)}getRawValue(){return this.controls.map(y=>er(y))}clear(y={}){this.controls.length<1||(this._forEachChild(m=>m._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:y.emitEvent}))}_syncPendingControls(){let y=this.controls.reduce((m,A)=>!!A._syncPendingControls()||m,!1);return y&&this.updateValueAndValidity({onlySelf:!0}),y}_forEachChild(y){this.controls.forEach((m,A)=>{y(m,A)})}_updateValue(){this.value=this.controls.filter(y=>y.enabled||this.disabled).map(y=>y.value)}_anyControls(y){return this.controls.some(m=>m.enabled&&y(m))}_setUpControls(){this._forEachChild(y=>this._registerControl(y))}_allControlsDisabled(){for(const y of this.controls)if(y.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(y){y.setParent(this),y._registerOnCollectionChange(this._onCollectionChange)}}const Ut={provide:ot,useExisting:(0,c.Gpc)(()=>At)},fn=(()=>Promise.resolve(null))();let At=(()=>{class D extends ot{constructor(m,A){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new c.vpe,this.form=new an({},Rt(m),St(A))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(m){fn.then(()=>{const A=this._findContainer(m.path);m.control=A.registerControl(m.name,m.control),Ve(m.control,m),m.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(m)})}getControl(m){return this.form.get(m.path)}removeControl(m){fn.then(()=>{const A=this._findContainer(m.path);A&&A.removeControl(m.name),this._directives.delete(m)})}addFormGroup(m){fn.then(()=>{const A=this._findContainer(m.path),he=new an({});(function jn(D,y){te(D,y)})(he,m),A.registerControl(m.name,he),he.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(m){fn.then(()=>{const A=this._findContainer(m.path);A&&A.removeControl(m.name)})}getFormGroup(m){return this.form.get(m.path)}updateModel(m,A){fn.then(()=>{this.form.get(m.path).setValue(A)})}setValue(m){this.control.setValue(m)}onSubmit(m){return this.submitted=!0,function Q(D,y){D._syncPendingControls(),y.forEach(m=>{const A=m.control;"submit"===A.updateOn&&A._pendingChange&&(m.viewToModelUpdate(A._pendingValue),A._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(m),!1}onReset(){this.resetForm()}resetForm(m){this.form.reset(m),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(m){return m.pop(),m.length?this.form.get(m):this.form}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(Se,10),c.Y36(Te,10))},D.\u0275dir=c.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(m,A){1&m&&c.NdJ("submit",function(Ue){return A.onSubmit(Ue)})("reset",function(){return A.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[c._Bn([Ut]),c.qOj]}),D})();const pn={provide:Yt,useExisting:(0,c.Gpc)(()=>Nn)},Dr=(()=>Promise.resolve(null))();let Nn=(()=>{class D extends Yt{constructor(m,A,he,Ue,nn){super(),this._changeDetectorRef=nn,this.control=new Ot,this._registered=!1,this.update=new c.vpe,this._parent=m,this._setValidators(A),this._setAsyncValidators(he),this.valueAccessor=function Ce(D,y){if(!y)return null;let m,A,he;return Array.isArray(y),y.forEach(Ue=>{Ue.constructor===ne?m=Ue:function x(D){return Object.getPrototypeOf(D.constructor)===j}(Ue)?A=Ue:he=Ue}),he||A||m||null}(0,Ue)}ngOnChanges(m){if(this._checkForErrors(),!this._registered||"name"in m){if(this._registered&&(this._checkName(),this.formDirective)){const A=m.name.previousValue;this.formDirective.removeControl({name:A,path:this._getPath(A)})}this._setUpControl()}"isDisabled"in m&&this._updateDisabled(m),function K(D,y){if(!D.hasOwnProperty("model"))return!1;const m=D.model;return!!m.isFirstChange()||!Object.is(y,m.currentValue)}(m,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(m){this.viewModel=m,this.update.emit(m)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ve(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(m){Dr.then(()=>{var A;this.control.setValue(m,{emitViewToModelChange:!1}),null===(A=this._changeDetectorRef)||void 0===A||A.markForCheck()})}_updateDisabled(m){const A=m.isDisabled.currentValue,he=""===A||A&&"false"!==A;Dr.then(()=>{var Ue;he&&!this.control.disabled?this.control.disable():!he&&this.control.disabled&&this.control.enable(),null===(Ue=this._changeDetectorRef)||void 0===Ue||Ue.markForCheck()})}_getPath(m){return this._parent?function at(D,y){return[...y.path,D]}(m,this._parent):[m]}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(ot,9),c.Y36(Se,10),c.Y36(Te,10),c.Y36(z,10),c.Y36(c.sBO,8))},D.\u0275dir=c.lG2({type:D,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[c._Bn([pn]),c.qOj,c.TTD]}),D})(),Rn=(()=>{class D{}return D.\u0275fac=function(m){return new(m||D)},D.\u0275dir=c.lG2({type:D,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),D})();const Ht={provide:z,useExisting:(0,c.Gpc)(()=>rr),multi:!0};let gn=(()=>{class D{}return D.\u0275fac=function(m){return new(m||D)},D.\u0275mod=c.oAB({type:D}),D.\u0275inj=c.cJS({}),D})(),Wr=(()=>{class D{constructor(){this._accessors=[]}add(m,A){this._accessors.push([m,A])}remove(m){for(let A=this._accessors.length-1;A>=0;--A)if(this._accessors[A][1]===m)return void this._accessors.splice(A,1)}select(m){this._accessors.forEach(A=>{this._isSameGroup(A,m)&&A[1]!==m&&A[1].fireUncheck(m.value)})}_isSameGroup(m,A){return!!m[0].control&&m[0]._parent===A._control._parent&&m[1].name===A.name}}return D.\u0275fac=function(m){return new(m||D)},D.\u0275prov=c.Yz7({token:D,factory:D.\u0275fac,providedIn:gn}),D})(),rr=(()=>{class D extends j{constructor(m,A,he,Ue){super(m,A),this._registry=he,this._injector=Ue,this.onChange=()=>{}}ngOnInit(){this._control=this._injector.get(Yt),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(m){this._state=m===this.value,this.setProperty("checked",this._state)}registerOnChange(m){this._fn=m,this.onChange=()=>{m(this.value),this._registry.select(this)}}fireUncheck(m){this.writeValue(m)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(c.Qsj),c.Y36(c.SBq),c.Y36(Wr),c.Y36(c.zs3))},D.\u0275dir=c.lG2({type:D,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(m,A){1&m&&c.NdJ("change",function(){return A.onChange()})("blur",function(){return A.onTouched()})},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[c._Bn([Ht]),c.qOj]}),D})();const cr=new c.OlP("NgModelWithFormControlWarning"),ps={provide:z,useExisting:(0,c.Gpc)(()=>fi),multi:!0};function Kr(D,y){return null==D?`${y}`:(y&&"object"==typeof y&&(y="Object"),`${D}: ${y}`.slice(0,50))}let fi=(()=>{class D extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(m){this._compareWith=m}writeValue(m){this.value=m;const he=Kr(this._getOptionId(m),m);this.setProperty("value",he)}registerOnChange(m){this.onChange=A=>{this.value=this._getOptionValue(A),m(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(m){for(const A of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(A),m))return A;return null}_getOptionValue(m){const A=function gs(D){return D.split(":")[0]}(m);return this._optionMap.has(A)?this._optionMap.get(A):m}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(m,A){1&m&&c.NdJ("change",function(Ue){return A.onChange(Ue.target.value)})("blur",function(){return A.onTouched()})},inputs:{compareWith:"compareWith"},features:[c._Bn([ps]),c.qOj]}),D})(),Gi=(()=>{class D{constructor(m,A,he){this._element=m,this._renderer=A,this._select=he,this._select&&(this.id=this._select._registerOption())}set ngValue(m){null!=this._select&&(this._select._optionMap.set(this.id,m),this._setElementValue(Kr(this.id,m)),this._select.writeValue(this._select.value))}set value(m){this._setElementValue(m),this._select&&this._select.writeValue(this._select.value)}_setElementValue(m){this._renderer.setProperty(this._element.nativeElement,"value",m)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(fi,9))},D.\u0275dir=c.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})();const pi={provide:z,useExisting:(0,c.Gpc)(()=>Ai),multi:!0};function _r(D,y){return null==D?`${y}`:("string"==typeof y&&(y=`'${y}'`),y&&"object"==typeof y&&(y="Object"),`${D}: ${y}`.slice(0,50))}let Ai=(()=>{class D extends j{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(m){this._compareWith=m}writeValue(m){let A;if(this.value=m,Array.isArray(m)){const he=m.map(Ue=>this._getOptionId(Ue));A=(Ue,nn)=>{Ue._setSelected(he.indexOf(nn.toString())>-1)}}else A=(he,Ue)=>{he._setSelected(!1)};this._optionMap.forEach(A)}registerOnChange(m){this.onChange=A=>{const he=[],Ue=A.selectedOptions;if(void 0!==Ue){const nn=Ue;for(let rn=0;rn<nn.length;rn++){const qr=this._getOptionValue(nn[rn].value);he.push(qr)}}else{const nn=A.options;for(let rn=0;rn<nn.length;rn++){const fr=nn[rn];if(fr.selected){const qr=this._getOptionValue(fr.value);he.push(qr)}}}this.value=he,m(he)}}_registerOption(m){const A=(this._idCounter++).toString();return this._optionMap.set(A,m),A}_getOptionId(m){for(const A of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(A)._value,m))return A;return null}_getOptionValue(m){const A=function Pr(D){return D.split(":")[0]}(m);return this._optionMap.has(A)?this._optionMap.get(A)._value:m}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(m,A){1&m&&c.NdJ("change",function(Ue){return A.onChange(Ue.target)})("blur",function(){return A.onTouched()})},inputs:{compareWith:"compareWith"},features:[c._Bn([pi]),c.qOj]}),D})(),ms=(()=>{class D{constructor(m,A,he){this._element=m,this._renderer=A,this._select=he,this._select&&(this.id=this._select._registerOption(this))}set ngValue(m){null!=this._select&&(this._value=m,this._setElementValue(_r(this.id,m)),this._select.writeValue(this._select.value))}set value(m){this._select?(this._value=m,this._setElementValue(_r(this.id,m)),this._select.writeValue(this._select.value)):this._setElementValue(m)}_setElementValue(m){this._renderer.setProperty(this._element.nativeElement,"value",m)}_setSelected(m){this._renderer.setProperty(this._element.nativeElement,"selected",m)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return D.\u0275fac=function(m){return new(m||D)(c.Y36(c.SBq),c.Y36(c.Qsj),c.Y36(Ai,9))},D.\u0275dir=c.lG2({type:D,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),D})();function Yn(D){return"number"==typeof D?D:parseInt(D,10)}let ir=(()=>{class D{constructor(){this._validator=ge}ngOnChanges(m){if(this.inputName in m){const A=this.normalizeInput(m[this.inputName].currentValue);this._enabled=this.enabled(A),this._validator=this._enabled?this.createValidator(A):ge,this._onChange&&this._onChange()}}validate(m){return this._validator(m)}registerOnValidatorChange(m){this._onChange=m}enabled(m){return null!=m}}return D.\u0275fac=function(m){return new(m||D)},D.\u0275dir=c.lG2({type:D,features:[c.TTD]}),D})();const Ki={provide:Se,useExisting:(0,c.Gpc)(()=>hr),multi:!0},Zr={provide:Se,useExisting:(0,c.Gpc)(()=>Qt),multi:!0};let hr=(()=>{class D extends ir{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=m=>function vs(D){return null!=D&&!1!==D&&"false"!=`${D}`}(m),this.createValidator=m=>Le}enabled(m){return m}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(m,A){2&m&&c.uIk("required",A._enabled?"":null)},inputs:{required:"required"},features:[c._Bn([Ki]),c.qOj]}),D})(),Qt=(()=>{class D extends hr{constructor(){super(...arguments),this.createValidator=m=>Ze}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(m,A){2&m&&c.uIk("required",A._enabled?"":null)},features:[c._Bn([Zr]),c.qOj]}),D})();const Ii={provide:Se,useExisting:(0,c.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class D extends ir{constructor(){super(...arguments),this.inputName="email",this.normalizeInput=m=>""===m||!0===m||"true"===m,this.createValidator=m=>Fe}enabled(m){return m}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[c._Bn([Ii]),c.qOj]}),D})();const br={provide:Se,useExisting:(0,c.Gpc)(()=>Ln),multi:!0};let Ln=(()=>{class D extends ir{constructor(){super(...arguments),this.inputName="minlength",this.normalizeInput=m=>Yn(m),this.createValidator=m=>function He(D){return y=>ce(y.value)||!X(y.value)?null:y.value.length<D?{minlength:{requiredLength:D,actualLength:y.value.length}}:null}(m)}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(m,A){2&m&&c.uIk("minlength",A._enabled?A.minlength:null)},inputs:{minlength:"minlength"},features:[c._Bn([br]),c.qOj]}),D})();const ys={provide:Se,useExisting:(0,c.Gpc)(()=>Hn),multi:!0};let Hn=(()=>{class D extends ir{constructor(){super(...arguments),this.inputName="maxlength",this.normalizeInput=m=>Yn(m),this.createValidator=m=>function le(D){return y=>X(y.value)&&y.value.length>D?{maxlength:{requiredLength:D,actualLength:y.value.length}}:null}(m)}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(m,A){2&m&&c.uIk("maxlength",A._enabled?A.maxlength:null)},inputs:{maxlength:"maxlength"},features:[c._Bn([ys]),c.qOj]}),D})();const Yi={provide:Se,useExisting:(0,c.Gpc)(()=>wr),multi:!0};let wr=(()=>{class D extends ir{constructor(){super(...arguments),this.inputName="pattern",this.normalizeInput=m=>m,this.createValidator=m=>function pe(D){if(!D)return ge;let y,m;return"string"==typeof D?(m="","^"!==D.charAt(0)&&(m+="^"),m+=D,"$"!==D.charAt(D.length-1)&&(m+="$"),y=new RegExp(m)):(m=D.toString(),y=D),A=>{if(ce(A.value))return null;const he=A.value;return y.test(he)?null:{pattern:{requiredPattern:m,actualValue:he}}}}(m)}}return D.\u0275fac=function(){let y;return function(A){return(y||(y=c.n5z(D)))(A||D)}}(),D.\u0275dir=c.lG2({type:D,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(m,A){2&m&&c.uIk("pattern",A._enabled?A.pattern:null)},inputs:{pattern:"pattern"},features:[c._Bn([Yi]),c.qOj]}),D})(),Nr=(()=>{class D{}return D.\u0275fac=function(m){return new(m||D)},D.\u0275mod=c.oAB({type:D}),D.\u0275inj=c.cJS({imports:[[gn]]}),D})(),Kt=(()=>{class D{}return D.\u0275fac=function(m){return new(m||D)},D.\u0275mod=c.oAB({type:D}),D.\u0275inj=c.cJS({imports:[Nr]}),D})(),Qr=(()=>{class D{static withConfig(m){return{ngModule:D,providers:[{provide:cr,useValue:m.warnOnNgModelWithFormControl}]}}}return D.\u0275fac=function(m){return new(m||D)},D.\u0275mod=c.oAB({type:D}),D.\u0275inj=c.cJS({imports:[Nr]}),D})()},2313:(Re,oe,C)=>{C.d(oe,{Dx:()=>un,H7:()=>wn,b2:()=>Ct,h_:()=>Cn,q6:()=>ot});var c=C(9808),u=C(2096);class H extends c.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class J extends H{static makeCurrent(){(0,c.HT)(new J)}onAndCancel(K,x,Q){return K.addEventListener(x,Q,!1),()=>{K.removeEventListener(x,Q,!1)}}dispatchEvent(K,x){K.dispatchEvent(x)}remove(K){K.parentNode&&K.parentNode.removeChild(K)}createElement(K,x){return(x=x||this.getDefaultDocument()).createElement(K)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(K){return K.nodeType===Node.ELEMENT_NODE}isShadowRoot(K){return K instanceof DocumentFragment}getGlobalEventTarget(K,x){return"window"===x?window:"document"===x?K:"body"===x?K.body:null}getBaseHref(K){const x=function Z(){return W=W||document.querySelector("base"),W?W.getAttribute("href"):null}();return null==x?null:function z(re){j=j||document.createElement("a"),j.setAttribute("href",re);const K=j.pathname;return"/"===K.charAt(0)?K:`/${K}`}(x)}resetBaseElement(){W=null}getUserAgent(){return window.navigator.userAgent}getCookie(K){return(0,c.Mx)(document.cookie,K)}}let j,W=null;const O=new u.OlP("TRANSITION_ID"),R=[{provide:u.ip1,useFactory:function T(re,K,x){return()=>{x.get(u.CZH).donePromise.then(()=>{const Q=(0,c.q)(),Ce=K.querySelectorAll(`style[ng-transition="${re}"]`);for(let Ge=0;Ge<Ce.length;Ge++)Q.remove(Ce[Ge])})}},deps:[O,c.K0,u.zs3],multi:!0}];class q{static init(){(0,u.VLi)(new q)}addToWindow(K){u.dqk.getAngularTestability=(Q,Ce=!0)=>{const Ge=K.findTestabilityInTree(Q,Ce);if(null==Ge)throw new Error("Could not find testability for element.");return Ge},u.dqk.getAllAngularTestabilities=()=>K.getAllTestabilities(),u.dqk.getAllAngularRootElements=()=>K.getAllRootElements(),u.dqk.frameworkStabilizers||(u.dqk.frameworkStabilizers=[]),u.dqk.frameworkStabilizers.push(Q=>{const Ce=u.dqk.getAllAngularTestabilities();let Ge=Ce.length,ft=!1;const it=function(Mt){ft=ft||Mt,Ge--,0==Ge&&Q(ft)};Ce.forEach(function(Mt){Mt.whenStable(it)})})}findTestabilityInTree(K,x,Q){if(null==x)return null;const Ce=K.getTestability(x);return null!=Ce?Ce:Q?(0,c.q)().isShadowRoot(x)?this.findTestabilityInTree(K,x.host,!0):this.findTestabilityInTree(K,x.parentElement,!0):null}}let se=(()=>{class re{build(){return new XMLHttpRequest}}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();const ne=new u.OlP("EventManagerPlugins");let ce=(()=>{class re{constructor(x,Q){this._zone=Q,this._eventNameToPlugin=new Map,x.forEach(Ce=>Ce.manager=this),this._plugins=x.slice().reverse()}addEventListener(x,Q,Ce){return this._findPluginFor(Q).addEventListener(x,Q,Ce)}addGlobalEventListener(x,Q,Ce){return this._findPluginFor(Q).addGlobalEventListener(x,Q,Ce)}getZone(){return this._zone}_findPluginFor(x){const Q=this._eventNameToPlugin.get(x);if(Q)return Q;const Ce=this._plugins;for(let Ge=0;Ge<Ce.length;Ge++){const ft=Ce[Ge];if(ft.supports(x))return this._eventNameToPlugin.set(x,ft),ft}throw new Error(`No event manager plugin found for event ${x}`)}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(ne),u.LFG(u.R0b))},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();class X{constructor(K){this._doc=K}addGlobalEventListener(K,x,Q){const Ce=(0,c.q)().getGlobalEventTarget(this._doc,K);if(!Ce)throw new Error(`Unsupported event target ${Ce} for event ${x}`);return this.addEventListener(Ce,x,Q)}}let Se=(()=>{class re{constructor(){this._stylesSet=new Set}addStyles(x){const Q=new Set;x.forEach(Ce=>{this._stylesSet.has(Ce)||(this._stylesSet.add(Ce),Q.add(Ce))}),this.onStylesAdded(Q)}onStylesAdded(x){}getAllStyles(){return Array.from(this._stylesSet)}}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})(),Te=(()=>{class re extends Se{constructor(x){super(),this._doc=x,this._hostNodes=new Map,this._hostNodes.set(x.head,[])}_addStylesToHost(x,Q,Ce){x.forEach(Ge=>{const ft=this._doc.createElement("style");ft.textContent=Ge,Ce.push(Q.appendChild(ft))})}addHost(x){const Q=[];this._addStylesToHost(this._stylesSet,x,Q),this._hostNodes.set(x,Q)}removeHost(x){const Q=this._hostNodes.get(x);Q&&Q.forEach(Ie),this._hostNodes.delete(x)}onStylesAdded(x){this._hostNodes.forEach((Q,Ce)=>{this._addStylesToHost(x,Ce,Q)})}ngOnDestroy(){this._hostNodes.forEach(x=>x.forEach(Ie))}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();function Ie(re){(0,c.q)().remove(re)}const xe={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/",math:"http://www.w3.org/1998/MathML/"},gt=/%COMP%/g;function pe(re,K,x){for(let Q=0;Q<K.length;Q++){let Ce=K[Q];Array.isArray(Ce)?pe(re,Ce,x):(Ce=Ce.replace(gt,re),x.push(Ce))}return x}function ge(re){return K=>{if("__ngUnwrap__"===K)return re;!1===re(K)&&(K.preventDefault(),K.returnValue=!1)}}let De=(()=>{class re{constructor(x,Q,Ce){this.eventManager=x,this.sharedStylesHost=Q,this.appId=Ce,this.rendererByCompId=new Map,this.defaultRenderer=new ue(x)}createRenderer(x,Q){if(!x||!Q)return this.defaultRenderer;switch(Q.encapsulation){case u.ifc.Emulated:{let Ce=this.rendererByCompId.get(Q.id);return Ce||(Ce=new wt(this.eventManager,this.sharedStylesHost,Q,this.appId),this.rendererByCompId.set(Q.id,Ce)),Ce.applyToHost(x),Ce}case 1:case u.ifc.ShadowDom:return new We(this.eventManager,this.sharedStylesHost,x,Q);default:if(!this.rendererByCompId.has(Q.id)){const Ce=pe(Q.id,Q.styles,[]);this.sharedStylesHost.addStyles(Ce),this.rendererByCompId.set(Q.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(ce),u.LFG(Te),u.LFG(u.AFp))},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();class ue{constructor(K){this.eventManager=K,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(K,x){return x?document.createElementNS(xe[x]||x,K):document.createElement(K)}createComment(K){return document.createComment(K)}createText(K){return document.createTextNode(K)}appendChild(K,x){K.appendChild(x)}insertBefore(K,x,Q){K&&K.insertBefore(x,Q)}removeChild(K,x){K&&K.removeChild(x)}selectRootElement(K,x){let Q="string"==typeof K?document.querySelector(K):K;if(!Q)throw new Error(`The selector "${K}" did not match any elements`);return x||(Q.textContent=""),Q}parentNode(K){return K.parentNode}nextSibling(K){return K.nextSibling}setAttribute(K,x,Q,Ce){if(Ce){x=Ce+":"+x;const Ge=xe[Ce];Ge?K.setAttributeNS(Ge,x,Q):K.setAttribute(x,Q)}else K.setAttribute(x,Q)}removeAttribute(K,x,Q){if(Q){const Ce=xe[Q];Ce?K.removeAttributeNS(Ce,x):K.removeAttribute(`${Q}:${x}`)}else K.removeAttribute(x)}addClass(K,x){K.classList.add(x)}removeClass(K,x){K.classList.remove(x)}setStyle(K,x,Q,Ce){Ce&(u.JOm.DashCase|u.JOm.Important)?K.style.setProperty(x,Q,Ce&u.JOm.Important?"important":""):K.style[x]=Q}removeStyle(K,x,Q){Q&u.JOm.DashCase?K.style.removeProperty(x):K.style[x]=""}setProperty(K,x,Q){K[x]=Q}setValue(K,x){K.nodeValue=x}listen(K,x,Q){return"string"==typeof K?this.eventManager.addGlobalEventListener(K,x,ge(Q)):this.eventManager.addEventListener(K,x,ge(Q))}}class wt extends ue{constructor(K,x,Q,Ce){super(K),this.component=Q;const Ge=pe(Ce+"-"+Q.id,Q.styles,[]);x.addStyles(Ge),this.contentAttr=function He(re){return"_ngcontent-%COMP%".replace(gt,re)}(Ce+"-"+Q.id),this.hostAttr=function le(re){return"_nghost-%COMP%".replace(gt,re)}(Ce+"-"+Q.id)}applyToHost(K){super.setAttribute(K,this.hostAttr,"")}createElement(K,x){const Q=super.createElement(K,x);return super.setAttribute(Q,this.contentAttr,""),Q}}class We extends ue{constructor(K,x,Q,Ce){super(K),this.sharedStylesHost=x,this.hostEl=Q,this.shadowRoot=Q.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const Ge=pe(Ce.id,Ce.styles,[]);for(let ft=0;ft<Ge.length;ft++){const it=document.createElement("style");it.textContent=Ge[ft],this.shadowRoot.appendChild(it)}}nodeOrShadowRoot(K){return K===this.hostEl?this.shadowRoot:K}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(K,x){return super.appendChild(this.nodeOrShadowRoot(K),x)}insertBefore(K,x,Q){return super.insertBefore(this.nodeOrShadowRoot(K),x,Q)}removeChild(K,x){return super.removeChild(this.nodeOrShadowRoot(K),x)}parentNode(K){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(K)))}}let Rt=(()=>{class re extends X{constructor(x){super(x)}supports(x){return!0}addEventListener(x,Q,Ce){return x.addEventListener(Q,Ce,!1),()=>this.removeEventListener(x,Q,Ce)}removeEventListener(x,Q,Ce){return x.removeEventListener(Q,Ce)}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();const Xt=["alt","control","meta","shift"],en={"\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"},Bt={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"},xt={alt:re=>re.altKey,control:re=>re.ctrlKey,meta:re=>re.metaKey,shift:re=>re.shiftKey};let yn=(()=>{class re extends X{constructor(x){super(x)}supports(x){return null!=re.parseEventName(x)}addEventListener(x,Q,Ce){const Ge=re.parseEventName(Q),ft=re.eventCallback(Ge.fullKey,Ce,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.q)().onAndCancel(x,Ge.domEventName,ft))}static parseEventName(x){const Q=x.toLowerCase().split("."),Ce=Q.shift();if(0===Q.length||"keydown"!==Ce&&"keyup"!==Ce)return null;const Ge=re._normalizeKey(Q.pop());let ft="";if(Xt.forEach(Mt=>{const qn=Q.indexOf(Mt);qn>-1&&(Q.splice(qn,1),ft+=Mt+".")}),ft+=Ge,0!=Q.length||0===Ge.length)return null;const it={};return it.domEventName=Ce,it.fullKey=ft,it}static getEventFullKey(x){let Q="",Ce=function ht(re){let K=re.key;if(null==K){if(K=re.keyIdentifier,null==K)return"Unidentified";K.startsWith("U+")&&(K=String.fromCharCode(parseInt(K.substring(2),16)),3===re.location&&Bt.hasOwnProperty(K)&&(K=Bt[K]))}return en[K]||K}(x);return Ce=Ce.toLowerCase()," "===Ce?Ce="space":"."===Ce&&(Ce="dot"),Xt.forEach(Ge=>{Ge!=Ce&&xt[Ge](x)&&(Q+=Ge+".")}),Q+=Ce,Q}static eventCallback(x,Q,Ce){return Ge=>{re.getEventFullKey(Ge)===x&&Ce.runGuarded(()=>Q(Ge))}}static _normalizeKey(x){return"esc"===x?"escape":x}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:re.\u0275fac}),re})();const ot=(0,u.eFA)(u._c5,"browser",[{provide:u.Lbi,useValue:c.bD},{provide:u.g9A,useValue:function qe(){J.makeCurrent(),q.init()},multi:!0},{provide:c.K0,useFactory:function bn(){return(0,u.RDi)(document),document},deps:[]}]),Zt=[{provide:u.zSh,useValue:"root"},{provide:u.qLn,useFactory:function zn(){return new u.qLn},deps:[]},{provide:ne,useClass:Rt,multi:!0,deps:[c.K0,u.R0b,u.Lbi]},{provide:ne,useClass:yn,multi:!0,deps:[c.K0]},{provide:De,useClass:De,deps:[ce,Te,u.AFp]},{provide:u.FYo,useExisting:De},{provide:Se,useExisting:Te},{provide:Te,useClass:Te,deps:[c.K0]},{provide:u.dDg,useClass:u.dDg,deps:[u.R0b]},{provide:ce,useClass:ce,deps:[ne,u.R0b]},{provide:c.JF,useClass:se,deps:[]}];let Ct=(()=>{class re{constructor(x){if(x)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(x){return{ngModule:re,providers:[{provide:u.AFp,useValue:x.appId},{provide:O,useExisting:u.AFp},R]}}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(re,12))},re.\u0275mod=u.oAB({type:re}),re.\u0275inj=u.cJS({providers:Zt,imports:[c.ez,u.hGG]}),re})(),Cn=(()=>{class re{constructor(x){this._doc=x,this._dom=(0,c.q)()}addTag(x,Q=!1){return x?this._getOrCreateElement(x,Q):null}addTags(x,Q=!1){return x?x.reduce((Ce,Ge)=>(Ge&&Ce.push(this._getOrCreateElement(Ge,Q)),Ce),[]):[]}getTag(x){return x&&this._doc.querySelector(`meta[${x}]`)||null}getTags(x){if(!x)return[];const Q=this._doc.querySelectorAll(`meta[${x}]`);return Q?[].slice.call(Q):[]}updateTag(x,Q){if(!x)return null;Q=Q||this._parseSelector(x);const Ce=this.getTag(Q);return Ce?this._setMetaElementAttributes(x,Ce):this._getOrCreateElement(x,!0)}removeTag(x){this.removeTagElement(this.getTag(x))}removeTagElement(x){x&&this._dom.remove(x)}_getOrCreateElement(x,Q=!1){if(!Q){const ft=this._parseSelector(x),it=this.getTags(ft).filter(Mt=>this._containsAttributes(x,Mt))[0];if(void 0!==it)return it}const Ce=this._dom.createElement("meta");return this._setMetaElementAttributes(x,Ce),this._doc.getElementsByTagName("head")[0].appendChild(Ce),Ce}_setMetaElementAttributes(x,Q){return Object.keys(x).forEach(Ce=>Q.setAttribute(this._getMetaKeyMap(Ce),x[Ce])),Q}_parseSelector(x){const Q=x.name?"name":"property";return`${Q}="${x[Q]}"`}_containsAttributes(x,Q){return Object.keys(x).every(Ce=>Q.getAttribute(this._getMetaKeyMap(Ce))===x[Ce])}_getMetaKeyMap(x){return $t[x]||x}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:function(x){let Q=null;return Q=x?new x:function Wt(){return new Cn((0,u.LFG)(c.K0))}(),Q},providedIn:"root"}),re})();const $t={httpEquiv:"http-equiv"};let un=(()=>{class re{constructor(x){this._doc=x}getTitle(){return this._doc.title}setTitle(x){this._doc.title=x||""}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:function(x){let Q=null;return Q=x?new x:function jt(){return new un((0,u.LFG)(c.K0))}(),Q},providedIn:"root"}),re})();"undefined"!=typeof window&&window;let wn=(()=>{class re{}return re.\u0275fac=function(x){return new(x||re)},re.\u0275prov=u.Yz7({token:re,factory:function(x){let Q=null;return Q=x?new(x||re):u.LFG(cn),Q},providedIn:"root"}),re})(),cn=(()=>{class re extends wn{constructor(x){super(),this._doc=x}sanitize(x,Q){if(null==Q)return null;switch(x){case u.q3G.NONE:return Q;case u.q3G.HTML:return(0,u.qzn)(Q,"HTML")?(0,u.z3N)(Q):(0,u.EiD)(this._doc,String(Q)).toString();case u.q3G.STYLE:return(0,u.qzn)(Q,"Style")?(0,u.z3N)(Q):Q;case u.q3G.SCRIPT:if((0,u.qzn)(Q,"Script"))return(0,u.z3N)(Q);throw new Error("unsafe value used in a script context");case u.q3G.URL:return(0,u.yhl)(Q),(0,u.qzn)(Q,"URL")?(0,u.z3N)(Q):(0,u.mCW)(String(Q));case u.q3G.RESOURCE_URL:if((0,u.qzn)(Q,"ResourceURL"))return(0,u.z3N)(Q);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${x} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(x){return(0,u.JVY)(x)}bypassSecurityTrustStyle(x){return(0,u.L6k)(x)}bypassSecurityTrustScript(x){return(0,u.eBb)(x)}bypassSecurityTrustUrl(x){return(0,u.LAX)(x)}bypassSecurityTrustResourceUrl(x){return(0,u.pB0)(x)}}return re.\u0275fac=function(x){return new(x||re)(u.LFG(c.K0))},re.\u0275prov=u.Yz7({token:re,factory:function(x){let Q=null;return Q=x?new x:function Gr(re){return new cn(re.get(c.K0))}(u.LFG(u.zs3)),Q},providedIn:"root"}),re})()},2673:(Re,oe,C)=>{C.d(oe,{gz:()=>dr,m2:()=>de,F0:()=>qt,rH:()=>xn,yS:()=>Mr,Bz:()=>nl,lC:()=>Cs});var c=C(2096),u=C(5254),H=C(1086),J=C(591),W=C(2866),Z=C(6688),j=C(826),z=C(9054),O=C(3009);const T={};class q{constructor(l){this.resultSelector=l}call(l,a){return a.subscribe(new se(l,this.resultSelector))}}class se extends j.L{constructor(l,a){super(l),this.resultSelector=a,this.active=0,this.values=[],this.observables=[]}_next(l){this.values.push(T),this.observables.push(l)}_complete(){const l=this.observables,a=l.length;if(0===a)this.destination.complete();else{this.active=a,this.toRespond=a;for(let v=0;v<a;v++){const _=l[v];this.add((0,z.D)(this,_,_,v))}}}notifyComplete(l){0==(this.active-=1)&&this.destination.complete()}notifyNext(l,a,v,_,I){const F=this.values,me=this.toRespond?F[v]===T?--this.toRespond:this.toRespond:0;F[v]=a,0===me&&(this.resultSelector?this._tryResultSelector(F):this.destination.next(F.slice()))}_tryResultSelector(l){let a;try{a=this.resultSelector.apply(this,l)}catch(v){return void this.destination.error(v)}this.destination.next(a)}}var ne=C(1737);const X=(()=>{function h(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return h.prototype=Object.create(Error.prototype),h})();var Se=C(1221),Te=C(8514),Ie=C(2916),xe=C(8896),gt=C(1762),rt=C(8929),Le=C(4850),Ze=C(7545),Fe=C(2986),le=C(3489);function pe(h,l){let a=!1;return arguments.length>=2&&(a=!0),function(_){return _.lift(new ge(h,l,a))}}class ge{constructor(l,a,v=!1){this.accumulator=l,this.seed=a,this.hasSeed=v}call(l,a){return a.subscribe(new fe(l,this.accumulator,this.seed,this.hasSeed))}}class fe extends le.L{constructor(l,a,v,_){super(l),this.accumulator=a,this._seed=v,this.hasSeed=_,this.index=0}get seed(){return this._seed}set seed(l){this.hasSeed=!0,this._seed=l}_next(l){if(this.hasSeed)return this._tryNext(l);this.seed=l,this.destination.next(l)}_tryNext(l){const a=this.index++;let v;try{v=this.accumulator(this.seed,l,a)}catch(_){this.destination.error(_)}this.seed=v,this.destination.next(v)}}var De=C(2198),ue=C(1869);function $e(h){return function(a){const v=new mt(h),_=a.lift(v);return v.caught=_}}class mt{constructor(l){this.selector=l}call(l,a){return a.subscribe(new wt(l,this.selector,this.caught))}}class wt extends j.L{constructor(l,a,v){super(l),this.selector=a,this.caught=v}error(l){if(!this.isStopped){let a;try{a=this.selector(l,this.caught)}catch(I){return void super.error(I)}this._unsubscribeAndRecycle();const v=new ue.d(this,void 0,void 0);this.add(v);const _=(0,z.D)(this,a,void 0,void 0,v);_!==v&&this.add(_)}}}var We=C(1406),Rt=C(4231);function Xt(h){return function(a){return 0===h?(0,xe.c)():a.lift(new St(h))}}class St{constructor(l){if(this.total=l,this.total<0)throw new Rt.W}call(l,a){return a.subscribe(new en(l,this.total))}}class en extends le.L{constructor(l,a){super(l),this.total=a,this.ring=new Array,this.count=0}_next(l){const a=this.ring,v=this.total,_=this.count++;a.length<v?a.push(l):a[_%v]=l}_complete(){const l=this.destination;let a=this.count;if(a>0){const v=this.count>=this.total?this.total:this.count,_=this.ring;for(let I=0;I<v;I++){const F=a++%v;l.next(_[F])}}l.complete()}}function Bt(h=ht){return l=>l.lift(new xt(h))}class xt{constructor(l){this.errorFactory=l}call(l,a){return a.subscribe(new yn(l,this.errorFactory))}}class yn extends le.L{constructor(l,a){super(l),this.errorFactory=a,this.hasValue=!1}_next(l){this.hasValue=!0,this.destination.next(l)}_complete(){if(this.hasValue)return this.destination.complete();{let l;try{l=this.errorFactory()}catch(a){l=a}this.destination.error(l)}}}function ht(){return new X}function qe(h=null){return l=>l.lift(new zn(h))}class zn{constructor(l){this.defaultValue=l}call(l,a){return a.subscribe(new bn(l,this.defaultValue))}}class bn extends le.L{constructor(l,a){super(l),this.defaultValue=a,this.isEmpty=!0}_next(l){this.isEmpty=!1,this.destination.next(l)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}var Yt=C(5379);function Zt(h,l){const a=arguments.length>=2;return v=>v.pipe(h?(0,De.h)((_,I)=>h(_,I,v)):Yt.y,(0,Fe.q)(1),a?qe(l):Bt(()=>new X))}var Ct=C(1709);function Wt(){}var Cn=C(7043);function $t(h,l,a){return function(_){return _.lift(new jt(h,l,a))}}class jt{constructor(l,a,v){this.nextOrObserver=l,this.error=a,this.complete=v}call(l,a){return a.subscribe(new un(l,this.nextOrObserver,this.error,this.complete))}}class un extends le.L{constructor(l,a,v,_){super(l),this._tapNext=Wt,this._tapError=Wt,this._tapComplete=Wt,this._tapError=v||Wt,this._tapComplete=_||Wt,(0,Cn.m)(a)?(this._context=this,this._tapNext=a):a&&(this._context=a,this._tapNext=a.next||Wt,this._tapError=a.error||Wt,this._tapComplete=a.complete||Wt)}_next(l){try{this._tapNext.call(this._context,l)}catch(a){return void this.destination.error(a)}this.destination.next(l)}_error(l){try{this._tapError.call(this._context,l)}catch(a){return void this.destination.error(a)}this.destination.error(l)}_complete(){try{this._tapComplete.call(this._context)}catch(l){return void this.destination.error(l)}return this.destination.complete()}}var on=C(4327),Dn=C(2654);class Y{constructor(l){this.callback=l}call(l,a){return a.subscribe(new V(l,this.callback))}}class V extends le.L{constructor(l,a){super(l),this.add(new Dn.w(a))}}var U=C(9146),P=C(9808);class w{constructor(l,a){this.id=l,this.url=a}}class k extends w{constructor(l,a,v="imperative",_=null){super(l,a),this.navigationTrigger=v,this.restoredState=_}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class de extends w{constructor(l,a,v){super(l,a),this.urlAfterRedirects=v}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class ve extends w{constructor(l,a,v){super(l,a),this.reason=v}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class be extends w{constructor(l,a,v){super(l,a),this.error=v}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class tt extends w{constructor(l,a,v,_){super(l,a),this.urlAfterRedirects=v,this.state=_}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ut extends w{constructor(l,a,v,_){super(l,a),this.urlAfterRedirects=v,this.state=_}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class at extends w{constructor(l,a,v,_,I){super(l,a),this.urlAfterRedirects=v,this.state=_,this.shouldActivate=I}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ve extends w{constructor(l,a,v,_){super(l,a),this.urlAfterRedirects=v,this.state=_}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class L extends w{constructor(l,a,v,_){super(l,a),this.urlAfterRedirects=v,this.state=_}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ae{constructor(l){this.route=l}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class ie{constructor(l){this.route=l}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class te{constructor(l){this.snapshot=l}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class et{constructor(l){this.snapshot=l}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dt{constructor(l){this.snapshot=l}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jt{constructor(l){this.snapshot=l}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pt{constructor(l,a,v){this.routerEvent=l,this.position=a,this.anchor=v}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Je="primary";class jn{constructor(l){this.params=l||{}}has(l){return Object.prototype.hasOwnProperty.call(this.params,l)}get(l){if(this.has(l)){const a=this.params[l];return Array.isArray(a)?a[0]:a}return null}getAll(l){if(this.has(l)){const a=this.params[l];return Array.isArray(a)?a:[a]}return[]}get keys(){return Object.keys(this.params)}}function wn(h){return new jn(h)}const Gr="ngNavigationCancelingError";function cn(h){const l=Error("NavigationCancelingError: "+h);return l[Gr]=!0,l}function re(h,l,a){const v=a.path.split("/");if(v.length>h.length||"full"===a.pathMatch&&(l.hasChildren()||v.length<h.length))return null;const _={};for(let I=0;I<v.length;I++){const F=v[I],G=h[I];if(F.startsWith(":"))_[F.substring(1)]=G;else if(F!==G.path)return null}return{consumed:h.slice(0,v.length),posParams:_}}function x(h,l){const a=h?Object.keys(h):void 0,v=l?Object.keys(l):void 0;if(!a||!v||a.length!=v.length)return!1;let _;for(let I=0;I<a.length;I++)if(_=a[I],!Q(h[_],l[_]))return!1;return!0}function Q(h,l){if(Array.isArray(h)&&Array.isArray(l)){if(h.length!==l.length)return!1;const a=[...h].sort(),v=[...l].sort();return a.every((_,I)=>v[I]===_)}return h===l}function Ce(h){return Array.prototype.concat.apply([],h)}function Ge(h){return h.length>0?h[h.length-1]:null}function it(h,l){for(const a in h)h.hasOwnProperty(a)&&l(h[a],a)}function Mt(h){return(0,c.CqO)(h)?h:(0,c.QGY)(h)?(0,u.D)(Promise.resolve(h)):(0,H.of)(h)}const Wn={exact:function _n(h,l,a){if(!Pe(h.segments,l.segments)||!Xn(h.segments,l.segments,a)||h.numberOfChildren!==l.numberOfChildren)return!1;for(const v in l.children)if(!h.children[v]||!_n(h.children[v],l.children[v],a))return!1;return!0},subset:Ir},Ft={exact:function On(h,l){return x(h,l)},subset:function yr(h,l){return Object.keys(l).length<=Object.keys(h).length&&Object.keys(l).every(a=>Q(h[a],l[a]))},ignored:()=>!0};function Kn(h,l,a){return Wn[a.paths](h.root,l.root,a.matrixParams)&&Ft[a.queryParams](h.queryParams,l.queryParams)&&!("exact"===a.fragment&&h.fragment!==l.fragment)}function Ir(h,l,a){return Pn(h,l,l.segments,a)}function Pn(h,l,a,v){if(h.segments.length>a.length){const _=h.segments.slice(0,a.length);return!(!Pe(_,a)||l.hasChildren()||!Xn(_,a,v))}if(h.segments.length===a.length){if(!Pe(h.segments,a)||!Xn(h.segments,a,v))return!1;for(const _ in l.children)if(!h.children[_]||!Ir(h.children[_],l.children[_],v))return!1;return!0}{const _=a.slice(0,h.segments.length),I=a.slice(h.segments.length);return!!(Pe(h.segments,_)&&Xn(h.segments,_,v)&&h.children[Je])&&Pn(h.children[Je],l,I,v)}}function Xn(h,l,a){return l.every((v,_)=>Ft[a](h[_].parameters,v.parameters))}class dn{constructor(l,a,v){this.root=l,this.queryParams=a,this.fragment=v}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return tr.serialize(this)}}class Ke{constructor(l,a){this.segments=l,this.children=a,this.parent=null,it(a,(v,_)=>v.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ut(this)}}class er{constructor(l,a){this.path=l,this.parameters=a}get parameterMap(){return this._parameterMap||(this._parameterMap=wn(this.parameters)),this._parameterMap}toString(){return Tr(this)}}function Pe(h,l){return h.length===l.length&&h.every((a,v)=>a.path===l[v].path)}class Ot{}class an{parse(l){const a=new nr(l);return new dn(a.parseRootSegment(),a.parseQueryParams(),a.parseFragment())}serialize(l){const a=`/${fn(l.root,!0)}`,v=function pn(h){const l=Object.keys(h).map(a=>{const v=h[a];return Array.isArray(v)?v.map(_=>`${Un(a)}=${Un(_)}`).join("&"):`${Un(a)}=${Un(v)}`}).filter(a=>!!a);return l.length?`?${l.join("&")}`:""}(l.queryParams);return`${a}${v}${"string"==typeof l.fragment?`#${function zr(h){return encodeURI(h)}(l.fragment)}`:""}`}}const tr=new an;function Ut(h){return h.segments.map(l=>Tr(l)).join("/")}function fn(h,l){if(!h.hasChildren())return Ut(h);if(l){const a=h.children[Je]?fn(h.children[Je],!1):"",v=[];return it(h.children,(_,I)=>{I!==Je&&v.push(`${I}:${fn(_,!1)}`)}),v.length>0?`${a}(${v.join("//")})`:a}{const a=function st(h,l){let a=[];return it(h.children,(v,_)=>{_===Je&&(a=a.concat(l(v,_)))}),it(h.children,(v,_)=>{_!==Je&&(a=a.concat(l(v,_)))}),a}(h,(v,_)=>_===Je?[fn(h.children[Je],!1)]:[`${_}:${fn(v,!1)}`]);return 1===Object.keys(h.children).length&&null!=h.children[Je]?`${Ut(h)}/${a[0]}`:`${Ut(h)}/(${a.join("//")})`}}function At(h){return encodeURIComponent(h).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Un(h){return At(h).replace(/%3B/gi,";")}function Xe(h){return At(h).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cr(h){return decodeURIComponent(h)}function lr(h){return Cr(h.replace(/\+/g,"%20"))}function Tr(h){return`${Xe(h.path)}${function ur(h){return Object.keys(h).map(l=>`;${Xe(l)}=${Xe(h[l])}`).join("")}(h.parameters)}`}const Dr=/^[^\/()?;=#]+/;function Nn(h){const l=h.match(Dr);return l?l[0]:""}const Rn=/^[^=?&#]+/,Ui=/^[^&#]+/;class nr{constructor(l){this.url=l,this.remaining=l}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Ke([],{}):new Ke([],this.parseChildren())}parseQueryParams(){const l={};if(this.consumeOptional("?"))do{this.parseQueryParam(l)}while(this.consumeOptional("&"));return l}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const l=[];for(this.peekStartsWith("(")||l.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),l.push(this.parseSegment());let a={};this.peekStartsWith("/(")&&(this.capture("/"),a=this.parseParens(!0));let v={};return this.peekStartsWith("(")&&(v=this.parseParens(!1)),(l.length>0||Object.keys(a).length>0)&&(v[Je]=new Ke(l,a)),v}parseSegment(){const l=Nn(this.remaining);if(""===l&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(l),new er(Cr(l),this.parseMatrixParams())}parseMatrixParams(){const l={};for(;this.consumeOptional(";");)this.parseParam(l);return l}parseParam(l){const a=Nn(this.remaining);if(!a)return;this.capture(a);let v="";if(this.consumeOptional("=")){const _=Nn(this.remaining);_&&(v=_,this.capture(v))}l[Cr(a)]=Cr(v)}parseQueryParam(l){const a=function Nt(h){const l=h.match(Rn);return l?l[0]:""}(this.remaining);if(!a)return;this.capture(a);let v="";if(this.consumeOptional("=")){const F=function Ht(h){const l=h.match(Ui);return l?l[0]:""}(this.remaining);F&&(v=F,this.capture(v))}const _=lr(a),I=lr(v);if(l.hasOwnProperty(_)){let F=l[_];Array.isArray(F)||(F=[F],l[_]=F),F.push(I)}else l[_]=I}parseParens(l){const a={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const v=Nn(this.remaining),_=this.remaining[v.length];if("/"!==_&&")"!==_&&";"!==_)throw new Error(`Cannot parse url '${this.url}'`);let I;v.indexOf(":")>-1?(I=v.substr(0,v.indexOf(":")),this.capture(I),this.capture(":")):l&&(I=Je);const F=this.parseChildren();a[I]=1===Object.keys(F).length?F[Je]:new Ke([],F),this.consumeOptional("//")}return a}peekStartsWith(l){return this.remaining.startsWith(l)}consumeOptional(l){return!!this.peekStartsWith(l)&&(this.remaining=this.remaining.substring(l.length),!0)}capture(l){if(!this.consumeOptional(l))throw new Error(`Expected "${l}".`)}}class gn{constructor(l){this._root=l}get root(){return this._root.value}parent(l){const a=this.pathFromRoot(l);return a.length>1?a[a.length-2]:null}children(l){const a=Wr(l,this._root);return a?a.children.map(v=>v.value):[]}firstChild(l){const a=Wr(l,this._root);return a&&a.children.length>0?a.children[0].value:null}siblings(l){const a=rr(l,this._root);return a.length<2?[]:a[a.length-2].children.map(_=>_.value).filter(_=>_!==l)}pathFromRoot(l){return rr(l,this._root).map(a=>a.value)}}function Wr(h,l){if(h===l.value)return l;for(const a of l.children){const v=Wr(h,a);if(v)return v}return null}function rr(h,l){if(h===l.value)return[l];for(const a of l.children){const v=rr(h,a);if(v.length)return v.unshift(l),v}return[]}class In{constructor(l,a){this.value=l,this.children=a}toString(){return`TreeNode(${this.value})`}}function tn(h){const l={};return h&&h.children.forEach(a=>l[a.value.outlet]=a),l}class cr extends gn{constructor(l,a){super(l),this.snapshot=a,di(this,l)}toString(){return this.snapshot.toString()}}function Hi(h,l){const a=function xr(h,l){const F=new Or([],{},{},"",{},Je,l,null,h.root,-1,{});return new $i("",new In(F,[]))}(h,l),v=new J.X([new er("",{})]),_=new J.X({}),I=new J.X({}),F=new J.X({}),G=new J.X(""),me=new dr(v,_,F,G,I,Je,l,a.root);return me.snapshot=a.root,new cr(new In(me,[]),a)}class dr{constructor(l,a,v,_,I,F,G,me){this.url=l,this.params=a,this.queryParams=v,this.fragment=_,this.data=I,this.outlet=F,this.component=G,this._futureSnapshot=me}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,Le.U)(l=>wn(l)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,Le.U)(l=>wn(l)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ci(h,l="emptyOnly"){const a=h.pathFromRoot;let v=0;if("always"!==l)for(v=a.length-1;v>=1;){const _=a[v],I=a[v-1];if(_.routeConfig&&""===_.routeConfig.path)v--;else{if(I.component)break;v--}}return function fs(h){return h.reduce((l,a)=>({params:Object.assign(Object.assign({},l.params),a.params),data:Object.assign(Object.assign({},l.data),a.data),resolve:Object.assign(Object.assign({},l.resolve),a._resolvedData)}),{params:{},data:{},resolve:{}})}(a.slice(v))}class Or{constructor(l,a,v,_,I,F,G,me,ke,dt,ze){this.url=l,this.params=a,this.queryParams=v,this.fragment=_,this.data=I,this.outlet=F,this.component=G,this.routeConfig=me,this._urlSegment=ke,this._lastPathIndex=dt,this._resolve=ze}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=wn(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=wn(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(v=>v.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class $i extends gn{constructor(l,a){super(a),this.url=l,di(this,a)}toString(){return Mi(this._root)}}function di(h,l){l.value._routerState=h,l.children.forEach(a=>di(h,a))}function Mi(h){const l=h.children.length>0?` { ${h.children.map(Mi).join(", ")} } `:"";return`${h.value}${l}`}function Si(h){if(h.snapshot){const l=h.snapshot,a=h._futureSnapshot;h.snapshot=a,x(l.queryParams,a.queryParams)||h.queryParams.next(a.queryParams),l.fragment!==a.fragment&&h.fragment.next(a.fragment),x(l.params,a.params)||h.params.next(a.params),function K(h,l){if(h.length!==l.length)return!1;for(let a=0;a<h.length;++a)if(!x(h[a],l[a]))return!1;return!0}(l.url,a.url)||h.url.next(a.url),x(l.data,a.data)||h.data.next(a.data)}else h.snapshot=h._futureSnapshot,h.data.next(h._futureSnapshot.data)}function hi(h,l){const a=x(h.params,l.params)&&function hn(h,l){return Pe(h,l)&&h.every((a,v)=>x(a.parameters,l[v].parameters))}(h.url,l.url);return a&&!(!h.parent!=!l.parent)&&(!h.parent||hi(h.parent,l.parent))}function Kr(h,l,a){if(a&&h.shouldReuseRoute(l.value,a.value.snapshot)){const v=a.value;v._futureSnapshot=l.value;const _=function gs(h,l,a){return l.children.map(v=>{for(const _ of a.children)if(h.shouldReuseRoute(v.value,_.value.snapshot))return Kr(h,v,_);return Kr(h,v)})}(h,l,a);return new In(v,_)}{if(h.shouldAttach(l.value)){const I=h.retrieve(l.value);if(null!==I){const F=I.route;return F.value._futureSnapshot=l.value,F.children=l.children.map(G=>Kr(h,G)),F}}const v=function fi(h){return new dr(new J.X(h.url),new J.X(h.params),new J.X(h.queryParams),new J.X(h.fragment),new J.X(h.data),h.outlet,h.component,h)}(l.value),_=l.children.map(I=>Kr(h,I));return new In(v,_)}}function pi(h){return"object"==typeof h&&null!=h&&!h.outlets&&!h.segmentPath}function _r(h){return"object"==typeof h&&null!=h&&h.outlets}function Pr(h,l,a,v,_){let I={};if(v&&it(v,(G,me)=>{I[me]=Array.isArray(G)?G.map(ke=>`${ke}`):`${G}`}),h===l)return new dn(a,I,_);const F=io(h,l,a);return new dn(F,I,_)}function io(h,l,a){const v={};return it(h.children,(_,I)=>{v[I]=_===l?a:io(_,l,a)}),new Ke(h.segments,v)}class Ai{constructor(l,a,v){if(this.isAbsolute=l,this.numberOfDoubleDots=a,this.commands=v,l&&v.length>0&&pi(v[0]))throw new Error("Root segment cannot have matrix parameters");const _=v.find(_r);if(_&&_!==Ge(v))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Yn{constructor(l,a,v){this.segmentGroup=l,this.processChildren=a,this.index=v}}function zi(h,l,a){if(h||(h=new Ke([],{})),0===h.segments.length&&h.hasChildren())return Yr(h,l,a);const v=function Wi(h,l,a){let v=0,_=l;const I={match:!1,pathIndex:0,commandIndex:0};for(;_<h.segments.length;){if(v>=a.length)return I;const F=h.segments[_],G=a[v];if(_r(G))break;const me=`${G}`,ke=v<a.length-1?a[v+1]:null;if(_>0&&void 0===me)break;if(me&&ke&&"object"==typeof ke&&void 0===ke.outlets){if(!hr(me,ke,F))return I;v+=2}else{if(!hr(me,{},F))return I;v++}_++}return{match:!0,pathIndex:_,commandIndex:v}}(h,l,a),_=a.slice(v.commandIndex);if(v.match&&v.pathIndex<h.segments.length){const I=new Ke(h.segments.slice(0,v.pathIndex),{});return I.children[Je]=new Ke(h.segments.slice(v.pathIndex),h.children),Yr(I,0,_)}return v.match&&0===_.length?new Ke(h.segments,{}):v.match&&!h.hasChildren()?Er(h,l,a):v.match?Yr(h,0,_):Er(h,l,a)}function Yr(h,l,a){if(0===a.length)return new Ke(h.segments,{});{const v=function ir(h){return _r(h[0])?h[0].outlets:{[Je]:h}}(a),_={};return it(v,(I,F)=>{"string"==typeof I&&(I=[I]),null!==I&&(_[F]=zi(h.children[F],l,I))}),it(h.children,(I,F)=>{void 0===v[F]&&(_[F]=I)}),new Ke(h.segments,_)}}function Er(h,l,a){const v=h.segments.slice(0,l);let _=0;for(;_<a.length;){const I=a[_];if(_r(I)){const me=Ki(I.outlets);return new Ke(v,me)}if(0===_&&pi(a[0])){v.push(new er(h.segments[l].path,Zr(a[0]))),_++;continue}const F=_r(I)?I.outlets[Je]:`${I}`,G=_<a.length-1?a[_+1]:null;F&&G&&pi(G)?(v.push(new er(F,Zr(G))),_+=2):(v.push(new er(F,{})),_++)}return new Ke(v,{})}function Ki(h){const l={};return it(h,(a,v)=>{"string"==typeof a&&(a=[a]),null!==a&&(l[v]=Er(new Ke([],{}),0,a))}),l}function Zr(h){const l={};return it(h,(a,v)=>l[v]=`${a}`),l}function hr(h,l,a){return h==a.path&&x(l,a.parameters)}class Ii{constructor(l,a,v,_){this.routeReuseStrategy=l,this.futureState=a,this.currState=v,this.forwardEvent=_}activate(l){const a=this.futureState._root,v=this.currState?this.currState._root:null;this.deactivateChildRoutes(a,v,l),Si(this.futureState.root),this.activateChildRoutes(a,v,l)}deactivateChildRoutes(l,a,v){const _=tn(a);l.children.forEach(I=>{const F=I.value.outlet;this.deactivateRoutes(I,_[F],v),delete _[F]}),it(_,(I,F)=>{this.deactivateRouteAndItsChildren(I,v)})}deactivateRoutes(l,a,v){const _=l.value,I=a?a.value:null;if(_===I)if(_.component){const F=v.getContext(_.outlet);F&&this.deactivateChildRoutes(l,a,F.children)}else this.deactivateChildRoutes(l,a,v);else I&&this.deactivateRouteAndItsChildren(a,v)}deactivateRouteAndItsChildren(l,a){l.value.component&&this.routeReuseStrategy.shouldDetach(l.value.snapshot)?this.detachAndStoreRouteSubtree(l,a):this.deactivateRouteAndOutlet(l,a)}detachAndStoreRouteSubtree(l,a){const v=a.getContext(l.value.outlet),_=v&&l.value.component?v.children:a,I=tn(l);for(const F of Object.keys(I))this.deactivateRouteAndItsChildren(I[F],_);if(v&&v.outlet){const F=v.outlet.detach(),G=v.children.onOutletDeactivated();this.routeReuseStrategy.store(l.value.snapshot,{componentRef:F,route:l,contexts:G})}}deactivateRouteAndOutlet(l,a){const v=a.getContext(l.value.outlet),_=v&&l.value.component?v.children:a,I=tn(l);for(const F of Object.keys(I))this.deactivateRouteAndItsChildren(I[F],_);v&&v.outlet&&(v.outlet.deactivate(),v.children.onOutletDeactivated(),v.attachRef=null,v.resolver=null,v.route=null)}activateChildRoutes(l,a,v){const _=tn(a);l.children.forEach(I=>{this.activateRoutes(I,_[I.value.outlet],v),this.forwardEvent(new Jt(I.value.snapshot))}),l.children.length&&this.forwardEvent(new et(l.value.snapshot))}activateRoutes(l,a,v){const _=l.value,I=a?a.value:null;if(Si(_),_===I)if(_.component){const F=v.getOrCreateContext(_.outlet);this.activateChildRoutes(l,a,F.children)}else this.activateChildRoutes(l,a,v);else if(_.component){const F=v.getOrCreateContext(_.outlet);if(this.routeReuseStrategy.shouldAttach(_.snapshot)){const G=this.routeReuseStrategy.retrieve(_.snapshot);this.routeReuseStrategy.store(_.snapshot,null),F.children.onOutletReAttached(G.contexts),F.attachRef=G.componentRef,F.route=G.route.value,F.outlet&&F.outlet.attach(G.componentRef,G.route.value),Si(G.route.value),this.activateChildRoutes(l,null,F.children)}else{const G=function Ti(h){for(let l=h.parent;l;l=l.parent){const a=l.routeConfig;if(a&&a._loadedConfig)return a._loadedConfig;if(a&&a.component)return null}return null}(_.snapshot),me=G?G.module.componentFactoryResolver:null;F.attachRef=null,F.route=_,F.resolver=me,F.outlet&&F.outlet.activateWith(_,me),this.activateChildRoutes(l,null,F.children)}}else this.activateChildRoutes(l,null,v)}}class br{constructor(l,a){this.routes=l,this.module=a}}function Ln(h){return"function"==typeof h}function Hn(h){return h instanceof dn}const Jr=Symbol("INITIAL_VALUE");function Nr(){return(0,Ze.w)(h=>function R(...h){let l=null,a=null;return(0,W.K)(h[h.length-1])&&(a=h.pop()),"function"==typeof h[h.length-1]&&(l=h.pop()),1===h.length&&(0,Z.k)(h[0])&&(h=h[0]),(0,O.n)(h,a).lift(new q(l))}(h.map(l=>l.pipe((0,Fe.q)(1),function He(...h){const l=h[h.length-1];return(0,W.K)(l)?(h.pop(),a=>(0,Se.z)(h,a,l)):a=>(0,Se.z)(h,a)}(Jr)))).pipe(pe((l,a)=>{let v=!1;return a.reduce((_,I,F)=>_!==Jr?_:(I===Jr&&(v=!0),v||!1!==I&&F!==a.length-1&&!Hn(I)?_:I),l)},Jr),(0,De.h)(l=>l!==Jr),(0,Le.U)(l=>Hn(l)?l:!0===l),(0,Fe.q)(1)))}class Kt{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Qr,this.attachRef=null}}class Qr{constructor(){this.contexts=new Map}onChildOutletCreated(l,a){const v=this.getOrCreateContext(l);v.outlet=a,this.contexts.set(l,v)}onChildOutletDestroyed(l){const a=this.getContext(l);a&&(a.outlet=null,a.attachRef=null)}onOutletDeactivated(){const l=this.contexts;return this.contexts=new Map,l}onOutletReAttached(l){this.contexts=l}getOrCreateContext(l){let a=this.getContext(l);return a||(a=new Kt,this.contexts.set(l,a)),a}getContext(l){return this.contexts.get(l)||null}}let Cs=(()=>{class h{constructor(a,v,_,I,F){this.parentContexts=a,this.location=v,this.resolver=_,this.changeDetector=F,this.activated=null,this._activatedRoute=null,this.activateEvents=new c.vpe,this.deactivateEvents=new c.vpe,this.attachEvents=new c.vpe,this.detachEvents=new c.vpe,this.name=I||Je,a.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const a=this.parentContexts.getContext(this.name);a&&a.route&&(a.attachRef?this.attach(a.attachRef,a.route):this.activateWith(a.route,a.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 a=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(a.instance),a}attach(a,v){this.activated=a,this._activatedRoute=v,this.location.insert(a.hostView),this.attachEvents.emit(a.instance)}deactivate(){if(this.activated){const a=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(a)}}activateWith(a,v){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=a;const F=(v=v||this.resolver).resolveComponentFactory(a._futureSnapshot.routeConfig.component),G=this.parentContexts.getOrCreateContext(this.name).children,me=new xi(a,G,this.location.injector);this.activated=this.location.createComponent(F,this.location.length,me),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return h.\u0275fac=function(a){return new(a||h)(c.Y36(Qr),c.Y36(c.s_b),c.Y36(c._Vd),c.$8M("name"),c.Y36(c.sBO))},h.\u0275dir=c.lG2({type:h,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),h})();class xi{constructor(l,a,v){this.route=l,this.childContexts=a,this.parent=v}get(l,a){return l===dr?this.route:l===Qr?this.childContexts:this.parent.get(l,a)}}let Tn=(()=>{class h{}return h.\u0275fac=function(a){return new(a||h)},h.\u0275cmp=c.Xpm({type:h,selectors:[["ng-component"]],decls:1,vars:0,template:function(a,v){1&a&&c._UZ(0,"router-outlet")},directives:[Cs],encapsulation:2}),h})();function D(h,l=""){for(let a=0;a<h.length;a++){const v=h[a];y(v,m(l,v))}}function y(h,l){h.children&&D(h.children,l)}function m(h,l){return l?h||l.path?h&&!l.path?`${h}/`:!h&&l.path?l.path:`${h}/${l.path}`:"":h}function A(h){const l=h.children&&h.children.map(A),a=l?Object.assign(Object.assign({},h),{children:l}):Object.assign({},h);return!a.component&&(l||a.loadChildren)&&a.outlet&&a.outlet!==Je&&(a.component=Tn),a}function he(h){return h.outlet||Je}function Ue(h,l){const a=h.filter(v=>he(v)===l);return a.push(...h.filter(v=>he(v)!==l)),a}const nn={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function rn(h,l,a){var v;if(""===l.path)return"full"===l.pathMatch&&(h.hasChildren()||a.length>0)?Object.assign({},nn):{matched:!0,consumedSegments:[],remainingSegments:a,parameters:{},positionalParamSegments:{}};const I=(l.matcher||re)(a,h,l);if(!I)return Object.assign({},nn);const F={};it(I.posParams,(me,ke)=>{F[ke]=me.path});const G=I.consumed.length>0?Object.assign(Object.assign({},F),I.consumed[I.consumed.length-1].parameters):F;return{matched:!0,consumedSegments:I.consumed,remainingSegments:a.slice(I.consumed.length),parameters:G,positionalParamSegments:null!==(v=I.posParams)&&void 0!==v?v:{}}}function fr(h,l,a,v,_="corrected"){if(a.length>0&&function so(h,l,a){return a.some(v=>Zi(h,l,v)&&he(v)!==Je)}(h,a,v)){const F=new Ke(l,function nt(h,l,a,v){const _={};_[Je]=v,v._sourceSegment=h,v._segmentIndexShift=l.length;for(const I of a)if(""===I.path&&he(I)!==Je){const F=new Ke([],{});F._sourceSegment=h,F._segmentIndexShift=l.length,_[he(I)]=F}return _}(h,l,v,new Ke(a,h.children)));return F._sourceSegment=h,F._segmentIndexShift=l.length,{segmentGroup:F,slicedSegments:[]}}if(0===a.length&&function Xa(h,l,a){return a.some(v=>Zi(h,l,v))}(h,a,v)){const F=new Ke(h.segments,function qr(h,l,a,v,_,I){const F={};for(const G of v)if(Zi(h,a,G)&&!_[he(G)]){const me=new Ke([],{});me._sourceSegment=h,me._segmentIndexShift="legacy"===I?h.segments.length:l.length,F[he(G)]=me}return Object.assign(Object.assign({},_),F)}(h,l,a,v,h.children,_));return F._sourceSegment=h,F._segmentIndexShift=l.length,{segmentGroup:F,slicedSegments:a}}const I=new Ke(h.segments,h.children);return I._sourceSegment=h,I._segmentIndexShift=l.length,{segmentGroup:I,slicedSegments:a}}function Zi(h,l,a){return(!(h.hasChildren()||l.length>0)||"full"!==a.pathMatch)&&""===a.path}function oo(h,l,a,v){return!!(he(h)===v||v!==Je&&Zi(l,a,h))&&("**"===h.path||rn(l,h,a).matched)}function ao(h,l,a){return 0===l.length&&!h.children[a]}class Rr{constructor(l){this.segmentGroup=l||null}}class Oi{constructor(l){this.urlTree=l}}function mi(h){return(0,ne._)(new Rr(h))}function Me(h){return(0,ne._)(new Oi(h))}class Qi{constructor(l,a,v,_,I){this.configLoader=a,this.urlSerializer=v,this.urlTree=_,this.config=I,this.allowRedirects=!0,this.ngModule=l.get(c.h0i)}apply(){const l=fr(this.urlTree.root,[],[],this.config).segmentGroup,a=new Ke(l.segments,l.children);return this.expandSegmentGroup(this.ngModule,this.config,a,Je).pipe((0,Le.U)(I=>this.createUrlTree(Zn(I),this.urlTree.queryParams,this.urlTree.fragment))).pipe($e(I=>{if(I instanceof Oi)return this.allowRedirects=!1,this.match(I.urlTree);throw I instanceof Rr?this.noMatchError(I):I}))}match(l){return this.expandSegmentGroup(this.ngModule,this.config,l.root,Je).pipe((0,Le.U)(_=>this.createUrlTree(Zn(_),l.queryParams,l.fragment))).pipe($e(_=>{throw _ instanceof Rr?this.noMatchError(_):_}))}noMatchError(l){return new Error(`Cannot match any routes. URL Segment: '${l.segmentGroup}'`)}createUrlTree(l,a,v){const _=l.segments.length>0?new Ke([],{[Je]:l}):l;return new dn(_,a,v)}expandSegmentGroup(l,a,v,_){return 0===v.segments.length&&v.hasChildren()?this.expandChildren(l,a,v).pipe((0,Le.U)(I=>new Ke([],I))):this.expandSegment(l,v,a,v.segments,_,!0)}expandChildren(l,a,v){const _=[];for(const I of Object.keys(v.children))"primary"===I?_.unshift(I):_.push(I);return(0,u.D)(_).pipe((0,We.b)(I=>{const F=v.children[I],G=Ue(a,I);return this.expandSegmentGroup(l,G,F,I).pipe((0,Le.U)(me=>({segment:me,outlet:I})))}),pe((I,F)=>(I[F.outlet]=F.segment,I),{}),function ot(h,l){const a=arguments.length>=2;return v=>v.pipe(h?(0,De.h)((_,I)=>h(_,I,v)):Yt.y,Xt(1),a?qe(l):Bt(()=>new X))}())}expandSegment(l,a,v,_,I,F){return(0,u.D)(v).pipe((0,We.b)(G=>this.expandSegmentAgainstRoute(l,a,v,G,_,I,F).pipe($e(ke=>{if(ke instanceof Rr)return(0,H.of)(null);throw ke}))),Zt(G=>!!G),$e((G,me)=>{if(G instanceof X||"EmptyError"===G.name)return ao(a,_,I)?(0,H.of)(new Ke([],{})):mi(a);throw G}))}expandSegmentAgainstRoute(l,a,v,_,I,F,G){return oo(_,a,I,F)?void 0===_.redirectTo?this.matchSegmentAgainstRoute(l,a,_,I,F):G&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(l,a,v,_,I,F):mi(a):mi(a)}expandSegmentAgainstRouteUsingRedirect(l,a,v,_,I,F){return"**"===_.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(l,v,_,F):this.expandRegularSegmentAgainstRouteUsingRedirect(l,a,v,_,I,F)}expandWildCardWithParamsAgainstRouteUsingRedirect(l,a,v,_){const I=this.applyRedirectCommands([],v.redirectTo,{});return v.redirectTo.startsWith("/")?Me(I):this.lineralizeSegments(v,I).pipe((0,Ct.zg)(F=>{const G=new Ke(F,{});return this.expandSegment(l,G,a,F,_,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(l,a,v,_,I,F){const{matched:G,consumedSegments:me,remainingSegments:ke,positionalParamSegments:dt}=rn(a,_,I);if(!G)return mi(a);const ze=this.applyRedirectCommands(me,_.redirectTo,dt);return _.redirectTo.startsWith("/")?Me(ze):this.lineralizeSegments(_,ze).pipe((0,Ct.zg)(Tt=>this.expandSegment(l,a,v,Tt.concat(ke),F,!1)))}matchSegmentAgainstRoute(l,a,v,_,I){if("**"===v.path)return v.loadChildren?(v._loadedConfig?(0,H.of)(v._loadedConfig):this.configLoader.load(l.injector,v)).pipe((0,Le.U)(ze=>(v._loadedConfig=ze,new Ke(_,{})))):(0,H.of)(new Ke(_,{}));const{matched:F,consumedSegments:G,remainingSegments:me}=rn(a,v,_);return F?this.getChildConfig(l,v,_).pipe((0,Ct.zg)(dt=>{const ze=dt.module,Tt=dt.routes,{segmentGroup:Et,slicedSegments:kr}=fr(a,G,me,Tt),_i=new Ke(Et.segments,Et.children);if(0===kr.length&&_i.hasChildren())return this.expandChildren(ze,Tt,_i).pipe((0,Le.U)(wc=>new Ke(G,wc)));if(0===Tt.length&&0===kr.length)return(0,H.of)(new Ke(G,{}));const zt=he(v)===I;return this.expandSegment(ze,_i,Tt,kr,zt?Je:I,!0).pipe((0,Le.U)(Ts=>new Ke(G.concat(Ts.segments),Ts.children)))})):mi(a)}getChildConfig(l,a,v){return a.children?(0,H.of)(new br(a.children,l)):a.loadChildren?void 0!==a._loadedConfig?(0,H.of)(a._loadedConfig):this.runCanLoadGuards(l.injector,a,v).pipe((0,Ct.zg)(_=>_?this.configLoader.load(l.injector,a).pipe((0,Le.U)(I=>(a._loadedConfig=I,I))):function Ji(h){return(0,ne._)(cn(`Cannot load children because the guard of the route "path: '${h.path}'" returned false`))}(a))):(0,H.of)(new br([],l))}runCanLoadGuards(l,a,v){const _=a.canLoad;if(!_||0===_.length)return(0,H.of)(!0);const I=_.map(F=>{const G=l.get(F);let me;if(function Yi(h){return h&&Ln(h.canLoad)}(G))me=G.canLoad(a,v);else{if(!Ln(G))throw new Error("Invalid CanLoad guard");me=G(a,v)}return Mt(me)});return(0,H.of)(I).pipe(Nr(),$t(F=>{if(!Hn(F))return;const G=cn(`Redirecting to "${this.urlSerializer.serialize(F)}"`);throw G.url=F,G}),(0,Le.U)(F=>!0===F))}lineralizeSegments(l,a){let v=[],_=a.root;for(;;){if(v=v.concat(_.segments),0===_.numberOfChildren)return(0,H.of)(v);if(_.numberOfChildren>1||!_.children[Je])return(0,ne._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${l.redirectTo}'`));_=_.children[Je]}}applyRedirectCommands(l,a,v){return this.applyRedirectCreatreUrlTree(a,this.urlSerializer.parse(a),l,v)}applyRedirectCreatreUrlTree(l,a,v,_){const I=this.createSegmentGroup(l,a.root,v,_);return new dn(I,this.createQueryParams(a.queryParams,this.urlTree.queryParams),a.fragment)}createQueryParams(l,a){const v={};return it(l,(_,I)=>{if("string"==typeof _&&_.startsWith(":")){const G=_.substring(1);v[I]=a[G]}else v[I]=_}),v}createSegmentGroup(l,a,v,_){const I=this.createSegments(l,a.segments,v,_);let F={};return it(a.children,(G,me)=>{F[me]=this.createSegmentGroup(l,G,v,_)}),new Ke(I,F)}createSegments(l,a,v,_){return a.map(I=>I.path.startsWith(":")?this.findPosParam(l,I,_):this.findOrReturn(I,v))}findPosParam(l,a,v){const _=v[a.path.substring(1)];if(!_)throw new Error(`Cannot redirect to '${l}'. Cannot find '${a.path}'.`);return _}findOrReturn(l,a){let v=0;for(const _ of a){if(_.path===l.path)return a.splice(v),_;v++}return l}}function Zn(h){const l={};for(const v of Object.keys(h.children)){const I=Zn(h.children[v]);(I.segments.length>0||I.hasChildren())&&(l[v]=I)}return function vi(h){if(1===h.numberOfChildren&&h.children[Je]){const l=h.children[Je];return new Ke(h.segments.concat(l.segments),l.children)}return h}(new Ke(h.segments,l))}class Pi{constructor(l){this.path=l,this.route=this.path[this.path.length-1]}}class qi{constructor(l,a){this.component=l,this.route=a}}function lo(h,l,a){const v=h._root;return kn(v,l?l._root:null,a,[v.value])}function Lr(h,l,a){const v=function Mn(h){if(!h)return null;for(let l=h.parent;l;l=l.parent){const a=l.routeConfig;if(a&&a._loadedConfig)return a._loadedConfig}return null}(l);return(v?v.module.injector:a).get(h)}function kn(h,l,a,v,_={canDeactivateChecks:[],canActivateChecks:[]}){const I=tn(l);return h.children.forEach(F=>{(function Ds(h,l,a,v,_={canDeactivateChecks:[],canActivateChecks:[]}){const I=h.value,F=l?l.value:null,G=a?a.getContext(h.value.outlet):null;if(F&&I.routeConfig===F.routeConfig){const me=function Xr(h,l,a){if("function"==typeof a)return a(h,l);switch(a){case"pathParamsChange":return!Pe(h.url,l.url);case"pathParamsOrQueryParamsChange":return!Pe(h.url,l.url)||!x(h.queryParams,l.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!hi(h,l)||!x(h.queryParams,l.queryParams);default:return!hi(h,l)}}(F,I,I.routeConfig.runGuardsAndResolvers);me?_.canActivateChecks.push(new Pi(v)):(I.data=F.data,I._resolvedData=F._resolvedData),kn(h,l,I.component?G?G.children:null:a,v,_),me&&G&&G.outlet&&G.outlet.isActivated&&_.canDeactivateChecks.push(new qi(G.outlet.component,F))}else F&&Vn(l,G,_),_.canActivateChecks.push(new Pi(v)),kn(h,null,I.component?G?G.children:null:a,v,_)})(F,I[F.value.outlet],a,v.concat([F.value]),_),delete I[F.value.outlet]}),it(I,(F,G)=>Vn(F,a.getContext(G),_)),_}function Vn(h,l,a){const v=tn(h),_=h.value;it(v,(I,F)=>{Vn(I,_.component?l?l.children.getContext(F):null:l,a)}),a.canDeactivateChecks.push(new qi(_.component&&l&&l.outlet&&l.outlet.isActivated?l.outlet.component:null,_))}class ws{}function ts(h){return new Ie.y(l=>l.error(h))}class Li{constructor(l,a,v,_,I,F){this.rootComponentType=l,this.config=a,this.urlTree=v,this.url=_,this.paramsInheritanceStrategy=I,this.relativeLinkResolution=F}recognize(){const l=fr(this.urlTree.root,[],[],this.config.filter(F=>void 0===F.redirectTo),this.relativeLinkResolution).segmentGroup,a=this.processSegmentGroup(this.config,l,Je);if(null===a)return null;const v=new Or([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Je,this.rootComponentType,null,this.urlTree.root,-1,{}),_=new In(v,a),I=new $i(this.url,_);return this.inheritParamsAndData(I._root),I}inheritParamsAndData(l){const a=l.value,v=ci(a,this.paramsInheritanceStrategy);a.params=Object.freeze(v.params),a.data=Object.freeze(v.data),l.children.forEach(_=>this.inheritParamsAndData(_))}processSegmentGroup(l,a,v){return 0===a.segments.length&&a.hasChildren()?this.processChildren(l,a):this.processSegment(l,a,a.segments,v)}processChildren(l,a){const v=[];for(const I of Object.keys(a.children)){const F=a.children[I],G=Ue(l,I),me=this.processSegmentGroup(G,F,I);if(null===me)return null;v.push(...me)}const _=yi(v);return function Fi(h){h.sort((l,a)=>l.value.outlet===Je?-1:a.value.outlet===Je?1:l.value.outlet.localeCompare(a.value.outlet))}(_),_}processSegment(l,a,v,_){for(const I of l){const F=this.processSegmentAgainstRoute(I,a,v,_);if(null!==F)return F}return ao(a,v,_)?[]:null}processSegmentAgainstRoute(l,a,v,_){if(l.redirectTo||!oo(l,a,v,_))return null;let I,F=[],G=[];if("**"===l.path){const Et=v.length>0?Ge(v).parameters:{};I=new Or(v,Et,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sr(l),he(l),l.component,l,Ss(a),En(a)+v.length,kt(l))}else{const Et=rn(a,l,v);if(!Et.matched)return null;F=Et.consumedSegments,G=Et.remainingSegments,I=new Or(F,Et.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,sr(l),he(l),l.component,l,Ss(a),En(a)+F.length,kt(l))}const me=function Ms(h){return h.children?h.children:h.loadChildren?h._loadedConfig.routes:[]}(l),{segmentGroup:ke,slicedSegments:dt}=fr(a,F,G,me.filter(Et=>void 0===Et.redirectTo),this.relativeLinkResolution);if(0===dt.length&&ke.hasChildren()){const Et=this.processChildren(me,ke);return null===Et?null:[new In(I,Et)]}if(0===me.length&&0===dt.length)return[new In(I,[])];const ze=he(l)===_,Tt=this.processSegment(me,ke,dt,ze?Je:_);return null===Tt?null:[new In(I,Tt)]}}function ho(h){const l=h.value.routeConfig;return l&&""===l.path&&void 0===l.redirectTo}function yi(h){const l=[],a=new Set;for(const v of h){if(!ho(v)){l.push(v);continue}const _=l.find(I=>v.value.routeConfig===I.value.routeConfig);void 0!==_?(_.children.push(...v.children),a.add(_)):l.push(v)}for(const v of a){const _=yi(v.children);l.push(new In(v.value,_))}return l.filter(v=>!a.has(v))}function Ss(h){let l=h;for(;l._sourceSegment;)l=l._sourceSegment;return l}function En(h){let l=h,a=l._segmentIndexShift?l._segmentIndexShift:0;for(;l._sourceSegment;)l=l._sourceSegment,a+=l._segmentIndexShift?l._segmentIndexShift:0;return a-1}function sr(h){return h.data||{}}function kt(h){return h.resolve||{}}function f(h){return[...Object.keys(h),...Object.getOwnPropertySymbols(h)]}function g(h){return(0,Ze.w)(l=>{const a=h(l);return a?(0,u.D)(a).pipe((0,Le.U)(()=>l)):(0,H.of)(l)})}class ae extends class B{shouldDetach(l){return!1}store(l,a){}shouldAttach(l){return!1}retrieve(l){return null}shouldReuseRoute(l,a){return l.routeConfig===a.routeConfig}}{}const Ee=new c.OlP("ROUTES");class Be{constructor(l,a,v,_){this.injector=l,this.compiler=a,this.onLoadStartListener=v,this.onLoadEndListener=_}load(l,a){if(a._loader$)return a._loader$;this.onLoadStartListener&&this.onLoadStartListener(a);const _=this.loadModuleFactory(a.loadChildren).pipe((0,Le.U)(I=>{this.onLoadEndListener&&this.onLoadEndListener(a);const F=I.create(l);return new br(Ce(F.injector.get(Ee,void 0,c.XFs.Self|c.XFs.Optional)).map(A),F)}),$e(I=>{throw a._loader$=void 0,I}));return a._loader$=new gt.c(_,()=>new rt.xQ).pipe((0,on.x)()),a._loader$}loadModuleFactory(l){return Mt(l()).pipe((0,Ct.zg)(a=>a instanceof c.YKP?(0,H.of)(a):(0,u.D)(this.compiler.compileModuleAsync(a))))}}class vt{shouldProcessUrl(l){return!0}extract(l){return l}merge(l,a){return l}}function It(h){throw h}function yt(h,l,a){return l.parse("/")}function Vt(h,l){return(0,H.of)(null)}const Pt={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},mn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let qt=(()=>{class h{constructor(a,v,_,I,F,G,me){this.rootComponentType=a,this.urlSerializer=v,this.rootContexts=_,this.location=I,this.config=me,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new rt.xQ,this.errorHandler=It,this.malformedUriErrorHandler=yt,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Vt,afterPreactivation:Vt},this.urlHandlingStrategy=new vt,this.routeReuseStrategy=new ae,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=F.get(c.h0i),this.console=F.get(c.c2e);const ze=F.get(c.R0b);this.isNgZoneEnabled=ze instanceof c.R0b&&c.R0b.isInAngularZone(),this.resetConfig(me),this.currentUrlTree=function qn(){return new dn(new Ke([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Be(F,G,Tt=>this.triggerEvent(new Ae(Tt)),Tt=>this.triggerEvent(new ie(Tt))),this.routerState=Hi(this.currentUrlTree,this.rootComponentType),this.transitions=new J.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 a;return null===(a=this.location.getState())||void 0===a?void 0:a.\u0275routerPageId}setupNavigations(a){const v=this.events;return a.pipe((0,De.h)(_=>0!==_.id),(0,Le.U)(_=>Object.assign(Object.assign({},_),{extractedUrl:this.urlHandlingStrategy.extract(_.rawUrl)})),(0,Ze.w)(_=>{let I=!1,F=!1;return(0,H.of)(_).pipe($t(G=>{this.currentNavigation={id:G.id,initialUrl:G.currentRawUrl,extractedUrl:G.extractedUrl,trigger:G.source,extras:G.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,Ze.w)(G=>{const me=this.browserUrlTree.toString(),ke=!this.navigated||G.extractedUrl.toString()!==me||me!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||ke)&&this.urlHandlingStrategy.shouldProcessUrl(G.rawUrl))return Fr(G.source)&&(this.browserUrlTree=G.extractedUrl),(0,H.of)(G).pipe((0,Ze.w)(ze=>{const Tt=this.transitions.getValue();return v.next(new k(ze.id,this.serializeUrl(ze.extractedUrl),ze.source,ze.restoredState)),Tt!==this.transitions.getValue()?xe.E:Promise.resolve(ze)}),function Fn(h,l,a,v){return(0,Ze.w)(_=>function sn(h,l,a,v,_){return new Qi(h,l,a,v,_).apply()}(h,l,a,_.extractedUrl,v).pipe((0,Le.U)(I=>Object.assign(Object.assign({},_),{urlAfterRedirects:I}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),$t(ze=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:ze.urlAfterRedirects})}),function ta(h,l,a,v,_){return(0,Ct.zg)(I=>function Ri(h,l,a,v,_="emptyOnly",I="legacy"){try{const F=new Li(h,l,a,v,_,I).recognize();return null===F?ts(new ws):(0,H.of)(F)}catch(F){return ts(F)}}(h,l,I.urlAfterRedirects,a(I.urlAfterRedirects),v,_).pipe((0,Le.U)(F=>Object.assign(Object.assign({},I),{targetSnapshot:F}))))}(this.rootComponentType,this.config,ze=>this.serializeUrl(ze),this.paramsInheritanceStrategy,this.relativeLinkResolution),$t(ze=>{if("eager"===this.urlUpdateStrategy){if(!ze.extras.skipLocationChange){const Et=this.urlHandlingStrategy.merge(ze.urlAfterRedirects,ze.rawUrl);this.setBrowserUrl(Et,ze)}this.browserUrlTree=ze.urlAfterRedirects}const Tt=new tt(ze.id,this.serializeUrl(ze.extractedUrl),this.serializeUrl(ze.urlAfterRedirects),ze.targetSnapshot);v.next(Tt)}));if(ke&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:Tt,extractedUrl:Et,source:kr,restoredState:_i,extras:zt}=G,ca=new k(Tt,this.serializeUrl(Et),kr,_i);v.next(ca);const Ts=Hi(Et,this.rootComponentType).snapshot;return(0,H.of)(Object.assign(Object.assign({},G),{targetSnapshot:Ts,urlAfterRedirects:Et,extras:Object.assign(Object.assign({},zt),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=G.rawUrl,G.resolve(null),xe.E}),g(G=>{const{targetSnapshot:me,id:ke,extractedUrl:dt,rawUrl:ze,extras:{skipLocationChange:Tt,replaceUrl:Et}}=G;return this.hooks.beforePreactivation(me,{navigationId:ke,appliedUrlTree:dt,rawUrlTree:ze,skipLocationChange:!!Tt,replaceUrl:!!Et})}),$t(G=>{const me=new ut(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot);this.triggerEvent(me)}),(0,Le.U)(G=>Object.assign(Object.assign({},G),{guards:lo(G.targetSnapshot,G.currentSnapshot,this.rootContexts)})),function _s(h,l){return(0,Ct.zg)(a=>{const{targetSnapshot:v,currentSnapshot:_,guards:{canActivateChecks:I,canDeactivateChecks:F}}=a;return 0===F.length&&0===I.length?(0,H.of)(Object.assign(Object.assign({},a),{guardsResult:!0})):function Es(h,l,a,v){return(0,u.D)(h).pipe((0,Ct.zg)(_=>function Ni(h,l,a,v,_){const I=l&&l.routeConfig?l.routeConfig.canDeactivate:null;if(!I||0===I.length)return(0,H.of)(!0);const F=I.map(G=>{const me=Lr(G,l,_);let ke;if(function Gt(h){return h&&Ln(h.canDeactivate)}(me))ke=Mt(me.canDeactivate(h,l,a,v));else{if(!Ln(me))throw new Error("Invalid CanDeactivate guard");ke=Mt(me(h,l,a,v))}return ke.pipe(Zt())});return(0,H.of)(F).pipe(Nr())}(_.component,_.route,a,l,v)),Zt(_=>!0!==_,!0))}(F,v,_,h).pipe((0,Ct.zg)(G=>G&&function ys(h){return"boolean"==typeof h}(G)?function uo(h,l,a,v){return(0,u.D)(l).pipe((0,We.b)(_=>(0,Se.z)(function Xi(h,l){return null!==h&&l&&l(new te(h)),(0,H.of)(!0)}(_.route.parent,v),function co(h,l){return null!==h&&l&&l(new Dt(h)),(0,H.of)(!0)}(_.route,v),function bs(h,l,a){const v=l[l.length-1],I=l.slice(0,l.length-1).reverse().map(F=>function ea(h){const l=h.routeConfig?h.routeConfig.canActivateChild:null;return l&&0!==l.length?{node:h,guards:l}:null}(F)).filter(F=>null!==F).map(F=>(0,Te.P)(()=>{const G=F.guards.map(me=>{const ke=Lr(me,F.node,a);let dt;if(function Xo(h){return h&&Ln(h.canActivateChild)}(ke))dt=Mt(ke.canActivateChild(v,h));else{if(!Ln(ke))throw new Error("Invalid CanActivateChild guard");dt=Mt(ke(v,h))}return dt.pipe(Zt())});return(0,H.of)(G).pipe(Nr())}));return(0,H.of)(I).pipe(Nr())}(h,_.path,a),function es(h,l,a){const v=l.routeConfig?l.routeConfig.canActivate:null;if(!v||0===v.length)return(0,H.of)(!0);const _=v.map(I=>(0,Te.P)(()=>{const F=Lr(I,l,a);let G;if(function wr(h){return h&&Ln(h.canActivate)}(F))G=Mt(F.canActivate(l,h));else{if(!Ln(F))throw new Error("Invalid CanActivate guard");G=Mt(F(l,h))}return G.pipe(Zt())}));return(0,H.of)(_).pipe(Nr())}(h,_.route,a))),Zt(_=>!0!==_,!0))}(v,I,h,l):(0,H.of)(G)),(0,Le.U)(G=>Object.assign(Object.assign({},a),{guardsResult:G})))})}(this.ngModule.injector,G=>this.triggerEvent(G)),$t(G=>{if(Hn(G.guardsResult)){const ke=cn(`Redirecting to "${this.serializeUrl(G.guardsResult)}"`);throw ke.url=G.guardsResult,ke}const me=new at(G.id,this.serializeUrl(G.extractedUrl),this.serializeUrl(G.urlAfterRedirects),G.targetSnapshot,!!G.guardsResult);this.triggerEvent(me)}),(0,De.h)(G=>!!G.guardsResult||(this.restoreHistory(G),this.cancelNavigationTransition(G,""),!1)),g(G=>{if(G.guards.canActivateChecks.length)return(0,H.of)(G).pipe($t(me=>{const ke=new Ve(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(me.urlAfterRedirects),me.targetSnapshot);this.triggerEvent(ke)}),(0,Ze.w)(me=>{let ke=!1;return(0,H.of)(me).pipe(function fo(h,l){return(0,Ct.zg)(a=>{const{targetSnapshot:v,guards:{canActivateChecks:_}}=a;if(!_.length)return(0,H.of)(a);let I=0;return(0,u.D)(_).pipe((0,We.b)(F=>function na(h,l,a,v){return function po(h,l,a,v){const _=f(h);if(0===_.length)return(0,H.of)({});const I={};return(0,u.D)(_).pipe((0,Ct.zg)(F=>function E(h,l,a,v){const _=Lr(h,l,v);return Mt(_.resolve?_.resolve(l,a):_(l,a))}(h[F],l,a,v).pipe($t(G=>{I[F]=G}))),Xt(1),(0,Ct.zg)(()=>f(I).length===_.length?(0,H.of)(I):xe.E))}(h._resolve,h,l,v).pipe((0,Le.U)(I=>(h._resolvedData=I,h.data=Object.assign(Object.assign({},h.data),ci(h,a).resolve),null)))}(F.route,v,h,l)),$t(()=>I++),Xt(1),(0,Ct.zg)(F=>I===_.length?(0,H.of)(a):xe.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),$t({next:()=>ke=!0,complete:()=>{ke||(this.restoreHistory(me),this.cancelNavigationTransition(me,"At least one route resolver didn't emit any value."))}}))}),$t(me=>{const ke=new L(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(me.urlAfterRedirects),me.targetSnapshot);this.triggerEvent(ke)}))}),g(G=>{const{targetSnapshot:me,id:ke,extractedUrl:dt,rawUrl:ze,extras:{skipLocationChange:Tt,replaceUrl:Et}}=G;return this.hooks.afterPreactivation(me,{navigationId:ke,appliedUrlTree:dt,rawUrlTree:ze,skipLocationChange:!!Tt,replaceUrl:!!Et})}),(0,Le.U)(G=>{const me=function ps(h,l,a){const v=Kr(h,l._root,a?a._root:void 0);return new cr(v,l)}(this.routeReuseStrategy,G.targetSnapshot,G.currentRouterState);return Object.assign(Object.assign({},G),{targetRouterState:me})}),$t(G=>{this.currentUrlTree=G.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(G.urlAfterRedirects,G.rawUrl),this.routerState=G.targetRouterState,"deferred"===this.urlUpdateStrategy&&(G.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,G),this.browserUrlTree=G.urlAfterRedirects)}),((h,l,a)=>(0,Le.U)(v=>(new Ii(l,v.targetRouterState,v.currentRouterState,a).activate(h),v)))(this.rootContexts,this.routeReuseStrategy,G=>this.triggerEvent(G)),$t({next(){I=!0},complete(){I=!0}}),function _e(h){return l=>l.lift(new Y(h))}(()=>{var G;I||F||this.cancelNavigationTransition(_,`Navigation ID ${_.id} is not equal to the current navigation id ${this.navigationId}`),(null===(G=this.currentNavigation)||void 0===G?void 0:G.id)===_.id&&(this.currentNavigation=null)}),$e(G=>{if(F=!0,function ar(h){return h&&h[Gr]}(G)){const me=Hn(G.url);me||(this.navigated=!0,this.restoreHistory(_,!0));const ke=new ve(_.id,this.serializeUrl(_.extractedUrl),G.message);v.next(ke),me?setTimeout(()=>{const dt=this.urlHandlingStrategy.merge(G.url,this.rawUrlTree),ze={skipLocationChange:_.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Fr(_.source)};this.scheduleNavigation(dt,"imperative",null,ze,{resolve:_.resolve,reject:_.reject,promise:_.promise})},0):_.resolve(!1)}else{this.restoreHistory(_,!0);const me=new be(_.id,this.serializeUrl(_.extractedUrl),G);v.next(me);try{_.resolve(this.errorHandler(G))}catch(ke){_.reject(ke)}}return xe.E}))}))}resetRootComponentType(a){this.rootComponentType=a,this.routerState.root.component=this.rootComponentType}setTransition(a){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),a))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(a=>{const v="popstate"===a.type?"popstate":"hashchange";"popstate"===v&&setTimeout(()=>{var _;const I={replaceUrl:!0},F=(null===(_=a.state)||void 0===_?void 0:_.navigationId)?a.state:null;if(F){const me=Object.assign({},F);delete me.navigationId,delete me.\u0275routerPageId,0!==Object.keys(me).length&&(I.state=me)}const G=this.parseUrl(a.url);this.scheduleNavigation(G,v,F,I)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(a){this.events.next(a)}resetConfig(a){D(a),this.config=a.map(A),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(a,v={}){const{relativeTo:_,queryParams:I,fragment:F,queryParamsHandling:G,preserveFragment:me}=v,ke=_||this.routerState.root,dt=me?this.currentUrlTree.fragment:F;let ze=null;switch(G){case"merge":ze=Object.assign(Object.assign({},this.currentUrlTree.queryParams),I);break;case"preserve":ze=this.currentUrlTree.queryParams;break;default:ze=I||null}return null!==ze&&(ze=this.removeEmptyProps(ze)),function Gi(h,l,a,v,_){if(0===a.length)return Pr(l.root,l.root,l.root,v,_);const I=function ms(h){if("string"==typeof h[0]&&1===h.length&&"/"===h[0])return new Ai(!0,0,h);let l=0,a=!1;const v=h.reduce((_,I,F)=>{if("object"==typeof I&&null!=I){if(I.outlets){const G={};return it(I.outlets,(me,ke)=>{G[ke]="string"==typeof me?me.split("/"):me}),[..._,{outlets:G}]}if(I.segmentPath)return[..._,I.segmentPath]}return"string"!=typeof I?[..._,I]:0===F?(I.split("/").forEach((G,me)=>{0==me&&"."===G||(0==me&&""===G?a=!0:".."===G?l++:""!=G&&_.push(G))}),_):[..._,I]},[]);return new Ai(a,l,v)}(a);if(I.toRoot())return Pr(l.root,l.root,new Ke([],{}),v,_);const F=function vs(h,l,a){if(h.isAbsolute)return new Yn(l.root,!0,0);if(-1===a.snapshot._lastPathIndex){const I=a.snapshot._urlSegment;return new Yn(I,I===l.root,0)}const v=pi(h.commands[0])?0:1;return function gi(h,l,a){let v=h,_=l,I=a;for(;I>_;){if(I-=_,v=v.parent,!v)throw new Error("Invalid number of '../'");_=v.segments.length}return new Yn(v,!1,_-I)}(a.snapshot._urlSegment,a.snapshot._lastPathIndex+v,h.numberOfDoubleDots)}(I,l,h),G=F.processChildren?Yr(F.segmentGroup,F.index,I.commands):zi(F.segmentGroup,F.index,I.commands);return Pr(l.root,F.segmentGroup,G,v,_)}(ke,this.currentUrlTree,a,ze,null!=dt?dt:null)}navigateByUrl(a,v={skipLocationChange:!1}){const _=Hn(a)?a:this.parseUrl(a),I=this.urlHandlingStrategy.merge(_,this.rawUrlTree);return this.scheduleNavigation(I,"imperative",null,v)}navigate(a,v={skipLocationChange:!1}){return function pr(h){for(let l=0;l<h.length;l++){const a=h[l];if(null==a)throw new Error(`The requested path contains ${a} segment at index ${l}`)}}(a),this.navigateByUrl(this.createUrlTree(a,v),v)}serializeUrl(a){return this.urlSerializer.serialize(a)}parseUrl(a){let v;try{v=this.urlSerializer.parse(a)}catch(_){v=this.malformedUriErrorHandler(_,this.urlSerializer,a)}return v}isActive(a,v){let _;if(_=!0===v?Object.assign({},Pt):!1===v?Object.assign({},mn):v,Hn(a))return Kn(this.currentUrlTree,a,_);const I=this.parseUrl(a);return Kn(this.currentUrlTree,I,_)}removeEmptyProps(a){return Object.keys(a).reduce((v,_)=>{const I=a[_];return null!=I&&(v[_]=I),v},{})}processNavigations(){this.navigations.subscribe(a=>{this.navigated=!0,this.lastSuccessfulId=a.id,this.currentPageId=a.targetPageId,this.events.next(new de(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,a.resolve(!0)},a=>{this.console.warn(`Unhandled Navigation Error: ${a}`)})}scheduleNavigation(a,v,_,I,F){var G,me;if(this.disposed)return Promise.resolve(!1);let ke,dt,ze;F?(ke=F.resolve,dt=F.reject,ze=F.promise):ze=new Promise((kr,_i)=>{ke=kr,dt=_i});const Tt=++this.navigationId;let Et;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(_=this.location.getState()),Et=_&&_.\u0275routerPageId?_.\u0275routerPageId:I.replaceUrl||I.skipLocationChange?null!==(G=this.browserPageId)&&void 0!==G?G:0:(null!==(me=this.browserPageId)&&void 0!==me?me:0)+1):Et=0,this.setTransition({id:Tt,targetPageId:Et,source:v,restoredState:_,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:a,extras:I,resolve:ke,reject:dt,promise:ze,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),ze.catch(kr=>Promise.reject(kr))}setBrowserUrl(a,v){const _=this.urlSerializer.serialize(a),I=Object.assign(Object.assign({},v.extras.state),this.generateNgRouterState(v.id,v.targetPageId));this.location.isCurrentPathEqualTo(_)||v.extras.replaceUrl?this.location.replaceState(_,"",I):this.location.go(_,"",I)}restoreHistory(a,v=!1){var _,I;if("computed"===this.canceledNavigationResolution){const F=this.currentPageId-a.targetPageId;"popstate"!==a.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(_=this.currentNavigation)||void 0===_?void 0:_.finalUrl)||0===F?this.currentUrlTree===(null===(I=this.currentNavigation)||void 0===I?void 0:I.finalUrl)&&0===F&&(this.resetState(a),this.browserUrlTree=a.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(F)}else"replace"===this.canceledNavigationResolution&&(v&&this.resetState(a),this.resetUrlToCurrentUrlTree())}resetState(a){this.routerState=a.currentRouterState,this.currentUrlTree=a.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,a.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(a,v){const _=new ve(a.id,this.serializeUrl(a.extractedUrl),v);this.triggerEvent(_),a.resolve(!1)}generateNgRouterState(a,v){return"computed"===this.canceledNavigationResolution?{navigationId:a,\u0275routerPageId:v}:{navigationId:a}}}return h.\u0275fac=function(a){c.$Z()},h.\u0275prov=c.Yz7({token:h,factory:h.\u0275fac}),h})();function Fr(h){return"imperative"!==h}let xn=(()=>{class h{constructor(a,v,_,I,F){this.router=a,this.route=v,this.tabIndexAttribute=_,this.renderer=I,this.el=F,this.commands=null,this.onChanges=new rt.xQ,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(a){if(null!=this.tabIndexAttribute)return;const v=this.renderer,_=this.el.nativeElement;null!==a?v.setAttribute(_,"tabindex",a):v.removeAttribute(_,"tabindex")}ngOnChanges(a){this.onChanges.next(this)}set routerLink(a){null!=a?(this.commands=Array.isArray(a)?a:[a],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const a={skipLocationChange:or(this.skipLocationChange),replaceUrl:or(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:or(this.preserveFragment)})}}return h.\u0275fac=function(a){return new(a||h)(c.Y36(qt),c.Y36(dr),c.$8M("tabindex"),c.Y36(c.Qsj),c.Y36(c.SBq))},h.\u0275dir=c.lG2({type:h,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(a,v){1&a&&c.NdJ("click",function(){return v.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),h})(),Mr=(()=>{class h{constructor(a,v,_){this.router=a,this.route=v,this.locationStrategy=_,this.commands=null,this.href=null,this.onChanges=new rt.xQ,this.subscription=a.events.subscribe(I=>{I instanceof de&&this.updateTargetUrlAndHref()})}set routerLink(a){this.commands=null!=a?Array.isArray(a)?a:[a]:null}ngOnChanges(a){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(a,v,_,I,F){if(0!==a||v||_||I||F||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const G={skipLocationChange:or(this.skipLocationChange),replaceUrl:or(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,G),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:or(this.preserveFragment)})}}return h.\u0275fac=function(a){return new(a||h)(c.Y36(qt),c.Y36(dr),c.Y36(P.S$))},h.\u0275dir=c.lG2({type:h,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(a,v){1&a&&c.NdJ("click",function(I){return v.onClick(I.button,I.ctrlKey,I.shiftKey,I.altKey,I.metaKey)}),2&a&&c.uIk("target",v.target)("href",v.href,c.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[c.TTD]}),h})();function or(h){return""===h||!!h}class go{}class ia{preload(l,a){return(0,H.of)(null)}}let Di=(()=>{class h{constructor(a,v,_,I){this.router=a,this.injector=_,this.preloadingStrategy=I,this.loader=new Be(_,v,me=>a.triggerEvent(new Ae(me)),me=>a.triggerEvent(new ie(me)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,De.h)(a=>a instanceof de),(0,We.b)(()=>this.preload())).subscribe(()=>{})}preload(){const a=this.injector.get(c.h0i);return this.processRoutes(a,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(a,v){const _=[];for(const I of v)if(I.loadChildren&&!I.canLoad&&I._loadedConfig){const F=I._loadedConfig;_.push(this.processRoutes(F.module,F.routes))}else I.loadChildren&&!I.canLoad?_.push(this.preloadConfig(a,I)):I.children&&_.push(this.processRoutes(a,I.children));return(0,u.D)(_).pipe((0,U.J)(),(0,Le.U)(I=>{}))}preloadConfig(a,v){return this.preloadingStrategy.preload(v,()=>(v._loadedConfig?(0,H.of)(v._loadedConfig):this.loader.load(a.injector,v)).pipe((0,Ct.zg)(I=>(v._loadedConfig=I,this.processRoutes(I.module,I.routes)))))}}return h.\u0275fac=function(a){return new(a||h)(c.LFG(qt),c.LFG(c.Sil),c.LFG(c.zs3),c.LFG(go))},h.\u0275prov=c.Yz7({token:h,factory:h.\u0275fac}),h})(),ns=(()=>{class h{constructor(a,v,_={}){this.router=a,this.viewportScroller=v,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(a=>{a instanceof k?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=a.navigationTrigger,this.restoredId=a.restoredState?a.restoredState.navigationId:0):a instanceof de&&(this.lastId=a.id,this.scheduleScrollEvent(a,this.router.parseUrl(a.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(a=>{a instanceof pt&&(a.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(a.position):a.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(a.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(a,v){this.router.triggerEvent(new pt(a,"popstate"===this.lastSource?this.store[this.restoredId]:null,v))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return h.\u0275fac=function(a){c.$Z()},h.\u0275prov=c.Yz7({token:h,factory:h.\u0275fac}),h})();const Vi=new c.OlP("ROUTER_CONFIGURATION"),vo=new c.OlP("ROUTER_FORROOT_GUARD"),sa=[P.Ye,{provide:Ot,useClass:an},{provide:qt,useFactory:function As(h,l,a,v,_,I,F={},G,me){const ke=new qt(null,h,l,a,v,_,Ce(I));return G&&(ke.urlHandlingStrategy=G),me&&(ke.routeReuseStrategy=me),function rl(h,l){h.errorHandler&&(l.errorHandler=h.errorHandler),h.malformedUriErrorHandler&&(l.malformedUriErrorHandler=h.malformedUriErrorHandler),h.onSameUrlNavigation&&(l.onSameUrlNavigation=h.onSameUrlNavigation),h.paramsInheritanceStrategy&&(l.paramsInheritanceStrategy=h.paramsInheritanceStrategy),h.relativeLinkResolution&&(l.relativeLinkResolution=h.relativeLinkResolution),h.urlUpdateStrategy&&(l.urlUpdateStrategy=h.urlUpdateStrategy),h.canceledNavigationResolution&&(l.canceledNavigationResolution=h.canceledNavigationResolution)}(F,ke),F.enableTracing&&ke.events.subscribe(dt=>{var ze,Tt;null===(ze=console.group)||void 0===ze||ze.call(console,`Router Event: ${dt.constructor.name}`),console.log(dt.toString()),console.log(dt),null===(Tt=console.groupEnd)||void 0===Tt||Tt.call(console)}),ke},deps:[Ot,Qr,P.Ye,c.zs3,c.Sil,Ee,Vi,[class ct{},new c.FiY],[class S{},new c.FiY]]},Qr,{provide:dr,useFactory:function oa(h){return h.routerState.root},deps:[qt]},Di,ia,class ki{preload(l,a){return a().pipe($e(()=>(0,H.of)(null)))}},{provide:Vi,useValue:{enableTracing:!1}}];function tl(){return new c.PXZ("Router",qt)}let nl=(()=>{class h{constructor(a,v){}static forRoot(a,v){return{ngModule:h,providers:[sa,is(a),{provide:vo,useFactory:Co,deps:[[qt,new c.FiY,new c.tp0]]},{provide:Vi,useValue:v||{}},{provide:P.S$,useFactory:yo,deps:[P.lw,[new c.tBr(P.mr),new c.FiY],Vi]},{provide:ns,useFactory:rs,deps:[qt,P.EM,Vi]},{provide:go,useExisting:v&&v.preloadingStrategy?v.preloadingStrategy:ia},{provide:c.PXZ,multi:!0,useFactory:tl},[Is,{provide:c.ip1,multi:!0,useFactory:aa,deps:[Is]},{provide:ua,useFactory:la,deps:[Is]},{provide:c.tb,multi:!0,useExisting:ua}]]}}static forChild(a){return{ngModule:h,providers:[is(a)]}}}return h.\u0275fac=function(a){return new(a||h)(c.LFG(vo,8),c.LFG(qt,8))},h.\u0275mod=c.oAB({type:h}),h.\u0275inj=c.cJS({}),h})();function rs(h,l,a){return a.scrollOffset&&l.setOffset(a.scrollOffset),new ns(h,l,a)}function yo(h,l,a={}){return a.useHash?new P.Do(h,l):new P.b0(h,l)}function Co(h){return"guarded"}function is(h){return[{provide:c.deG,multi:!0,useValue:h},{provide:Ee,multi:!0,useValue:h}]}let Is=(()=>{class h{constructor(a){this.injector=a,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new rt.xQ}appInitializer(){return this.injector.get(P.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let v=null;const _=new Promise(G=>v=G),I=this.injector.get(qt),F=this.injector.get(Vi);return"disabled"===F.initialNavigation?(I.setUpLocationChangeListener(),v(!0)):"enabled"===F.initialNavigation||"enabledBlocking"===F.initialNavigation?(I.hooks.afterPreactivation=()=>this.initNavigation?(0,H.of)(null):(this.initNavigation=!0,v(!0),this.resultOfPreactivationDone),I.initialNavigation()):v(!0),_})}bootstrapListener(a){const v=this.injector.get(Vi),_=this.injector.get(Di),I=this.injector.get(ns),F=this.injector.get(qt),G=this.injector.get(c.z2F);a===G.components[0]&&(("enabledNonBlocking"===v.initialNavigation||void 0===v.initialNavigation)&&F.initialNavigation(),_.setUpPreloading(),I.init(),F.resetRootComponentType(G.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return h.\u0275fac=function(a){return new(a||h)(c.LFG(c.zs3))},h.\u0275prov=c.Yz7({token:h,factory:h.\u0275fac}),h})();function aa(h){return h.appInitializer.bind(h)}function la(h){return h.bootstrapListener.bind(h)}const ua=new c.OlP("Router Initializer")},2160:(Re,oe,C)=>{C.d(oe,{N:()=>H});var c=C(2096),u=C(9808);let H=(()=>{class J{constructor(Z,j){this.document=Z,this.platformId=j,this.documentIsAccessible=(0,u.NF)(this.platformId)}static getCookieRegExp(Z){const j=Z.replace(/([\[\]\{\}\(\)\|\=\;\+\?\,\.\*\^\$])/gi,"\\$1");return new RegExp("(?:^"+j+"|;\\s*"+j+")=(.*?)(?:;|$)","g")}static safeDecodeURIComponent(Z){try{return decodeURIComponent(Z)}catch(j){return Z}}check(Z){return!!this.documentIsAccessible&&(Z=encodeURIComponent(Z),J.getCookieRegExp(Z).test(this.document.cookie))}get(Z){if(this.documentIsAccessible&&this.check(Z)){Z=encodeURIComponent(Z);const z=J.getCookieRegExp(Z).exec(this.document.cookie);return z[1]?J.safeDecodeURIComponent(z[1]):""}return""}getAll(){if(!this.documentIsAccessible)return{};const Z={},j=this.document;return j.cookie&&""!==j.cookie&&j.cookie.split(";").forEach(z=>{const[O,T]=z.split("=");Z[J.safeDecodeURIComponent(O.replace(/^ /,""))]=J.safeDecodeURIComponent(T)}),Z}set(Z,j,z,O,T,R,q){if(!this.documentIsAccessible)return;if("number"==typeof z||z instanceof Date||O||T||R||q)return void this.set(Z,j,{expires:z,path:O,domain:T,secure:R,sameSite:q||"Lax"});let se=encodeURIComponent(Z)+"="+encodeURIComponent(j)+";";const ne=z||{};ne.expires&&(se+="number"==typeof ne.expires?"expires="+new Date((new Date).getTime()+1e3*ne.expires*60*60*24).toUTCString()+";":"expires="+ne.expires.toUTCString()+";"),ne.path&&(se+="path="+ne.path+";"),ne.domain&&(se+="domain="+ne.domain+";"),!1===ne.secure&&"None"===ne.sameSite&&(ne.secure=!0,console.warn(`[ngx-cookie-service] Cookie ${Z} was forced with secure flag because sameSite=None.More details : https://github.com/stevermeister/ngx-cookie-service/issues/86#issuecomment-597720130`)),ne.secure&&(se+="secure;"),ne.sameSite||(ne.sameSite="Lax"),se+="sameSite="+ne.sameSite+";",this.document.cookie=se}delete(Z,j,z,O,T="Lax"){if(!this.documentIsAccessible)return;const R=new Date("Thu, 01 Jan 1970 00:00:01 GMT");this.set(Z,"",{expires:R,path:j,domain:z,secure:O,sameSite:T})}deleteAll(Z,j,z,O="Lax"){if(!this.documentIsAccessible)return;const T=this.getAll();for(const R in T)T.hasOwnProperty(R)&&this.delete(R,Z,j,z,O)}}return J.\u0275fac=function(Z){return new(Z||J)(c.LFG(u.K0),c.LFG(c.Lbi))},J.\u0275prov=c.Yz7({token:J,factory:J.\u0275fac,providedIn:"root"}),J})()}},Re=>{Re(Re.s=4431)}]);