manifest 4.2.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/dist/admin/256.cf479e10e4de8f41.js +1 -0
  2. package/dist/admin/3rdpartylicenses.txt +812 -0
  3. package/dist/admin/45.33de09dc95d1888d.js +1 -0
  4. package/dist/admin/69.edc79254e6a72bd0.js +1 -0
  5. package/dist/admin/693.5825586d71b70671.js +1 -0
  6. package/dist/admin/assets/fonts/case-icon.svg +204 -0
  7. package/dist/admin/assets/fonts/case-icon.ttf +0 -0
  8. package/dist/admin/assets/fonts/case-icon.woff +0 -0
  9. package/dist/admin/assets/images/add-resource.svg +9 -0
  10. package/dist/admin/assets/images/avatar-default.svg +21 -0
  11. package/dist/admin/assets/images/error-404.svg +463 -0
  12. package/dist/admin/assets/images/ext-link-01.svg +68 -0
  13. package/dist/admin/assets/images/ext-link-02.svg +16 -0
  14. package/dist/admin/assets/images/ext-link-03.svg +11 -0
  15. package/dist/admin/assets/images/ext-link-04.svg +10 -0
  16. package/dist/admin/assets/images/ext-link-05.svg +9 -0
  17. package/dist/admin/assets/images/ext-link-06.svg +5 -0
  18. package/dist/admin/assets/images/ext-link-07.svg +4 -0
  19. package/dist/admin/assets/images/ext-link-08.svg +4 -0
  20. package/dist/admin/assets/images/ext-link-09.svg +11 -0
  21. package/dist/admin/assets/images/ext-link-10.svg +11 -0
  22. package/dist/admin/assets/images/ext-link-dc.svg +11 -0
  23. package/dist/admin/assets/images/ext-link-gh.svg +11 -0
  24. package/dist/admin/assets/images/favicon.png +0 -0
  25. package/dist/admin/assets/images/image-default.svg +20 -0
  26. package/dist/admin/assets/images/login.svg +374 -0
  27. package/dist/admin/assets/images/logo.svg +97 -0
  28. package/dist/admin/assets/images/logotype-dark.svg +85 -0
  29. package/dist/admin/assets/images/logotype-manifest.svg +82 -0
  30. package/dist/admin/assets/images/logotype-sand.svg +83 -0
  31. package/dist/admin/assets/images/logotype.svg +83 -0
  32. package/dist/admin/assets/images/open-api/favicon.ico +0 -0
  33. package/dist/admin/assets/images/open-api/favicon.png +0 -0
  34. package/dist/admin/assets/images/welcome.svg +184 -0
  35. package/dist/admin/dist/256.cf479e10e4de8f41.js +1 -0
  36. package/dist/admin/dist/3rdpartylicenses.txt +812 -0
  37. package/dist/admin/dist/45.33de09dc95d1888d.js +1 -0
  38. package/dist/admin/dist/69.edc79254e6a72bd0.js +1 -0
  39. package/dist/admin/dist/693.5825586d71b70671.js +1 -0
  40. package/dist/admin/dist/assets/fonts/case-icon.svg +204 -0
  41. package/dist/admin/dist/assets/fonts/case-icon.ttf +0 -0
  42. package/dist/admin/dist/assets/fonts/case-icon.woff +0 -0
  43. package/dist/admin/dist/assets/images/add-resource.svg +9 -0
  44. package/dist/admin/dist/assets/images/avatar-default.svg +21 -0
  45. package/dist/admin/dist/assets/images/error-404.svg +463 -0
  46. package/dist/admin/dist/assets/images/ext-link-01.svg +68 -0
  47. package/dist/admin/dist/assets/images/ext-link-02.svg +16 -0
  48. package/dist/admin/dist/assets/images/ext-link-03.svg +11 -0
  49. package/dist/admin/dist/assets/images/ext-link-04.svg +10 -0
  50. package/dist/admin/dist/assets/images/ext-link-05.svg +9 -0
  51. package/dist/admin/dist/assets/images/ext-link-06.svg +5 -0
  52. package/dist/admin/dist/assets/images/ext-link-07.svg +4 -0
  53. package/dist/admin/dist/assets/images/ext-link-08.svg +4 -0
  54. package/dist/admin/dist/assets/images/ext-link-09.svg +11 -0
  55. package/dist/admin/dist/assets/images/ext-link-10.svg +11 -0
  56. package/dist/admin/dist/assets/images/ext-link-dc.svg +11 -0
  57. package/dist/admin/dist/assets/images/ext-link-gh.svg +11 -0
  58. package/dist/admin/dist/assets/images/favicon.png +0 -0
  59. package/dist/admin/dist/assets/images/image-default.svg +20 -0
  60. package/dist/admin/dist/assets/images/login.svg +374 -0
  61. package/dist/admin/dist/assets/images/logo.svg +97 -0
  62. package/dist/admin/dist/assets/images/logotype-dark.svg +85 -0
  63. package/dist/admin/dist/assets/images/logotype-manifest.svg +82 -0
  64. package/dist/admin/dist/assets/images/logotype-sand.svg +83 -0
  65. package/dist/admin/dist/assets/images/logotype.svg +83 -0
  66. package/dist/admin/dist/assets/images/open-api/favicon.ico +0 -0
  67. package/dist/admin/dist/assets/images/open-api/favicon.png +0 -0
  68. package/dist/admin/dist/assets/images/welcome.svg +184 -0
  69. package/dist/admin/dist/index.html +13 -0
  70. package/dist/admin/dist/main.1bc3af6bf1cc936e.js +1 -0
  71. package/dist/admin/dist/polyfills.3834461d977ea9d7.js +1 -0
  72. package/dist/admin/dist/runtime.7580a3b044250f6c.js +1 -0
  73. package/dist/admin/dist/styles.453d5f4dce930f97.css +7 -0
  74. package/dist/admin/index.html +13 -0
  75. package/dist/admin/main.1bc3af6bf1cc936e.js +1 -0
  76. package/dist/admin/polyfills.3834461d977ea9d7.js +1 -0
  77. package/dist/admin/runtime.7580a3b044250f6c.js +1 -0
  78. package/dist/admin/styles.453d5f4dce930f97.css +7 -0
  79. package/dist/json-schema/src/schema/schema.json +23 -23
  80. package/package.json +9 -3
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[792],{4783:(Ze,he,M)=>{M.r(he),M.d(he,{AuthModule:()=>Je});var h=M(2943),o=M(8023),K=M(3123),q=M(4385),x=M(8284);let ge=(()=>{class Ie{constructor(we){this.router=we}canActivate(){return!localStorage.getItem(q.il)||(this.router.navigate(["/"]),!1)}static{this.\u0275fac=function(He){return new(He||Ie)(x.KVO(K.Ix))}}static{this.\u0275prov=x.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}}return Ie})();var ne=M(7431),Ee=M(9911),pe=M(5442),ce=M(7906),oe=M(818),J=M(8428);const Ae=Ie=>({name:"email",type:Ie}),me=Ie=>({name:"password",type:Ie});function Te(Ie,at){if(1&Ie){const we=x.RV6();x.j41(0,"div",10)(1,"div",11)(2,"div",12)(3,"app-input",13),x.bIt("valueChanged",function(dt){x.eBV(we);const Ht=x.XpG();return x.Njj(Ht.patchValue("email",dt))}),x.k0s()()(),x.j41(4,"div",11)(5,"div",12)(6,"app-input",13),x.bIt("valueChanged",function(dt){x.eBV(we);const Ht=x.XpG();return x.Njj(Ht.patchValue("password",dt))}),x.k0s()()()()}if(2&Ie){const we=x.XpG();x.R7$(3),x.Y8G("prop",x.eq3(4,Ae,we.PropType.Email))("value",we.suggestedEmail),x.R7$(3),x.Y8G("prop",x.eq3(6,me,we.PropType.Password))("value",we.suggestedPassword)}}function ht(Ie){return at=>{const we=at.parent;if(!we)return null;const He=we.get(Ie);if(!He)return null;const Ht=at.value;return Ht&&He.value===Ht?null:{confirmPasswordMismatch:!0}}}const bt=Ie=>({name:"email",type:Ie}),pt=Ie=>({name:"password",type:Ie}),xe=Ie=>({name:"confirm password",type:Ie});function Se(Ie,at){if(1&Ie){const we=x.RV6();x.j41(0,"div",14)(1,"div",15)(2,"div",16)(3,"app-input",17),x.bIt("valueChanged",function(dt){x.eBV(we);const Ht=x.XpG();return x.Njj(Ht.patchValue("email",dt))}),x.k0s()()(),x.j41(4,"div",15)(5,"div",16)(6,"app-input",17),x.bIt("valueChanged",function(dt){x.eBV(we);const Ht=x.XpG();return x.Njj(Ht.patchValue("password",dt))}),x.k0s()()(),x.j41(7,"div",15)(8,"div",16)(9,"app-input",17),x.bIt("valueChanged",function(dt){x.eBV(we);const Ht=x.XpG();return x.Njj(Ht.patchValue("confirmPassword",dt))}),x.k0s()()()()}if(2&Ie){const we=x.XpG();x.R7$(3),x.Y8G("prop",x.eq3(3,bt,we.PropType.Email)),x.R7$(3),x.Y8G("prop",x.eq3(5,pt,we.PropType.Password)),x.R7$(3),x.Y8G("prop",x.eq3(7,xe,we.PropType.Password))}}const Fe=[{path:"login",component:(()=>{class Ie{constructor(we,He,dt,Ht){this.authService=we,this.router=He,this.activatedRoute=dt,this.flashMessageService=Ht,this.PropType=pe.Kk}ngOnInit(){var we=this;this.activatedRoute.queryParams.subscribe(function(){var He=(0,ne.A)(function*(dt){dt.email&&dt.password?(we.suggestedEmail=dt.email,we.suggestedPassword=dt.password):(yield we.authService.isDefaultAdminExists())&&(we.suggestedEmail=q.Fr.email,we.suggestedPassword=q.Fr.password),we.form=new Ee.gE({email:new Ee.MJ(we.suggestedEmail||"",[Ee.k0.required,Ee.k0.email]),password:new Ee.MJ(we.suggestedPassword||"",[Ee.k0.required])}),(yield we.authService.isDbEmpty())&&we.router.navigate(["/auth/welcome"])});return function(dt){return He.apply(this,arguments)}}())}patchValue(we,He){this.form.get(we)?.patchValue(He)}submit(){this.authService.login(this.form.value).then(we=>{this.router.navigate(["/"])},we=>{this.flashMessageService.error(401===we.status?"Error: Incorrect username or password.":we.error.message)})}static{this.\u0275fac=function(He){return new(He||Ie)(x.rXU(ce.u),x.rXU(K.Ix),x.rXU(K.nX),x.rXU(oe.L))}}static{this.\u0275cmp=x.VBU({type:Ie,selectors:[["app-login"]],decls:13,vars:2,consts:[[1,"hero","is-fullheight"],[1,"hero-body"],[1,"container","has-text-centered"],[1,"columns"],[1,"column","col-login"],["src","/assets/images/logo.svg","alt","manifest logo","width","264",1,"mb-3"],[1,"title","is-4"],["class","has-text-left",4,"ngIf"],[1,"button","is-block","is-dark","is-fullwidth","mb-3",3,"click","disabled"],[1,"column","col-decoration"],[1,"has-text-left"],[1,"field","mb-5"],[1,"control"],[3,"valueChanged","prop","value"]],template:function(He,dt){1&He&&(x.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div"),x.nrm(6,"img",5),x.j41(7,"h2",6),x.EFF(8,"Sign in"),x.k0s(),x.DNE(9,Te,7,8,"div",7),x.j41(10,"button",8),x.bIt("click",function(){return dt.submit()}),x.EFF(11," Login "),x.k0s()()()(),x.nrm(12,"div",9),x.k0s()()()),2&He&&(x.R7$(9),x.Y8G("ngIf",dt.form),x.R7$(),x.Y8G("disabled",!dt.form.valid))},dependencies:[h.bT,J.S],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.container[_ngcontent-%COMP%]{max-width:100%;width:100%}.hero.is-fullheight[_ngcontent-%COMP%]{min-height:calc(100vh - 64px)}@media screen and (max-width: 999px){.hero.is-fullheight[_ngcontent-%COMP%]{min-height:calc(100vh - 64px)}}.notification[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:auto;border-radius:0;bottom:unset}.col-login[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;justify-content:center;background-color:#fff;left:0;top:0;height:100vh}@media screen and (max-width: 999px){.col-login[_ngcontent-%COMP%]{width:66.66667%}}@media screen and (max-width: 767px){.col-login[_ngcontent-%COMP%]{width:100%}}@media screen and (min-width: 1000px){.col-login[_ngcontent-%COMP%]{width:40%}}@media screen and (min-width: 1188px){.col-login[_ngcontent-%COMP%]{width:33.33333%}}.col-login[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:auto}@media screen and (min-width: 1188px){.col-login[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:482px;min-width:382px}}@media screen and (min-width: 1000px){.col-login[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:424px;min-width:360px}}@media screen and (min-width: 768px),print{.col-login[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:100%;min-width:43%}}@media screen and (max-width: 767px){.col-login[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-width:50%;max-width:380px}}.col-decoration[_ngcontent-%COMP%]{flex:none;flex-grow:0;flex-shrink:0;flex-basis:auto;background:#303032;position:fixed;right:0;top:0;height:100vh;width:60%;display:flex;align-items:center;justify-content:center}@media screen and (max-width: 999px){.col-decoration[_ngcontent-%COMP%]{width:33.33333%}}@media screen and (max-width: 767px){.col-decoration[_ngcontent-%COMP%]{display:none}}@media screen and (min-width: 1188px){.col-decoration[_ngcontent-%COMP%]{width:66.66666%}}']})}}return Ie})(),canActivate:[ge]},{path:"logout",component:(()=>{class Ie{constructor(we,He){this.authService=we,this.router=He}ngOnInit(){this.authService.logout(),this.router.navigate(["/","auth","login"])}static{this.\u0275fac=function(He){return new(He||Ie)(x.rXU(ce.u),x.rXU(K.Ix))}}static{this.\u0275cmp=x.VBU({type:Ie,selectors:[["ng-component"]],decls:1,vars:0,template:function(He,dt){1&He&&x.EFF(0,"NO UI TO BE FOUND HERE!")},encapsulation:2})}}return Ie})()},{path:"welcome",component:(()=>{class Ie{constructor(we,He,dt){this.authService=we,this.router=He,this.flashMessageService=dt,this.PropType=pe.Kk}ngOnInit(){this.form=new Ee.gE({email:new Ee.MJ("",[Ee.k0.required,Ee.k0.email]),password:new Ee.MJ("",[Ee.k0.required]),confirmPassword:new Ee.MJ("",[Ee.k0.required,ht("password")])})}patchValue(we,He){this.form.get(we)?.patchValue(He)}submit(){var we=this;return(0,ne.A)(function*(){if(!(yield we.authService.signup(we.form.value)))return we.flashMessageService.error("Error: Failed to register");we.flashMessageService.success("Welcome! You have successfully registered as an admin."),we.router.navigate(["/"])})()}static{this.\u0275fac=function(He){return new(He||Ie)(x.rXU(ce.u),x.rXU(K.Ix),x.rXU(oe.L))}}static{this.\u0275cmp=x.VBU({type:Ie,selectors:[["app-register-first-admin"]],decls:17,vars:2,consts:[[1,"hero","is-fullheight"],[1,"hero-body"],[1,"container","has-text-centered"],[1,"columns"],[1,"column","col-welcome"],[1,"register-wrap"],["src","/assets/images/logo.svg","alt","manifest logo","width","264",1,"mb-3"],[1,"card","is-bordered"],[1,"card-content"],[1,"content"],[1,"title","is-2","has-text-weight-bold"],[1,"is-size-5"],["class","has-text-left",4,"ngIf"],[1,"button","is-block","is-dark","is-fullwidth","mb-0",3,"click","disabled"],[1,"has-text-left"],[1,"field","mb-5"],[1,"control"],[3,"valueChanged","prop"]],template:function(He,dt){1&He&&(x.j41(0,"section",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),x.nrm(6,"img",6),x.j41(7,"div",7)(8,"div",8)(9,"div",9)(10,"h2",10),x.EFF(11,"Welcome"),x.k0s(),x.j41(12,"p",11),x.EFF(13," Welcome to your admin panel. Create your first admin account to continue. You can always change those values later. "),x.k0s(),x.DNE(14,Se,10,9,"div",12),x.j41(15,"button",13),x.bIt("click",function(){return dt.submit()}),x.EFF(16," Login "),x.k0s()()()()()()()()()()),2&He&&(x.R7$(14),x.Y8G("ngIf",dt.form),x.R7$(),x.Y8G("disabled",!dt.form.valid))},dependencies:[h.bT,J.S],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.container[_ngcontent-%COMP%]{max-width:100%;width:100%}.hero.is-fullheight[_ngcontent-%COMP%]{min-height:calc(100vh - 64px)}@media screen and (max-width: 999px){.hero.is-fullheight[_ngcontent-%COMP%]{min-height:calc(100vh - 64px)}}.notification[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:auto;border-radius:0;bottom:unset}.col-welcome[_ngcontent-%COMP%]{position:fixed;display:flex;align-items:center;justify-content:center;background-color:#fff;left:0;top:0;width:100vw;height:100vh}.col-welcome[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{margin:auto}@media screen and (min-width: 1188px){.col-welcome[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:482px;min-width:382px}}@media screen and (min-width: 1000px){.col-welcome[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:424px;min-width:360px}}@media screen and (min-width: 768px),print{.col-welcome[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{max-width:424px;min-width:320px}}@media screen and (max-width: 767px){.col-welcome[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{min-width:50%;max-width:380px}}']})}}return Ie})(),canActivate:[(()=>{class Ie{constructor(we,He){this.authService=we,this.router=He}canActivate(){var we=this;return(0,ne.A)(function*(){return!!(yield we.authService.isDbEmpty())||(we.router.navigate(["/auth/login"]),!1)})()}static{this.\u0275fac=function(He){return new(He||Ie)(x.KVO(ce.u),x.KVO(K.Ix))}}static{this.\u0275prov=x.jDH({token:Ie,factory:Ie.\u0275fac,providedIn:"root"})}}return Ie})()]}];let Ue=(()=>{class Ie{static{this.\u0275fac=function(He){return new(He||Ie)}}static{this.\u0275mod=x.$C({type:Ie})}static{this.\u0275inj=x.G2t({imports:[K.iI.forChild(Fe),K.iI]})}}return Ie})(),Je=(()=>{class Ie{static{this.\u0275fac=function(He){return new(He||Ie)}}static{this.\u0275mod=x.$C({type:Ie})}static{this.\u0275inj=x.G2t({imports:[h.MD,Ue,o.G]})}}return Ie})()},7906:(Ze,he,M)=>{M.d(he,{u:()=>pe});var h=M(7431),o=M(8033),K=M(4385),q=M(9606),x=M(8284),ge=M(5640),ne=M(3123),Ee=M(818);let pe=(()=>{class ce{constructor(J,Ae,me){this.http=J,this.router=Ae,this.flashMessageService=me,this.currentUserPromise=null}login(J){var Ae=this;return(0,h.A)(function*(){return(0,o._)(Ae.http.post(`${q.c.apiBaseUrl}/auth/admins/login`,J)).then(me=>{const Te=me?.token;return Te&&localStorage.setItem(K.il,Te),Te})})()}signup(J){var Ae=this;return(0,h.A)(function*(){return(0,o._)(Ae.http.post(`${q.c.apiBaseUrl}/auth/admins/signup`,J)).then(me=>{const Te=me?.token;return Te&&localStorage.setItem(K.il,Te),Te})})()}logout(){delete this.currentUserPromise,localStorage.removeItem(K.il)}isLoggedIn(){return!!localStorage.getItem(K.il)}me(){var J=this;return(0,h.A)(function*(){return J.currentUserPromise||(J.currentUserPromise=(0,o._)(J.http.get(`${q.c.apiBaseUrl}/auth/admins/me`)).catch(()=>{J.logout(),J.router.navigate(["/auth/login"]),J.flashMessageService.error("You must be logged in to view that page.")})),J.currentUserPromise})()}isDefaultAdminExists(){var J=this;return(0,h.A)(function*(){return(0,o._)(J.http.get(`${q.c.apiBaseUrl}/auth/admins/default-exists`)).then(Ae=>Ae.exists)})()}isDbEmpty(){var J=this;return(0,h.A)(function*(){return(0,o._)(J.http.get(`${q.c.apiBaseUrl}/db/is-db-empty`)).then(Ae=>Ae.empty)})()}static{this.\u0275fac=function(Ae){return new(Ae||ce)(x.KVO(ge.Qq),x.KVO(ne.Ix),x.KVO(Ee.L))}}static{this.\u0275prov=x.jDH({token:ce,factory:ce.\u0275fac,providedIn:"root"})}}return ce})()},6119:(Ze,he,M)=>{M.d(he,{m:()=>x});var h=M(8033),o=M(9606),K=M(8284),q=M(5640);let x=(()=>{class ge{constructor(Ee){this.http=Ee,this.collectionBaseUrl=o.c.apiBaseUrl+"/collections",this.singleBaseUrl=o.c.apiBaseUrl+"/singles"}list(Ee,pe){const ce={page:pe.filters?.page||1,perPage:20};return Object.keys(pe.filters||{}).forEach(oe=>{"page"!==oe&&(ce[`${oe}_eq`]=pe.filters[oe])}),pe.relations&&(ce.relations=pe.relations.join(",")),(0,h._)(this.http.get(`${this.collectionBaseUrl}/${Ee}`,{params:ce}))}listSelectOptions(Ee){return(0,h._)(this.http.get(`${this.collectionBaseUrl}/${Ee}/select-options`))}show(Ee,pe,ce){return(0,h._)(this.http.get(`${this.collectionBaseUrl}/${Ee}/${pe}`,{params:{relations:ce?.relations?.join(",")}}))}showSingle(Ee){return(0,h._)(this.http.get(`${this.singleBaseUrl}/${Ee}`))}create(Ee,pe){return(0,h._)(this.http.post(`${this.collectionBaseUrl}/${Ee}`,pe))}update(Ee,pe,ce){return(0,h._)(this.http.put(`${this.collectionBaseUrl}/${Ee}/${pe}`,ce))}updateSingle(Ee,pe){return(0,h._)(this.http.put(`${this.singleBaseUrl}/${Ee}`,pe))}delete(Ee,pe){return(0,h._)(this.http.delete(`${this.collectionBaseUrl}/${Ee}/${pe}`))}static{this.\u0275fac=function(pe){return new(pe||ge)(K.KVO(q.Qq))}}static{this.\u0275prov=K.jDH({token:ge,factory:ge.\u0275fac,providedIn:"root"})}}return ge})()},8428:(Ze,he,M)=>{M.d(he,{S:()=>fr});var h=M(2943),o=M(8284),K=M(5442);const q=N=>({"is-danger":N}),x=N=>({"is-checked":N});function ge(N,ee){if(1&N&&(o.j41(0,"p",5),o.EFF(1),o.k0s()),2&N){const C=o.XpG();o.R7$(),o.JRh(C.helpText)}}let ne=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnChanges(C){this.checked=!!this.value}toggleCheck(){this.checked=!this.checked,this.valueChanged.emit(this.checked)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-boolean-input"]],inputs:{prop:"prop",value:"value",helpText:"helpText",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.OA$,o.aNF],decls:6,vars:8,consts:[["input",""],[1,"control","mt-7","mb-4"],["for","",1,"checkbox",3,"click","ngClass"],[1,"checkmark"],["class","help",4,"ngIf"],[1,"help"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"div",1)(1,"label",2,0),o.bIt("click",function(){return o.eBV(W),o.Njj(A.toggleCheck())}),o.EFF(3),o.nrm(4,"span",3),o.k0s(),o.DNE(5,ge,2,1,"p",4),o.k0s()}2&S&&(o.R7$(),o.Y8G("ngClass",o.eq3(4,q,A.isError))("ngClass",o.eq3(6,x,A.checked)),o.R7$(2),o.SpI("",A.prop.name," "),o.R7$(2),o.Y8G("ngIf",A.helpText))},dependencies:[h.YU,h.bT]})}}return N})();const Ee=["input"],pe=N=>({"is-danger":N});let ce=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){this.symbol=(0,h.Qn)(this.currency||"USD","wide"),void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(Number(C.target.value))}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-currency-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(Ee,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",currency:"currency",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:8,vars:6,consts:[["input",""],[3,"for"],[1,"control","has-icons-left"],[1,"icon","is-small","is-left"],[1,"is-family-sans-serif"],["type","number","step","0.01",1,"input",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"p",2)(3,"span",3)(4,"span",4),o.EFF(5),o.k0s()(),o.j41(6,"input",5,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(4),o.SpI(" ",A.symbol," "),o.R7$(),o.Y8G("ngClass",o.eq3(4,pe,A.isError)))},dependencies:[h.YU]})}}return N})();const oe=["input"],J=N=>({"is-danger":N});let Ae=(()=>{class N{constructor(){this.valueChanged=new o.bkB,this.today=Date.now()}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-date-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(oe,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:6,consts:[["input",""],[3,"for"],["type","date",1,"input",3,"change","ngClass","value"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(4,J,A.isError))("value",A.value?A.value:A.today))},dependencies:[h.YU]})}}return N})();const me=["input"],Te=N=>({"is-danger":N});let ot=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-email-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(me,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:5,consts:[["input",""],[3,"for"],["type","email","placeholder","Email...","autocomplete","email",1,"input",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(3,Te,A.isError)))},dependencies:[h.YU]})}}return N})();const nt=["latInput"],ht=["lngInput"],bt=N=>({"is-danger":N});let pt=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.latInput.nativeElement.value=this.value?.lat,this.lngInput.nativeElement.value=this.value?.lng)}onChange(){this.valueChanged.emit({lat:this.latInput.nativeElement.value,lng:this.lngInput.nativeElement.value})}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-location-input"]],viewQuery:function(S,A){if(1&S&&(o.GBs(nt,7),o.GBs(ht,7)),2&S){let W;o.mGM(W=o.lsd())&&(A.latInput=W.first),o.mGM(W=o.lsd())&&(A.lngInput=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:21,vars:7,consts:[["latInput",""],["lngInput",""],["for",""],[1,"columns","is-mobile"],[1,"column"],[1,"field"],["for","lat-input"],[1,"control","has-icons-left"],[1,"icon","is-small","is-left"],[1,"icon","icon-map-pin"],["type","number","step","0.0001","min","-90","max","90",1,"input","form-control",3,"change","ngClass"],["for","lng-input"],["type","number","step","0.0001","min","-180","max","180",1,"input","form-control",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",2),o.EFF(1),o.k0s(),o.j41(2,"div",3)(3,"div",4)(4,"div",5)(5,"label",6),o.EFF(6,"Latitude"),o.k0s(),o.j41(7,"p",7)(8,"span",8),o.nrm(9,"i",9),o.k0s(),o.j41(10,"input",10,0),o.bIt("change",function(){return o.eBV(W),o.Njj(A.onChange())}),o.k0s()()()(),o.j41(12,"div",4)(13,"div",5)(14,"label",11),o.EFF(15,"Longitude"),o.k0s(),o.j41(16,"p",7)(17,"span",8),o.nrm(18,"i",9),o.k0s(),o.j41(19,"input",12,1),o.bIt("change",function(){return o.eBV(W),o.Njj(A.onChange())}),o.k0s()()()()()}2&S&&(o.R7$(),o.JRh(A.prop.name),o.R7$(9),o.Y8G("ngClass",o.eq3(3,bt,A.isError)),o.R7$(9),o.Y8G("ngClass",o.eq3(5,bt,A.isError)))},dependencies:[h.YU],styles:["label[for=lat-input][_ngcontent-%COMP%]:not(.file-label):not(.checkbox):not(.image-label):not(.is-boxed), label[for=lng-input][_ngcontent-%COMP%]:not(.file-label):not(.checkbox):not(.image-label):not(.is-boxed){text-transform:unset}"]})}}return N})();var xe=M(7431),Se=M(7154),qe=M(2283),Ge=M(6119);const Fe=N=>({"is-danger":N}),Ue=N=>({"is-checked":N});function Je(N,ee){if(1&N&&o.EFF(0),2&N){const C=o.XpG(2);o.SpI("No ",C.entityManifest.nameSingular," selected")}}function Ie(N,ee){if(1&N&&o.EFF(0),2&N){const C=o.XpG(2);o.SpI("1 ",C.entityManifest.nameSingular," selected")}}function at(N,ee){if(1&N&&o.EFF(0),2&N){const C=o.XpG(2);o.Lme("",C.selectedOptions.length," ",C.entityManifest.namePlural," selected ")}}function we(N,ee){if(1&N&&(o.qex(0,6),o.DNE(1,Je,1,1,"ng-template",7)(2,Ie,1,1,"ng-template",8)(3,at,1,2,"ng-template",9),o.bVm()),2&N){const C=o.XpG();o.Y8G("ngPlural",C.selectedOptions.length)}}function He(N,ee){if(1&N){const C=o.RV6();o.j41(0,"a",14),o.bIt("click",function(){o.eBV(C);const A=o.XpG(2);return o.Njj(A.selectAll())}),o.EFF(1,"Select all"),o.k0s()}}function dt(N,ee){if(1&N){const C=o.RV6();o.j41(0,"a",14),o.bIt("click",function(){o.eBV(C);const A=o.XpG(2);return o.Njj(A.selectNone())}),o.EFF(1,"Select none"),o.k0s()}}function Ht(N,ee){if(1&N){const C=o.RV6();o.j41(0,"div",15)(1,"label",16),o.bIt("click",function(){const A=o.eBV(C).$implicit,W=o.XpG(2);return o.Njj(W.toggleSelected(A))}),o.EFF(2),o.nrm(3,"span",17),o.k0s()()}if(2&N){const C=ee.$implicit;o.R7$(),o.Y8G("ngClass",o.eq3(2,Ue,C.selected)),o.R7$(),o.SpI(" ",C.label," ")}}function tn(N,ee){if(1&N&&(o.j41(0,"div",10)(1,"p",11),o.DNE(2,He,2,0,"a",12)(3,dt,2,0,"a",12),o.k0s(),o.DNE(4,Ht,4,4,"div",13),o.k0s()),2&N){const C=o.XpG();o.Y8G("ngClass",o.eq3(4,Fe,C.isError)),o.R7$(2),o.Y8G("ngIf",C.selectedOptions.length<C.options.length),o.R7$(),o.Y8G("ngIf",C.selectedOptions.length===C.options.length),o.R7$(),o.Y8G("ngForOf",C.options)}}let Sn=(()=>{class N{constructor(C,S,A){this.manifestService=C,this.crudService=S,this.elementRef=A,this.valueChanged=new o.bkB,this.selectedOptions=[]}ngOnInit(){var C=this;return(0,xe.A)(function*(){C.label=C.prop?.name||C.relationship.name,C.relationship&&(C.entityManifest=yield C.manifestService.getEntityManifest({className:C.relationship.entity}),C.options=yield C.crudService.listSelectOptions(C.entityManifest.slug)),C.value&&(C.selectedOptions=[],C.options.filter(S=>(0,Se.qt)(C.value.map(A=>A.id)).find(A=>A===S.id)).forEach(S=>{S.selected=!0,C.selectedOptions.push(S)}))})()}selectAll(){this.options.forEach(C=>C.selected=!0),this.selectedOptions=this.options,this.valueChanged.emit(this.selectedOptions.map(C=>C.id))}selectNone(){this.options.forEach(C=>C.selected=!1),this.selectedOptions=[],this.valueChanged.emit([])}toggleSelected(C){const S=this.selectedOptions.findIndex(A=>A.id===C.id);S>-1?this.selectedOptions.splice(S,1):this.selectedOptions.push(C),C.selected=!C.selected,this.valueChanged.emit(this.selectedOptions.map(A=>A.id))}clickOut(C){this.showList&&!this.elementRef.nativeElement.contains(C)&&!C.className.includes("mass-selection-button")&&(this.showList=!1)}static{this.\u0275fac=function(S){return new(S||N)(o.rXU(qe.x),o.rXU(Ge.m),o.rXU(o.aKT))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-multi-select-input"]],hostBindings:function(S,A){1&S&&o.bIt("click",function(Oe){return A.clickOut(Oe.target)},!1,o.EBC)},inputs:{prop:"prop",relationship:"relationship",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:7,vars:3,consts:[[1,"multiselect-box"],[1,"control"],[3,"click"],[1,"select","select--simulate",3,"click"],[3,"ngPlural",4,"ngIf"],["class","box",3,"ngClass",4,"ngIf"],[3,"ngPlural"],["ngPluralCase","=0"],["ngPluralCase","=1"],["ngPluralCase","other"],[1,"box",3,"ngClass"],[1,"pb-2","px-4"],["class","small-meta mass-selection-button has-text-grey-dark is-underlined is-inline-block is-fullwidth",3,"click",4,"ngIf"],["class","control px-4 py-1 is-fullwidth",4,"ngFor","ngForOf"],[1,"small-meta","mass-selection-button","has-text-grey-dark","is-underlined","is-inline-block","is-fullwidth",3,"click"],[1,"control","px-4","py-1","is-fullwidth"],[1,"checkbox",3,"click","ngClass"],[1,"checkmark"]],template:function(S,A){1&S&&(o.j41(0,"div",0)(1,"div",1)(2,"label",2),o.bIt("click",function(){return A.showList=!0}),o.EFF(3),o.k0s(),o.j41(4,"div",3),o.bIt("click",function(){return A.showList=!A.showList}),o.DNE(5,we,4,1,"ng-container",4),o.k0s(),o.DNE(6,tn,5,6,"div",5),o.k0s()()),2&S&&(o.R7$(3),o.SpI("",A.label," "),o.R7$(2),o.Y8G("ngIf",A.entityManifest),o.R7$(),o.Y8G("ngIf",A.showList&&(null==A.options?null:A.options.length)))},dependencies:[h.MD,h.YU,h.Sq,h.bT,h.IJ,h.WO],styles:[".is-disabled[_ngcontent-%COMP%]{cursor:not-allowed}"]})}}return N})();const te=["input"],ae=N=>({"is-danger":N});let le=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(Number(C.target.value))}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-number-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(te,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:5,consts:[["input",""],[3,"for"],["type","number","step","1",1,"input","form-control",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(3,ae,A.isError)))},dependencies:[h.YU]})}}return N})();const fe=["input"],_e=N=>({"is-danger":N});let Me=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-password-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(fe,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:5,consts:[["input",""],[3,"for"],["placeholder","Password...","type","password","autocomplete","current-password",1,"input","form-control",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(3,_e,A.isError)))},dependencies:[h.YU]})}}return N})();var je=M(9911);const xt=N=>({"is-danger":N});function nn(N,ee){if(1&N&&(o.j41(0,"option",7),o.EFF(1),o.k0s()),2&N){const C=ee.$implicit;o.Y8G("value",C.id),o.R7$(),o.SpI(" ",C.label," ")}}let lt=(()=>{class N{constructor(C,S,A){this.manifestService=C,this.crudService=S,this.formBuilder=A,this.valueChanged=new o.bkB,this.form=this.formBuilder.group({select:null})}ngOnInit(){var C=this;return(0,xe.A)(function*(){C.label=C.prop?.name||C.relationship.name,C.relationship?(C.entityManifest=yield C.manifestService.getEntityManifest({className:C.relationship.entity}),C.options=yield C.crudService.listSelectOptions(C.entityManifest.slug)):C.prop.type===K.Kk.Choice&&(C.options=(C.prop.options?.values||[]).map(S=>({id:S,label:S}))),C.value&&C.form.patchValue({select:C.relationship?C.value.id:C.value})})()}onChange(C){if(""===C.target.value)return this.form.patchValue({select:null}),void this.valueChanged.emit(null);this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)(o.rXU(qe.x),o.rXU(Ge.m),o.rXU(je.ok))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-select-input"]],inputs:{prop:"prop",relationship:"relationship",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:9,vars:8,consts:[[3,"formGroup"],[3,"for"],[1,"control"],[1,"select",3,"ngClass"],["formControlName","select",1,"is-fullwidth",3,"change"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(S,A){1&S&&(o.j41(0,"div",0)(1,"label",1),o.EFF(2),o.k0s(),o.j41(3,"div",2)(4,"div",3)(5,"select",4),o.bIt("change",function(Oe){return A.onChange(Oe)}),o.j41(6,"option",5),o.EFF(7),o.k0s(),o.DNE(8,nn,2,2,"option",6),o.k0s()()()()),2&S&&(o.Y8G("formGroup",A.form),o.R7$(),o.Y8G("for",A.label),o.R7$(),o.JRh(A.label),o.R7$(2),o.Y8G("ngClass",o.eq3(6,xt,A.isError)),o.R7$(3),o.SpI("Select ",A.label,"..."),o.R7$(),o.Y8G("ngForOf",A.options))},dependencies:[je.X1,je.xH,je.y7,je.wz,je.BC,je.cb,je.j4,je.JD,h.YU,h.pM]})}}return N})();const jt=["input"],sn=N=>({"is-danger":N});let fn=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-text-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(jt,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:5,consts:[["input",""],[3,"for"],["type","text",1,"input","form-control",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(3,sn,A.isError)))},dependencies:[h.YU]})}}return N})();const St=["input"],Kt=N=>({"is-danger":N});let Ye=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-textarea-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(St,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:6,consts:[["input",""],[3,"for"],[1,"textarea",3,"change","ngClass","name"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"textarea",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.EFF(4," "),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(4,Kt,A.isError))("name",A.prop.name))},dependencies:[h.YU]})}}return N})();const Ut=["input"],hn=N=>({"is-danger":N});let ke=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-url-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(Ut,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:5,consts:[["input",""],[3,"for"],["type","url","placeholder","https://example.com",1,"input","form-control",3,"change","ngClass"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(3,hn,A.isError)))},dependencies:[h.YU]})}}return N})();const qt=["input"],_n=N=>({"is-danger":N});let Dn=(()=>{class N{constructor(){this.valueChanged=new o.bkB}ngOnInit(){void 0!==this.value&&(this.input.nativeElement.value=this.value)}onChange(C){this.valueChanged.emit(C.target.value)}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-timestamp-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(qt,7),2&S){let W;o.mGM(W=o.lsd())&&(A.input=W.first)}},inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:4,vars:6,consts:[["input",""],[3,"for"],["type","datetime-local",1,"input",3,"change","ngClass","value"]],template:function(S,A){if(1&S){const W=o.RV6();o.j41(0,"label",1),o.EFF(1),o.k0s(),o.j41(2,"input",2,0),o.bIt("change",function(tt){return o.eBV(W),o.Njj(A.onChange(tt))}),o.k0s()}2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngClass",o.eq3(4,_n,A.isError))("value",A.value))},dependencies:[h.YU],encapsulation:2})}}return N})();var _r=M(8033),gi=M(9606),Pn=M(5640);let $=(()=>{class N{constructor(C){this.http=C}uploadImage({entity:C,property:S,fileContent:A}){return this.upload({type:"image",entity:C,property:S,fileContent:A})}uploadFile({entity:C,property:S,fileContent:A}){var W=this;return(0,xe.A)(function*(){return W.upload({type:"file",entity:C,property:S,fileContent:A})})()}upload({type:C,entity:S,property:A,fileContent:W}){var Oe=this;return(0,xe.A)(function*(){const tt=new FormData;return tt.append(C,W),tt.append("entity",S),tt.append("property",A),(0,_r._)(Oe.http.post(`${gi.c.apiBaseUrl}/upload/${C}`,tt)).catch(Tt=>{throw new Error(Tt.error.message)})})()}static{this.\u0275fac=function(S){return new(S||N)(o.KVO(Pn.Qq))}}static{this.\u0275prov=o.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})();var ze=M(818);const X=["fileInput"],de=N=>({"show-errors":N});function Be(N,ee){1&N&&(o.j41(0,"span",10)(1,"span",11),o.nrm(2,"i",12),o.k0s(),o.j41(3,"span",6),o.EFF(4," Upload file... "),o.k0s()())}function Bt(N,ee){1&N&&(o.j41(0,"button",13),o.EFF(1," Loading "),o.k0s())}function Qt(N,ee){if(1&N){const C=o.RV6();o.j41(0,"div")(1,"div",5)(2,"label",6)(3,"input",7,0),o.bIt("change",function(){o.eBV(C);const A=o.XpG();return o.Njj(A.onFileInputEvent())}),o.k0s(),o.DNE(5,Be,5,0,"span",8)(6,Bt,2,0,"button",9),o.k0s()()()}if(2&N){const C=o.XpG();o.R7$(),o.Y8G("ngClass",o.eq3(3,de,C.isError)),o.R7$(4),o.Y8G("ngIf",!C.loading),o.R7$(),o.Y8G("ngIf",C.loading)}}function Fn(N,ee){if(1&N){const C=o.RV6();o.j41(0,"div",14)(1,"a",15),o.EFF(2),o.k0s(),o.j41(3,"span",16)(4,"a",17),o.bIt("click",function(){o.eBV(C);const A=o.XpG();return o.Njj(A.removeFile())}),o.nrm(5,"i",18),o.k0s()()()}if(2&N){const C=o.XpG();o.R7$(),o.Y8G("href",C.value,o.B4B),o.R7$(),o.SpI(" ",C.value," ")}}let ft=(()=>{class N{constructor(C,S){this.uploadService=C,this.flashMessageService=S,this.valueChanged=new o.bkB}onFileInputEvent(){var C=this;return(0,xe.A)(function*(){return C.loading=!0,C.uploadService.uploadFile({entity:C.entitySlug,property:C.prop.name,fileContent:C.fileInputEl.nativeElement.files.item(0)}).then(S=>{C.loading=!1,C.value=S.path,C.valueChanged.emit(C.value)},S=>{C.loading=!1,C.flashMessageService.error("There was an error uploading your file.")})})()}removeFile(){delete this.value,this.valueChanged.emit(null)}static{this.\u0275fac=function(S){return new(S||N)(o.rXU($),o.rXU(ze.L))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-file-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(X,5),2&S){let W;o.mGM(W=o.lsd())&&(A.fileInputEl=W.first)}},inputs:{prop:"prop",entitySlug:"entitySlug",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:4,consts:[["fileInput",""],[1,"control"],[3,"for"],[4,"ngIf"],["class","has-current-file is-flex is-justify-content-space-between is-align-items-center mt-1 has-background-white-ter pl-1",4,"ngIf"],[1,"file",3,"ngClass"],[1,"file-label"],["type","file",1,"file-input",3,"change"],["class","file-cta",4,"ngIf"],["class","button is-link is-loading",4,"ngIf"],[1,"file-cta"],[1,"file-icon"],[1,"icon","icon-upload-cloud","is-size-5"],[1,"button","is-link","is-loading"],[1,"has-current-file","is-flex","is-justify-content-space-between","is-align-items-center","mt-1","has-background-white-ter","pl-1"],["target","_blank",3,"href"],[1,"file-cta","file-remove"],[3,"click"],[1,"icon","icon-x","is-size-5"]],template:function(S,A){1&S&&(o.j41(0,"div",1)(1,"label",2),o.EFF(2),o.k0s(),o.DNE(3,Qt,7,5,"div",3)(4,Fn,6,2,"div",4),o.k0s()),2&S&&(o.R7$(),o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngIf",!A.value),o.R7$(),o.Y8G("ngIf",A.value))},dependencies:[h.bT,h.YU],encapsulation:2})}}return N})();const ar=["imageInput"],At=N=>({"show-errors":N});function rt(N,ee){1&N&&(o.j41(0,"span",11)(1,"span",12),o.nrm(2,"i",13),o.k0s(),o.j41(3,"span",14),o.EFF(4," Upload image..."),o.k0s()())}function lr(N,ee){1&N&&(o.j41(0,"button",15),o.EFF(1," Loading "),o.k0s())}function ln(N,ee){if(1&N){const C=o.RV6();o.j41(0,"div",5)(1,"div",6)(2,"label",7)(3,"input",8,0),o.bIt("change",function(){o.eBV(C);const A=o.XpG();return o.Njj(A.imageInputEvent())}),o.k0s(),o.DNE(5,rt,5,0,"span",9)(6,lr,2,0,"button",10),o.k0s()()()}if(2&N){const C=o.XpG();o.R7$(),o.Y8G("ngClass",o.eq3(3,At,C.isError)),o.R7$(4),o.Y8G("ngIf",!C.loading),o.R7$(),o.Y8G("ngIf",C.loading)}}function An(N,ee){if(1&N){const C=o.RV6();o.j41(0,"div",16),o.nrm(1,"img",17),o.j41(2,"span",18)(3,"a",19),o.bIt("click",function(){o.eBV(C);const A=o.XpG();return o.Njj(A.removeFile())}),o.nrm(4,"i",20),o.k0s()()()}if(2&N){const C=o.XpG();o.R7$(),o.Y8G("src",C.displayedImage,o.B4B)}}let Si=(()=>{class N{constructor(C,S){this.uploadService=C,this.flashMessageService=S,this.valueChanged=new o.bkB}ngOnInit(){if(this.value){const C=(0,Se.Gj)(this.prop.options?.sizes);this.displayedImage=this.value[C]}}imageInputEvent(){this.loading=!0,this.uploadService.uploadImage({entity:this.entitySlug,property:this.prop.name,fileContent:this.imageInputEl.nativeElement.files.item(0)}).then(C=>{this.loading=!1,this.value=C,setTimeout(()=>{this.displayedImage=C[Object.keys(C)[0]],this.valueChanged.emit(this.value)},100)},C=>{this.loading=!1,this.flashMessageService.error("There was an error uploading your image.")})}removeFile(){delete this.value,delete this.displayedImage,this.valueChanged.emit(null)}static{this.\u0275fac=function(S){return new(S||N)(o.rXU($),o.rXU(ze.L))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-image-input"]],viewQuery:function(S,A){if(1&S&&o.GBs(ar,5),2&S){let W;o.mGM(W=o.lsd())&&(A.imageInputEl=W.first)}},inputs:{prop:"prop",entitySlug:"entitySlug",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:4,consts:[["imageInput",""],[1,"control"],[3,"for"],["class","image",4,"ngIf"],["class","has-current-file is-flex is-align-items-center is-justify-content-space-between mt-1 has-background-white-ter pl-1 py-1",4,"ngIf"],[1,"image"],[1,"file",3,"ngClass"],[1,"image-label"],["type","file","accept","image/*",1,"file-input",3,"change"],["class","file-cta",4,"ngIf"],["class","button is-link is-loading full-width",4,"ngIf"],[1,"file-cta"],[1,"file-icon"],[1,"icon","icon-upload-cloud","is-size-5"],[1,"file-label"],[1,"button","is-link","is-loading","full-width"],[1,"has-current-file","is-flex","is-align-items-center","is-justify-content-space-between","mt-1","has-background-white-ter","pl-1","py-1"],[3,"src"],[1,"file-cta","file-remove"],[3,"click"],[1,"icon","icon-x","is-size-5"]],template:function(S,A){1&S&&(o.j41(0,"div",1)(1,"label",2),o.EFF(2),o.k0s(),o.DNE(3,ln,7,5,"div",3)(4,An,5,1,"div",4),o.k0s()),2&S&&(o.R7$(),o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("ngIf",!A.value),o.R7$(),o.Y8G("ngIf",A.displayedImage))},dependencies:[h.bT,h.YU],encapsulation:2})}}return N})();const ur={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},or=new o.nKC("config",{providedIn:"root",factory:()=>({modules:ur})});var F=M(7711),H=M(7787),De=M(5719);function We(N){N||((0,o.Af3)(We),N=(0,o.WQX)(o.abz));const ee=new H.c(C=>N.onDestroy(C.next.bind(C)));return C=>C.pipe((0,De.Q)(ee))}var kn=M(6852),Dr=M(7624),ii=M(7233),ki=M(7412),wn=M(3575),st=M(5271),Nr=M(2097),Er=M(7236);const Xr=["addListener","removeListener"],Kr=["addEventListener","removeEventListener"],wr=["on","off"];function Dt(N,ee,C,S){if((0,Nr.T)(C)&&(S=C,C=void 0),S)return Dt(N,ee,C).pipe((0,Er.I)(S));const[A,W]=function Ar(N){return(0,Nr.T)(N.addEventListener)&&(0,Nr.T)(N.removeEventListener)}(N)?Kr.map(Oe=>tt=>N[Oe](ee,tt,C)):function dr(N){return(0,Nr.T)(N.addListener)&&(0,Nr.T)(N.removeListener)}(N)?Xr.map(qr(N,ee)):function Sr(N){return(0,Nr.T)(N.on)&&(0,Nr.T)(N.off)}(N)?wr.map(qr(N,ee)):[];if(!A&&(0,st.X)(N))return(0,wn.Z)(Oe=>Dt(Oe,ee,C))((0,ki.Tg)(N));if(!A)throw new TypeError("Invalid event target");return new H.c(Oe=>{const tt=(...Tt)=>Oe.next(1<Tt.length?Tt:Tt[0]);return A(tt),()=>W(tt)})}function qr(N,ee){return C=>S=>N[C](ee,S)}var Rr=M(1087);const xr={now:()=>(xr.delegate||Date).now(),delegate:void 0};class br extends Rr.B{constructor(ee=1/0,C=1/0,S=xr){super(),this._bufferSize=ee,this._windowTime=C,this._timestampProvider=S,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,ee),this._windowTime=Math.max(1,C)}next(ee){const{isStopped:C,_buffer:S,_infiniteTimeWindow:A,_timestampProvider:W,_windowTime:Oe}=this;C||(S.push(ee),!A&&S.push(W.now()+Oe)),this._trimBuffer(),super.next(ee)}_subscribe(ee){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(ee),{_infiniteTimeWindow:S,_buffer:A}=this,W=A.slice();for(let Oe=0;Oe<W.length&&!ee.closed;Oe+=S?1:2)ee.next(W[Oe]);return this._checkFinalizedStatuses(ee),C}_trimBuffer(){const{_bufferSize:ee,_timestampProvider:C,_buffer:S,_infiniteTimeWindow:A}=this,W=(A?1:2)*ee;if(ee<1/0&&W<S.length&&S.splice(0,S.length-W),!A){const Oe=C.now();let tt=0;for(let Tt=1;Tt<S.length&&S[Tt]<=Oe;Tt+=2)tt=Tt;tt&&S.splice(0,tt+1)}}}var P=M(3173),V=M(1524);function ue(N,ee,...C){if(!0===ee)return void N();if(!1===ee)return;const S=new P.Ms({next:()=>{S.unsubscribe(),N()}});return(0,ki.Tg)(ee(...C)).subscribe(S)}class Pe extends ii.yU{constructor(ee,C){super()}schedule(ee,C=0){return this}}const Le={setInterval(N,ee,...C){const{delegate:S}=Le;return S?.setInterval?S.setInterval(N,ee,...C):setInterval(N,ee,...C)},clearInterval(N){const{delegate:ee}=Le;return(ee?.clearInterval||clearInterval)(N)},delegate:void 0};var yt=M(2070);class Vt{constructor(ee,C=Vt.now){this.schedulerActionCtor=ee,this.now=C}schedule(ee,C=0,S){return new this.schedulerActionCtor(this,ee).schedule(S,C)}}Vt.now=xr.now;const Pt=new class vn extends Vt{constructor(ee,C=Vt.now){super(ee,C),this.actions=[],this._active=!1}flush(ee){const{actions:C}=this;if(this._active)return void C.push(ee);let S;this._active=!0;do{if(S=ee.execute(ee.state,ee.delay))break}while(ee=C.shift());if(this._active=!1,S){for(;ee=C.shift();)ee.unsubscribe();throw S}}}(class it extends Pe{constructor(ee,C){super(ee,C),this.scheduler=ee,this.work=C,this.pending=!1}schedule(ee,C=0){var S;if(this.closed)return this;this.state=ee;const A=this.id,W=this.scheduler;return null!=A&&(this.id=this.recycleAsyncId(W,A,C)),this.pending=!0,this.delay=C,this.id=null!==(S=this.id)&&void 0!==S?S:this.requestAsyncId(W,this.id,C),this}requestAsyncId(ee,C,S=0){return Le.setInterval(ee.flush.bind(ee,this),S)}recycleAsyncId(ee,C,S=0){if(null!=S&&this.delay===S&&!1===this.pending)return C;null!=C&&Le.clearInterval(C)}execute(ee,C){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const S=this._execute(ee,C);if(S)return S;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ee,C){let A,S=!1;try{this.work(ee)}catch(W){S=!0,A=W||new Error("Scheduled action threw falsy error")}if(S)return this.unsubscribe(),A}unsubscribe(){if(!this.closed){const{id:ee,scheduler:C}=this,{actions:S}=C;this.work=this.state=this.scheduler=null,this.pending=!1,(0,yt.o)(S,this),null!=ee&&(this.id=this.recycleAsyncId(C,ee,null)),this.delay=null,super.unsubscribe()}}});var Jn=M(5510);function bn(N,ee=Pt){return(0,V.N)((C,S)=>{let A=null,W=null,Oe=null;const tt=()=>{if(A){A.unsubscribe(),A=null;const un=W;W=null,S.next(un)}};function Tt(){const un=Oe+N,qn=ee.now();if(qn<un)return A=this.schedule(void 0,un-qn),void S.add(A);tt()}C.subscribe((0,Jn._)(S,un=>{W=un,Oe=ee.now(),A||(A=ee.schedule(Tt,N),S.add(A))},()=>{tt(),S.complete()},void 0,()=>{W=A=null}))})}const Ct=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],Xe=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function Wt(N,ee){1&N&&o.nrm(0,"div",0)}function Xn(N,ee){1&N&&o.nrm(0,"div",0)}const It=(N,ee)=>N||ee||"html";let Kn=(()=>{class N{constructor(C,S){var A=this;this.config=S,this.quill$=(0,kn.v)((0,xe.A)(function*(){if(!A.Quill){const W=A.document.addEventListener;A.document.addEventListener=A.document.__zone_symbol__addEventListener||A.document.addEventListener;const Oe=yield M.e(256).then(M.bind(M,256));A.document.addEventListener=W,A.Quill=Oe.default?.default??Oe.default??Oe}return A.config.customOptions?.forEach(W=>{const Oe=A.Quill.import(W.import);Oe.whitelist=W.whitelist,A.Quill.register(Oe,!0,A.config.suppressGlobalRegisterWarning)}),yield A.registerCustomModules(A.Quill,A.config.customModules,A.config.suppressGlobalRegisterWarning)})).pipe(function ie(N,ee,C){let S,A=!1;return N&&"object"==typeof N?({bufferSize:S=1/0,windowTime:ee=1/0,refCount:A=!1,scheduler:C}=N):S=N??1/0,function j(N={}){const{connector:ee=(()=>new Rr.B),resetOnError:C=!0,resetOnComplete:S=!0,resetOnRefCountZero:A=!0}=N;return W=>{let Oe,tt,Tt,un=0,qn=!1,Vn=!1;const Nn=()=>{tt?.unsubscribe(),tt=void 0},jn=()=>{Nn(),Oe=Tt=void 0,qn=Vn=!1},_i=()=>{const er=Oe;jn(),er?.unsubscribe()};return(0,V.N)((er,Br)=>{un++,!Vn&&!qn&&Nn();const In=Tt=Tt??ee();Br.add(()=>{un--,0===un&&!Vn&&!qn&&(tt=ue(_i,A))}),In.subscribe(Br),!Oe&&un>0&&(Oe=new P.Ms({next:Hn=>In.next(Hn),error:Hn=>{Vn=!0,Nn(),tt=ue(jn,C,Hn),In.error(Hn)},complete:()=>{qn=!0,Nn(),tt=ue(jn,S),In.complete()}}),(0,ki.Tg)(er).subscribe(Oe))})(W)}}({connector:()=>new br(S,ee,C),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:A})}({bufferSize:1,refCount:!0})),this.document=C.get(h.qQ),this.config||(this.config={modules:ur})}getQuill(){return this.quill$}registerCustomModules(C,S,A){return(0,xe.A)(function*(){if(Array.isArray(S))for(let{implementation:W,path:Oe}of S)(0,Dr.A)(W)&&(W=yield(0,_r._)(W)),C.register(Oe,W,A);return C})()}static{this.\u0275fac=function(S){return new(S||N)(o.KVO(o.zZn),o.KVO(or,8))}}static{this.\u0275prov=o.jDH({token:N,factory:N.\u0275fac,providedIn:"root"})}}return N})(),On=(()=>{class N{constructor(){this.format=(0,o.hFB)(void 0),this.theme=(0,o.hFB)(void 0),this.modules=(0,o.hFB)(void 0),this.debug=(0,o.hFB)(!1),this.readOnly=(0,o.hFB)(!1),this.placeholder=(0,o.hFB)(void 0),this.maxLength=(0,o.hFB)(void 0),this.minLength=(0,o.hFB)(void 0),this.required=(0,o.hFB)(!1),this.formats=(0,o.hFB)(void 0),this.customToolbarPosition=(0,o.hFB)("top"),this.sanitize=(0,o.hFB)(!1),this.beforeRender=(0,o.hFB)(void 0),this.styles=(0,o.hFB)(null),this.registry=(0,o.hFB)(void 0),this.bounds=(0,o.hFB)(void 0),this.customOptions=(0,o.hFB)([]),this.customModules=(0,o.hFB)([]),this.trackChanges=(0,o.hFB)(void 0),this.classes=(0,o.hFB)(void 0),this.trimOnValidation=(0,o.hFB)(!1),this.linkPlaceholder=(0,o.hFB)(void 0),this.compareValues=(0,o.hFB)(!1),this.filterNull=(0,o.hFB)(!1),this.debounceTime=(0,o.hFB)(void 0),this.defaultEmptyValue=(0,o.hFB)(null),this.onEditorCreated=new o.bkB,this.onEditorChanged=new o.bkB,this.onContentChanged=new o.bkB,this.onSelectionChanged=new o.bkB,this.onFocus=new o.bkB,this.onBlur=new o.bkB,this.onNativeFocus=new o.bkB,this.onNativeBlur=new o.bkB,this.disabled=!1,this.toolbarPosition=(0,o.vPA)("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=(0,o.WQX)(o.aKT),this.document=(0,o.WQX)(h.qQ),this.cd=(0,o.WQX)(o.gRc),this.domSanitizer=(0,o.WQX)(F.up),this.platformId=(0,o.WQX)(o.Agw),this.renderer=(0,o.WQX)(o.sFG),this.zone=(0,o.WQX)(o.SKi),this.service=(0,o.WQX)(Kn),this.destroyRef=(0,o.WQX)(o.abz),this.valueGetter=(0,o.hFB)(C=>{let S=C.getSemanticHTML();this.isEmptyValue(S)&&(S=this.defaultEmptyValue());let A=S;const W=It(this.format(),this.service.config.format);if("text"===W)A=C.getText();else if("object"===W)A=C.getContents();else if("json"===W)try{A=JSON.stringify(C.getContents())}catch{A=C.getText()}return A}),this.valueSetter=(0,o.hFB)((C,S)=>{const A=It(this.format(),this.service.config.format);if("html"===A)return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(S=this.domSanitizer.sanitize(o.WPN.HTML,S)),C.clipboard.convert({html:S});if("json"===A)try{return JSON.parse(S)}catch{return[{insert:S}]}return S}),this.selectionChangeHandler=(C,S,A)=>{const W=this.trackChanges()||this.service.config.trackChanges,Oe=!C&&!!this.onModelTouched&&("user"===A||W&&"all"===W);!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!Oe||this.zone.run(()=>{null===C?this.onBlur.emit({editor:this.quillEditor,source:A}):null===S&&this.onFocus.emit({editor:this.quillEditor,source:A}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange:S,range:C,source:A}),Oe&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(C,S,A)=>{const W=this.quillEditor.getText(),Oe=this.quillEditor.getContents();let tt=this.quillEditor.getSemanticHTML();this.isEmptyValue(tt)&&(tt=this.defaultEmptyValue());const Tt=this.trackChanges()||this.service.config.trackChanges,un=("user"===A||Tt&&"all"===Tt)&&!!this.onModelChange;!this.onContentChanged.observed&&!un||this.zone.run(()=>{if(un){const qn=this.valueGetter();this.onModelChange(qn(this.quillEditor))}this.onContentChanged.emit({content:Oe,delta:C,editor:this.quillEditor,html:tt,oldDelta:S,source:A,text:W}),this.cd.markForCheck()})},this.editorChangeHandler=(C,S,A,W)=>{if(this.onEditorChanged.observed)if("text-change"===C){const Oe=this.quillEditor.getText(),tt=this.quillEditor.getContents();let Tt=this.quillEditor.getSemanticHTML();this.isEmptyValue(Tt)&&(Tt=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content:tt,delta:S,editor:this.quillEditor,event:C,html:Tt,oldDelta:A,source:W,text:Oe}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:C,oldRange:A,range:S,source:W}),this.cd.markForCheck()})}}static normalizeClassNames(C){return C.trim().split(" ").reduce((A,W)=>{const Oe=W.trim();return Oe&&A.push(Oe),A},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){(0,h.Vy)(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe((0,wn.Z)(C=>{const S=[this.service.registerCustomModules(C,this.customModules())],A=this.beforeRender()??this.service.config.beforeRender;return A&&S.push(A()),Promise.all(S).then(()=>C)})).subscribe(C=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");const S=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),A=Object.assign({},this.modules()||this.service.config.modules);S?A.toolbar=S:void 0===A.toolbar&&(A.toolbar=ur.toolbar);let W=void 0!==this.placeholder()?this.placeholder():this.service.config.placeholder;void 0===W&&(W="Insert text here ...");const Oe=this.styles();Oe&&Object.keys(Oe).forEach(Nn=>{this.renderer.setStyle(this.editorElem,Nn,Oe[Nn])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(Nn=>{const jn=C.import(Nn.import);jn.whitelist=Nn.whitelist,C.register(jn,!0)});let tt=this.bounds()&&"self"===this.bounds()?this.editorElem:this.bounds();tt||(tt=this.service.config.bounds?this.service.config.bounds:this.document.body);let Tt=this.debug();!Tt&&!1!==Tt&&this.service.config.debug&&(Tt=this.service.config.debug);let un=this.readOnly();!un&&!1!==this.readOnly()&&(un=void 0!==this.service.config.readOnly&&this.service.config.readOnly);let qn=this.defaultEmptyValue;this.service.config.hasOwnProperty("defaultEmptyValue")&&(qn=this.service.config.defaultEmptyValue);let Vn=this.formats();if(!Vn&&void 0===Vn&&(Vn=this.service.config.formats?[...this.service.config.formats]:null===this.service.config.formats?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new C(this.editorElem,{bounds:tt,debug:Tt,formats:Vn,modules:A,placeholder:W,readOnly:un,defaultEmptyValue:qn,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed&&(this.quillEditor.scroll.domNode.addEventListener("blur",()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"})),this.quillEditor.getModule("toolbar").container?.addEventListener("mousedown",jn=>jn.preventDefault())),this.onNativeFocus.observed&&this.quillEditor.scroll.domNode.addEventListener("focus",()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){const jn=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");jn?.dataset&&(jn.dataset.link=this.linkPlaceholder())}}),this.content){if("text"===It(this.format(),this.service.config.format))this.quillEditor.setText(this.content,"silent");else{const er=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(er,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),(this.onEditorCreated.observed||this.onValidatorChanged)&&new H.c(N=>{const ee=requestAnimationFrame(()=>{N.next(),N.complete()});return()=>cancelAnimationFrame(ee)}).pipe(We(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(C){if(this.quillEditor){if(C.readOnly&&this.quillEditor.enable(!C.readOnly.currentValue),C.placeholder&&(this.quillEditor.root.dataset.placeholder=C.placeholder.currentValue),C.defaultEmptyValue&&(this.quillEditor.root.dataset.defaultEmptyValue=C.defaultEmptyValue.currentValue),C.styles){const S=C.styles.currentValue,A=C.styles.previousValue;A&&Object.keys(A).forEach(W=>{this.renderer.removeStyle(this.editorElem,W)}),S&&Object.keys(S).forEach(W=>{this.renderer.setStyle(this.editorElem,W,this.styles()[W])})}if(C.classes){const S=C.classes.currentValue,A=C.classes.previousValue;A&&this.removeClasses(A),S&&this.addClasses(S)}C.debounceTime&&this.addQuillEventListeners()}}addClasses(C){N.normalizeClassNames(C).forEach(S=>{this.renderer.addClass(this.editorElem,S)})}removeClasses(C){N.normalizeClassNames(C).forEach(S=>{this.renderer.removeClass(this.editorElem,S)})}writeValue(C){if(this.filterNull()&&null===C||(this.content=C,!this.quillEditor))return;const S=It(this.format(),this.service.config.format),W=this.valueSetter()(this.quillEditor,C);if(this.compareValues()){const Oe=this.quillEditor.getContents();if(JSON.stringify(Oe)===JSON.stringify(W))return}C?"text"===S?this.quillEditor.setText(C):this.quillEditor.setContents(W):this.quillEditor.setText("")}setDisabledState(C=this.disabled){this.disabled=C,this.quillEditor&&(C?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(C){this.onModelChange=C}registerOnTouched(C){this.onModelTouched=C}registerOnValidatorChange(C){this.onValidatorChanged=C}validate(){if(!this.quillEditor)return null;const C={};let S=!0;const A=this.quillEditor.getText(),W=this.trimOnValidation()?A.trim().length:1===A.length&&0===A.trim().length?0:A.length-1,Oe=this.quillEditor.getContents().ops,tt=!!Oe&&1===Oe.length&&["\n",""].includes(Oe[0].insert?.toString());return this.minLength()&&W&&W<this.minLength()&&(C.minLengthError={given:W,minLength:this.minLength()},S=!1),this.maxLength()&&W>this.maxLength()&&(C.maxLengthError={given:W,maxLength:this.maxLength()},S=!1),this.required()&&!W&&tt&&(C.requiredError={empty:!0},S=!1),S?null:C}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new ii.yU,this.subscription.add(Dt(this.quillEditor,"selection-change").subscribe(([A,W,Oe])=>{this.selectionChangeHandler(A,W,Oe)}));let C=Dt(this.quillEditor,"text-change"),S=Dt(this.quillEditor,"editor-change");"number"==typeof this.debounceTime()&&(C=C.pipe(bn(this.debounceTime())),S=S.pipe(bn(this.debounceTime()))),this.subscription.add(C.subscribe(([A,W,Oe])=>{this.textChangeHandler(A,W,Oe)})),this.subscription.add(S.subscribe(([A,W,Oe,tt])=>{this.editorChangeHandler(A,W,Oe,tt)}))})}dispose(){null!==this.subscription&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(C){return"<p></p>"===C||"<div></div>"===C||"<p><br></p>"===C||"<div><br></div>"===C}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275dir=o.FsC({type:N,inputs:{format:[o.Mj6.SignalBased,"format"],theme:[o.Mj6.SignalBased,"theme"],modules:[o.Mj6.SignalBased,"modules"],debug:[o.Mj6.SignalBased,"debug"],readOnly:[o.Mj6.SignalBased,"readOnly"],placeholder:[o.Mj6.SignalBased,"placeholder"],maxLength:[o.Mj6.SignalBased,"maxLength"],minLength:[o.Mj6.SignalBased,"minLength"],required:[o.Mj6.SignalBased,"required"],formats:[o.Mj6.SignalBased,"formats"],customToolbarPosition:[o.Mj6.SignalBased,"customToolbarPosition"],sanitize:[o.Mj6.SignalBased,"sanitize"],beforeRender:[o.Mj6.SignalBased,"beforeRender"],styles:[o.Mj6.SignalBased,"styles"],registry:[o.Mj6.SignalBased,"registry"],bounds:[o.Mj6.SignalBased,"bounds"],customOptions:[o.Mj6.SignalBased,"customOptions"],customModules:[o.Mj6.SignalBased,"customModules"],trackChanges:[o.Mj6.SignalBased,"trackChanges"],classes:[o.Mj6.SignalBased,"classes"],trimOnValidation:[o.Mj6.SignalBased,"trimOnValidation"],linkPlaceholder:[o.Mj6.SignalBased,"linkPlaceholder"],compareValues:[o.Mj6.SignalBased,"compareValues"],filterNull:[o.Mj6.SignalBased,"filterNull"],debounceTime:[o.Mj6.SignalBased,"debounceTime"],defaultEmptyValue:[o.Mj6.SignalBased,"defaultEmptyValue"],valueGetter:[o.Mj6.SignalBased,"valueGetter"],valueSetter:[o.Mj6.SignalBased,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[o.OA$]})}}return N})(),ct=(()=>{class N extends On{static{this.\u0275fac=(()=>{let C;return function(A){return(C||(C=o.xGo(N)))(A||N)}})()}static{this.\u0275cmp=o.VBU({type:N,selectors:[["quill-editor"]],standalone:!0,features:[o.Jv_([{multi:!0,provide:je.kq,useExisting:(0,o.Rfq)(()=>N)},{multi:!0,provide:je.cz,useExisting:(0,o.Rfq)(()=>N)}]),o.Vt3,o.aNF],ngContentSelectors:Xe,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(S,A){1&S&&(o.NAR(Ct),o.DNE(0,Wt,1,0,"div",0),o.SdG(1),o.SdG(2,1),o.SdG(3,2),o.DNE(4,Xn,1,0,"div",0)),2&S&&(o.vxM(0,"top"!==A.toolbarPosition()?0:-1),o.R7$(4),o.vxM(4,"top"===A.toolbarPosition()?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]})}}return N})(),Ir=(()=>{class N{static forRoot(C){return{ngModule:N,providers:[{provide:or,useValue:C}]}}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275mod=o.$C({type:N})}static{this.\u0275inj=o.G2t({})}}return N})();const ro=N=>({"is-danger":N});let io=(()=>{class N{constructor(C){this.formBuilder=C,this.valueChanged=new o.bkB,this.modules={toolbar:[["bold","italic","underline","strike"],["link","blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{header:[1,2,3,4,5,6,!1]}]]}}ngOnInit(){this.form=this.formBuilder.group({editor:[this.value||""]}),this.form.valueChanges.subscribe(C=>{this.valueChanged.emit(C.editor)})}static{this.\u0275fac=function(S){return new(S||N)(o.rXU(je.ok))}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-rich-text-input"]],inputs:{prop:"prop",value:"value",isError:"isError"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.aNF],decls:5,vars:7,consts:[[3,"for"],[3,"formGroup"],[1,"control",3,"ngClass"],["placeholder","","formControlName","editor",3,"modules"]],template:function(S,A){1&S&&(o.j41(0,"label",0),o.EFF(1),o.k0s(),o.j41(2,"form",1)(3,"div",2),o.nrm(4,"quill-editor",3),o.k0s()()),2&S&&(o.Y8G("for",A.prop.name),o.R7$(),o.JRh(A.prop.name),o.R7$(),o.Y8G("formGroup",A.form),o.R7$(),o.Y8G("ngClass",o.eq3(5,ro,A.isError)),o.R7$(),o.Y8G("modules",A.modules))},dependencies:[h.YU,Ir,ct,je.X1,je.qT,je.BC,je.cb,je.j4,je.JD],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.control[_ngcontent-%COMP%]{min-height:200px}']})}}return N})();function oo(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-text-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function mi(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-rich-text-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function Mt(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-number-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function vi(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-url-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function Li(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-textarea-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function $n(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-select-input",6),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("relationship",C.relationship)("value",C.value)("isError",C.isError)}}function Vi(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-multi-select-input",6),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("relationship",C.relationship)("value",C.value)("isError",C.isError)}}function Io(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-currency-input",7),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("currency",null==C.prop||null==C.prop.options?null:C.prop.options.currency)("isError",C.isError)}}function ji(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-boolean-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function Pr(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-email-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function Ai(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-date-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function oi(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-timestamp-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function jr(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-password-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function Ui(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-location-input",5),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("value",C.value)("isError",C.isError)}}function yi(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-file-input",8),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("entitySlug",C.entityManifest.slug)("value",C.value)("isError",C.isError)}}function Ci(N,ee){if(1&N){const C=o.RV6();o.j41(0,"app-image-input",8),o.bIt("valueChanged",function(A){o.eBV(C);const W=o.XpG();return o.Njj(W.onChange(A))}),o.k0s()}if(2&N){const C=o.XpG();o.Y8G("prop",C.prop)("entitySlug",C.entityManifest.slug)("value",C.value)("isError",C.isError)}}function yn(N,ee){if(1&N&&(o.j41(0,"li",10),o.EFF(1),o.k0s()),2&N){const C=ee.$implicit;o.R7$(),o.JRh(C)}}function Ur(N,ee){if(1&N&&(o.j41(0,"ul"),o.DNE(1,yn,2,1,"li",9),o.k0s()),2&N){const C=o.XpG();o.R7$(),o.Y8G("ngForOf",C.errors)}}let fr=(()=>{class N{constructor(){this.valueChanged=new o.bkB,this.PropType=K.Kk}onChange(C){this.valueChanged.emit(C)}ngOnChanges(){this.isError=!!this.errors?.length}static{this.\u0275fac=function(S){return new(S||N)}}static{this.\u0275cmp=o.VBU({type:N,selectors:[["app-input"]],inputs:{prop:"prop",entityManifest:"entityManifest",relationship:"relationship",value:"value",errors:"errors"},outputs:{valueChanged:"valueChanged"},standalone:!0,features:[o.OA$,o.aNF],decls:17,vars:17,consts:[[3,"prop","value","isError","valueChanged",4,"ngIf"],[3,"prop","relationship","value","isError","valueChanged",4,"ngIf"],[3,"prop","value","currency","isError","valueChanged",4,"ngIf"],[3,"prop","entitySlug","value","isError","valueChanged",4,"ngIf"],[4,"ngIf"],[3,"valueChanged","prop","value","isError"],[3,"valueChanged","prop","relationship","value","isError"],[3,"valueChanged","prop","value","currency","isError"],[3,"valueChanged","prop","entitySlug","value","isError"],["class","has-text-danger",4,"ngFor","ngForOf"],[1,"has-text-danger"]],template:function(S,A){1&S&&o.DNE(0,oo,1,3,"app-text-input",0)(1,mi,1,3,"app-rich-text-input",0)(2,Mt,1,3,"app-number-input",0)(3,vi,1,3,"app-url-input",0)(4,Li,1,3,"app-textarea-input",0)(5,$n,1,4,"app-select-input",1)(6,Vi,1,4,"app-multi-select-input",1)(7,Io,1,4,"app-currency-input",2)(8,ji,1,3,"app-boolean-input",0)(9,Pr,1,3,"app-email-input",0)(10,Ai,1,3,"app-date-input",0)(11,oi,1,3,"app-timestamp-input",0)(12,jr,1,3,"app-password-input",0)(13,Ui,1,3,"app-location-input",0)(14,yi,1,4,"app-file-input",3)(15,Ci,1,4,"app-image-input",3)(16,Ur,2,1,"ul",4),2&S&&(o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.String),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.RichText),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Number),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Link),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Text),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Choice||"many-to-one"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf","many-to-many"===(null==A.relationship?null:A.relationship.type)),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Money),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Boolean),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Email),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Date),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Timestamp),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Password),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Location),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.File),o.R7$(),o.Y8G("ngIf",(null==A.prop?null:A.prop.type)===A.PropType.Image),o.R7$(),o.Y8G("ngIf",null==A.errors?null:A.errors.length))},dependencies:[h.MD,h.Sq,h.bT,ne,ce,Ae,Dn,ot,ke,Sn,le,Me,lt,Ye,fn,pt,ft,Si,io],encapsulation:2})}}return N})()},7271:(Ze,he,M)=>{M.d(he,{b:()=>K});var h=M(2410),o=M(8284);let K=(()=>{class q{constructor(){this.breadcrumbLinks=new h.t([])}static{this.\u0275fac=function(ne){return new(ne||q)}}static{this.\u0275prov=o.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})()},818:(Ze,he,M)=>{M.d(he,{L:()=>K});var h=M(1087),o=M(8284);let K=(()=>{class q{constructor(){this.flashMessageTimeOut=5e3,this.flashMessage=new h.B}success(ge){this.flashMessage.next({message:ge,className:"notification is-success"}),this.clear()}error(ge){this.flashMessage.next({message:ge,className:"notification is-danger"}),this.clear()}warning(ge){this.flashMessage.next({message:ge,className:"notification is-warning"}),this.clear()}info(ge){this.flashMessage.next({message:ge,className:"notification is-info"}),this.clear()}clear(){setTimeout(()=>{this.flashMessage.next(null)},this.flashMessageTimeOut)}static{this.\u0275fac=function(ne){return new(ne||q)}}static{this.\u0275prov=o.jDH({token:q,factory:q.\u0275fac,providedIn:"root"})}}return q})()},2283:(Ze,he,M)=>{M.d(he,{x:()=>ge});var h=M(7431),o=M(8033),K=M(9606),q=M(8284),x=M(5640);let ge=(()=>{class ne{constructor(pe){this.http=pe,this.manifestPromise=null}getManifest(){return this.manifestPromise||(this.manifestPromise=(0,o._)(this.http.get(`${K.c.apiBaseUrl}/manifest`))),this.manifestPromise}getEntityManifest({slug:pe,className:ce}){var oe=this;return(0,h.A)(function*(){if(!pe&&!ce)throw new Error("Either slug or className must be provided");return oe.manifestPromise?oe.manifestPromise.then(J=>Object.values(J.entities).find(Ae=>Ae.slug===pe||Ae.className===ce)):(0,o._)(oe.http.get(`${K.c.apiBaseUrl}/manifest/entities/${pe}`))})()}static{this.\u0275fac=function(ce){return new(ce||ne)(q.KVO(x.Qq))}}static{this.\u0275prov=q.jDH({token:ne,factory:ne.\u0275fac,providedIn:"root"})}}return ne})()},8023:(Ze,he,M)=>{M.d(he,{G:()=>ge});var h=M(2943),o=M(5640),K=M(8428),q=M(818),x=M(8284);let ge=(()=>{class ne{static{this.\u0275fac=function(ce){return new(ce||ne)}}static{this.\u0275mod=x.$C({type:ne})}static{this.\u0275inj=x.G2t({providers:[q.L],imports:[h.MD,o.q1,K.S]})}}return ne})()},4385:(Ze,he,M)=>{M.d(he,{Fr:()=>K,Xw:()=>o,il:()=>h});const h="manifestToken",o="Admin",K={email:"admin@manifest.build",password:"admin"}},9606:(Ze,he,M)=>{M.d(he,{c:()=>h});const h={production:!0,apiBaseUrl:"/api"}},7309:(Ze,he,M)=>{var h=M(7711),o=M(8284),K=M(2943),q=M(2816),x=M(3575),ge=M(6852),ne=M(1467),Ee=M(5640);const pe=new o.nKC("JWT_OPTIONS");let ce=(()=>{class ${constructor(X=null){this.tokenGetter=X&&X.tokenGetter||function(){}}urlBase64Decode(X){let de=X.replace(/-/g,"+").replace(/_/g,"/");switch(de.length%4){case 0:break;case 2:de+="==";break;case 3:de+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(de)}b64decode(X){let Be="";if((X=String(X).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(let Qt,Fn,Bt=0,ft=0;Fn=X.charAt(ft++);~Fn&&(Qt=Bt%4?64*Qt+Fn:Fn,Bt++%4)?Be+=String.fromCharCode(255&Qt>>(-2*Bt&6)):0)Fn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(Fn);return Be}b64DecodeUnicode(X){return decodeURIComponent(Array.prototype.map.call(this.b64decode(X),de=>"%"+("00"+de.charCodeAt(0).toString(16)).slice(-2)).join(""))}decodeToken(X=this.tokenGetter()){return X instanceof Promise?X.then(de=>this._decodeToken(de)):this._decodeToken(X)}_decodeToken(X){if(!X||""===X)return null;const de=X.split(".");if(3!==de.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");const Be=this.urlBase64Decode(de[1]);if(!Be)throw new Error("Cannot decode the token.");return JSON.parse(Be)}getTokenExpirationDate(X=this.tokenGetter()){return X instanceof Promise?X.then(de=>this._getTokenExpirationDate(de)):this._getTokenExpirationDate(X)}_getTokenExpirationDate(X){let de;if(de=this.decodeToken(X),!de||!de.hasOwnProperty("exp"))return null;const Be=new Date(0);return Be.setUTCSeconds(de.exp),Be}isTokenExpired(X=this.tokenGetter(),de){return X instanceof Promise?X.then(Be=>this._isTokenExpired(Be,de)):this._isTokenExpired(X,de)}_isTokenExpired(X,de){if(!X||""===X)return!0;const Be=this.getTokenExpirationDate(X);return de=de||0,null!==Be&&!(Be.valueOf()>(new Date).valueOf()+1e3*de)}getAuthScheme(X,de){return"function"==typeof X?X(de):X}}return $.\u0275fac=function(X){return new(X||$)(o.KVO(pe))},$.\u0275prov=o.jDH({token:$,factory:$.\u0275fac}),$})();const oe=$=>$ instanceof Promise?(0,ge.v)(()=>$):(0,ne.of)($);let J=(()=>{class ${constructor(X,de,Be){this.jwtHelper=de,this.document=Be,this.standardPorts=["80","443"],this.tokenGetter=X.tokenGetter,this.headerName=X.headerName||"Authorization",this.authScheme=X.authScheme||""===X.authScheme?X.authScheme:"Bearer ",this.allowedDomains=X.allowedDomains||[],this.disallowedRoutes=X.disallowedRoutes||[],this.throwNoTokenError=X.throwNoTokenError||!1,this.skipWhenExpired=X.skipWhenExpired}isAllowedDomain(X){const de=new URL(X.url,this.document.location.origin);if(de.host===this.document.location.host)return!0;const Be=`${de.hostname}${de.port&&!this.standardPorts.includes(de.port)?":"+de.port:""}`;return this.allowedDomains.findIndex(Bt=>"string"==typeof Bt?Bt===Be:Bt instanceof RegExp&&Bt.test(Be))>-1}isDisallowedRoute(X){const de=new URL(X.url,this.document.location.origin);return this.disallowedRoutes.findIndex(Be=>{if("string"==typeof Be){const Bt=new URL(Be,this.document.location.origin);return Bt.hostname===de.hostname&&Bt.pathname===de.pathname}return Be instanceof RegExp&&Be.test(X.url)})>-1}handleInterception(X,de,Be){const Bt=this.jwtHelper.getAuthScheme(this.authScheme,de);if(!X&&this.throwNoTokenError)throw new Error("Could not get token from tokenGetter function.");let Qt=(0,ne.of)(!1);return this.skipWhenExpired&&(Qt=X?oe(this.jwtHelper.isTokenExpired(X)):(0,ne.of)(!0)),X?Qt.pipe((0,q.T)(Fn=>Fn&&this.skipWhenExpired?de.clone():de.clone({setHeaders:{[this.headerName]:`${Bt}${X}`}})),(0,x.Z)(Fn=>Be.handle(Fn))):Be.handle(de)}intercept(X,de){if(!this.isAllowedDomain(X)||this.isDisallowedRoute(X))return de.handle(X);const Be=this.tokenGetter(X);return oe(Be).pipe((0,x.Z)(Bt=>this.handleInterception(Bt,X,de)))}}return $.\u0275fac=function(X){return new(X||$)(o.KVO(pe),o.KVO(ce),o.KVO(K.qQ))},$.\u0275prov=o.jDH({token:$,factory:$.\u0275fac}),$})(),Ae=(()=>{class ${constructor(X){if(X)throw new Error("JwtModule is already loaded. It should only be imported in your application's main module.")}static forRoot(X){return{ngModule:$,providers:[{provide:Ee.a7,useClass:J,multi:!0},X.jwtOptionsProvider||{provide:pe,useValue:X.config},ce]}}}return $.\u0275fac=function(X){return new(X||$)(o.KVO($,12))},$.\u0275mod=o.$C({type:$}),$.\u0275inj=o.G2t({}),$})();var me=M(4385),Te=M(3123),ot=M(818);let nt=(()=>{class ${constructor(X,de){this.router=X,this.flashMessageService=de}canActivate(){return!!localStorage.getItem(me.il)||(this.router.navigate(["/","auth","login"]),this.flashMessageService.info("You need to be logged in to access this page."),!1)}static{this.\u0275fac=function(de){return new(de||$)(o.KVO(Te.Ix),o.KVO(ot.L))}}static{this.\u0275prov=o.jDH({token:$,factory:$.\u0275fac,providedIn:"root"})}}return $})(),ht=(()=>{class ${static{this.\u0275fac=function(de){return new(de||$)}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-error404"]],decls:10,vars:0,consts:[[1,"wrapper--basic"],[1,"title","is-1"],[1,"is-size-5","mb-4"],["routerLink","/",1,"button","is-link","mt-3"]],template:function(de,Be){1&de&&(o.j41(0,"div",0)(1,"span"),o.EFF(2,"404"),o.k0s(),o.j41(3,"h1",1),o.EFF(4,"Page not found"),o.k0s(),o.j41(5,"p",2),o.EFF(6," The page you are looking for doesn't exist or has been moved "),o.k0s(),o.j41(7,"p")(8,"a",3),o.EFF(9," Back to Homepage "),o.k0s()()())},dependencies:[Te.Wk],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.welcome-wrapper[_ngcontent-%COMP%]{height:calc(100vh - 70px + -0rem);width:100%;display:inline-flex;align-items:center;flex-direction:column;justify-content:center}.welcome-wrapper[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:2rem}span[_ngcontent-%COMP%]{font-size:11rem}']})}}return $})();var bt=M(7271),pt=M(2283);let xe=(()=>{class ${transform(X){return typeof X>"u"||null===X||""===X?"":X[0].toUpperCase()+X.substr(1).toLowerCase()}static{this.\u0275fac=function(de){return new(de||$)}}static{this.\u0275pipe=o.EJ8({name:"capitalizeFirstLetter",type:$,pure:!0,standalone:!0})}}return $})();const Se=$=>["/collections",$],qe=$=>["/singles",$,"edit"];function Ge($,ze){if(1&$&&(o.j41(0,"div",20)(1,"a",27)(2,"div",28)(3,"div",11)(4,"article",12)(5,"div",16)(6,"div",3)(7,"p",17)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",18),o.nrm(12,"i",19),o.k0s()()()()()()),2&$){const X=ze.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,Se,X.slug)),o.R7$(8),o.JRh(o.bMT(10,2,X.namePlural))}}function Fe($,ze){if(1&$&&(o.j41(0,"div",0)(1,"div",6),o.nrm(2,"hr"),o.j41(3,"p",7),o.EFF(4," Start navigating through your collections "),o.k0s()(),o.DNE(5,Ge,13,6,"div",26),o.k0s()),2&$){const X=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",X.collections)}}function Ue($,ze){if(1&$&&(o.j41(0,"div",20)(1,"a",27)(2,"div",28)(3,"div",11)(4,"article",12)(5,"div",16)(6,"div",3)(7,"p",17)(8,"span"),o.EFF(9),o.nI1(10,"capitalizeFirstLetter"),o.k0s()()()(),o.j41(11,"figure",18),o.nrm(12,"i",19),o.k0s()()()()()()),2&$){const X=ze.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,qe,X.slug)),o.R7$(8),o.JRh(o.bMT(10,2,X.nameSingular))}}function Je($,ze){if(1&$&&(o.j41(0,"div",0)(1,"div",6),o.nrm(2,"hr"),o.j41(3,"p",7),o.EFF(4," Edit your single entities "),o.k0s()(),o.DNE(5,Ue,13,6,"div",26),o.k0s()),2&$){const X=o.XpG(2);o.R7$(5),o.Y8G("ngForOf",X.singles)}}function Ie($,ze){if(1&$&&(o.j41(0,"div",3)(1,"h1"),o.EFF(2),o.k0s(),o.j41(3,"p",4),o.EFF(4," Proudly built with "),o.j41(5,"a",5),o.EFF(6,"Manifest"),o.k0s()(),o.nrm(7,"hr"),o.j41(8,"div"),o.qex(9),o.j41(10,"div",0)(11,"div",6)(12,"p",7),o.EFF(13," Resources "),o.k0s()(),o.j41(14,"div",8)(15,"a",9)(16,"div",10)(17,"div",11)(18,"article",12)(19,"figure",13)(20,"p",14),o.nrm(21,"img",15),o.k0s()(),o.j41(22,"div",16)(23,"div",3)(24,"p",17),o.EFF(25," Documentation "),o.k0s(),o.j41(26,"p"),o.EFF(27,"Find out how how to to play with Manifest"),o.k0s()()(),o.j41(28,"figure",18),o.nrm(29,"i",19),o.k0s()()()()()(),o.j41(30,"div",6)(31,"p",7),o.EFF(32," Feedback & Support "),o.k0s()(),o.j41(33,"div",20)(34,"a",21)(35,"div",10)(36,"div",11)(37,"article",12)(38,"figure",13)(39,"p",14),o.nrm(40,"img",22),o.k0s()(),o.j41(41,"div",16)(42,"div",3)(43,"p",17),o.EFF(44," We need you \u{1f64f} "),o.k0s(),o.j41(45,"p"),o.EFF(46,"Share your feedback and suggestions"),o.k0s()()(),o.j41(47,"figure",18),o.nrm(48,"i",19),o.k0s()()()()()(),o.j41(49,"div",20)(50,"a",23)(51,"div",10)(52,"div",11)(53,"article",12)(54,"figure",13)(55,"p",14),o.nrm(56,"img",24),o.k0s()(),o.j41(57,"div",16)(58,"div",3)(59,"p",17),o.EFF(60," Stuck ? "),o.k0s(),o.j41(61,"p"),o.EFF(62,"Get help from the community on our Discord"),o.k0s()()(),o.j41(63,"figure",18),o.nrm(64,"i",19),o.k0s()()()()()()(),o.bVm(),o.DNE(65,Fe,6,1,"div",25)(66,Je,6,1,"div",25),o.k0s()()),2&$){const X=o.XpG();o.R7$(2),o.JRh(X.appManifest.name),o.R7$(63),o.Y8G("ngIf",null==X.collections?null:X.collections.length),o.R7$(),o.Y8G("ngIf",null==X.singles?null:X.singles.length)}}const we=[{path:"",component:(()=>{class ${constructor(X,de){this.breadcrumbService=X,this.manifestService=de}ngOnInit(){this.breadcrumbService.breadcrumbLinks.next([]),this.manifestService.getManifest().then(X=>{this.appManifest=X,this.collections=Object.values(X.entities||{}).filter(de=>!de.single),this.singles=Object.values(X.entities||{}).filter(de=>de.single)})}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(bt.b),o.rXU(pt.x))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-home"]],decls:3,vars:1,consts:[[1,"columns","is-multiline"],[1,"column","is-10-tablet","is-offset-1-tablet","is-8-widescreen","is-offset-2-widescreen","is-6-fullhd","is-offset-3-fullhd"],["class","content",4,"ngIf"],[1,"content"],[1,"is-size-5"],["href","https://manifest.build","target","_blank"],[1,"column","is-12","pb-0"],[1,"is-uppercase","has-text-dark","has-text-weight-medium"],[1,"column","is-12"],["href","https://manifest.build/docs","target","_blank",1,"card-link"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered"],[1,"card-content","p-0"],[1,"media","is-flex","is-align-items-center"],[1,"media-left","m-0"],[1,"image","is-64x64"],["src","/assets/images/ext-link-01.svg"],[1,"media-content","is-flex","is-align-items-center","is-justify-content-flex-start","pl-4","is-fullheight"],[1,"is-size-5","has-text-weight-bold","mb-0"],[1,"media-right","my-0","ml-1","mr-4","is-inline-flex","is-justify-content-center"],[1,"icon","icon-arrow-right"],[1,"column","is-6"],["href","https://github.com/mnfst/manifest/discussions/categories/feedback","target","_blank",1,"card-link"],["src","/assets/images/ext-link-gh.svg"],["href","https://discord.com/invite/FepAked3W7","target","_blank",1,"card-link"],["src","/assets/images/ext-link-dc.svg"],["class","columns is-multiline",4,"ngIf"],["class","column is-6",4,"ngFor","ngForOf"],["routerLinkActive","is-active",1,"card-link",3,"routerLink"],[1,"card","p-0","is-overflow-hidden","is-shadowless","is-bordered","is-entity-link"]],template:function(de,Be){1&de&&(o.j41(0,"div",0)(1,"div",1),o.DNE(2,Ie,67,3,"div",2),o.k0s()()),2&de&&(o.R7$(2),o.Y8G("ngIf",Be.appManifest))},dependencies:[K.Sq,K.bT,Te.Wk,Te.wQ,xe],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";@import"https://fonts.googleapis.com/css2?family=Fira+Code&family=Roboto&display=swap";code[_ngcontent-%COMP%]{display:inline-block;padding:1em 2em;background-color:#303032;color:#f5f7f9;font-family:Fira Code,monospace}.is-entity-link[_ngcontent-%COMP%]{height:64px;display:flex;align-items:center}.card-link[_ngcontent-%COMP%]{border-color:#dddde2;transition:border-color .54s cubic-bezier(.165,.84,.44,1)}.card-link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:before{display:none}.card-link[_ngcontent-%COMP%]:hover .card[_ngcontent-%COMP%]{transition:border-color .54s cubic-bezier(.165,.84,.44,1);color:#000;border-color:#39393c}']})}}return $})(),canActivate:[nt]},{path:"auth",loadChildren:()=>Promise.resolve().then(M.bind(M,4783)).then($=>$.AuthModule)},{path:"collections",loadChildren:()=>Promise.all([M.e(69),M.e(45)]).then(M.bind(M,4045)).then($=>$.CrudCollectionModule),canActivate:[nt],data:{mode:"collection"}},{path:"singles",loadChildren:()=>Promise.all([M.e(69),M.e(693)]).then(M.bind(M,8693)).then($=>$.CrudSingleModule),canActivate:[nt]},{path:"404",component:ht,canActivate:[nt]},{path:"**",redirectTo:"/404"}];let He=(()=>{class ${static{this.\u0275fac=function(de){return new(de||$)}}static{this.\u0275mod=o.$C({type:$})}static{this.\u0275inj=o.G2t({imports:[Te.iI.forRoot(we),Te.iI]})}}return $})();var dt=M(7906);function Ht($,ze){if(1&$&&(o.j41(0,"div",1)(1,"p",2),o.EFF(2),o.k0s()()),2&$){const X=o.XpG();o.Y8G("ngClass",X.flashMessage.className),o.R7$(2),o.JRh(X.flashMessage.message)}}let tn=(()=>{class ${constructor(X){this.flashMessageService=X}ngOnInit(){this.flashMessageService.flashMessage.subscribe(X=>{this.flashMessage=X})}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(ot.L))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-flash-message"]],decls:1,vars:1,consts:[["class","flash-messages notification",3,"ngClass",4,"ngIf"],[1,"flash-messages","notification",3,"ngClass"],[1,"is-size-5"]],template:function(de,Be){1&de&&o.DNE(0,Ht,3,2,"div",0),2&de&&o.Y8G("ngIf",Be.flashMessage)},dependencies:[K.YU,K.bT]})}}return $})();const Sn=$=>({"is-active":$});function te($,ze){if(1&$&&(o.j41(0,"span",9)(1,"strong"),o.EFF(2),o.k0s()()),2&$){const X=o.XpG();o.R7$(2),o.JRh(X.currentUser.email)}}let ae=(()=>{class ${constructor(X,de){this.authService=X,this.elementRef=de,this.showUserMenu=!1}ngOnInit(){this.authService.me().then(X=>{this.currentUser=X})}onClick(X){this.elementRef.nativeElement.contains(X)||(this.showUserMenu=!1)}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(dt.u),o.rXU(o.aKT))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-user-menu-item"]],hostBindings:function(de,Be){1&de&&o.bIt("click",function(Qt){return Be.onClick(Qt.target)},!1,o.EBC)},decls:10,vars:4,consts:[[1,"is-flex","is-align-items-center","is-justify-content-flex-start"],[1,"dropdown","is-up",3,"ngClass"],[1,"dropdown-trigger"],[1,"is-flex","is-align-items-center","is-justify-content-flex-start",3,"click"],["src","/assets/images/avatar-default.svg","title","currentUser.name","alt","currentUser.name",1,"avatar"],["class","dropdown-item pr-0",4,"ngIf"],["role","menu",1,"dropdown-menu","is-small"],[1,"dropdown-content"],["routerLink","/auth/logout",1,"dropdown-item",3,"click"],[1,"dropdown-item","pr-0"]],template:function(de,Be){1&de&&(o.nrm(0,"div",0),o.j41(1,"div",1)(2,"div",2)(3,"a",3),o.bIt("click",function(){return Be.showUserMenu=!Be.showUserMenu}),o.nrm(4,"img",4),o.DNE(5,te,3,1,"span",5),o.k0s()(),o.j41(6,"div",6)(7,"div",7)(8,"a",8),o.bIt("click",function(){return Be.showUserMenu=!1}),o.EFF(9," Sign out "),o.k0s()()()()),2&de&&(o.R7$(),o.Y8G("ngClass",o.eq3(2,Sn,Be.showUserMenu)),o.R7$(4),o.Y8G("ngIf",Be.currentUser))},dependencies:[K.YU,K.bT,Te.Wk],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.dropdown-trigger[_ngcontent-%COMP%]{max-width:100%;min-width:100%}@media screen and (max-width: 999px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{width:100%;height:100%;display:inline-flex;box-sizing:content-box;align-items:center;justify-content:center;margin-right:32px}}@media screen and (max-width: 767px){.dropdown-trigger[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-right:30px}}.dropdown[_ngcontent-%COMP%]{max-width:100%;min-width:100%}.dropdown-item[_ngcontent-%COMP%]{white-space:nowrap;text-overflow:ellipsis;width:100%;overflow:hidden}.avatar[_ngcontent-%COMP%]{border-radius:6px}']})}}return $})();const le=$=>["/singles",$],fe=$=>["/collections",$];function _e($,ze){if(1&$&&(o.j41(0,"li")(1,"a",20)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&$){const X=ze.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,le,X.slug)),o.R7$(2),o.JRh(o.bMT(4,2,X.nameSingular))}}function Me($,ze){if(1&$&&(o.qex(0),o.DNE(1,_e,5,6,"li",19),o.nrm(2,"hr"),o.bVm()),2&$){const X=o.XpG();o.R7$(),o.Y8G("ngForOf",X.singles)}}function je($,ze){1&$&&o.nrm(0,"i",22)}function xt($,ze){1&$&&o.nrm(0,"i",23)}function nn($,ze){if(1&$&&(o.j41(0,"li")(1,"a",20)(2,"span"),o.EFF(3),o.nI1(4,"capitalizeFirstLetter"),o.k0s()()()),2&$){const X=ze.$implicit;o.R7$(),o.Y8G("routerLink",o.eq3(4,fe,X.slug)),o.R7$(2),o.JRh(o.bMT(4,2,X.namePlural))}}function lt($,ze){1&$&&(o.j41(0,"li")(1,"a",24)(2,"span"),o.EFF(3,"No collection yet"),o.k0s()()())}function jt($,ze){if(1&$&&(o.j41(0,"ul"),o.DNE(1,nn,5,6,"li",19)(2,lt,4,0,"li",5),o.k0s()),2&$){const X=o.XpG(2);o.R7$(),o.Y8G("ngForOf",X.collections),o.R7$(),o.Y8G("ngIf",0===X.collections.length)}}function sn($,ze){if(1&$){const X=o.RV6();o.j41(0,"li")(1,"a",6),o.bIt("click",function(){o.eBV(X);const Be=o.XpG();return o.Njj(Be.isCollectionsOpen=!Be.isCollectionsOpen)}),o.j41(2,"span",7),o.nrm(3,"i",21),o.j41(4,"span",9),o.EFF(5,"Collections"),o.k0s()(),o.DNE(6,je,1,0,"i",10)(7,xt,1,0,"i",11),o.k0s(),o.DNE(8,jt,3,2,"ul",5),o.k0s()}if(2&$){const X=o.XpG();o.R7$(6),o.Y8G("ngIf",!X.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",X.isCollectionsOpen),o.R7$(),o.Y8G("ngIf",X.isCollectionsOpen)}}function fn($,ze){1&$&&o.nrm(0,"i",22)}function St($,ze){1&$&&o.nrm(0,"i",23)}function Kt($,ze){1&$&&(o.j41(0,"ul")(1,"li")(2,"a",25),o.EFF(3,"Admins"),o.k0s()()())}let Ye=(()=>{class ${constructor(X){this.manifestService=X,this.isCollectionsOpen=!1,this.isSettingsOpen=!1}ngOnInit(){this.manifestService.getManifest().then(X=>{this.collections=Object.values(X.entities||{}).filter(de=>de.className!==me.Xw).filter(de=>!de.single),this.singles=Object.values(X.entities||{}).filter(de=>de.single)})}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(pt.x))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-side-menu"]],decls:28,vars:5,consts:[[1,"side-menu-wrapper","is-flex","is-flex-direction-column","is-justify-content-space-between"],[1,"logo-wrapper","is-hidden-touch"],["routerLink","/",1,"logo"],["src","/assets/images/logo.svg","width","155",1,"logo--image"],[1,"menu-list"],[4,"ngIf"],[1,"has-submenu","is-flex","is-justify-content-space-between",3,"click"],[1,"is-inline-flex","is-align-items-center","is-justify-content-space-between"],[1,"icon","mr-2","icon-sliders","is-size-4"],[1,"pl-1"],["class","icon icon-chevron-down",4,"ngIf"],["class","icon icon-chevron-up",4,"ngIf"],[1,"ad"],[1,"card","is-bordered","is-shadowless","has-background-primary"],[1,"card-content","is-size-6"],[1,"content"],[1,"title","is-4","has-text-light"],[1,"subtitle","is-5","has-text-light"],["href","https://forms.gle/yKgUTYhuEacgx8i26","target","_blank",1,"button","is-small","is-success"],[4,"ngFor","ngForOf"],["routerLinkActive","is-active",3,"routerLink"],[1,"icon","mr-2","icon-database","is-size-4"],[1,"icon","icon-chevron-down"],[1,"icon","icon-chevron-up"],[1,"has-background-white-bis","has-text-grey",2,"pointer-events","none"],["routerLink","/collections/admins"]],template:function(de,Be){1&de&&(o.j41(0,"div",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s()(),o.j41(4,"ul",4),o.DNE(5,Me,3,1,"ng-container",5)(6,sn,9,3,"li",5),o.nrm(7,"hr"),o.j41(8,"li")(9,"a",6),o.bIt("click",function(){return Be.isSettingsOpen=!Be.isSettingsOpen}),o.j41(10,"span",7),o.nrm(11,"i",8),o.j41(12,"span",9),o.EFF(13,"Settings"),o.k0s()(),o.DNE(14,fn,1,0,"i",10)(15,St,1,0,"i",11),o.k0s(),o.DNE(16,Kt,4,0,"ul",5),o.k0s()(),o.j41(17,"div",12)(18,"div",13)(19,"div",14)(20,"div",15)(21,"h4",16),o.EFF(22," Want to shape the future of Manifest? "),o.k0s(),o.j41(23,"p",17),o.EFF(24," Be one of 50 developers for a quick video call and shape the product with your insights! "),o.k0s(),o.j41(25,"a",18),o.EFF(26,"Get involved"),o.k0s()()()()(),o.nrm(27,"app-user-menu-item"),o.k0s()),2&de&&(o.R7$(5),o.Y8G("ngIf",null==Be.singles?null:Be.singles.length),o.R7$(),o.Y8G("ngIf",Be.collections),o.R7$(8),o.Y8G("ngIf",!Be.isSettingsOpen),o.R7$(),o.Y8G("ngIf",Be.isSettingsOpen),o.R7$(),o.Y8G("ngIf",Be.isSettingsOpen))},dependencies:[K.Sq,K.bT,Te.Wk,Te.wQ,ae,xe],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%], .menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{background-color:#f5f7f9;color:#000}.menu-list[_ngcontent-%COMP%]{--logo-height: 94px;--footer-height: 54px;--margin: 16px;scrollbar-width:none;padding-top:var(--margin);padding-bottom:var(--margin);margin-bottom:var(--footer-height);overflow-y:overlay;overflow-x:hidden}@media screen and (min-width: 1024px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - var(--logo-height) - var(--footer-height) + 1px - 220px)}}@media screen and (max-width: 1023px){.menu-list[_ngcontent-%COMP%]{height:calc(100vh - 8rem - var(--footer-height) + 1px - 220px)}}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;display:inline-block;width:100%;font-size:1.5rem;padding:1px 8px}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:5px 0 0;border-left:0;padding-left:0}.menu-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-radius:6px;position:relative;color:#303032;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-items:center;justify-content:flex-start;width:100%;min-height:36px;line-height:36px;padding:0 16px;transition:color .35s ease,background-color .05s ease-out}.menu-list[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{transition:color .35s ease,background-color .05s ease-in}.menu-list[_ngcontent-%COMP%] a.is-active[_ngcontent-%COMP%]:before{background-color:#39393c}.menu-list[_ngcontent-%COMP%] a.logo[_ngcontent-%COMP%]{display:flex;align-items:center;height:98px;justify-content:flex-start}.logo-wrapper[_ngcontent-%COMP%]{padding:1.6rem;border-bottom:1px solid #EAEAEF}.flex[_ngcontent-%COMP%]{display:flex}app-user-menu-item[_ngcontent-%COMP%]{border-top:1px solid #EAEAEF;border-right:1px solid #EAEAEF;z-index:99;padding:8px}@media screen and (min-width: 769px),print{app-user-menu-item[_ngcontent-%COMP%]{position:fixed;bottom:0}}.side-menu-wrapper[_ngcontent-%COMP%]{height:100%}']})}}return $})();const Ut=$=>({"is-open":$});let hn=(()=>{class ${constructor(X,de){this.renderer=X,this.isOpen=!1,de.events.subscribe(Be=>{Be instanceof Te.wF&&(this.isOpen=!1)})}toggleMenu(){this.isOpen?(this.isOpen=!1,this.renderer.removeClass(document.querySelector("html"),"is-clipped")):(this.isOpen=!0,this.renderer.addClass(document.querySelector("html"),"is-clipped"))}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(o.sFG),o.rXU(Te.Ix))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-touch-menu"]],decls:12,vars:3,consts:[["role","navigation","aria-label","main navigation",1,"navbar",3,"ngClass"],[1,"navbar-wrapper","is-flex","is-align-items-center","is-justify-content-space-between","is-flex-direction-row-reverse","is-fullheight"],["routerLink","/",1,"logo","is-flex","is-align-items-center","is-justify-content-center","px-0"],["src","/assets/images/logo.svg","width","180",1,"logo-image"],["role","button",1,"navbar-burger","burger","ml-0",3,"click"],["aria-hidden","true"],[1,"hiding-layer",3,"click"],["id","create-dropdown",1,"navbar-menu"],[1,"navbar-end"]],template:function(de,Be){1&de&&(o.j41(0,"nav",0)(1,"div",1)(2,"a",2),o.nrm(3,"img",3),o.k0s(),o.j41(4,"a",4),o.bIt("click",function(){return Be.toggleMenu()}),o.nrm(5,"span",5)(6,"span",5)(7,"span",5),o.k0s()(),o.j41(8,"div",6),o.bIt("click",function(){return Be.toggleMenu()}),o.k0s(),o.j41(9,"div",7)(10,"div",8),o.nrm(11,"app-side-menu"),o.k0s()()()),2&de&&o.Y8G("ngClass",o.eq3(1,Ut,Be.isOpen))},dependencies:[K.YU,Te.Wk,Ye],styles:['@import"https://fonts.googleapis.com/css?family=Rubik:300,400,400i,500";nav.navbar[_ngcontent-%COMP%]{position:relative;z-index:9;height:8rem;width:100vw;background-color:#fff}nav.navbar[_ngcontent-%COMP%]:before{position:absolute;content:"";top:0;z-index:-1;height:100%;width:100%;border-bottom:1px solid rgba(48,48,50,.1)}@media screen and (min-width: 768px),print{nav.navbar[_ngcontent-%COMP%]:before{left:0;width:100%}}nav.navbar[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%]{margin-right:8rem}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{height:8rem;width:8rem;min-width:8rem;color:#303032}@media screen and (min-width: 768px),print{nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]{width:8rem}}nav.navbar[_ngcontent-%COMP%] .navbar-burger[_ngcontent-%COMP%]:hover{background-color:transparent;color:#303032}nav.navbar[_ngcontent-%COMP%] .header-right[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:8rem;width:8rem}.dashboard-title[_ngcontent-%COMP%]{display:inline-block;padding-left:20px;font-size:15px;font-family:Georgia,Times New Roman,sans-serif;color:#303032}.navbar-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:unset}.drop--down[_ngcontent-%COMP%]{left:unset;right:0;top:30px}.drop--down[_ngcontent-%COMP%]:after{content:"";position:absolute;top:-1px;right:30px;width:0;height:0;border-style:solid;border-width:0 6px 6px;border-color:transparent transparent rgba(48,48,50,.1) transparent}.drop--down[_ngcontent-%COMP%]:before{content:"";position:absolute;top:-2px;right:30px;width:0;height:0;border-style:solid;border-width:0 6px 6px;border-color:transparent transparent rgba(48,48,50,.1) transparent}.buttons[_ngcontent-%COMP%]{padding-right:110px}.dropdown-menu.is-small[_ngcontent-%COMP%]{border:1px solid #EAEAEF}.navbar-menu[_ngcontent-%COMP%]{display:block;height:calc(100vh - 8rem);width:260px;position:absolute;top:8rem;left:-261px;z-index:99999;opacity:0;box-shadow:1px 0 #ffffff1a;padding-bottom:0;background-color:#fff;transition:all .16s cubic-bezier(.53,.25,.75,.5)}@media screen and (max-width: 767px){.navbar-menu[_ngcontent-%COMP%]{width:100vw;left:-100vw}}.is-open[_ngcontent-%COMP%] .navbar-menu[_ngcontent-%COMP%]{left:0;opacity:1;transition:all .16s cubic-bezier(.25,.53,.42,.71)}.navbar-end[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:space-between}.navbar-end[_ngcontent-%COMP%] .menu-list--bottom[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-top:1px solid rgba(48,48,50,.1)}.hiding-layer[_ngcontent-%COMP%]{display:block;position:absolute;top:8rem;left:0;width:100vw;opacity:0;z-index:9999;visibility:hidden;height:calc(100vh - 8rem);background:#303032;transition:opacity .16s ease-in-out,visibility .01s linear .16s}.is-open[_ngcontent-%COMP%] .hiding-layer[_ngcontent-%COMP%]{opacity:.2;visibility:visible;transition:opacity .16s ease-in-out .01s,visibility .01s linear}app-side-menu[_ngcontent-%COMP%]{height:100%}']})}}return $})();function ke($,ze){1&$&&(o.qex(0),o.nrm(1,"app-touch-menu",5),o.bVm())}function qt($,ze){1&$&&(o.j41(0,"aside",6),o.nrm(1,"app-side-menu"),o.k0s())}let _n=(()=>{class ${constructor(X,de){this.authService=X,this.router=de,this.isLogin=!0}ngOnInit(){this.router.events.subscribe(X=>{X instanceof Te.wF&&(window.scrollTo(0,0),this.isLogin=X.url.includes("/auth/login")||X.url.includes("/auth/welcome"),this.isLogin?this.currentUser=null:this.currentUser||this.authService.me().then(de=>{this.currentUser=de}))})}static{this.\u0275fac=function(de){return new(de||$)(o.rXU(dt.u),o.rXU(Te.Ix))}}static{this.\u0275cmp=o.VBU({type:$,selectors:[["app-root"]],decls:8,vars:2,consts:[[4,"ngIf"],[1,"wrapper"],[1,"columns"],["class","column aside menu px-0 is-hidden-touch",4,"ngIf"],[1,"column","main"],[1,"is-hidden-desktop"],[1,"column","aside","menu","px-0","is-hidden-touch"]],template:function(de,Be){1&de&&(o.DNE(0,ke,2,0,"ng-container",0),o.nrm(1,"app-flash-message"),o.j41(2,"div",1)(3,"div",2),o.DNE(4,qt,2,0,"aside",3),o.j41(5,"div",4)(6,"main"),o.nrm(7,"router-outlet"),o.k0s()()()()),2&de&&(o.Y8G("ngIf",!Be.isLogin),o.R7$(4),o.Y8G("ngIf",!Be.isLogin))},dependencies:[K.bT,Te.n3,tn,Ye,hn],encapsulation:2})}}return $})();var Dn=M(4783),_r=M(8023);let gi=(()=>{class ${static{this.\u0275fac=function(de){return new(de||$)}}static{this.\u0275mod=o.$C({type:$})}static{this.\u0275inj=o.G2t({imports:[K.MD,Te.iI,_r.G]})}}return $})(),Pn=(()=>{class ${static{this.\u0275fac=function(de){return new(de||$)}}static{this.\u0275mod=o.$C({type:$,bootstrap:[_n]})}static{this.\u0275inj=o.G2t({imports:[h.Bb,Ae.forRoot({config:{tokenGetter:()=>localStorage.getItem(me.il),allowedDomains:["localhost:1111"]}}),He,_r.G,gi,Dn.AuthModule]})}}return $})();h.sG().bootstrapModule(Pn).catch($=>console.error($))},7154:(Ze,he,M)=>{function ne(J){if("many-to-one"===J.type)return J.name+"Id";if("many-to-many"===J.type)return J.name.endsWith("s")?J.name.slice(0,-1)+"Ids":J.name+"Id";throw new Error("Unknown relationship")}function pe(J){return"number"==typeof J?[J]:"string"==typeof J?[parseInt(J,10)]:typeof J>"u"||null===J?[]:J.map(Ae=>"string"==typeof Ae?parseInt(Ae,10):Ae)}function ce(J){return Object.keys(J).reduce((Ae,me)=>{const Te=J?.[me],ot=J?.[Ae];return void 0!==Te?.width&&void 0!==ot?.width&&Te.width<ot.width?me:Ae})}M.d(he,{Gj:()=>ce,qt:()=>pe,yk:()=>ne})},5442:(Ze,he,M)=>{M.d(he,{Kk:()=>h});var h=function(x){return x.String="string",x.Text="text",x.RichText="richText",x.Number="number",x.Link="link",x.Money="money",x.Date="date",x.Timestamp="timestamp",x.Email="email",x.Boolean="boolean",x.Password="password",x.Choice="choice",x.Location="location",x.File="file",x.Image="image",x}(h||{})},2410:(Ze,he,M)=>{M.d(he,{t:()=>o});var h=M(1087);class o extends h.B{constructor(q){super(),this._value=q}get value(){return this.getValue()}_subscribe(q){const x=super._subscribe(q);return!x.closed&&q.next(this._value),x}getValue(){const{hasError:q,thrownError:x,_value:ge}=this;if(q)throw x;return this._throwIfClosed(),ge}next(q){super.next(this._value=q)}}},7787:(Ze,he,M)=>{M.d(he,{c:()=>Ee});var h=M(3173),o=M(7233),K=M(1852),q=M(9493),x=M(2904),ge=M(2097),ne=M(7112);let Ee=(()=>{class J{constructor(me){me&&(this._subscribe=me)}lift(me){const Te=new J;return Te.source=this,Te.operator=me,Te}subscribe(me,Te,ot){const nt=function oe(J){return J&&J instanceof h.vU||function ce(J){return J&&(0,ge.T)(J.next)&&(0,ge.T)(J.error)&&(0,ge.T)(J.complete)}(J)&&(0,o.Uv)(J)}(me)?me:new h.Ms(me,Te,ot);return(0,ne.Y)(()=>{const{operator:ht,source:bt}=this;nt.add(ht?ht.call(nt,bt):bt?this._subscribe(nt):this._trySubscribe(nt))}),nt}_trySubscribe(me){try{return this._subscribe(me)}catch(Te){me.error(Te)}}forEach(me,Te){return new(Te=pe(Te))((ot,nt)=>{const ht=new h.Ms({next:bt=>{try{me(bt)}catch(pt){nt(pt),ht.unsubscribe()}},error:nt,complete:ot});this.subscribe(ht)})}_subscribe(me){var Te;return null===(Te=this.source)||void 0===Te?void 0:Te.subscribe(me)}[K.s](){return this}pipe(...me){return(0,q.m)(me)(this)}toPromise(me){return new(me=pe(me))((Te,ot)=>{let nt;this.subscribe(ht=>nt=ht,ht=>ot(ht),()=>Te(nt))})}}return J.create=Ae=>new J(Ae),J})();function pe(J){var Ae;return null!==(Ae=J??x.$.Promise)&&void 0!==Ae?Ae:Promise}},1087:(Ze,he,M)=>{M.d(he,{B:()=>ne});var h=M(7787),o=M(7233);const q=(0,M(1531).L)(pe=>function(){pe(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var x=M(2070),ge=M(7112);let ne=(()=>{class pe extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(oe){const J=new Ee(this,this);return J.operator=oe,J}_throwIfClosed(){if(this.closed)throw new q}next(oe){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const J of this.currentObservers)J.next(oe)}})}error(oe){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=oe;const{observers:J}=this;for(;J.length;)J.shift().error(oe)}})}complete(){(0,ge.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:oe}=this;for(;oe.length;)oe.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var oe;return(null===(oe=this.observers)||void 0===oe?void 0:oe.length)>0}_trySubscribe(oe){return this._throwIfClosed(),super._trySubscribe(oe)}_subscribe(oe){return this._throwIfClosed(),this._checkFinalizedStatuses(oe),this._innerSubscribe(oe)}_innerSubscribe(oe){const{hasError:J,isStopped:Ae,observers:me}=this;return J||Ae?o.Kn:(this.currentObservers=null,me.push(oe),new o.yU(()=>{this.currentObservers=null,(0,x.o)(me,oe)}))}_checkFinalizedStatuses(oe){const{hasError:J,thrownError:Ae,isStopped:me}=this;J?oe.error(Ae):me&&oe.complete()}asObservable(){const oe=new h.c;return oe.source=this,oe}}return pe.create=(ce,oe)=>new Ee(ce,oe),pe})();class Ee extends ne{constructor(ce,oe){super(),this.destination=ce,this.source=oe}next(ce){var oe,J;null===(J=null===(oe=this.destination)||void 0===oe?void 0:oe.next)||void 0===J||J.call(oe,ce)}error(ce){var oe,J;null===(J=null===(oe=this.destination)||void 0===oe?void 0:oe.error)||void 0===J||J.call(oe,ce)}complete(){var ce,oe;null===(oe=null===(ce=this.destination)||void 0===ce?void 0:ce.complete)||void 0===oe||oe.call(ce)}_subscribe(ce){var oe,J;return null!==(J=null===(oe=this.source)||void 0===oe?void 0:oe.subscribe(ce))&&void 0!==J?J:o.Kn}}},3173:(Ze,he,M)=>{M.d(he,{Ms:()=>ot,vU:()=>J});var h=M(2097),o=M(7233),K=M(2904),q=M(8508),x=M(9405);const ge=pe("C",void 0,void 0);function pe(xe,Se,qe){return{kind:xe,value:Se,error:qe}}var ce=M(7680),oe=M(7112);class J extends o.yU{constructor(Se){super(),this.isStopped=!1,Se?(this.destination=Se,(0,o.Uv)(Se)&&Se.add(this)):this.destination=pt}static create(Se,qe,Ge){return new ot(Se,qe,Ge)}next(Se){this.isStopped?bt(function Ee(xe){return pe("N",xe,void 0)}(Se),this):this._next(Se)}error(Se){this.isStopped?bt(function ne(xe){return pe("E",void 0,xe)}(Se),this):(this.isStopped=!0,this._error(Se))}complete(){this.isStopped?bt(ge,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Se){this.destination.next(Se)}_error(Se){try{this.destination.error(Se)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Ae=Function.prototype.bind;function me(xe,Se){return Ae.call(xe,Se)}class Te{constructor(Se){this.partialObserver=Se}next(Se){const{partialObserver:qe}=this;if(qe.next)try{qe.next(Se)}catch(Ge){nt(Ge)}}error(Se){const{partialObserver:qe}=this;if(qe.error)try{qe.error(Se)}catch(Ge){nt(Ge)}else nt(Se)}complete(){const{partialObserver:Se}=this;if(Se.complete)try{Se.complete()}catch(qe){nt(qe)}}}class ot extends J{constructor(Se,qe,Ge){let Fe;if(super(),(0,h.T)(Se)||!Se)Fe={next:Se??void 0,error:qe??void 0,complete:Ge??void 0};else{let Ue;this&&K.$.useDeprecatedNextContext?(Ue=Object.create(Se),Ue.unsubscribe=()=>this.unsubscribe(),Fe={next:Se.next&&me(Se.next,Ue),error:Se.error&&me(Se.error,Ue),complete:Se.complete&&me(Se.complete,Ue)}):Fe=Se}this.destination=new Te(Fe)}}function nt(xe){K.$.useDeprecatedSynchronousErrorHandling?(0,oe.l)(xe):(0,q.m)(xe)}function bt(xe,Se){const{onStoppedNotification:qe}=K.$;qe&&ce.f.setTimeout(()=>qe(xe,Se))}const pt={closed:!0,next:x.l,error:function ht(xe){throw xe},complete:x.l}},7233:(Ze,he,M)=>{M.d(he,{Kn:()=>ge,yU:()=>x,Uv:()=>ne});var h=M(2097);const K=(0,M(1531).L)(pe=>function(oe){pe(this),this.message=oe?`${oe.length} errors occurred during unsubscription:\n${oe.map((J,Ae)=>`${Ae+1}) ${J.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=oe});var q=M(2070);class x{constructor(ce){this.initialTeardown=ce,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let ce;if(!this.closed){this.closed=!0;const{_parentage:oe}=this;if(oe)if(this._parentage=null,Array.isArray(oe))for(const me of oe)me.remove(this);else oe.remove(this);const{initialTeardown:J}=this;if((0,h.T)(J))try{J()}catch(me){ce=me instanceof K?me.errors:[me]}const{_finalizers:Ae}=this;if(Ae){this._finalizers=null;for(const me of Ae)try{Ee(me)}catch(Te){ce=ce??[],Te instanceof K?ce=[...ce,...Te.errors]:ce.push(Te)}}if(ce)throw new K(ce)}}add(ce){var oe;if(ce&&ce!==this)if(this.closed)Ee(ce);else{if(ce instanceof x){if(ce.closed||ce._hasParent(this))return;ce._addParent(this)}(this._finalizers=null!==(oe=this._finalizers)&&void 0!==oe?oe:[]).push(ce)}}_hasParent(ce){const{_parentage:oe}=this;return oe===ce||Array.isArray(oe)&&oe.includes(ce)}_addParent(ce){const{_parentage:oe}=this;this._parentage=Array.isArray(oe)?(oe.push(ce),oe):oe?[oe,ce]:ce}_removeParent(ce){const{_parentage:oe}=this;oe===ce?this._parentage=null:Array.isArray(oe)&&(0,q.o)(oe,ce)}remove(ce){const{_finalizers:oe}=this;oe&&(0,q.o)(oe,ce),ce instanceof x&&ce._removeParent(this)}}x.EMPTY=(()=>{const pe=new x;return pe.closed=!0,pe})();const ge=x.EMPTY;function ne(pe){return pe instanceof x||pe&&"closed"in pe&&(0,h.T)(pe.remove)&&(0,h.T)(pe.add)&&(0,h.T)(pe.unsubscribe)}function Ee(pe){(0,h.T)(pe)?pe():pe.unsubscribe()}},2904:(Ze,he,M)=>{M.d(he,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},8033:(Ze,he,M)=>{M.d(he,{_:()=>K});var h=M(4392),o=M(3173);function K(q,x){const ge="object"==typeof x;return new Promise((ne,Ee)=>{const pe=new o.Ms({next:ce=>{ne(ce),pe.unsubscribe()},error:Ee,complete:()=>{ge?ne(x.defaultValue):Ee(new h.G)}});q.subscribe(pe)})}},4782:(Ze,he,M)=>{M.d(he,{z:()=>ce});var h=M(7787),o=M(4047),K=M(4850),q=M(3867),x=M(7236),ge=M(1315),ne=M(8746),Ee=M(5510),pe=M(1203);function ce(...Ae){const me=(0,ge.lI)(Ae),Te=(0,ge.ms)(Ae),{args:ot,keys:nt}=(0,o.D)(Ae);if(0===ot.length)return(0,K.H)([],me);const ht=new h.c(function oe(Ae,me,Te=q.D){return ot=>{J(me,()=>{const{length:nt}=Ae,ht=new Array(nt);let bt=nt,pt=nt;for(let xe=0;xe<nt;xe++)J(me,()=>{const Se=(0,K.H)(Ae[xe],me);let qe=!1;Se.subscribe((0,Ee._)(ot,Ge=>{ht[xe]=Ge,qe||(qe=!0,pt--),pt||ot.next(Te(ht.slice()))},()=>{--bt||ot.complete()}))},ot)},ot)}}(ot,me,nt?bt=>(0,ne.e)(nt,bt):q.D));return Te?ht.pipe((0,x.I)(Te)):ht}function J(Ae,me,Te){Ae?(0,pe.N)(Te,Ae,me):me()}},6852:(Ze,he,M)=>{M.d(he,{v:()=>K});var h=M(7787),o=M(7412);function K(q){return new h.c(x=>{(0,o.Tg)(q()).subscribe(x)})}},4850:(Ze,he,M)=>{M.d(he,{H:()=>Ge});var h=M(7412),o=M(1203),K=M(1524),q=M(5510);function x(Fe,Ue=0){return(0,K.N)((Je,Ie)=>{Je.subscribe((0,q._)(Ie,at=>(0,o.N)(Ie,Fe,()=>Ie.next(at),Ue),()=>(0,o.N)(Ie,Fe,()=>Ie.complete(),Ue),at=>(0,o.N)(Ie,Fe,()=>Ie.error(at),Ue)))})}function ge(Fe,Ue=0){return(0,K.N)((Je,Ie)=>{Ie.add(Fe.schedule(()=>Je.subscribe(Ie),Ue))})}var pe=M(7787),oe=M(979),J=M(2097);function me(Fe,Ue){if(!Fe)throw new Error("Iterable cannot be null");return new pe.c(Je=>{(0,o.N)(Je,Ue,()=>{const Ie=Fe[Symbol.asyncIterator]();(0,o.N)(Je,Ue,()=>{Ie.next().then(at=>{at.done?Je.complete():Je.next(at.value)})},0,!0)})})}var Te=M(9533),ot=M(4760),nt=M(5271),ht=M(8419),bt=M(1391),pt=M(3985),xe=M(8030);function Ge(Fe,Ue){return Ue?function qe(Fe,Ue){if(null!=Fe){if((0,Te.l)(Fe))return function ne(Fe,Ue){return(0,h.Tg)(Fe).pipe(ge(Ue),x(Ue))}(Fe,Ue);if((0,nt.X)(Fe))return function ce(Fe,Ue){return new pe.c(Je=>{let Ie=0;return Ue.schedule(function(){Ie===Fe.length?Je.complete():(Je.next(Fe[Ie++]),Je.closed||this.schedule())})})}(Fe,Ue);if((0,ot.y)(Fe))return function Ee(Fe,Ue){return(0,h.Tg)(Fe).pipe(ge(Ue),x(Ue))}(Fe,Ue);if((0,bt.T)(Fe))return me(Fe,Ue);if((0,ht.x)(Fe))return function Ae(Fe,Ue){return new pe.c(Je=>{let Ie;return(0,o.N)(Je,Ue,()=>{Ie=Fe[oe.l](),(0,o.N)(Je,Ue,()=>{let at,we;try{({value:at,done:we}=Ie.next())}catch(He){return void Je.error(He)}we?Je.complete():Je.next(at)},0,!0)}),()=>(0,J.T)(Ie?.return)&&Ie.return()})}(Fe,Ue);if((0,xe.U)(Fe))return function Se(Fe,Ue){return me((0,xe.C)(Fe),Ue)}(Fe,Ue)}throw(0,pt.L)(Fe)}(Fe,Ue):(0,h.Tg)(Fe)}},7412:(Ze,he,M)=>{M.d(he,{Tg:()=>Ae});var h=M(5823),o=M(5271),K=M(4760),q=M(7787),x=M(9533),ge=M(1391),ne=M(3985),Ee=M(8419),pe=M(8030),ce=M(2097),oe=M(8508),J=M(1852);function Ae(xe){if(xe instanceof q.c)return xe;if(null!=xe){if((0,x.l)(xe))return function me(xe){return new q.c(Se=>{const qe=xe[J.s]();if((0,ce.T)(qe.subscribe))return qe.subscribe(Se);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(xe);if((0,o.X)(xe))return function Te(xe){return new q.c(Se=>{for(let qe=0;qe<xe.length&&!Se.closed;qe++)Se.next(xe[qe]);Se.complete()})}(xe);if((0,K.y)(xe))return function ot(xe){return new q.c(Se=>{xe.then(qe=>{Se.closed||(Se.next(qe),Se.complete())},qe=>Se.error(qe)).then(null,oe.m)})}(xe);if((0,ge.T)(xe))return ht(xe);if((0,Ee.x)(xe))return function nt(xe){return new q.c(Se=>{for(const qe of xe)if(Se.next(qe),Se.closed)return;Se.complete()})}(xe);if((0,pe.U)(xe))return function bt(xe){return ht((0,pe.C)(xe))}(xe)}throw(0,ne.L)(xe)}function ht(xe){return new q.c(Se=>{(function pt(xe,Se){var qe,Ge,Fe,Ue;return(0,h.sH)(this,void 0,void 0,function*(){try{for(qe=(0,h.xN)(xe);!(Ge=yield qe.next()).done;)if(Se.next(Ge.value),Se.closed)return}catch(Je){Fe={error:Je}}finally{try{Ge&&!Ge.done&&(Ue=qe.return)&&(yield Ue.call(qe))}finally{if(Fe)throw Fe.error}}Se.complete()})})(xe,Se).catch(qe=>Se.error(qe))})}},1467:(Ze,he,M)=>{M.d(he,{of:()=>K});var h=M(1315),o=M(4850);function K(...q){const x=(0,h.lI)(q);return(0,o.H)(q,x)}},5510:(Ze,he,M)=>{M.d(he,{_:()=>o});var h=M(3173);function o(q,x,ge,ne,Ee){return new K(q,x,ge,ne,Ee)}class K extends h.vU{constructor(x,ge,ne,Ee,pe,ce){super(x),this.onFinalize=pe,this.shouldUnsubscribe=ce,this._next=ge?function(oe){try{ge(oe)}catch(J){x.error(J)}}:super._next,this._error=Ee?function(oe){try{Ee(oe)}catch(J){x.error(J)}finally{this.unsubscribe()}}:super._error,this._complete=ne?function(){try{ne()}catch(oe){x.error(oe)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var x;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:ge}=this;super.unsubscribe(),!ge&&(null===(x=this.onFinalize)||void 0===x||x.call(this))}}}},6944:(Ze,he,M)=>{M.d(he,{H:()=>K});var h=M(3575),o=M(2097);function K(q,x){return(0,o.T)(x)?(0,h.Z)(q,x,1):(0,h.Z)(q,1)}},4534:(Ze,he,M)=>{M.d(he,{p:()=>K});var h=M(1524),o=M(5510);function K(q,x){return(0,h.N)((ge,ne)=>{let Ee=0;ge.subscribe((0,o._)(ne,pe=>q.call(x,pe,Ee++)&&ne.next(pe)))})}},1554:(Ze,he,M)=>{M.d(he,{j:()=>o});var h=M(1524);function o(K){return(0,h.N)((q,x)=>{try{q.subscribe(x)}finally{x.add(K)}})}},2816:(Ze,he,M)=>{M.d(he,{T:()=>K});var h=M(1524),o=M(5510);function K(q,x){return(0,h.N)((ge,ne)=>{let Ee=0;ge.subscribe((0,o._)(ne,pe=>{ne.next(q.call(x,pe,Ee++))}))})}},3575:(Ze,he,M)=>{M.d(he,{Z:()=>Ee});var h=M(2816),o=M(7412),K=M(1524),q=M(1203),x=M(5510),ne=M(2097);function Ee(pe,ce,oe=1/0){return(0,ne.T)(ce)?Ee((J,Ae)=>(0,h.T)((me,Te)=>ce(J,me,Ae,Te))((0,o.Tg)(pe(J,Ae))),oe):("number"==typeof ce&&(oe=ce),(0,K.N)((J,Ae)=>function ge(pe,ce,oe,J,Ae,me,Te,ot){const nt=[];let ht=0,bt=0,pt=!1;const xe=()=>{pt&&!nt.length&&!ht&&ce.complete()},Se=Ge=>ht<J?qe(Ge):nt.push(Ge),qe=Ge=>{me&&ce.next(Ge),ht++;let Fe=!1;(0,o.Tg)(oe(Ge,bt++)).subscribe((0,x._)(ce,Ue=>{Ae?.(Ue),me?Se(Ue):ce.next(Ue)},()=>{Fe=!0},void 0,()=>{if(Fe)try{for(ht--;nt.length&&ht<J;){const Ue=nt.shift();Te?(0,q.N)(ce,Te,()=>qe(Ue)):qe(Ue)}xe()}catch(Ue){ce.error(Ue)}}))};return pe.subscribe((0,x._)(ce,Se,()=>{pt=!0,xe()})),()=>{ot?.()}}(J,Ae,pe,oe)))}},8128:(Ze,he,M)=>{M.d(he,{n:()=>q});var h=M(7412),o=M(1524),K=M(5510);function q(x,ge){return(0,o.N)((ne,Ee)=>{let pe=null,ce=0,oe=!1;const J=()=>oe&&!pe&&Ee.complete();ne.subscribe((0,K._)(Ee,Ae=>{pe?.unsubscribe();let me=0;const Te=ce++;(0,h.Tg)(x(Ae,Te)).subscribe(pe=(0,K._)(Ee,ot=>Ee.next(ge?ge(Ae,ot,Te,me++):ot),()=>{pe=null,J()}))},()=>{oe=!0,J()}))})}},5719:(Ze,he,M)=>{M.d(he,{Q:()=>x});var h=M(1524),o=M(5510),K=M(7412),q=M(9405);function x(ge){return(0,h.N)((ne,Ee)=>{(0,K.Tg)(ge).subscribe((0,o._)(Ee,()=>Ee.complete(),q.l)),!Ee.closed&&ne.subscribe(Ee)})}},7680:(Ze,he,M)=>{M.d(he,{f:()=>h});const h={setTimeout(o,K,...q){const{delegate:x}=h;return x?.setTimeout?x.setTimeout(o,K,...q):setTimeout(o,K,...q)},clearTimeout(o){const{delegate:K}=h;return(K?.clearTimeout||clearTimeout)(o)},delegate:void 0}},979:(Ze,he,M)=>{M.d(he,{l:()=>o});const o=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},1852:(Ze,he,M)=>{M.d(he,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},4392:(Ze,he,M)=>{M.d(he,{G:()=>o});const o=(0,M(1531).L)(K=>function(){K(this),this.name="EmptyError",this.message="no elements in sequence"})},1315:(Ze,he,M)=>{M.d(he,{ms:()=>q,lI:()=>x});var h=M(2097);function K(ne){return ne[ne.length-1]}function q(ne){return(0,h.T)(K(ne))?ne.pop():void 0}function x(ne){return function o(ne){return ne&&(0,h.T)(ne.schedule)}(K(ne))?ne.pop():void 0}},4047:(Ze,he,M)=>{M.d(he,{D:()=>x});const{isArray:h}=Array,{getPrototypeOf:o,prototype:K,keys:q}=Object;function x(ne){if(1===ne.length){const Ee=ne[0];if(h(Ee))return{args:Ee,keys:null};if(function ge(ne){return ne&&"object"==typeof ne&&o(ne)===K}(Ee)){const pe=q(Ee);return{args:pe.map(ce=>Ee[ce]),keys:pe}}}return{args:ne,keys:null}}},2070:(Ze,he,M)=>{function h(o,K){if(o){const q=o.indexOf(K);0<=q&&o.splice(q,1)}}M.d(he,{o:()=>h})},1531:(Ze,he,M)=>{function h(o){const q=o(x=>{Error.call(x),x.stack=(new Error).stack});return q.prototype=Object.create(Error.prototype),q.prototype.constructor=q,q}M.d(he,{L:()=>h})},8746:(Ze,he,M)=>{function h(o,K){return o.reduce((q,x,ge)=>(q[x]=K[ge],q),{})}M.d(he,{e:()=>h})},7112:(Ze,he,M)=>{M.d(he,{Y:()=>K,l:()=>q});var h=M(2904);let o=null;function K(x){if(h.$.useDeprecatedSynchronousErrorHandling){const ge=!o;if(ge&&(o={errorThrown:!1,error:null}),x(),ge){const{errorThrown:ne,error:Ee}=o;if(o=null,ne)throw Ee}}else x()}function q(x){h.$.useDeprecatedSynchronousErrorHandling&&o&&(o.errorThrown=!0,o.error=x)}},1203:(Ze,he,M)=>{function h(o,K,q,x=0,ge=!1){const ne=K.schedule(function(){q(),ge?o.add(this.schedule(null,x)):this.unsubscribe()},x);if(o.add(ne),!ge)return ne}M.d(he,{N:()=>h})},3867:(Ze,he,M)=>{function h(o){return o}M.d(he,{D:()=>h})},5271:(Ze,he,M)=>{M.d(he,{X:()=>h});const h=o=>o&&"number"==typeof o.length&&"function"!=typeof o},1391:(Ze,he,M)=>{M.d(he,{T:()=>o});var h=M(2097);function o(K){return Symbol.asyncIterator&&(0,h.T)(K?.[Symbol.asyncIterator])}},2097:(Ze,he,M)=>{function h(o){return"function"==typeof o}M.d(he,{T:()=>h})},9533:(Ze,he,M)=>{M.d(he,{l:()=>K});var h=M(1852),o=M(2097);function K(q){return(0,o.T)(q[h.s])}},8419:(Ze,he,M)=>{M.d(he,{x:()=>K});var h=M(979),o=M(2097);function K(q){return(0,o.T)(q?.[h.l])}},7624:(Ze,he,M)=>{M.d(he,{A:()=>K});var h=M(7787),o=M(2097);function K(q){return!!q&&(q instanceof h.c||(0,o.T)(q.lift)&&(0,o.T)(q.subscribe))}},4760:(Ze,he,M)=>{M.d(he,{y:()=>o});var h=M(2097);function o(K){return(0,h.T)(K?.then)}},8030:(Ze,he,M)=>{M.d(he,{C:()=>K,U:()=>q});var h=M(5823),o=M(2097);function K(x){return(0,h.AQ)(this,arguments,function*(){const ne=x.getReader();try{for(;;){const{value:Ee,done:pe}=yield(0,h.N3)(ne.read());if(pe)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Ee)}}finally{ne.releaseLock()}})}function q(x){return(0,o.T)(x?.getReader)}},1524:(Ze,he,M)=>{M.d(he,{N:()=>K,S:()=>o});var h=M(2097);function o(q){return(0,h.T)(q?.lift)}function K(q){return x=>{if(o(x))return x.lift(function(ge){try{return q(ge,this)}catch(ne){this.error(ne)}});throw new TypeError("Unable to lift unknown Observable type")}}},7236:(Ze,he,M)=>{M.d(he,{I:()=>q});var h=M(2816);const{isArray:o}=Array;function q(x){return(0,h.T)(ge=>function K(x,ge){return o(ge)?x(...ge):x(ge)}(x,ge))}},9405:(Ze,he,M)=>{function h(){}M.d(he,{l:()=>h})},9493:(Ze,he,M)=>{M.d(he,{F:()=>o,m:()=>K});var h=M(3867);function o(...q){return K(q)}function K(q){return 0===q.length?h.D:1===q.length?q[0]:function(ge){return q.reduce((ne,Ee)=>Ee(ne),ge)}}},8508:(Ze,he,M)=>{M.d(he,{m:()=>K});var h=M(2904),o=M(7680);function K(q){o.f.setTimeout(()=>{const{onUnhandledError:x}=h.$;if(!x)throw q;x(q)})}},3985:(Ze,he,M)=>{function h(o){return new TypeError(`You provided ${null!==o&&"object"==typeof o?"an invalid object":`'${o}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}M.d(he,{L:()=>h})},2943:(Ze,he,M)=>{M.d(he,{AJ:()=>tt,IJ:()=>Kn,MD:()=>Oe,N0:()=>Di,QT:()=>K,Qn:()=>ke,Sm:()=>ot,Sq:()=>it,VF:()=>x,Vy:()=>Nn,WO:()=>On,Xr:()=>Br,YU:()=>ie,ZD:()=>q,_b:()=>V,aZ:()=>ht,bT:()=>Pt,fw:()=>nt,hb:()=>me,hj:()=>pe,oe:()=>ee,pM:()=>it,qQ:()=>ne,vh:()=>Ai});var h=M(8284);let o=null;function K(){return o}function q(f){o??=f}class x{}const ne=new h.nKC("");let Ee=(()=>{class f{historyGo(v){throw new Error("")}static{this.\u0275fac=function(D){return new(D||f)}}static{this.\u0275prov=h.jDH({token:f,factory:()=>(0,h.WQX)(ce),providedIn:"platform"})}}return f})();const pe=new h.nKC("");let ce=(()=>{class f extends Ee{constructor(){super(),this._doc=(0,h.WQX)(ne),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return K().getBaseHref(this._doc)}onPopState(v){const D=K().getGlobalEventTarget(this._doc,"window");return D.addEventListener("popstate",v,!1),()=>D.removeEventListener("popstate",v)}onHashChange(v){const D=K().getGlobalEventTarget(this._doc,"window");return D.addEventListener("hashchange",v,!1),()=>D.removeEventListener("hashchange",v)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(v){this._location.pathname=v}pushState(v,D,k){this._history.pushState(v,D,k)}replaceState(v,D,k){this._history.replaceState(v,D,k)}forward(){this._history.forward()}back(){this._history.back()}historyGo(v=0){this._history.go(v)}getState(){return this._history.state}static{this.\u0275fac=function(D){return new(D||f)}}static{this.\u0275prov=h.jDH({token:f,factory:()=>new f,providedIn:"platform"})}}return f})();function oe(f,I){if(0==f.length)return I;if(0==I.length)return f;let v=0;return f.endsWith("/")&&v++,I.startsWith("/")&&v++,2==v?f+I.substring(1):1==v?f+I:f+"/"+I}function J(f){const I=f.match(/#|\?|$/),v=I&&I.index||f.length;return f.slice(0,v-("/"===f[v-1]?1:0))+f.slice(v)}function Ae(f){return f&&"?"!==f[0]?"?"+f:f}let me=(()=>{class f{historyGo(v){throw new Error("")}static{this.\u0275fac=function(D){return new(D||f)}}static{this.\u0275prov=h.jDH({token:f,factory:()=>(0,h.WQX)(ot),providedIn:"root"})}}return f})();const Te=new h.nKC("");let ot=(()=>{class f extends me{constructor(v,D){super(),this._platformLocation=v,this._removeListenerFns=[],this._baseHref=D??this._platformLocation.getBaseHrefFromDOM()??(0,h.WQX)(ne).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}prepareExternalUrl(v){return oe(this._baseHref,v)}path(v=!1){const D=this._platformLocation.pathname+Ae(this._platformLocation.search),k=this._platformLocation.hash;return k&&v?`${D}${k}`:D}pushState(v,D,k,se){const Ce=this.prepareExternalUrl(k+Ae(se));this._platformLocation.pushState(v,D,Ce)}replaceState(v,D,k,se){const Ce=this.prepareExternalUrl(k+Ae(se));this._platformLocation.replaceState(v,D,Ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}static{this.\u0275fac=function(D){return new(D||f)(h.KVO(Ee),h.KVO(Te,8))}}static{this.\u0275prov=h.jDH({token:f,factory:f.\u0275fac,providedIn:"root"})}}return f})(),nt=(()=>{class f extends me{constructor(v,D){super(),this._platformLocation=v,this._baseHref="",this._removeListenerFns=[],null!=D&&(this._baseHref=D)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(v){this._removeListenerFns.push(this._platformLocation.onPopState(v),this._platformLocation.onHashChange(v))}getBaseHref(){return this._baseHref}path(v=!1){const D=this._platformLocation.hash??"#";return D.length>0?D.substring(1):D}prepareExternalUrl(v){const D=oe(this._baseHref,v);return D.length>0?"#"+D:D}pushState(v,D,k,se){let Ce=this.prepareExternalUrl(k+Ae(se));0==Ce.length&&(Ce=this._platformLocation.pathname),this._platformLocation.pushState(v,D,Ce)}replaceState(v,D,k,se){let Ce=this.prepareExternalUrl(k+Ae(se));0==Ce.length&&(Ce=this._platformLocation.pathname),this._platformLocation.replaceState(v,D,Ce)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(v=0){this._platformLocation.historyGo?.(v)}static{this.\u0275fac=function(D){return new(D||f)(h.KVO(Ee),h.KVO(Te,8))}}static{this.\u0275prov=h.jDH({token:f,factory:f.\u0275fac})}}return f})(),ht=(()=>{class f{constructor(v){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=v;const D=this._locationStrategy.getBaseHref();this._basePath=function Se(f){if(new RegExp("^(https?:)?//").test(f)){const[,v]=f.split(/\/\/[^\/]+/);return v}return f}(J(xe(D))),this._locationStrategy.onPopState(k=>{this._subject.emit({url:this.path(!0),pop:!0,state:k.state,type:k.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(v=!1){return this.normalize(this._locationStrategy.path(v))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(v,D=""){return this.path()==this.normalize(v+Ae(D))}normalize(v){return f.stripTrailingSlash(function pt(f,I){if(!f||!I.startsWith(f))return I;const v=I.substring(f.length);return""===v||["/",";","?","#"].includes(v[0])?v:I}(this._basePath,xe(v)))}prepareExternalUrl(v){return v&&"/"!==v[0]&&(v="/"+v),this._locationStrategy.prepareExternalUrl(v)}go(v,D="",k=null){this._locationStrategy.pushState(k,"",v,D),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+Ae(D)),k)}replaceState(v,D="",k=null){this._locationStrategy.replaceState(k,"",v,D),this._notifyUrlChangeListeners(this.prepareExternalUrl(v+Ae(D)),k)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(v=0){this._locationStrategy.historyGo?.(v)}onUrlChange(v){return this._urlChangeListeners.push(v),this._urlChangeSubscription??=this.subscribe(D=>{this._notifyUrlChangeListeners(D.url,D.state)}),()=>{const D=this._urlChangeListeners.indexOf(v);this._urlChangeListeners.splice(D,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(v="",D){this._urlChangeListeners.forEach(k=>k(v,D))}subscribe(v,D,k){return this._subject.subscribe({next:v,error:D,complete:k})}static{this.normalizeQueryParams=Ae}static{this.joinWithSlash=oe}static{this.stripTrailingSlash=J}static{this.\u0275fac=function(D){return new(D||f)(h.KVO(me))}}static{this.\u0275prov=h.jDH({token:f,factory:()=>function bt(){return new ht((0,h.KVO)(me))}(),providedIn:"root"})}}return f})();function xe(f){return f.replace(/\/index.html$/,"")}const qe={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var Ge=function(f){return f[f.Decimal=0]="Decimal",f[f.Percent=1]="Percent",f[f.Currency=2]="Currency",f[f.Scientific=3]="Scientific",f}(Ge||{}),Fe=function(f){return f[f.Zero=0]="Zero",f[f.One=1]="One",f[f.Two=2]="Two",f[f.Few=3]="Few",f[f.Many=4]="Many",f[f.Other=5]="Other",f}(Fe||{}),Ue=function(f){return f[f.Format=0]="Format",f[f.Standalone=1]="Standalone",f}(Ue||{}),Je=function(f){return f[f.Narrow=0]="Narrow",f[f.Abbreviated=1]="Abbreviated",f[f.Wide=2]="Wide",f[f.Short=3]="Short",f}(Je||{}),Ie=function(f){return f[f.Short=0]="Short",f[f.Medium=1]="Medium",f[f.Long=2]="Long",f[f.Full=3]="Full",f}(Ie||{});const at={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function le(f,I){return Ut((0,h.H5H)(f)[h.KH2.DateFormat],I)}function fe(f,I){return Ut((0,h.H5H)(f)[h.KH2.TimeFormat],I)}function _e(f,I){return Ut((0,h.H5H)(f)[h.KH2.DateTimeFormat],I)}function Me(f,I){const v=(0,h.H5H)(f),D=v[h.KH2.NumberSymbols][I];if(typeof D>"u"){if(I===at.CurrencyDecimal)return v[h.KH2.NumberSymbols][at.Decimal];if(I===at.CurrencyGroup)return v[h.KH2.NumberSymbols][at.Group]}return D}const sn=h.mq5;function fn(f){if(!f[h.KH2.ExtraData])throw new Error(`Missing extra locale data for the locale "${f[h.KH2.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ut(f,I){for(let v=I;v>-1;v--)if(typeof f[v]<"u")return f[v];throw new Error("Locale data API: locale data undefined")}function hn(f){const[I,v]=f.split(":");return{hours:+I,minutes:+v}}function ke(f,I,v="en"){const D=function jt(f){return(0,h.H5H)(f)[h.KH2.Currencies]}(v)[f]||qe[f]||[],k=D[1];return"narrow"===I&&"string"==typeof k?k:D[0]||f}const Dn=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_r={},gi=/((?:[^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 Pn=function(f){return f[f.Short=0]="Short",f[f.ShortGMT=1]="ShortGMT",f[f.Long=2]="Long",f[f.Extended=3]="Extended",f}(Pn||{}),$=function(f){return f[f.FullYear=0]="FullYear",f[f.Month=1]="Month",f[f.Date=2]="Date",f[f.Hours=3]="Hours",f[f.Minutes=4]="Minutes",f[f.Seconds=5]="Seconds",f[f.FractionalSeconds=6]="FractionalSeconds",f[f.Day=7]="Day",f}($||{}),ze=function(f){return f[f.DayPeriods=0]="DayPeriods",f[f.Days=1]="Days",f[f.Months=2]="Months",f[f.Eras=3]="Eras",f}(ze||{});function X(f,I,v,D){let k=function ut(f){if(rn(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[k,se=1,Ce=1]=f.split("-").map(Qe=>+Qe);return de(k,se-1,Ce)}const v=parseFloat(f);if(!isNaN(f-v))return new Date(v);let D;if(D=f.match(Dn))return function Gt(f){const I=new Date(0);let v=0,D=0;const k=f[8]?I.setUTCFullYear:I.setFullYear,se=f[8]?I.setUTCHours:I.setHours;f[9]&&(v=Number(f[9]+f[10]),D=Number(f[9]+f[11])),k.call(I,Number(f[1]),Number(f[2])-1,Number(f[3]));const Ce=Number(f[4]||0)-v,Qe=Number(f[5]||0)-D,cn=Number(f[6]||0),an=Math.floor(1e3*parseFloat("0."+(f[7]||0)));return se.call(I,Ce,Qe,cn,an),I}(D)}const I=new Date(f);if(!rn(I))throw new Error(`Unable to convert "${f}" into a date`);return I}(f);I=Be(v,I)||I;let Qe,Ce=[];for(;I;){if(Qe=gi.exec(I),!Qe){Ce.push(I);break}{Ce=Ce.concat(Qe.slice(1));const Zt=Ce.pop();if(!Zt)break;I=Zt}}let cn=k.getTimezoneOffset();D&&(cn=H(D,cn),k=function We(f,I,v){const D=v?-1:1,k=f.getTimezoneOffset();return function De(f,I){return(f=new Date(f.getTime())).setMinutes(f.getMinutes()+I),f}(f,D*(H(I,k)-k))}(k,D,!0));let an="";return Ce.forEach(Zt=>{const kt=function F(f){if(Y[f])return Y[f];let I;switch(f){case"G":case"GG":case"GGG":I=At(ze.Eras,Je.Abbreviated);break;case"GGGG":I=At(ze.Eras,Je.Wide);break;case"GGGGG":I=At(ze.Eras,Je.Narrow);break;case"y":I=ft($.FullYear,1,0,!1,!0);break;case"yy":I=ft($.FullYear,2,0,!0,!0);break;case"yyy":I=ft($.FullYear,3,0,!1,!0);break;case"yyyy":I=ft($.FullYear,4,0,!1,!0);break;case"Y":I=z(1);break;case"YY":I=z(2,!0);break;case"YYY":I=z(3);break;case"YYYY":I=z(4);break;case"M":case"L":I=ft($.Month,1,1);break;case"MM":case"LL":I=ft($.Month,2,1);break;case"MMM":I=At(ze.Months,Je.Abbreviated);break;case"MMMM":I=At(ze.Months,Je.Wide);break;case"MMMMM":I=At(ze.Months,Je.Narrow);break;case"LLL":I=At(ze.Months,Je.Abbreviated,Ue.Standalone);break;case"LLLL":I=At(ze.Months,Je.Wide,Ue.Standalone);break;case"LLLLL":I=At(ze.Months,Je.Narrow,Ue.Standalone);break;case"w":I=or(1);break;case"ww":I=or(2);break;case"W":I=or(1,!0);break;case"d":I=ft($.Date,1);break;case"dd":I=ft($.Date,2);break;case"c":case"cc":I=ft($.Day,1);break;case"ccc":I=At(ze.Days,Je.Abbreviated,Ue.Standalone);break;case"cccc":I=At(ze.Days,Je.Wide,Ue.Standalone);break;case"ccccc":I=At(ze.Days,Je.Narrow,Ue.Standalone);break;case"cccccc":I=At(ze.Days,Je.Short,Ue.Standalone);break;case"E":case"EE":case"EEE":I=At(ze.Days,Je.Abbreviated);break;case"EEEE":I=At(ze.Days,Je.Wide);break;case"EEEEE":I=At(ze.Days,Je.Narrow);break;case"EEEEEE":I=At(ze.Days,Je.Short);break;case"a":case"aa":case"aaa":I=At(ze.DayPeriods,Je.Abbreviated);break;case"aaaa":I=At(ze.DayPeriods,Je.Wide);break;case"aaaaa":I=At(ze.DayPeriods,Je.Narrow);break;case"b":case"bb":case"bbb":I=At(ze.DayPeriods,Je.Abbreviated,Ue.Standalone,!0);break;case"bbbb":I=At(ze.DayPeriods,Je.Wide,Ue.Standalone,!0);break;case"bbbbb":I=At(ze.DayPeriods,Je.Narrow,Ue.Standalone,!0);break;case"B":case"BB":case"BBB":I=At(ze.DayPeriods,Je.Abbreviated,Ue.Format,!0);break;case"BBBB":I=At(ze.DayPeriods,Je.Wide,Ue.Format,!0);break;case"BBBBB":I=At(ze.DayPeriods,Je.Narrow,Ue.Format,!0);break;case"h":I=ft($.Hours,1,-12);break;case"hh":I=ft($.Hours,2,-12);break;case"H":I=ft($.Hours,1);break;case"HH":I=ft($.Hours,2);break;case"m":I=ft($.Minutes,1);break;case"mm":I=ft($.Minutes,2);break;case"s":I=ft($.Seconds,1);break;case"ss":I=ft($.Seconds,2);break;case"S":I=ft($.FractionalSeconds,1);break;case"SS":I=ft($.FractionalSeconds,2);break;case"SSS":I=ft($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":I=lr(Pn.Short);break;case"ZZZZZ":I=lr(Pn.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":I=lr(Pn.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":I=lr(Pn.Long);break;default:return null}return Y[f]=I,I}(Zt);an+=kt?kt(k,v,cn):"''"===Zt?"'":Zt.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),an}function de(f,I,v){const D=new Date(0);return D.setFullYear(f,I,v),D.setHours(0,0,0),D}function Be(f,I){const v=function He(f){return(0,h.H5H)(f)[h.KH2.LocaleId]}(f);if(_r[v]??={},_r[v][I])return _r[v][I];let D="";switch(I){case"shortDate":D=le(f,Ie.Short);break;case"mediumDate":D=le(f,Ie.Medium);break;case"longDate":D=le(f,Ie.Long);break;case"fullDate":D=le(f,Ie.Full);break;case"shortTime":D=fe(f,Ie.Short);break;case"mediumTime":D=fe(f,Ie.Medium);break;case"longTime":D=fe(f,Ie.Long);break;case"fullTime":D=fe(f,Ie.Full);break;case"short":const k=Be(f,"shortTime"),se=Be(f,"shortDate");D=Bt(_e(f,Ie.Short),[k,se]);break;case"medium":const Ce=Be(f,"mediumTime"),Qe=Be(f,"mediumDate");D=Bt(_e(f,Ie.Medium),[Ce,Qe]);break;case"long":const cn=Be(f,"longTime"),an=Be(f,"longDate");D=Bt(_e(f,Ie.Long),[cn,an]);break;case"full":const Zt=Be(f,"fullTime"),kt=Be(f,"fullDate");D=Bt(_e(f,Ie.Full),[Zt,kt])}return D&&(_r[v][I]=D),D}function Bt(f,I){return I&&(f=f.replace(/\{([^}]+)}/g,function(v,D){return null!=I&&D in I?I[D]:v})),f}function Qt(f,I,v="-",D,k){let se="";(f<0||k&&f<=0)&&(k?f=1-f:(f=-f,se=v));let Ce=String(f);for(;Ce.length<I;)Ce="0"+Ce;return D&&(Ce=Ce.slice(Ce.length-I)),se+Ce}function ft(f,I,v=0,D=!1,k=!1){return function(se,Ce){let Qe=function ar(f,I){switch(f){case $.FullYear:return I.getFullYear();case $.Month:return I.getMonth();case $.Date:return I.getDate();case $.Hours:return I.getHours();case $.Minutes:return I.getMinutes();case $.Seconds:return I.getSeconds();case $.FractionalSeconds:return I.getMilliseconds();case $.Day:return I.getDay();default:throw new Error(`Unknown DateType value "${f}".`)}}(f,se);if((v>0||Qe>-v)&&(Qe+=v),f===$.Hours)0===Qe&&-12===v&&(Qe=12);else if(f===$.FractionalSeconds)return function Fn(f,I){return Qt(f,3).substring(0,I)}(Qe,I);const cn=Me(Ce,at.MinusSign);return Qt(Qe,I,cn,D,k)}}function At(f,I,v=Ue.Format,D=!1){return function(k,se){return function rt(f,I,v,D,k,se){switch(v){case ze.Months:return function tn(f,I,v){const D=(0,h.H5H)(f),se=Ut([D[h.KH2.MonthsFormat],D[h.KH2.MonthsStandalone]],I);return Ut(se,v)}(I,k,D)[f.getMonth()];case ze.Days:return function Ht(f,I,v){const D=(0,h.H5H)(f),se=Ut([D[h.KH2.DaysFormat],D[h.KH2.DaysStandalone]],I);return Ut(se,v)}(I,k,D)[f.getDay()];case ze.DayPeriods:const Ce=f.getHours(),Qe=f.getMinutes();if(se){const an=function St(f){const I=(0,h.H5H)(f);return fn(I),(I[h.KH2.ExtraData][2]||[]).map(D=>"string"==typeof D?hn(D):[hn(D[0]),hn(D[1])])}(I),Zt=function Kt(f,I,v){const D=(0,h.H5H)(f);fn(D);const se=Ut([D[h.KH2.ExtraData][0],D[h.KH2.ExtraData][1]],I)||[];return Ut(se,v)||[]}(I,k,D),kt=an.findIndex(Mn=>{if(Array.isArray(Mn)){const[Jt,xn]=Mn,Xt=Ce>=Jt.hours&&Qe>=Jt.minutes,Ne=Ce<xn.hours||Ce===xn.hours&&Qe<xn.minutes;if(Jt.hours<xn.hours){if(Xt&&Ne)return!0}else if(Xt||Ne)return!0}else if(Mn.hours===Ce&&Mn.minutes===Qe)return!0;return!1});if(-1!==kt)return Zt[kt]}return function dt(f,I,v){const D=(0,h.H5H)(f),se=Ut([D[h.KH2.DayPeriodsFormat],D[h.KH2.DayPeriodsStandalone]],I);return Ut(se,v)}(I,k,D)[Ce<12?0:1];case ze.Eras:return function Sn(f,I){return Ut((0,h.H5H)(f)[h.KH2.Eras],I)}(I,D)[f.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${v}`)}}(k,se,f,I,v,D)}}function lr(f){return function(I,v,D){const k=-1*D,se=Me(v,at.MinusSign),Ce=k>0?Math.floor(k/60):Math.ceil(k/60);switch(f){case Pn.Short:return(k>=0?"+":"")+Qt(Ce,2,se)+Qt(Math.abs(k%60),2,se);case Pn.ShortGMT:return"GMT"+(k>=0?"+":"")+Qt(Ce,1,se);case Pn.Long:return"GMT"+(k>=0?"+":"")+Qt(Ce,2,se)+":"+Qt(Math.abs(k%60),2,se);case Pn.Extended:return 0===D?"Z":(k>=0?"+":"")+Qt(Ce,2,se)+":"+Qt(Math.abs(k%60),2,se);default:throw new Error(`Unknown zone width "${f}"`)}}}const ln=0,An=4;function ur(f){const I=f.getDay(),v=0===I?-3:An-I;return de(f.getFullYear(),f.getMonth(),f.getDate()+v)}function or(f,I=!1){return function(v,D){let k;if(I){const se=new Date(v.getFullYear(),v.getMonth(),1).getDay()-1,Ce=v.getDate();k=1+Math.floor((Ce+se)/7)}else{const se=ur(v),Ce=function Si(f){const I=de(f,ln,1).getDay();return de(f,0,1+(I<=An?An:An+7)-I)}(se.getFullYear()),Qe=se.getTime()-Ce.getTime();k=1+Math.round(Qe/6048e5)}return Qt(k,f,Me(D,at.MinusSign))}}function z(f,I=!1){return function(v,D){return Qt(ur(v).getFullYear(),f,Me(D,at.MinusSign),I)}}const Y={};function H(f,I){f=f.replace(/:/g,"");const v=Date.parse("Jan 01, 1970 00:00:00 "+f)/6e4;return isNaN(v)?I:v}function rn(f){return f instanceof Date&&!isNaN(f.valueOf())}const En=/^(\d+)?\.((\d+)(-(\d+))?)?$/,cr=22,kn=".",Dr="0",ii=";",ki=",",wn="#";function Xr(f,I,v,D,k){const Ce=function Dt(f,I="-"){const v={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},D=f.split(ii),k=D[0],se=D[1],Ce=-1!==k.indexOf(kn)?k.split(kn):[k.substring(0,k.lastIndexOf(Dr)+1),k.substring(k.lastIndexOf(Dr)+1)],Qe=Ce[0],cn=Ce[1]||"";v.posPre=Qe.substring(0,Qe.indexOf(wn));for(let Zt=0;Zt<cn.length;Zt++){const kt=cn.charAt(Zt);kt===Dr?v.minFrac=v.maxFrac=Zt+1:kt===wn?v.maxFrac=Zt+1:v.posSuf+=kt}const an=Qe.split(ki);if(v.gSize=an[1]?an[1].length:0,v.lgSize=an[2]||an[1]?(an[2]||an[1]).length:0,se){const Zt=k.length-v.posPre.length-v.posSuf.length,kt=se.indexOf(wn);v.negPre=se.substring(0,kt).replace(/'/g,""),v.negSuf=se.slice(kt+Zt).replace(/'/g,"")}else v.negPre=I+v.posPre,v.negSuf=v.posSuf;return v}(function je(f,I){return(0,h.H5H)(f)[h.KH2.NumberFormats][I]}(I,Ge.Currency),Me(I,at.MinusSign));return Ce.minFrac=function _n(f){let I;const v=qe[f];return v&&(I=v[2]),"number"==typeof I?I:2}(D),Ce.maxFrac=Ce.minFrac,function Er(f,I,v,D,k,se,Ce=!1){let Qe="",cn=!1;if(isFinite(f)){let an=function dr(f){let D,k,se,Ce,Qe,I=Math.abs(f)+"",v=0;for((k=I.indexOf(kn))>-1&&(I=I.replace(kn,"")),(se=I.search(/e/i))>0?(k<0&&(k=se),k+=+I.slice(se+1),I=I.substring(0,se)):k<0&&(k=I.length),se=0;I.charAt(se)===Dr;se++);if(se===(Qe=I.length))D=[0],k=1;else{for(Qe--;I.charAt(Qe)===Dr;)Qe--;for(k-=se,D=[],Ce=0;se<=Qe;se++,Ce++)D[Ce]=Number(I.charAt(se))}return k>cr&&(D=D.splice(0,cr-1),v=k-1,k=1),{digits:D,exponent:v,integerLen:k}}(f);Ce&&(an=function qr(f){if(0===f.digits[0])return f;const I=f.digits.length-f.integerLen;return f.exponent?f.exponent+=2:(0===I?f.digits.push(0,0):1===I&&f.digits.push(0),f.integerLen+=2),f}(an));let Zt=I.minInt,kt=I.minFrac,Mn=I.maxFrac;if(se){const on=se.match(En);if(null===on)throw new Error(`${se} is not a valid digit info`);const tr=on[1],Cn=on[3],Qn=on[5];null!=tr&&(Zt=Ar(tr)),null!=Cn&&(kt=Ar(Cn)),null!=Qn?Mn=Ar(Qn):null!=Cn&&kt>Mn&&(Mn=kt)}!function Sr(f,I,v){if(I>v)throw new Error(`The minimum number of digits after fraction (${I}) is higher than the maximum (${v}).`);let D=f.digits,k=D.length-f.integerLen;const se=Math.min(Math.max(I,k),v);let Ce=se+f.integerLen,Qe=D[Ce];if(Ce>0){D.splice(Math.max(f.integerLen,Ce));for(let kt=Ce;kt<D.length;kt++)D[kt]=0}else{k=Math.max(0,k),f.integerLen=1,D.length=Math.max(1,Ce=se+1),D[0]=0;for(let kt=1;kt<Ce;kt++)D[kt]=0}if(Qe>=5)if(Ce-1<0){for(let kt=0;kt>Ce;kt--)D.unshift(0),f.integerLen++;D.unshift(1),f.integerLen++}else D[Ce-1]++;for(;k<Math.max(0,se);k++)D.push(0);let cn=0!==se;const an=I+f.integerLen,Zt=D.reduceRight(function(kt,Mn,Jt,xn){return xn[Jt]=(Mn+=kt)<10?Mn:Mn-10,cn&&(0===xn[Jt]&&Jt>=an?xn.pop():cn=!1),Mn>=10?1:0},0);Zt&&(D.unshift(Zt),f.integerLen++)}(an,kt,Mn);let Jt=an.digits,xn=an.integerLen;const Xt=an.exponent;let Ne=[];for(cn=Jt.every(on=>!on);xn<Zt;xn++)Jt.unshift(0);for(;xn<0;xn++)Jt.unshift(0);xn>0?Ne=Jt.splice(xn,Jt.length):(Ne=Jt,Jt=[0]);const et=[];for(Jt.length>=I.lgSize&&et.unshift(Jt.splice(-I.lgSize,Jt.length).join(""));Jt.length>I.gSize;)et.unshift(Jt.splice(-I.gSize,Jt.length).join(""));Jt.length&&et.unshift(Jt.join("")),Qe=et.join(Me(v,D)),Ne.length&&(Qe+=Me(v,k)+Ne.join("")),Xt&&(Qe+=Me(v,at.Exponential)+"+"+Xt)}else Qe=Me(v,at.Infinity);return Qe=f<0&&!cn?I.negPre+Qe+I.negSuf:I.posPre+Qe+I.posSuf,Qe}(f,Ce,I,at.CurrencyGroup,at.CurrencyDecimal,k).replace("\xa4",v).replace("\xa4","").trim()}function Ar(f){const I=parseInt(f);if(isNaN(I))throw new Error("Invalid integer literal when parsing "+f);return I}let Rr=(()=>{class f{static{this.\u0275fac=function(D){return new(D||f)}}static{this.\u0275prov=h.jDH({token:f,factory:function(D){let k=null;return D?k=new D:(se=h.KVO(h.xe9),k=new br(se)),k;var se},providedIn:"root"})}}return f})();let br=(()=>{class f extends Rr{constructor(v){super(),this.locale=v}getPluralCategory(v,D){switch(sn(D||this.locale)(v)){case Fe.Zero:return"zero";case Fe.One:return"one";case Fe.Two:return"two";case Fe.Few:return"few";case Fe.Many:return"many";default:return"other"}}static{this.\u0275fac=function(D){return new(D||f)(h.KVO(h.xe9))}}static{this.\u0275prov=h.jDH({token:f,factory:f.\u0275fac})}}return f})();function V(f,I){I=encodeURIComponent(I);for(const v of f.split(";")){const D=v.indexOf("="),[k,se]=-1==D?[v,""]:[v.slice(0,D),v.slice(D+1)];if(k.trim()===I)return decodeURIComponent(se)}return null}const j=/\s+/,ue=[];let ie=(()=>{class f{constructor(v,D){this._ngEl=v,this._renderer=D,this.initialClasses=ue,this.stateMap=new Map}set klass(v){this.initialClasses=null!=v?v.trim().split(j):ue}set ngClass(v){this.rawClass="string"==typeof v?v.trim().split(j):v}ngDoCheck(){for(const D of this.initialClasses)this._updateState(D,!0);const v=this.rawClass;if(Array.isArray(v)||v instanceof Set)for(const D of v)this._updateState(D,!0);else if(null!=v)for(const D of Object.keys(v))this._updateState(D,!!v[D]);this._applyStateDiff()}_updateState(v,D){const k=this.stateMap.get(v);void 0!==k?(k.enabled!==D&&(k.changed=!0,k.enabled=D),k.touched=!0):this.stateMap.set(v,{enabled:D,changed:!0,touched:!0})}_applyStateDiff(){for(const v of this.stateMap){const D=v[0],k=v[1];k.changed?(this._toggleClass(D,k.enabled),k.changed=!1):k.touched||(k.enabled&&this._toggleClass(D,!1),this.stateMap.delete(D)),k.touched=!1}}_toggleClass(v,D){(v=v.trim()).length>0&&v.split(j).forEach(k=>{D?this._renderer.addClass(this._ngEl.nativeElement,k):this._renderer.removeClass(this._ngEl.nativeElement,k)})}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(h.aKT),h.rXU(h.sFG))}}static{this.\u0275dir=h.FsC({type:f,selectors:[["","ngClass",""]],inputs:{klass:[h.Mj6.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return f})();class yt{constructor(I,v,D,k){this.$implicit=I,this.ngForOf=v,this.index=D,this.count=k}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 it=(()=>{class f{set ngForOf(v){this._ngForOf=v,this._ngForOfDirty=!0}set ngForTrackBy(v){this._trackByFn=v}get ngForTrackBy(){return this._trackByFn}constructor(v,D,k){this._viewContainer=v,this._template=D,this._differs=k,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(v){v&&(this._template=v)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const v=this._ngForOf;!this._differ&&v&&(this._differ=this._differs.find(v).create(this.ngForTrackBy))}if(this._differ){const v=this._differ.diff(this._ngForOf);v&&this._applyChanges(v)}}_applyChanges(v){const D=this._viewContainer;v.forEachOperation((k,se,Ce)=>{if(null==k.previousIndex)D.createEmbeddedView(this._template,new yt(k.item,this._ngForOf,-1,-1),null===Ce?void 0:Ce);else if(null==Ce)D.remove(null===se?void 0:se);else if(null!==se){const Qe=D.get(se);D.move(Qe,Ce),Vt(Qe,k)}});for(let k=0,se=D.length;k<se;k++){const Qe=D.get(k).context;Qe.index=k,Qe.count=se,Qe.ngForOf=this._ngForOf}v.forEachIdentityChange(k=>{Vt(D.get(k.currentIndex),k)})}static ngTemplateContextGuard(v,D){return!0}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))}}static{this.\u0275dir=h.FsC({type:f,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return f})();function Vt(f,I){f.context.$implicit=I.item}let Pt=(()=>{class f{constructor(v,D){this._viewContainer=v,this._context=new Ln,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=D}set ngIf(v){this._context.$implicit=this._context.ngIf=v,this._updateView()}set ngIfThen(v){Jn("ngIfThen",v),this._thenTemplateRef=v,this._thenViewRef=null,this._updateView()}set ngIfElse(v){Jn("ngIfElse",v),this._elseTemplateRef=v,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(v,D){return!0}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(h.c1b),h.rXU(h.C4Q))}}static{this.\u0275dir=h.FsC({type:f,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return f})();class Ln{constructor(){this.$implicit=null,this.ngIf=null}}function Jn(f,I){if(I&&!I.createEmbeddedView)throw new Error(`${f} must be a TemplateRef, but received '${(0,h.Tbb)(I)}'.`)}class Ct{constructor(I,v){this._viewContainerRef=I,this._templateRef=v,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(I){I&&!this._created?this.create():!I&&this._created&&this.destroy()}}let Kn=(()=>{class f{constructor(v){this._localization=v,this._caseViews={}}set ngPlural(v){this._updateView(v)}addCase(v,D){this._caseViews[v]=D}_updateView(v){this._clearViews();const k=function xr(f,I,v,D){let k=`=${f}`;if(I.indexOf(k)>-1||(k=v.getPluralCategory(f,D),I.indexOf(k)>-1))return k;if(I.indexOf("other")>-1)return"other";throw new Error(`No plural message found for value "${f}"`)}(v,Object.keys(this._caseViews),this._localization);this._activateView(this._caseViews[k])}_clearViews(){this._activeView&&this._activeView.destroy()}_activateView(v){v&&(this._activeView=v,this._activeView.create())}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(Rr))}}static{this.\u0275dir=h.FsC({type:f,selectors:[["","ngPlural",""]],inputs:{ngPlural:"ngPlural"},standalone:!0})}}return f})(),On=(()=>{class f{constructor(v,D,k,se){this.value=v;const Ce=!isNaN(Number(v));se.addCase(Ce?`=${v}`:v,new Ct(k,D))}static{this.\u0275fac=function(D){return new(D||f)(h.kS0("ngPluralCase"),h.rXU(h.C4Q),h.rXU(h.c1b),h.rXU(Kn,1))}}static{this.\u0275dir=h.FsC({type:f,selectors:[["","ngPluralCase",""]],standalone:!0})}}return f})();function Ir(f,I){return new h.wOt(2100,!1)}const ji=new h.nKC(""),Pr=new h.nKC("");let Ai=(()=>{class f{constructor(v,D,k){this.locale=v,this.defaultTimezone=D,this.defaultOptions=k}transform(v,D,k,se){if(null==v||""===v||v!=v)return null;try{return X(v,D??this.defaultOptions?.dateFormat??"mediumDate",se||this.locale,k??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(Ce){throw Ir()}}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(h.xe9,16),h.rXU(ji,24),h.rXU(Pr,24))}}static{this.\u0275pipe=h.EJ8({name:"date",type:f,pure:!0,standalone:!0})}}return f})(),ee=(()=>{class f{constructor(v,D="USD"){this._locale=v,this._defaultCurrencyCode=D}transform(v,D=this._defaultCurrencyCode,k="symbol",se,Ce){if(!function C(f){return!(null==f||""===f||f!=f)}(v))return null;Ce||=this._locale,"boolean"==typeof k&&(k=k?"symbol":"code");let Qe=D||this._defaultCurrencyCode;"code"!==k&&(Qe="symbol"===k||"symbol-narrow"===k?ke(Qe,"symbol"===k?"wide":"narrow",Ce):k);try{return Xr(function S(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}(v),Ce,Qe,D,se)}catch(cn){throw Ir()}}static{this.\u0275fac=function(D){return new(D||f)(h.rXU(h.xe9,16),h.rXU(h.Ocv,16))}}static{this.\u0275pipe=h.EJ8({name:"currency",type:f,pure:!0,standalone:!0})}}return f})();let Oe=(()=>{class f{static{this.\u0275fac=function(D){return new(D||f)}}static{this.\u0275mod=h.$C({type:f})}static{this.\u0275inj=h.G2t({})}}return f})();const tt="browser",Tt="server";function Nn(f){return f===Tt}let Br=(()=>{class f{static{this.\u0275prov=(0,h.jDH)({token:f,providedIn:"root",factory:()=>function Vn(f){return f===tt}((0,h.WQX)(h.Agw))?new In((0,h.WQX)(ne),window):new so})}}return f})();class In{constructor(I,v){this.document=I,this.window=v,this.offset=()=>[0,0]}setOffset(I){this.offset=Array.isArray(I)?()=>I:I}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(I){this.window.scrollTo(I[0],I[1])}scrollToAnchor(I){const v=function Hn(f,I){const v=f.getElementById(I)||f.getElementsByName(I)[0];if(v)return v;if("function"==typeof f.createTreeWalker&&f.body&&"function"==typeof f.body.attachShadow){const D=f.createTreeWalker(f.body,NodeFilter.SHOW_ELEMENT);let k=D.currentNode;for(;k;){const se=k.shadowRoot;if(se){const Ce=se.getElementById(I)||se.querySelector(`[name="${I}"]`);if(Ce)return Ce}k=D.nextNode()}}return null}(this.document,I);v&&(this.scrollToElement(v),v.focus())}setHistoryScrollRestoration(I){this.window.history.scrollRestoration=I}scrollToElement(I){const v=I.getBoundingClientRect(),D=v.left+this.window.pageXOffset,k=v.top+this.window.pageYOffset,se=this.offset();this.window.scrollTo(D-se[0],k-se[1])}}class so{setOffset(I){}getScrollPosition(){return[0,0]}scrollToPosition(I){}scrollToAnchor(I){}setHistoryScrollRestoration(I){}}class Di{}},5640:(Ze,he,M)=>{M.d(he,{Qq:()=>le,a7:()=>St,q1:()=>ii}),M(7431);var o=M(8284),K=M(1467),q=M(7787),x=M(4850),ge=M(6944),ne=M(4534),Ee=M(2816),pe=M(1554),ce=M(8128),oe=M(2943);class J{}class Ae{}class me{constructor(V){this.normalizedNames=new Map,this.lazyUpdate=null,V?"string"==typeof V?this.lazyInit=()=>{this.headers=new Map,V.split("\n").forEach(j=>{const ue=j.indexOf(":");if(ue>0){const ie=j.slice(0,ue),Pe=ie.toLowerCase(),Le=j.slice(ue+1).trim();this.maybeSetNormalizedName(ie,Pe),this.headers.has(Pe)?this.headers.get(Pe).push(Le):this.headers.set(Pe,[Le])}})}:typeof Headers<"u"&&V instanceof Headers?(this.headers=new Map,V.forEach((j,ue)=>{this.setHeaderEntries(ue,j)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(V).forEach(([j,ue])=>{this.setHeaderEntries(j,ue)})}:this.headers=new Map}has(V){return this.init(),this.headers.has(V.toLowerCase())}get(V){this.init();const j=this.headers.get(V.toLowerCase());return j&&j.length>0?j[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(V){return this.init(),this.headers.get(V.toLowerCase())||null}append(V,j){return this.clone({name:V,value:j,op:"a"})}set(V,j){return this.clone({name:V,value:j,op:"s"})}delete(V,j){return this.clone({name:V,value:j,op:"d"})}maybeSetNormalizedName(V,j){this.normalizedNames.has(j)||this.normalizedNames.set(j,V)}init(){this.lazyInit&&(this.lazyInit instanceof me?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(V=>this.applyUpdate(V)),this.lazyUpdate=null))}copyFrom(V){V.init(),Array.from(V.headers.keys()).forEach(j=>{this.headers.set(j,V.headers.get(j)),this.normalizedNames.set(j,V.normalizedNames.get(j))})}clone(V){const j=new me;return j.lazyInit=this.lazyInit&&this.lazyInit instanceof me?this.lazyInit:this,j.lazyUpdate=(this.lazyUpdate||[]).concat([V]),j}applyUpdate(V){const j=V.name.toLowerCase();switch(V.op){case"a":case"s":let ue=V.value;if("string"==typeof ue&&(ue=[ue]),0===ue.length)return;this.maybeSetNormalizedName(V.name,j);const ie=("a"===V.op?this.headers.get(j):void 0)||[];ie.push(...ue),this.headers.set(j,ie);break;case"d":const Pe=V.value;if(Pe){let Le=this.headers.get(j);if(!Le)return;Le=Le.filter(yt=>-1===Pe.indexOf(yt)),0===Le.length?(this.headers.delete(j),this.normalizedNames.delete(j)):this.headers.set(j,Le)}else this.headers.delete(j),this.normalizedNames.delete(j)}}setHeaderEntries(V,j){const ue=(Array.isArray(j)?j:[j]).map(Pe=>Pe.toString()),ie=V.toLowerCase();this.headers.set(ie,ue),this.maybeSetNormalizedName(V,ie)}forEach(V){this.init(),Array.from(this.normalizedNames.keys()).forEach(j=>V(this.normalizedNames.get(j),this.headers.get(j)))}}class ot{encodeKey(V){return pt(V)}encodeValue(V){return pt(V)}decodeKey(V){return decodeURIComponent(V)}decodeValue(V){return decodeURIComponent(V)}}const ht=/%(\d[a-f0-9])/gi,bt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function pt(P){return encodeURIComponent(P).replace(ht,(V,j)=>bt[j]??V)}function xe(P){return`${P}`}class Se{constructor(V={}){if(this.updates=null,this.cloneFrom=null,this.encoder=V.encoder||new ot,V.fromString){if(V.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function nt(P,V){const j=new Map;return P.length>0&&P.replace(/^\?/,"").split("&").forEach(ie=>{const Pe=ie.indexOf("="),[Le,yt]=-1==Pe?[V.decodeKey(ie),""]:[V.decodeKey(ie.slice(0,Pe)),V.decodeValue(ie.slice(Pe+1))],it=j.get(Le)||[];it.push(yt),j.set(Le,it)}),j}(V.fromString,this.encoder)}else V.fromObject?(this.map=new Map,Object.keys(V.fromObject).forEach(j=>{const ue=V.fromObject[j],ie=Array.isArray(ue)?ue.map(xe):[xe(ue)];this.map.set(j,ie)})):this.map=null}has(V){return this.init(),this.map.has(V)}get(V){this.init();const j=this.map.get(V);return j?j[0]:null}getAll(V){return this.init(),this.map.get(V)||null}keys(){return this.init(),Array.from(this.map.keys())}append(V,j){return this.clone({param:V,value:j,op:"a"})}appendAll(V){const j=[];return Object.keys(V).forEach(ue=>{const ie=V[ue];Array.isArray(ie)?ie.forEach(Pe=>{j.push({param:ue,value:Pe,op:"a"})}):j.push({param:ue,value:ie,op:"a"})}),this.clone(j)}set(V,j){return this.clone({param:V,value:j,op:"s"})}delete(V,j){return this.clone({param:V,value:j,op:"d"})}toString(){return this.init(),this.keys().map(V=>{const j=this.encoder.encodeKey(V);return this.map.get(V).map(ue=>j+"="+this.encoder.encodeValue(ue)).join("&")}).filter(V=>""!==V).join("&")}clone(V){const j=new Se({encoder:this.encoder});return j.cloneFrom=this.cloneFrom||this,j.updates=(this.updates||[]).concat(V),j}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(V=>this.map.set(V,this.cloneFrom.map.get(V))),this.updates.forEach(V=>{switch(V.op){case"a":case"s":const j=("a"===V.op?this.map.get(V.param):void 0)||[];j.push(xe(V.value)),this.map.set(V.param,j);break;case"d":if(void 0===V.value){this.map.delete(V.param);break}{let ue=this.map.get(V.param)||[];const ie=ue.indexOf(xe(V.value));-1!==ie&&ue.splice(ie,1),ue.length>0?this.map.set(V.param,ue):this.map.delete(V.param)}}}),this.cloneFrom=this.updates=null)}}class Ge{constructor(){this.map=new Map}set(V,j){return this.map.set(V,j),this}get(V){return this.map.has(V)||this.map.set(V,V.defaultValue()),this.map.get(V)}delete(V){return this.map.delete(V),this}has(V){return this.map.has(V)}keys(){return this.map.keys()}}function Ue(P){return typeof ArrayBuffer<"u"&&P instanceof ArrayBuffer}function Je(P){return typeof Blob<"u"&&P instanceof Blob}function Ie(P){return typeof FormData<"u"&&P instanceof FormData}class we{constructor(V,j,ue,ie){let Pe;if(this.url=j,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=V.toUpperCase(),function Fe(P){switch(P){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||ie?(this.body=void 0!==ue?ue:null,Pe=ie):Pe=ue,Pe&&(this.reportProgress=!!Pe.reportProgress,this.withCredentials=!!Pe.withCredentials,Pe.responseType&&(this.responseType=Pe.responseType),Pe.headers&&(this.headers=Pe.headers),Pe.context&&(this.context=Pe.context),Pe.params&&(this.params=Pe.params),this.transferCache=Pe.transferCache),this.headers??=new me,this.context??=new Ge,this.params){const Le=this.params.toString();if(0===Le.length)this.urlWithParams=j;else{const yt=j.indexOf("?");this.urlWithParams=j+(-1===yt?"?":yt<j.length-1?"&":"")+Le}}else this.params=new Se,this.urlWithParams=j}serializeBody(){return null===this.body?null:"string"==typeof this.body||Ue(this.body)||Je(this.body)||Ie(this.body)||function at(P){return typeof URLSearchParams<"u"&&P instanceof URLSearchParams}(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||Ie(this.body)?null:Je(this.body)?this.body.type||null:Ue(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(V={}){const j=V.method||this.method,ue=V.url||this.url,ie=V.responseType||this.responseType,Pe=V.transferCache??this.transferCache,Le=void 0!==V.body?V.body:this.body,yt=V.withCredentials??this.withCredentials,it=V.reportProgress??this.reportProgress;let Vt=V.headers||this.headers,vn=V.params||this.params;const Pt=V.context??this.context;return void 0!==V.setHeaders&&(Vt=Object.keys(V.setHeaders).reduce((Ln,Jn)=>Ln.set(Jn,V.setHeaders[Jn]),Vt)),V.setParams&&(vn=Object.keys(V.setParams).reduce((Ln,Jn)=>Ln.set(Jn,V.setParams[Jn]),vn)),new we(j,ue,Le,{params:vn,headers:Vt,context:Pt,reportProgress:it,responseType:ie,withCredentials:yt,transferCache:Pe})}}var He=function(P){return P[P.Sent=0]="Sent",P[P.UploadProgress=1]="UploadProgress",P[P.ResponseHeader=2]="ResponseHeader",P[P.DownloadProgress=3]="DownloadProgress",P[P.Response=4]="Response",P[P.User=5]="User",P}(He||{});class dt{constructor(V,j=te.Ok,ue="OK"){this.headers=V.headers||new me,this.status=void 0!==V.status?V.status:j,this.statusText=V.statusText||ue,this.url=V.url||null,this.ok=this.status>=200&&this.status<300}}class Ht extends dt{constructor(V={}){super(V),this.type=He.ResponseHeader}clone(V={}){return new Ht({headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class tn extends dt{constructor(V={}){super(V),this.type=He.Response,this.body=void 0!==V.body?V.body:null}clone(V={}){return new tn({body:void 0!==V.body?V.body:this.body,headers:V.headers||this.headers,status:void 0!==V.status?V.status:this.status,statusText:V.statusText||this.statusText,url:V.url||this.url||void 0})}}class Sn extends dt{constructor(V){super(V,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${V.url||"(unknown url)"}`:`Http failure response for ${V.url||"(unknown url)"}: ${V.status} ${V.statusText}`,this.error=V.error||null}}var te=function(P){return P[P.Continue=100]="Continue",P[P.SwitchingProtocols=101]="SwitchingProtocols",P[P.Processing=102]="Processing",P[P.EarlyHints=103]="EarlyHints",P[P.Ok=200]="Ok",P[P.Created=201]="Created",P[P.Accepted=202]="Accepted",P[P.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",P[P.NoContent=204]="NoContent",P[P.ResetContent=205]="ResetContent",P[P.PartialContent=206]="PartialContent",P[P.MultiStatus=207]="MultiStatus",P[P.AlreadyReported=208]="AlreadyReported",P[P.ImUsed=226]="ImUsed",P[P.MultipleChoices=300]="MultipleChoices",P[P.MovedPermanently=301]="MovedPermanently",P[P.Found=302]="Found",P[P.SeeOther=303]="SeeOther",P[P.NotModified=304]="NotModified",P[P.UseProxy=305]="UseProxy",P[P.Unused=306]="Unused",P[P.TemporaryRedirect=307]="TemporaryRedirect",P[P.PermanentRedirect=308]="PermanentRedirect",P[P.BadRequest=400]="BadRequest",P[P.Unauthorized=401]="Unauthorized",P[P.PaymentRequired=402]="PaymentRequired",P[P.Forbidden=403]="Forbidden",P[P.NotFound=404]="NotFound",P[P.MethodNotAllowed=405]="MethodNotAllowed",P[P.NotAcceptable=406]="NotAcceptable",P[P.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",P[P.RequestTimeout=408]="RequestTimeout",P[P.Conflict=409]="Conflict",P[P.Gone=410]="Gone",P[P.LengthRequired=411]="LengthRequired",P[P.PreconditionFailed=412]="PreconditionFailed",P[P.PayloadTooLarge=413]="PayloadTooLarge",P[P.UriTooLong=414]="UriTooLong",P[P.UnsupportedMediaType=415]="UnsupportedMediaType",P[P.RangeNotSatisfiable=416]="RangeNotSatisfiable",P[P.ExpectationFailed=417]="ExpectationFailed",P[P.ImATeapot=418]="ImATeapot",P[P.MisdirectedRequest=421]="MisdirectedRequest",P[P.UnprocessableEntity=422]="UnprocessableEntity",P[P.Locked=423]="Locked",P[P.FailedDependency=424]="FailedDependency",P[P.TooEarly=425]="TooEarly",P[P.UpgradeRequired=426]="UpgradeRequired",P[P.PreconditionRequired=428]="PreconditionRequired",P[P.TooManyRequests=429]="TooManyRequests",P[P.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",P[P.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",P[P.InternalServerError=500]="InternalServerError",P[P.NotImplemented=501]="NotImplemented",P[P.BadGateway=502]="BadGateway",P[P.ServiceUnavailable=503]="ServiceUnavailable",P[P.GatewayTimeout=504]="GatewayTimeout",P[P.HttpVersionNotSupported=505]="HttpVersionNotSupported",P[P.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",P[P.InsufficientStorage=507]="InsufficientStorage",P[P.LoopDetected=508]="LoopDetected",P[P.NotExtended=510]="NotExtended",P[P.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",P}(te||{});function ae(P,V){return{body:V,headers:P.headers,context:P.context,observe:P.observe,params:P.params,reportProgress:P.reportProgress,responseType:P.responseType,withCredentials:P.withCredentials,transferCache:P.transferCache}}let le=(()=>{class P{constructor(j){this.handler=j}request(j,ue,ie={}){let Pe;if(j instanceof we)Pe=j;else{let it,Vt;it=ie.headers instanceof me?ie.headers:new me(ie.headers),ie.params&&(Vt=ie.params instanceof Se?ie.params:new Se({fromObject:ie.params})),Pe=new we(j,ue,void 0!==ie.body?ie.body:null,{headers:it,context:ie.context,params:Vt,reportProgress:ie.reportProgress,responseType:ie.responseType||"json",withCredentials:ie.withCredentials,transferCache:ie.transferCache})}const Le=(0,K.of)(Pe).pipe((0,ge.H)(it=>this.handler.handle(it)));if(j instanceof we||"events"===ie.observe)return Le;const yt=Le.pipe((0,ne.p)(it=>it instanceof tn));switch(ie.observe||"body"){case"body":switch(Pe.responseType){case"arraybuffer":return yt.pipe((0,Ee.T)(it=>{if(null!==it.body&&!(it.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return it.body}));case"blob":return yt.pipe((0,Ee.T)(it=>{if(null!==it.body&&!(it.body instanceof Blob))throw new Error("Response is not a Blob.");return it.body}));case"text":return yt.pipe((0,Ee.T)(it=>{if(null!==it.body&&"string"!=typeof it.body)throw new Error("Response is not a string.");return it.body}));default:return yt.pipe((0,Ee.T)(it=>it.body))}case"response":return yt;default:throw new Error(`Unreachable: unhandled observe type ${ie.observe}}`)}}delete(j,ue={}){return this.request("DELETE",j,ue)}get(j,ue={}){return this.request("GET",j,ue)}head(j,ue={}){return this.request("HEAD",j,ue)}jsonp(j,ue){return this.request("JSONP",j,{params:(new Se).append(ue,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(j,ue={}){return this.request("OPTIONS",j,ue)}patch(j,ue,ie={}){return this.request("PATCH",j,ae(ie,ue))}post(j,ue,ie={}){return this.request("POST",j,ae(ie,ue))}put(j,ue,ie={}){return this.request("PUT",j,ae(ie,ue))}static{this.\u0275fac=function(ue){return new(ue||P)(o.KVO(J))}}static{this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}}return P})();function jt(P,V){return V(P)}function sn(P,V){return(j,ue)=>V.intercept(j,{handle:ie=>P(ie,ue)})}const St=new o.nKC(""),Kt=new o.nKC(""),Ye=new o.nKC(""),Ut=new o.nKC("");function hn(){let P=null;return(V,j)=>{null===P&&(P=((0,o.WQX)(St,{optional:!0})??[]).reduceRight(sn,jt));const ue=(0,o.WQX)(o.TgB),ie=ue.add();return P(V,j).pipe((0,pe.j)(()=>ue.remove(ie)))}}let _n=(()=>{class P extends J{constructor(j,ue){super(),this.backend=j,this.injector=ue,this.chain=null,this.pendingTasks=(0,o.WQX)(o.TgB);const ie=(0,o.WQX)(Ut,{optional:!0});this.backend=ie??j}handle(j){if(null===this.chain){const ie=Array.from(new Set([...this.injector.get(Kt),...this.injector.get(Ye,[])]));this.chain=ie.reduceRight((Pe,Le)=>function fn(P,V,j){return(ue,ie)=>(0,o.N4e)(j,()=>V(ue,Pe=>P(Pe,ie)))}(Pe,Le,this.injector),jt)}const ue=this.pendingTasks.add();return this.chain(j,ie=>this.backend.handle(ie)).pipe((0,pe.j)(()=>this.pendingTasks.remove(ue)))}static{this.\u0275fac=function(ue){return new(ue||P)(o.KVO(Ae),o.KVO(o.uvJ))}}static{this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}}return P})();const Fn=/^\)\]\}',?\n/;let ar=(()=>{class P{constructor(j){this.xhrFactory=j}handle(j){if("JSONP"===j.method)throw new o.wOt(-2800,!1);const ue=this.xhrFactory;return(ue.\u0275loadImpl?(0,x.H)(ue.\u0275loadImpl()):(0,K.of)(null)).pipe((0,ce.n)(()=>new q.c(Pe=>{const Le=ue.build();if(Le.open(j.method,j.urlWithParams),j.withCredentials&&(Le.withCredentials=!0),j.headers.forEach((Ct,Xe)=>Le.setRequestHeader(Ct,Xe.join(","))),j.headers.has("Accept")||Le.setRequestHeader("Accept","application/json, text/plain, */*"),!j.headers.has("Content-Type")){const Ct=j.detectContentTypeHeader();null!==Ct&&Le.setRequestHeader("Content-Type",Ct)}if(j.responseType){const Ct=j.responseType.toLowerCase();Le.responseType="json"!==Ct?Ct:"text"}const yt=j.serializeBody();let it=null;const Vt=()=>{if(null!==it)return it;const Ct=Le.statusText||"OK",Xe=new me(Le.getAllResponseHeaders()),Wt=function ft(P){return"responseURL"in P&&P.responseURL?P.responseURL:/^X-Request-URL:/m.test(P.getAllResponseHeaders())?P.getResponseHeader("X-Request-URL"):null}(Le)||j.url;return it=new Ht({headers:Xe,status:Le.status,statusText:Ct,url:Wt}),it},vn=()=>{let{headers:Ct,status:Xe,statusText:Wt,url:Xn}=Vt(),It=null;Xe!==te.NoContent&&(It=typeof Le.response>"u"?Le.responseText:Le.response),0===Xe&&(Xe=It?te.Ok:0);let Yt=Xe>=200&&Xe<300;if("json"===j.responseType&&"string"==typeof It){const Kn=It;It=It.replace(Fn,"");try{It=""!==It?JSON.parse(It):null}catch(On){It=Kn,Yt&&(Yt=!1,It={error:On,text:It})}}Yt?(Pe.next(new tn({body:It,headers:Ct,status:Xe,statusText:Wt,url:Xn||void 0})),Pe.complete()):Pe.error(new Sn({error:It,headers:Ct,status:Xe,statusText:Wt,url:Xn||void 0}))},Pt=Ct=>{const{url:Xe}=Vt(),Wt=new Sn({error:Ct,status:Le.status||0,statusText:Le.statusText||"Unknown Error",url:Xe||void 0});Pe.error(Wt)};let Ln=!1;const Jn=Ct=>{Ln||(Pe.next(Vt()),Ln=!0);let Xe={type:He.DownloadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Xe.total=Ct.total),"text"===j.responseType&&Le.responseText&&(Xe.partialText=Le.responseText),Pe.next(Xe)},bn=Ct=>{let Xe={type:He.UploadProgress,loaded:Ct.loaded};Ct.lengthComputable&&(Xe.total=Ct.total),Pe.next(Xe)};return Le.addEventListener("load",vn),Le.addEventListener("error",Pt),Le.addEventListener("timeout",Pt),Le.addEventListener("abort",Pt),j.reportProgress&&(Le.addEventListener("progress",Jn),null!==yt&&Le.upload&&Le.upload.addEventListener("progress",bn)),Le.send(yt),Pe.next({type:He.Sent}),()=>{Le.removeEventListener("error",Pt),Le.removeEventListener("abort",Pt),Le.removeEventListener("load",vn),Le.removeEventListener("timeout",Pt),j.reportProgress&&(Le.removeEventListener("progress",Jn),null!==yt&&Le.upload&&Le.upload.removeEventListener("progress",bn)),Le.readyState!==Le.DONE&&Le.abort()}})))}static{this.\u0275fac=function(ue){return new(ue||P)(o.KVO(oe.N0))}}static{this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}}return P})();const At=new o.nKC(""),lr=new o.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),An=new o.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Si{}let ur=(()=>{class P{constructor(j,ue,ie){this.doc=j,this.platform=ue,this.cookieName=ie,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const j=this.doc.cookie||"";return j!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,oe._b)(j,this.cookieName),this.lastCookieString=j),this.lastToken}static{this.\u0275fac=function(ue){return new(ue||P)(o.KVO(oe.qQ),o.KVO(o.Agw),o.KVO(lr))}}static{this.\u0275prov=o.jDH({token:P,factory:P.\u0275fac})}}return P})();function or(P,V){const j=P.url.toLowerCase();if(!(0,o.WQX)(At)||"GET"===P.method||"HEAD"===P.method||j.startsWith("http://")||j.startsWith("https://"))return V(P);const ue=(0,o.WQX)(Si).getToken(),ie=(0,o.WQX)(An);return null!=ue&&!P.headers.has(ie)&&(P=P.clone({headers:P.headers.set(ie,ue)})),V(P)}var Y=function(P){return P[P.Interceptors=0]="Interceptors",P[P.LegacyInterceptors=1]="LegacyInterceptors",P[P.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",P[P.NoXsrfProtection=3]="NoXsrfProtection",P[P.JsonpSupport=4]="JsonpSupport",P[P.RequestsMadeViaParent=5]="RequestsMadeViaParent",P[P.Fetch=6]="Fetch",P}(Y||{});function F(P,V){return{\u0275kind:P,\u0275providers:V}}function H(...P){const V=[le,ar,_n,{provide:J,useExisting:_n},{provide:Ae,useExisting:ar},{provide:Kt,useValue:or,multi:!0},{provide:At,useValue:!0},{provide:Si,useClass:ur}];for(const j of P)V.push(...j.\u0275providers);return(0,o.EmA)(V)}const We=new o.nKC("");let ii=(()=>{class P{static{this.\u0275fac=function(ue){return new(ue||P)}}static{this.\u0275mod=o.$C({type:P})}static{this.\u0275inj=o.G2t({providers:[H(F(Y.LegacyInterceptors,[{provide:We,useFactory:hn},{provide:Kt,useExisting:We,multi:!0}]))]})}}return P})()},8284:(Ze,he,M)=>{M.d(he,{iLQ:()=>oh,sZ2:()=>Np,hnV:()=>qC,Hbi:()=>T1,o8S:()=>Wo,BIS:()=>dE,gRc:()=>l_,Ql9:()=>JS,Ocv:()=>l1,abz:()=>cs,Z63:()=>Ei,aKT:()=>za,uvJ:()=>Jr,zcH:()=>Do,bkB:()=>Yi,$GK:()=>Mt,nKC:()=>ie,zZn:()=>fi,_q3:()=>hh,MKu:()=>ph,xe9:()=>pc,Co$:()=>Xm,Vns:()=>gs,SKi:()=>sr,Xx1:()=>Vn,Agw:()=>Zc,PLl:()=>Rp,sFG:()=>Lw,_9s:()=>tm,czy:()=>Eu,WPN:()=>fs,kdw:()=>jn,C4Q:()=>ul,NYb:()=>WS,giA:()=>XC,RxE:()=>jC,c1b:()=>Bu,gXe:()=>wi,mal:()=>lm,Af3:()=>li,L39:()=>nA,Ol2:()=>pf,w6W:()=>Fb,oH4:()=>i_,Rfq:()=>or,WQX:()=>S,hFB:()=>jD,QuC:()=>Mr,EmA:()=>No,fpN:()=>M1,HJs:()=>cA,N4e:()=>Hi,vPA:()=>Am,O8t:()=>iA,H3F:()=>UC,H8p:()=>Jo,KH2:()=>va,TgB:()=>Zs,wOt:()=>ke,WHO:()=>zC,e01:()=>WC,lNU:()=>hn,h9k:()=>Yp,$MX:()=>yu,ZF7:()=>Gs,Kcf:()=>NE,e5t:()=>FE,UyX:()=>xE,cWb:()=>RE,osQ:()=>PE,H5H:()=>Vf,Zy3:()=>qt,mq5:()=>Zv,JZv:()=>ft,LfX:()=>Ar,plB:()=>$o,jNT:()=>rh,zjR:()=>KC,TL$:()=>uE,Tbb:()=>ln,rcV:()=>Eo,Vt3:()=>df,Mj6:()=>Yr,GFd:()=>Wm,OA$:()=>Ve,Jv_:()=>dC,aNF:()=>fC,R7$:()=>bg,BMQ:()=>If,ZvI:()=>Bv,AVh:()=>Nf,vxM:()=>zv,wni:()=>Uy,VBU:()=>wa,FsC:()=>Ma,jDH:()=>Dt,G2t:()=>dr,$C:()=>Ms,EJ8:()=>qo,rXU:()=>Xs,nrm:()=>Lf,bVm:()=>rc,qex:()=>nc,k0s:()=>tc,j41:()=>ec,RV6:()=>qv,xGo:()=>Jh,KVO:()=>ee,kS0:()=>ou,QTQ:()=>Mg,bIt:()=>Bf,lsd:()=>Hy,XpG:()=>Ay,nI1:()=>DC,bMT:()=>EC,i5U:()=>wC,SdG:()=>Ny,NAR:()=>Oy,Y8G:()=>Af,FCK:()=>Gf,eq3:()=>pC,l_i:()=>gC,mGM:()=>$y,Njj:()=>Oh,EBC:()=>ig,eBV:()=>Ah,npT:()=>Zp,B4B:()=>gd,n$t:()=>eg,DNE:()=>Js,EFF:()=>Jy,JRh:()=>zf,SpI:()=>lc,Lme:()=>Wf,GBs:()=>By}),M(7431);let K=null,q=!1,x=1;const ge=Symbol("SIGNAL");function ne(e){const t=K;return K=e,t}const oe={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function J(e){if(q)throw new Error("");if(null===K)return;K.consumerOnSignalRead(e);const t=K.nextProducerIndex++;Fe(K),t<K.producerNode.length&&K.producerNode[t]!==e&&Ge(K)&&qe(K.producerNode[t],K.producerIndexOfThis[t]),K.producerNode[t]!==e&&(K.producerNode[t]=e,K.producerIndexOfThis[t]=Ge(K)?Se(e,K,t):0),K.producerLastReadVersion[t]=e.version}function me(e){if((!Ge(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==x)){if(!e.producerMustRecompute(e)&&!pt(e))return e.dirty=!1,void(e.lastCleanEpoch=x);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=x}}function Te(e){if(void 0===e.liveConsumerNode)return;const t=q;q=!0;try{for(const n of e.liveConsumerNode)n.dirty||nt(n)}finally{q=t}}function ot(){return!1!==K?.consumerAllowSignalWrites}function nt(e){e.dirty=!0,Te(e),e.consumerMarkedDirty?.(e)}function pt(e){Fe(e);for(let t=0;t<e.producerNode.length;t++){const n=e.producerNode[t],r=e.producerLastReadVersion[t];if(r!==n.version||(me(n),r!==n.version))return!0}return!1}function Se(e,t,n){if(Ue(e),Fe(e),0===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)e.producerIndexOfThis[r]=Se(e.producerNode[r],e,r);return e.liveConsumerIndexOfThis.push(n),e.liveConsumerNode.push(t)-1}function qe(e,t){if(Ue(e),Fe(e),1===e.liveConsumerNode.length)for(let r=0;r<e.producerNode.length;r++)qe(e.producerNode[r],e.producerIndexOfThis[r]);const n=e.liveConsumerNode.length-1;if(e.liveConsumerNode[t]=e.liveConsumerNode[n],e.liveConsumerIndexOfThis[t]=e.liveConsumerIndexOfThis[n],e.liveConsumerNode.length--,e.liveConsumerIndexOfThis.length--,t<e.liveConsumerNode.length){const r=e.liveConsumerIndexOfThis[t],i=e.liveConsumerNode[t];Fe(i),i.producerIndexOfThis[r]=t}}function Ge(e){return e.consumerIsAlwaysLive||(e?.liveConsumerNode?.length??0)>0}function Fe(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Ue(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}let Ht=function dt(){throw new Error};function tn(){Ht()}let te=null;function _e(e,t){ot()||tn(),e.equal(e.value,t)||(e.value=t,function xt(e){e.version++,function Ae(){x++}(),Te(e),te?.()}(e))}const je={...oe,equal:function o(e,t){return Object.is(e,t)},value:void 0};var fn=M(1087),St=M(7233),Kt=M(2410),Ye=M(2816);const hn="https://g.co/ng/security#xss";class ke extends Error{constructor(t,n){super(qt(t,n)),this.code=t}}function qt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}const _n=Symbol("InputSignalNode#UNSET"),Dn={...je,transformFn:void 0,applyValueToInputSignal(e,t){_e(e,t)}};function Pn(e,t){const n=Object.create(Dn);function r(){if(J(n),n.value===_n)throw new ke(-950,!1);return n.value}return n.value=e,n.transformFn=t?.transform,r[ge]=n,r}function $(e){return{toString:e}.toString()}const X="__parameters__";function Qt(e,t,n){return $(()=>{const r=function Bt(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 a=new i(...s);return l.annotation=a,l;function l(d,y,b){const R=d.hasOwnProperty(X)?d[X]:Object.defineProperty(d,X,{value:[]})[X];for(;R.length<=b;)R.push(null);return(R[b]=R[b]||[]).push(a),d}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const ft=globalThis;function rt(e){for(let t in e)if(e[t]===rt)return t;throw Error("Could not find renamed property on target object.")}function lr(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ln(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ln).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 An(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ur=rt({__forward_ref__:rt});function or(e){return e.__forward_ref__=or,e.toString=function(){return ln(this())},e}function z(e){return Y(e)?e():e}function Y(e){return"function"==typeof e&&e.hasOwnProperty(ur)&&e.__forward_ref__===or}function Dt(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function dr(e){return{providers:e.providers||[],imports:e.imports||[]}}function Sr(e){return Rr(e,P)||Rr(e,j)}function Ar(e){return null!==Sr(e)}function Rr(e,t){return e.hasOwnProperty(t)?e[t]:null}function br(e){return e&&(e.hasOwnProperty(V)||e.hasOwnProperty(ue))?e[V]:null}const P=rt({\u0275prov:rt}),V=rt({\u0275inj:rt}),j=rt({ngInjectableDef:rt}),ue=rt({ngInjectorDef:rt});class ie{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=Dt({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Ct(e){return e&&!!e.\u0275providers}const Xe=rt({\u0275cmp:rt}),Wt=rt({\u0275dir:rt}),Xn=rt({\u0275pipe:rt}),It=rt({\u0275mod:rt}),Yt=rt({\u0275fac:rt}),Kn=rt({__NG_ELEMENT_ID__:rt}),On=rt({__NG_ENV_ID__:rt});function ct(e){return"string"==typeof e?e:null==e?"":String(e)}function mi(e,t){throw new ke(-201,!1)}var Mt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Mt||{});let vi;function Li(){return vi}function $n(e){const t=vi;return vi=e,t}function Vi(e,t,n){const r=Sr(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&Mt.Optional?null:void 0!==t?t:void mi()}const Pr={},Ai="__NG_DI_FLAG__",oi="ngTempTokenPath",Ui=/\n/gm,Ci="__source";let yn;function fr(e){const t=yn;return yn=e,t}function N(e,t=Mt.Default){if(void 0===yn)throw new ke(-203,!1);return null===yn?Vi(e,void 0,t):yn.get(e,t&Mt.Optional?null:void 0,t)}function ee(e,t=Mt.Default){return(Li()||N)(z(e),t)}function S(e,t=Mt.Default){return ee(e,A(t))}function A(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function W(e){const t=[];for(let n=0;n<e.length;n++){const r=z(e[n]);if(Array.isArray(r)){if(0===r.length)throw new ke(900,!1);let i,s=Mt.Default;for(let a=0;a<r.length;a++){const l=r[a],d=tt(l);"number"==typeof d?-1===d?i=l.token:s|=d:i=l}t.push(ee(i,s))}else t.push(ee(r))}return t}function Oe(e,t){return e[Ai]=t,e.prototype[Ai]=t,e}function tt(e){return e[Ai]}const Vn=Oe(Qt("Optional"),8),jn=Oe(Qt("SkipSelf"),4);function er(e,t){return e.hasOwnProperty(Yt)?e[Yt]:null}function Hn(e,t){e.forEach(n=>Array.isArray(n)?Hn(n,t):t(n))}function so(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Di(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function hr(e,t,n){let r=Fr(e,t);return r>=0?e[1|r]=n:(r=~r,function Mo(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 To(e,t){const n=Fr(e,t);if(n>=0)return e[1|n]}function Fr(e,t){return function So(e,t,n){let r=0,i=e.length>>n;for(;i!==r;){const s=r+(i-r>>1),a=e[s<<n];if(t===a)return s<<n;a>t?i=s:r=s+1}return~(i<<n)}(e,t,1)}const $r={},$t=[],Ei=new ie(""),$i=new ie("",-1),Or=new ie("");class uo{get(t,n=Pr){if(n===Pr){const r=new Error(`NullInjectorError: No provider for ${ln(t)}!`);throw r.name="NullInjectorError",r}return n}}var si=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(si||{}),wi=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(wi||{}),Yr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Yr||{});function ws(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}}function co(e,t,n){let r=0;for(;r<n.length;){const i=n[r];if("number"==typeof i){if(0!==i)break;r++;const s=n[r++],a=n[r++],l=n[r++];e.setAttribute(t,a,l,s)}else{const s=i,a=n[++r];Ko(s)?e.setProperty(t,s,a):e.setAttribute(t,s,a),r++}}return r}function bi(e){return 3===e||4===e||6===e}function Ko(e){return 64===e.charCodeAt(0)}function fo(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||Ii(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function Ii(e,t,n,r,i){let s=0,a=e.length;if(-1===t)a=-1;else for(;s<e.length;){const l=e[s++];if("number"==typeof l){if(l===t){a=-1;break}if(l>t){a=s-1;break}}}for(;s<e.length;){const l=e[s];if("number"==typeof l)break;if(l===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!==a&&(e.splice(a,0,t),s=a+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}const Oi="ng-template";function bs(e,t,n,r){let i=0;if(r){for(;i<t.length&&"string"==typeof t[i];i+=2)if("class"===t[i]&&-1!==ws(t[i+1].toLowerCase(),n,0))return!0}else if(Ao(e))return!1;if(i=t.indexOf(1,i),i>-1){let s;for(;++i<t.length&&"string"==typeof(s=t[i]);)if(s.toLowerCase()===n)return!0}return!1}function Ao(e){return 4===e.type&&e.value!==Oi}function E(e,t,n){return t===(4!==e.type||n?e.value:Oi)}function w(e,t,n){let r=4;const i=e.attrs,s=null!==i?function gt(e){for(let t=0;t<e.length;t++)if(bi(e[t]))return t;return e.length}(i):0;let a=!1;for(let l=0;l<t.length;l++){const d=t[l];if("number"!=typeof d){if(!a)if(4&r){if(r=2|1&r,""!==d&&!E(e,d,n)||""===d&&1===t.length){if(m(r))return!1;a=!0}}else if(8&r){if(null===i||!bs(e,i,d,n)){if(m(r))return!1;a=!0}}else{const y=t[++l],b=O(d,i,Ao(e),n);if(-1===b){if(m(r))return!1;a=!0;continue}if(""!==y){let R;if(R=b>s?"":i[b+1].toLowerCase(),2&r&&y!==R){if(m(r))return!1;a=!0}}}}else{if(!a&&!m(r)&&!m(d))return!1;if(a&&m(d))continue;a=!1,r=d|1&r}}return m(r)||a}function m(e){return!(1&e)}function O(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let s=!1;for(;i<t.length;){const a=t[i];if(a===e)return i;if(3===a||6===a)s=!0;else{if(1===a||2===a){let l=t[++i];for(;"string"==typeof l;)l=t[++i];continue}if(4===a)break;if(0===a){i+=4;continue}}i+=s?1:2}return-1}return function Ot(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 B(e,t,n=!1){for(let r=0;r<t.length;r++)if(w(e,t[r],n))return!0;return!1}function ai(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let i=0;i<e.length;i++)if(e[i]!==r[i])continue e;return!0}}return!1}function Hr(e,t){return e?":not("+t.trim()+")":t}function Zr(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let a=e[n];if("string"==typeof a)if(2&r){const l=e[++n];i+="["+a+(l.length>0?'="'+l+'"':"")+"]"}else 8&r?i+="."+a:4&r&&(i+=" "+a);else""!==i&&!m(a)&&(t+=Hr(s,i),i=""),r=a,s=s||!m(r);n++}return""!==i&&(t+=Hr(s,i)),t}function wa(e){return $(()=>{const t=Vl(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===si.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||wi.Emulated,styles:e.styles||$t,_:null,schemas:e.schemas||null,tView:null,id:""};Qo(n);const r=e.dependencies;return n.directiveDefs=ho(r,!1),n.pipeDefs=ho(r,!0),n.id=function Ts(e){let t=0;const n=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const i of n)t=Math.imul(31,t)+i.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function Ll(e){return Nt(e)||Gn(e)}function ba(e){return null!==e}function Ms(e){return $(()=>({type:e.type,bootstrap:e.bootstrap||$t,declarations:e.declarations||$t,imports:e.imports||$t,exports:e.exports||$t,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Ia(e,t){if(null==e)return $r;const n={};for(const r in e)if(e.hasOwnProperty(r)){const i=e[r];let s,a,l=Yr.None;Array.isArray(i)?(l=i[0],s=i[1],a=i[2]??s):(s=i,a=i),t?(n[s]=l!==Yr.None?[r,l]:r,t[s]=a):n[s]=r}return n}function Ma(e){return $(()=>{const t=Vl(e);return Qo(t),t})}function qo(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function Nt(e){return e[Xe]||null}function Gn(e){return e[Wt]||null}function Rn(e){return e[Xn]||null}function Mr(e){const t=Nt(e)||Gn(e)||Rn(e);return null!==t&&t.standalone}function Un(e,t){const n=e[It]||null;if(!n&&!0===t)throw new Error(`Type ${ln(e)} does not have '\u0275mod' property.`);return n}function Vl(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||$r,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||$t,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Ia(e.inputs,t),outputs:Ia(e.outputs),debugInfo:null}}function Qo(e){e.features?.forEach(t=>t(e))}function ho(e,t){if(!e)return null;const n=t?Rn:Ll;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(ba)}function No(e){return{\u0275providers:e}}function Ro(...e){return{\u0275providers:xo(0,e),\u0275fromNgModule:!0}}function xo(e,...t){const n=[],r=new Set;let i;const s=a=>{n.push(a)};return Hn(t,a=>{const l=a;Zo(l,s,[],r)&&(i||=[],i.push(l))}),void 0!==i&&Yo(i,s),n}function Yo(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:i}=e[n];Ss(i,s=>{t(s,r)})}}function Zo(e,t,n,r){if(!(e=z(e)))return!1;let i=null,s=br(e);const a=!s&&Nt(e);if(s||a){if(a&&!a.standalone)return!1;i=e}else{const d=e.ngModule;if(s=br(d),!s)return!1;i=d}const l=r.has(i);if(a){if(l)return!1;if(r.add(i),a.dependencies){const d="function"==typeof a.dependencies?a.dependencies():a.dependencies;for(const y of d)Zo(y,t,n,r)}}else{if(!s)return!1;{if(null!=s.imports&&!l){let y;r.add(i);try{Hn(s.imports,b=>{Zo(b,t,n,r)&&(y||=[],y.push(b))})}finally{}void 0!==y&&Yo(y,t)}if(!l){const y=er(i)||(()=>new i);t({provide:i,useFactory:y,deps:$t},i),t({provide:Or,useValue:i,multi:!0},i),t({provide:Ei,useValue:()=>ee(i),multi:!0},i)}const d=s.providers;if(null!=d&&!l){const y=e;Ss(d,b=>{t(b,y)})}}}return i!==e&&void 0!==e.providers}function Ss(e,t){for(let n of e)Ct(n)&&(n=n.\u0275providers),Array.isArray(n)?Ss(n,t):t(n)}const Ul=rt({provide:String,useValue:rt});function po(e){return null!==e&&"object"==typeof e&&Ul in e}function Ni(e){return"function"==typeof e}const Jo=new ie(""),es={},Oa={};let As;function go(){return void 0===As&&(As=new uo),As}class Jr{}class mo extends Jr{get destroyed(){return this._destroyed}constructor(t,n,r,i){super(),this.parent=n,this.source=r,this.scopes=i,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ts(t,a=>this.processProvider(a)),this.records.set($i,vo(void 0,this)),i.has("environment")&&this.records.set(Jr,vo(void 0,this));const s=this.records.get(Jo);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(Or,$t,Mt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ne(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ne(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=fr(this),r=$n(void 0);try{return t()}finally{fr(n),$n(r)}}get(t,n=Pr,r=Mt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(On))return t[On](this);r=A(r);const s=fr(this),a=$n(void 0);try{if(!(r&Mt.SkipSelf)){let d=this.records.get(t);if(void 0===d){const y=function Rs(e){return"function"==typeof e||"object"==typeof e&&e instanceof ie}(t)&&Sr(t);d=y&&this.injectableDefInScope(y)?vo(Os(t),es):null,this.records.set(t,d)}if(null!=d)return this.hydrate(t,d)}return(r&Mt.Self?go():this.parent).get(t,n=r&Mt.Optional&&n===Pr?null:n)}catch(l){if("NullInjectorError"===l.name){if((l[oi]=l[oi]||[]).unshift(ln(t)),s)throw l;return function Tt(e,t,n,r){const i=e[oi];throw t[Ci]&&i.unshift(t[Ci]),e.message=function un(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let i=ln(t);if(Array.isArray(t))i=t.map(ln).join(" -> ");else if("object"==typeof t){let s=[];for(let a in t)if(t.hasOwnProperty(a)){let l=t[a];s.push(a+":"+("string"==typeof l?JSON.stringify(l):ln(l)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(Ui,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e[oi]=null,e}(l,t,"R3InjectorError",this.source)}throw l}finally{$n(a),fr(s)}}resolveInjectorInitializers(){const t=ne(null),n=fr(this),r=$n(void 0);try{const s=this.get(Ei,$t,Mt.Self);for(const a of s)a()}finally{fr(n),$n(r),ne(t)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ln(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new ke(205,!1)}processProvider(t){let n=Ni(t=z(t))?t:z(t&&t.provide);const r=function $l(e){return po(e)?vo(void 0,e.useValue):vo(Ns(e),es)}(t);if(!Ni(t)&&!0===t.multi){let i=this.records.get(n);i||(i=vo(void 0,es,!0),i.factory=()=>W(i.multi),this.records.set(n,i)),n=t,i.multi.push(t)}this.records.set(n,r)}hydrate(t,n){const r=ne(null);try{return n.value===es&&(n.value=Oa,n.value=n.factory()),"object"==typeof n.value&&n.value&&function Gl(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{ne(r)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=z(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Os(e){const t=Sr(e),n=null!==t?t.factory:er(e);if(null!==n)return n;if(e instanceof ie)throw new ke(204,!1);if(e instanceof Function)return function Bl(e){if(e.length>0)throw new ke(204,!1);const n=function xr(e){return e&&(e[P]||e[j])||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new ke(204,!1)}function Ns(e,t,n){let r;if(Ni(e)){const i=z(e);return er(i)||Os(i)}if(po(e))r=()=>z(e.useValue);else if(function Sa(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...W(e.deps||[]));else if(function Ta(e){return!(!e||!e.useExisting)}(e))r=()=>ee(z(e.useExisting));else{const i=z(e&&(e.useClass||e.provide));if(!function Hl(e){return!!e.deps}(e))return er(i)||Os(i);r=()=>new i(...W(e.deps))}return r}function vo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ts(e,t){for(const n of e)Array.isArray(n)?ts(n,t):n&&Ct(n)?ts(n.\u0275providers,t):t(n)}function Hi(e,t){e instanceof mo&&e.assertNotDestroyed();const r=fr(e),i=$n(void 0);try{return t()}finally{fr(r),$n(i)}}function Gi(){return void 0!==Li()||null!=function Ur(){return yn}()}function li(e){if(!Gi())throw new ke(-203,!1)}const Xt=0,Ne=1,et=2,on=3,tr=4,Cn=5,Qn=6,zn=7,pn=8,Yn=9,kr=10,mt=11,ns=12,Na=13,rs=14,Bn=15,is=16,zi=17,Mi=18,xs=19,Ra=20,pr=21,Ps=22,Po=23,Et=25,zl=1,ui=7,Lo=9,Wn=10;var Wl=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Wl||{});function gr(e){return Array.isArray(e)&&"object"==typeof e[zl]}function Tr(e){return Array.isArray(e)&&!0===e[zl]}function Xl(e){return!!(4&e.flags)}function Vo(e){return e.componentOffset>-1}function xa(e){return!(1&~e.flags)}function ci(e){return!!e.template}function Pa(e){return!!(512&e[et])}class re{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Q(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}function Ve(){return wt}function wt(e){return e.type.prototype.ngOnChanges&&(e.setInput=Zn),Lt}function Lt(){const e=Uo(this),t=e?.current;if(t){const n=e.previous;if(n===$r)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Zn(e,t,n,r,i){const s=this.declaredInputs[r],a=Uo(e)||function os(e,t){return e[jo]=t}(e,{previous:$r,current:null}),l=a.current||(a.current={}),d=a.previous,y=d[s];l[s]=new re(y&&y.currentValue,n,d===$r),Q(e,t,i,n)}Ve.ngInherit=!0;const jo="__ngSimpleChanges__";function Uo(e){return e[jo]||null}const Wi=function(e,t,n){};let bh=!1;function gn(e){for(;Array.isArray(e);)e=e[Xt];return e}function La(e,t){return gn(t[e])}function Gr(e,t){return gn(t[e.index])}function Va(e,t){return e.data[t]}function Fs(e,t){return e[t]}function di(e,t){const n=t[e];return gr(n)?n:n[Xt]}function Mc(e){return!(128&~e[et])}function Xi(e,t){return null==t?null:e[t]}function Ih(e){e[zi]=0}function Q_(e){1024&e[et]||(e[et]|=1024,Mc(e)&&ja(e))}function Tc(e){return!!(9216&e[et]||e[Po]?.dirty)}function Sc(e){e[kr].changeDetectionScheduler?.notify(1),Tc(e)?ja(e):64&e[et]&&(function W_(){return bh}()?(e[et]|=1024,ja(e)):e[kr].changeDetectionScheduler?.notify())}function ja(e){e[kr].changeDetectionScheduler?.notify();let t=as(e);for(;null!==t&&!(8192&t[et])&&(t[et]|=8192,Mc(t));)t=as(t)}function Ql(e,t){if(!(256&~e[et]))throw new ke(911,!1);null===e[pr]&&(e[pr]=[]),e[pr].push(t)}function as(e){const t=e[on];return Tr(t)?t[on]:t}const _t={lFrame:Lh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Sh(){return _t.bindingsEnabled}function ks(){return null!==_t.skipHydrationRootTNode}function ye(){return _t.lFrame.lView}function zt(){return _t.lFrame.tView}function Ah(e){return _t.lFrame.contextLView=e,e[pn]}function Oh(e){return _t.lFrame.contextLView=null,e}function dn(){let e=Nh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Nh(){return _t.lFrame.currentTNode}function Ki(e,t){const n=_t.lFrame;n.currentTNode=e,n.isParent=t}function Oc(){return _t.lFrame.isParent}function Nc(){_t.lFrame.isParent=!1}function zr(){const e=_t.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Ri(){return _t.lFrame.bindingIndex++}function _o(e){const t=_t.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function aD(e,t){const n=_t.lFrame;n.bindingIndex=n.bindingRootIndex=e,Rc(t)}function Rc(e){_t.lFrame.currentDirectiveIndex=e}function Pc(){return _t.lFrame.currentQueryIndex}function Yl(e){_t.lFrame.currentQueryIndex=e}function uD(e){const t=e[Ne];return 2===t.type?t.declTNode:1===t.type?e[Cn]:null}function Fh(e,t,n){if(n&Mt.SkipSelf){let i=t,s=e;for(;!(i=i.parent,null!==i||n&Mt.Host||(i=uD(s),null===i||(s=s[rs],10&i.type))););if(null===i)return!1;t=i,e=s}const r=_t.lFrame=kh();return r.currentTNode=t,r.lView=e,!0}function Fc(e){const t=kh(),n=e[Ne];_t.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function kh(){const e=_t.lFrame,t=null===e?null:e.child;return null===t?Lh(e):t}function Lh(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 Vh(){const e=_t.lFrame;return _t.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const jh=Vh;function kc(){const e=Vh();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 Lr(){return _t.lFrame.selectedIndex}function ls(e){_t.lFrame.selectedIndex=e}function Tn(){const e=_t.lFrame;return Va(e.tView,e.selectedIndex)}let Bh=!0;function Ba(){return Bh}function qi(e){Bh=e}function Zl(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const s=e.data[n].type.prototype,{ngAfterContentInit:a,ngAfterContentChecked:l,ngAfterViewInit:d,ngAfterViewChecked:y,ngOnDestroy:b}=s;a&&(e.contentHooks??=[]).push(-n,a),l&&((e.contentHooks??=[]).push(n,l),(e.contentCheckHooks??=[]).push(n,l)),d&&(e.viewHooks??=[]).push(-n,d),y&&((e.viewHooks??=[]).push(n,y),(e.viewCheckHooks??=[]).push(n,y)),null!=b&&(e.destroyHooks??=[]).push(n,b)}}function Jl(e,t,n){$h(e,t,3,n)}function eu(e,t,n,r){(3&e[et])===n&&$h(e,t,n,r)}function Lc(e,t){let n=e[et];(3&n)===t&&(n&=16383,n+=1,e[et]=n)}function $h(e,t,n,r){const s=r??-1,a=t.length-1;let l=0;for(let d=void 0!==r?65535&e[zi]:0;d<a;d++)if("number"==typeof t[d+1]){if(l=t[d],null!=r&&l>=r)break}else t[d]<0&&(e[zi]+=65536),(l<s||-1==s)&&(mD(e,n,t,d),e[zi]=(4294901760&e[zi])+d+2),d++}function Hh(e,t){Wi(4,e,t);const n=ne(null);try{t.call(e)}finally{ne(n),Wi(5,e,t)}}function mD(e,t,n,r){const i=n[r]<0,s=n[r+1],l=e[i?-n[r]:n[r]];i?e[et]>>14<e[zi]>>16&&(3&e[et])===t&&(e[et]+=16384,Hh(l,s)):Hh(l,s)}const Ls=-1;class $a{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function jc(e){return e!==Ls}function Ha(e){return 32767&e}function Ga(e,t){let n=function DD(e){return e>>16}(e),r=t;for(;n>0;)r=r[rs],n--;return r}let Uc=!0;function tu(e){const t=Uc;return Uc=e,t}const Gh=255,zh=5;let ED=0;const Qi={};function nu(e,t){const n=Wh(e,t);if(-1!==n)return n;const r=t[Ne];r.firstCreatePass&&(e.injectorIndex=t.length,Bc(r.data,e),Bc(t,null),Bc(r.blueprint,null));const i=ru(e,t),s=e.injectorIndex;if(jc(i)){const a=Ha(i),l=Ga(i,t),d=l[Ne].data;for(let y=0;y<8;y++)t[s+y]=l[a+y]|d[a+y]}return t[s+8]=i,s}function Bc(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Wh(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function ru(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,i=t;for(;null!==i;){if(r=ep(i),null===r)return Ls;if(n++,i=i[rs],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Ls}function $c(e,t,n){!function wD(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Kn)&&(r=n[Kn]),null==r&&(r=n[Kn]=ED++);const i=r&Gh;t.data[e+(i>>zh)]|=1<<i}(e,t,n)}function Xh(e,t,n){if(n&Mt.Optional||void 0!==e)return e;mi()}function Kh(e,t,n,r){if(n&Mt.Optional&&void 0===r&&(r=null),!(n&(Mt.Self|Mt.Host))){const i=e[Yn],s=$n(void 0);try{return i?i.get(t,r,n&Mt.Optional):Vi(t,r,n&Mt.Optional)}finally{$n(s)}}return Xh(r,0,n)}function qh(e,t,n,r=Mt.Default,i){if(null!==e){if(2048&t[et]&&!(r&Mt.Self)){const a=function SD(e,t,n,r,i){let s=e,a=t;for(;null!==s&&null!==a&&2048&a[et]&&!(512&a[et]);){const l=Qh(s,a,n,r|Mt.Self,Qi);if(l!==Qi)return l;let d=s.parent;if(!d){const y=a[Ra];if(y){const b=y.get(n,Qi,r);if(b!==Qi)return b}d=ep(a),a=a[rs]}s=d}return i}(e,t,n,r,Qi);if(a!==Qi)return a}const s=Qh(e,t,n,r,Qi);if(s!==Qi)return s}return Kh(t,n,r,i)}function Qh(e,t,n,r,i){const s=function MD(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Kn)?e[Kn]:void 0;return"number"==typeof t?t>=0?t&Gh:TD:t}(n);if("function"==typeof s){if(!Fh(t,e,r))return r&Mt.Host?Xh(i,0,r):Kh(t,n,r,i);try{let a;if(a=s(r),null!=a||r&Mt.Optional)return a;mi()}finally{jh()}}else if("number"==typeof s){let a=null,l=Wh(e,t),d=Ls,y=r&Mt.Host?t[Bn][Cn]:null;for((-1===l||r&Mt.SkipSelf)&&(d=-1===l?ru(e,t):t[l+8],d!==Ls&&Zh(r,!1)?(a=t[Ne],l=Ha(d),t=Ga(d,t)):l=-1);-1!==l;){const b=t[Ne];if(Yh(s,l,b.data)){const R=ID(l,t,n,a,r,y);if(R!==Qi)return R}d=t[l+8],d!==Ls&&Zh(r,t[Ne].data[l+8]===y)&&Yh(s,l,t)?(a=b,l=Ha(d),t=Ga(d,t)):l=-1}}return i}function ID(e,t,n,r,i,s){const a=t[Ne],l=a.data[e+8],b=iu(l,a,n,null==r?Vo(l)&&Uc:r!=a&&!!(3&l.type),i&Mt.Host&&s===l);return null!==b?us(t,a,b,l):Qi}function iu(e,t,n,r,i){const s=e.providerIndexes,a=t.data,l=1048575&s,d=e.directiveStart,b=s>>20,U=i?l+b:e.directiveEnd;for(let G=r?l:l+b;G<U;G++){const Z=a[G];if(G<d&&n===Z||G>=d&&Z.type===n)return G}if(i){const G=a[d];if(G&&ci(G)&&G.type===n)return d}return null}function us(e,t,n,r){let i=e[n];const s=t.data;if(function vD(e){return e instanceof $a}(i)){const a=i;a.resolving&&function ro(e,t){throw t&&t.join(" > "),new ke(-200,e)}(function Ft(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():ct(e)}(s[n]));const l=tu(a.canSeeViewProviders);a.resolving=!0;const y=a.injectImpl?$n(a.injectImpl):null;Fh(e,r,Mt.Default);try{i=e[n]=a.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function gD(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const a=wt(t);(n.preOrderHooks??=[]).push(e,a),(n.preOrderCheckHooks??=[]).push(e,a)}i&&(n.preOrderHooks??=[]).push(0-e,i),s&&((n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s))}(n,s[n],t)}finally{null!==y&&$n(y),tu(l),a.resolving=!1,jh()}}return i}function Yh(e,t,n){return!!(n[t+(e>>zh)]&1<<e)}function Zh(e,t){return!(e&Mt.Self||e&Mt.Host&&t)}class mr{constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return qh(this._tNode,this._lView,t,A(r),n)}}function TD(){return new mr(dn(),ye())}function Jh(e){return $(()=>{const t=e.prototype.constructor,n=t[Yt]||Hc(t),r=Object.prototype;let i=Object.getPrototypeOf(e.prototype).constructor;for(;i&&i!==r;){const s=i[Yt]||Hc(i);if(s&&s!==n)return s;i=Object.getPrototypeOf(i)}return s=>new s})}function Hc(e){return Y(e)?()=>{const t=Hc(z(e));return t&&t()}:er(e)}function ep(e){const t=e[Ne],n=t.type;return 2===n?t.declTNode:1===n?e[Cn]:null}function ou(e){return function bD(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(bi(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}(dn(),e)}function op(e,t=null,n=null,r){const i=sp(e,t,n,r);return i.resolveInjectorInitializers(),i}function sp(e,t=null,n=null,r,i=new Set){const s=[n||$t,Ro(e)];return r=r||("object"==typeof e?void 0:ln(e)),new mo(s,t||go(),r||null,i)}let fi=(()=>{class e{static{this.THROW_IF_NOT_FOUND=Pr}static{this.NULL=new uo}static create(n,r){if(Array.isArray(n))return op({name:""},r,n,"");{const i=n.name??"";return op({name:i},n.parent,n.providers,i)}}static{this.\u0275prov=Dt({token:e,providedIn:"any",factory:()=>ee($i)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function zc(e){return e.ngOriginalError}class Do{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&zc(t);for(;n&&zc(n);)n=zc(n);return n||null}}const lp=new ie("",{providedIn:"root",factory:()=>S(Do).handleError.bind(void 0)});let cs=(()=>{class e{static{this.__NG_ELEMENT_ID__=LD}static{this.__NG_ENV_ID__=n=>n}}return e})();class kD extends cs{constructor(t){super(),this._lView=t}onDestroy(t){return Ql(this._lView,t),()=>function Ac(e,t){if(null===e[pr])return;const n=e[pr].indexOf(t);-1!==n&&e[pr].splice(n,1)}(this._lView,t)}}function LD(){return new kD(ye())}function cp(e,t){return Pn(e,t)}const jD=(cp.required=function VD(e){return Pn(_n,e)},cp);function UD(){return Us(dn(),ye())}function Us(e,t){return new za(Gr(e,t))}let za=(()=>{class e{constructor(n){this.nativeElement=n}static{this.__NG_ELEMENT_ID__=UD}}return e})();function dp(e){return e instanceof za?e.nativeElement:e}function Wc(e){return t=>{setTimeout(e,void 0,t)}}const Yi=class BD extends fn.B{constructor(t=!1){super(),this.destroyRef=void 0,this.__isAsync=t,Gi()&&(this.destroyRef=S(cs,{optional:!0})??void 0)}emit(t){const n=ne(null);try{super.next(t)}finally{ne(n)}}subscribe(t,n,r){let i=t,s=n||(()=>null),a=r;if(t&&"object"==typeof t){const d=t;i=d.next?.bind(d),s=d.error?.bind(d),a=d.complete?.bind(d)}this.__isAsync&&(s=Wc(s),i&&(i=Wc(i)),a&&(a=Wc(a)));const l=super.subscribe({next:i,error:s,complete:a});return t instanceof St.yU&&t.add(l),l}};function $D(){return this._results[Symbol.iterator]()}class Xc{get changes(){return this._changes??=new Yi}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const n=Xc.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=$D)}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){this.dirty=!1;const r=function In(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Br(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}(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){void 0!==this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){void 0!==this._changes&&(this._changes.complete(),this._changes.unsubscribe())}}function au(e){return!(128&~e.flags)}const Kc=new Map;let GD=0;const Qc="__ngContext__";function Vr(e,t){gr(t)?(e[Qc]=t[xs],function WD(e){Kc.set(e[xs],e)}(t)):e[Qc]=t}function Dp(e){return wp(e[ns])}function Ep(e){return wp(e[tr])}function wp(e){for(;null!==e&&!Tr(e);)e=e[tr];return e}let Yc;function uE(e){Yc=e}function Bo(){if(void 0!==Yc)return Yc;if(typeof document<"u")return document;throw new ke(210,!1)}const Np=new ie("",{providedIn:"root",factory:()=>cE}),cE="ng",Rp=new ie(""),Zc=new ie("",{providedIn:"platform",factory:()=>"unknown"}),dE=new ie("",{providedIn:"root",factory:()=>Bo().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let xp=()=>null;function sd(e,t,n=!1){return xp(e,t,n)}const Vp=new ie("",{providedIn:"root",factory:()=>!1});let mu,vu;function Hs(e){return function cd(){if(void 0===mu&&(mu=null,ft.trustedTypes))try{mu=ft.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return mu}()?.createHTML(e)||e}function dd(){if(void 0===vu&&(vu=null,ft.trustedTypes))try{vu=ft.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return vu}function Up(e){return dd()?.createHTML(e)||e}function $p(e){return dd()?.createScriptURL(e)||e}class ds{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${hn})`}}class IE extends ds{getTypeName(){return"HTML"}}class ME extends ds{getTypeName(){return"Style"}}class TE extends ds{getTypeName(){return"Script"}}class SE extends ds{getTypeName(){return"URL"}}class AE extends ds{getTypeName(){return"ResourceURL"}}function Eo(e){return e instanceof ds?e.changingThisBreaksApplicationSecurity:e}function Gs(e,t){const n=function OE(e){return e instanceof ds&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${hn})`)}return n===t}function NE(e){return new IE(e)}function RE(e){return new ME(e)}function xE(e){return new TE(e)}function PE(e){return new SE(e)}function FE(e){return new AE(e)}class kE{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const n=(new window.DOMParser).parseFromString(Hs(t),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(t):(n.removeChild(n.firstChild),n)}catch{return null}}}class LE{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const n=this.inertDocument.createElement("template");return n.innerHTML=Hs(t),n}}const jE=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function yu(e){return(e=String(e)).match(jE)?e:"unsafe:"+e}function wo(e){const t={};for(const n of e.split(","))t[n]=!0;return t}function Za(...e){const t={};for(const n of e)for(const r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}const Gp=wo("area,br,col,hr,img,wbr"),zp=wo("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Wp=wo("rp,rt"),fd=Za(Gp,Za(zp,wo("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")),Za(Wp,wo("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")),Za(Wp,zp)),hd=wo("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Xp=Za(hd,wo("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,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),wo("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")),UE=wo("script,style,template");class BE{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let n=t.firstChild,r=!0,i=[];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)i.push(n),n=GE(n);else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let s=HE(n);if(s){n=s;break}n=i.pop()}return this.buf.join("")}startElement(t){const n=Kp(t).toLowerCase();if(!fd.hasOwnProperty(n))return this.sanitizedSomething=!0,!UE.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),a=s.name,l=a.toLowerCase();if(!Xp.hasOwnProperty(l)){this.sanitizedSomething=!0;continue}let d=s.value;hd[l]&&(d=yu(d)),this.buf.push(" ",a,'="',Qp(d),'"')}return this.buf.push(">"),!0}endElement(t){const n=Kp(t).toLowerCase();fd.hasOwnProperty(n)&&!Gp.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}chars(t){this.buf.push(Qp(t))}}function HE(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw qp(t);return t}function GE(e){const t=e.firstChild;if(t&&function $E(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw qp(t);return t}function Kp(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function qp(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const zE=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,WE=/([^\#-~ |!])/g;function Qp(e){return e.replace(/&/g,"&amp;").replace(zE,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(WE,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Cu;function Yp(e,t){let n=null;try{Cu=Cu||function Hp(e){const t=new LE(e);return function VE(){try{return!!(new window.DOMParser).parseFromString(Hs(""),"text/html")}catch{return!1}}()?new kE(t):t}(e);let r=t?String(t):"";n=Cu.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=Cu.getInertBodyElement(r)}while(r!==s);return Hs((new BE).sanitizeChildren(pd(n)||n))}finally{if(n){const r=pd(n)||n;for(;r.firstChild;)r.removeChild(r.firstChild)}}}function pd(e){return"content"in e&&function XE(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var fs=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(fs||{});function Zp(e){const t=Ja();return t?Up(t.sanitize(fs.HTML,e)||""):Gs(e,"HTML")?Up(Eo(e)):Yp(Bo(),ct(e))}function gd(e){const t=Ja();return t?t.sanitize(fs.URL,e)||"":Gs(e,"URL")?Eo(e):yu(ct(e))}function Jp(e){const t=Ja();if(t)return $p(t.sanitize(fs.RESOURCE_URL,e)||"");if(Gs(e,"ResourceURL"))return $p(Eo(e));throw new ke(904,!1)}function eg(e,t,n){return function ZE(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Jp:gd}(t,n)(e)}function Ja(){const e=ye();return e&&e[kr].sanitizer}const JE=/^>|^->|<!--|-->|--!>|<!-$/g,e0=/(<|>)/g,t0="\u200b$1\u200b";function ig(e){return e.ownerDocument}function hi(e){return e instanceof Function?e():e}var Eu=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Eu||{});let Cd;function _d(e,t){return Cd(e,t)}function Ws(e,t,n,r,i){if(null!=r){let s,a=!1;Tr(r)?s=r:gr(r)&&(a=!0,r=r[Xt]);const l=gn(r);0===e&&null!==n?null==i?hg(t,n,l):hs(t,n,l,i||null,!0):1===e&&null!==n?hs(t,n,l,i||null,!0):2===e?function nl(e,t,n){const r=Iu(e,t);r&&function _0(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,l,a):3===e&&t.destroyNode(l),null!=s&&function w0(e,t,n,r,i){const s=n[ui];s!==gn(n)&&Ws(t,e,r,s,i);for(let l=Wn;l<n.length;l++){const d=n[l];Tu(d[Ne],d,e,t,r,s)}}(t,e,s,n,i)}}function Ed(e,t){return e.createComment(function tg(e){return e.replace(JE,t=>t.replace(e0,t0))}(t))}function wu(e,t,n){return e.createElement(t,n)}function cg(e,t){t[kr].changeDetectionScheduler?.notify(1),Tu(e,t,t[mt],2,null,null)}function dg(e,t){const n=e[Lo],r=n.indexOf(t);n.splice(r,1)}function el(e,t){if(e.length<=Wn)return;const n=Wn+t,r=e[n];if(r){const i=r[is];null!==i&&i!==e&&dg(i,r),t>0&&(e[n-1][tr]=r[tr]);const s=Di(e,Wn+t);!function h0(e,t){cg(e,t),t[Xt]=null,t[Cn]=null}(r[Ne],r);const a=s[Mi];null!==a&&a.detachView(s[Ne]),r[on]=null,r[tr]=null,r[et]&=-129}return r}function bu(e,t){if(!(256&t[et])){const n=t[mt];n.destroyNode&&Tu(e,t,n,3,null,null),function g0(e){let t=e[ns];if(!t)return wd(e[Ne],e);for(;t;){let n=null;if(gr(t))n=t[ns];else{const r=t[Wn];r&&(n=r)}if(!n){for(;t&&!t[tr]&&t!==e;)gr(t)&&wd(t[Ne],t),t=t[on];null===t&&(t=e),gr(t)&&wd(t[Ne],t),n=t&&t[tr]}t=n}}(t)}}function wd(e,t){if(256&t[et])return;const n=ne(null);try{t[et]&=-129,t[et]|=256,t[Po]&&function xe(e){if(Fe(e),Ge(e))for(let t=0;t<e.producerNode.length;t++)qe(e.producerNode[t],e.producerIndexOfThis[t]);e.producerNode.length=e.producerLastReadVersion.length=e.producerIndexOfThis.length=0,e.liveConsumerNode&&(e.liveConsumerNode.length=e.liveConsumerIndexOfThis.length=0)}(t[Po]),function C0(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 $a)){const s=n[r+1];if(Array.isArray(s))for(let a=0;a<s.length;a+=2){const l=i[s[a]],d=s[a+1];Wi(4,l,d);try{d.call(l)}finally{Wi(5,l,d)}}else{Wi(4,i,s);try{s.call(i)}finally{Wi(5,i,s)}}}}}(e,t),function y0(e,t){const n=e.cleanup,r=t[zn];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[zn]=null);const i=t[pr];if(null!==i){t[pr]=null;for(let s=0;s<i.length;s++)(0,i[s])()}}(e,t),1===t[Ne].type&&t[mt].destroy();const r=t[is];if(null!==r&&Tr(t[on])){r!==t[on]&&dg(r,t);const i=t[Mi];null!==i&&i.detachView(e)}!function XD(e){Kc.delete(e[xs])}(t)}finally{ne(n)}}function bd(e,t,n){return function fg(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[Xt];{const{componentOffset:i}=r;if(i>-1){const{encapsulation:s}=e.data[r.directiveStart+i];if(s===wi.None||s===wi.Emulated)return null}return Gr(r,n)}}(e,t.parent,n)}function hs(e,t,n,r,i){e.insertBefore(t,n,r,i)}function hg(e,t,n){e.appendChild(t,n)}function pg(e,t,n,r,i){null!==r?hs(e,t,n,r,i):hg(e,t,n)}function Iu(e,t){return e.parentNode(t)}function gg(e,t,n){return vg(e,t,n)}let Id,vg=function mg(e,t,n){return 40&e.type?Gr(e,n):null};function Mu(e,t,n,r){const i=bd(e,r,t),s=t[mt],l=gg(r.parent||t[Cn],r,t);if(null!=i)if(Array.isArray(n))for(let d=0;d<n.length;d++)pg(s,i,n[d],l,!1);else pg(s,i,n,l,!1);void 0!==Id&&Id(s,r,t,n,i)}function tl(e,t){if(null!==t){const n=t.type;if(3&n)return Gr(t,e);if(4&n)return Md(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return tl(e,r);{const i=e[t.index];return Tr(i)?Md(-1,i):gn(i)}}if(32&n)return _d(t,e)()||gn(e[t.index]);{const r=Cg(e,t);return null!==r?Array.isArray(r)?r[0]:tl(as(e[Bn]),r):tl(e,t.next)}}return null}function Cg(e,t){return null!==t?e[Bn][Cn].projection[t.projection]:null}function Md(e,t){const n=Wn+e+1;if(n<t.length){const r=t[n],i=r[Ne].firstChild;if(null!==i)return tl(r,i)}return t[ui]}function Td(e,t,n,r,i,s,a){for(;null!=n;){const l=r[n.index],d=n.type;if(a&&0===t&&(l&&Vr(gn(l),r),n.flags|=2),32&~n.flags)if(8&d)Td(e,t,n.child,r,i,s,!1),Ws(t,e,i,l,s);else if(32&d){const y=_d(n,r);let b;for(;b=y();)Ws(t,e,i,b,s);Ws(t,e,i,l,s)}else 16&d?Dg(e,t,r,n,i,s):Ws(t,e,i,l,s);n=a?n.projectionNext:n.next}}function Tu(e,t,n,r,i,s){Td(n,r,e.firstChild,t,i,s,!1)}function Dg(e,t,n,r,i,s){const a=n[Bn],d=a[Cn].projection[r.projection];if(Array.isArray(d))for(let y=0;y<d.length;y++)Ws(t,e,i,d[y],s);else{let y=d;const b=a[on];au(r)&&(y.flags|=128),Td(e,t,y,b,i,s,!0)}}function Eg(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function wg(e,t,n){const{mergedAttrs:r,classes:i,styles:s}=n;null!==r&&co(e,t,r),null!==i&&Eg(e,t,i),null!==s&&function I0(e,t,n){e.setAttribute(t,"style",n)}(e,t,s)}const Rt={};function bg(e=1){Ig(zt(),ye(),Lr()+e,!1)}function Ig(e,t,n,r){if(!r)if(3&~t[et]){const s=e.preOrderHooks;null!==s&&eu(t,s,0,n)}else{const s=e.preOrderCheckHooks;null!==s&&Jl(t,s,n)}ls(n)}function Xs(e,t=Mt.Default){const n=ye();return null===n?ee(e,t):qh(dn(),n,z(e),t)}function Mg(){throw new Error("invalid")}function Tg(e,t,n,r,i,s){const a=ne(null);try{let l=null;i&Yr.SignalBased&&(l=t[r][ge]),null!==l&&void 0!==l.transformFn&&(s=l.transformFn(s)),i&Yr.HasDecoratorInputTransform&&(s=e.inputTransforms[r].call(t,s)),null!==e.setInput?e.setInput(t,l,s,n,r):Q(t,l,r,s)}finally{ne(a)}}function Su(e,t,n,r,i,s,a,l,d,y,b){const R=t.blueprint.slice();return R[Xt]=i,R[et]=204|r,(null!==y||e&&2048&e[et])&&(R[et]|=2048),Ih(R),R[on]=R[rs]=e,R[pn]=n,R[kr]=a||e&&e[kr],R[mt]=l||e&&e[mt],R[Yn]=d||e&&e[Yn]||null,R[Cn]=s,R[xs]=function zD(){return GD++}(),R[Qn]=b,R[Ra]=y,R[Bn]=2==t.type?e[Bn]:R,R}function Ks(e,t,n,r,i){let s=e.data[t];if(null===s)s=function Sd(e,t,n,r,i){const s=Nh(),a=Oc(),d=e.data[t]=function x0(e,t,n,r,i,s){let a=t?t.injectorIndex:-1,l=0;return ks()&&(l|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:l,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev: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,a?s:s&&s.parent,n,t,r,i);return null===e.firstChild&&(e.firstChild=d),null!==s&&(a?null==s.child&&null!==d.parent&&(s.child=d):null===s.next&&(s.next=d,d.prev=s)),d}(e,t,n,r,i),function sD(){return _t.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const a=function Ua(){const e=_t.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();s.injectorIndex=null===a?-1:a.injectorIndex}return Ki(s,!0),s}function rl(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 Sg(e,t,n,r,i){const s=Lr(),a=2&r;try{ls(-1),a&&t.length>Et&&Ig(e,t,Et,!1),Wi(a?2:0,i),n(r,i)}finally{ls(s),Wi(a?3:1,i)}}function Ad(e,t,n){if(Xl(t)){const r=ne(null);try{const s=t.directiveEnd;for(let a=t.directiveStart;a<s;a++){const l=e.data[a];l.contentQueries&&l.contentQueries(1,n[a],a)}}finally{ne(r)}}}function Od(e,t,n){Sh()&&(function U0(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;Vo(n)&&function X0(e,t,n){const r=Gr(t,e),i=Ag(n);let a=16;n.signals?a=4096:n.onPush&&(a=64);const l=Au(e,Su(e,i,null,a,r,t,null,e[kr].rendererFactory.createRenderer(r,n),null,null,null));e[t.index]=l}(t,n,e.data[i+n.componentOffset]),e.firstCreatePass||nu(n,t),Vr(r,t);const a=n.initialInputs;for(let l=i;l<s;l++){const d=e.data[l],y=us(t,e,l,n);Vr(y,t),null!==a&&K0(0,l-i,y,d,0,a),ci(d)&&(di(n.index,t)[pn]=us(t,e,l,n))}}(e,t,n,Gr(n,t)),!(64&~n.flags)&&Pg(e,t,n))}function Nd(e,t,n=Gr){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const a=r[s+1],l=-1===a?n(t,e):e[a];e[i++]=l}}}function Ag(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Rd(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function Rd(e,t,n,r,i,s,a,l,d,y,b){const R=Et+r,U=R+i,G=function T0(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:Rt);return n}(R,U),Z="function"==typeof y?y():y;return G[Ne]={type:e,blueprint:G,template:n,queries:null,viewQuery:l,declTNode:t,data:G.slice().fill(null,R),bindingStartIndex:R,expandoStartIndex:U,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 a?a():a,firstChild:null,schemas:d,consts:Z,incompleteFirstPass:!1,ssrId:b}}let Og=()=>null;function Ng(e,t,n,r,i){for(let s in t){if(!t.hasOwnProperty(s))continue;const a=t[s];if(void 0===a)continue;r??={};let l,d=Yr.None;Array.isArray(a)?(l=a[0],d=a[1]):l=a;let y=s;if(null!==i){if(!i.hasOwnProperty(s))continue;y=i[s]}0===e?Rg(r,n,y,l,d):Rg(r,n,y,l)}return r}function Rg(e,t,n,r,i){let s;e.hasOwnProperty(n)?(s=e[n]).push(t,r):s=e[n]=[t,r],void 0!==i&&s.push(i)}function ti(e,t,n,r,i,s,a,l){const d=Gr(t,n);let b,y=t.inputs;!l&&null!=y&&(b=y[r])?(Ld(e,n,b,r,i),Vo(t)&&function k0(e,t){const n=di(t,e);16&n[et]||(n[et]|=64)}(n,t.index)):3&t.type&&(r=function F0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),i=null!=a?a(i,t.value||"",r):i,s.setProperty(d,r,i))}function xd(e,t,n,r){if(Sh()){const i=null===r?null:{"":-1},s=function $0(e,t){const n=e.directiveRegistry;let r=null,i=null;if(n)for(let s=0;s<n.length;s++){const a=n[s];if(B(t,a.selectors,!1))if(r||(r=[]),ci(a))if(null!==a.findHostDirectiveDefs){const l=[];i=i||new Map,a.findHostDirectiveDefs(a,l,i),r.unshift(...l,a),Pd(e,t,l.length)}else r.unshift(a),Pd(e,t,0);else i=i||new Map,a.findHostDirectiveDefs?.(a,r,i),r.push(a)}return null===r?null:[r,i]}(e,n);let a,l;null===s?a=l=null:[a,l]=s,null!==a&&xg(e,t,n,a,i,l),i&&function H0(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 ke(-301,!1);r.push(t[i],s)}}}(n,r,i)}n.mergedAttrs=fo(n.mergedAttrs,n.attrs)}function xg(e,t,n,r,i,s){for(let y=0;y<r.length;y++)$c(nu(n,t),e,r[y].type);!function z0(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}(n,e.data.length,r.length);for(let y=0;y<r.length;y++){const b=r[y];b.providersResolver&&b.providersResolver(b)}let a=!1,l=!1,d=rl(e,t,r.length,null);for(let y=0;y<r.length;y++){const b=r[y];n.mergedAttrs=fo(n.mergedAttrs,b.hostAttrs),W0(e,n,t,d,b),G0(d,b,i),null!==b.contentQueries&&(n.flags|=4),(null!==b.hostBindings||null!==b.hostAttrs||0!==b.hostVars)&&(n.flags|=64);const R=b.type.prototype;!a&&(R.ngOnChanges||R.ngOnInit||R.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),a=!0),!l&&(R.ngOnChanges||R.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}!function P0(e,t,n){const i=t.directiveEnd,s=e.data,a=t.attrs,l=[];let d=null,y=null;for(let b=t.directiveStart;b<i;b++){const R=s[b],U=n?n.get(R):null,Z=U?U.outputs:null;d=Ng(0,R.inputs,b,d,U?U.inputs:null),y=Ng(1,R.outputs,b,y,Z);const ve=null===d||null===a||Ao(t)?null:q0(d,b,a);l.push(ve)}null!==d&&(d.hasOwnProperty("class")&&(t.flags|=8),d.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=l,t.inputs=d,t.outputs=y}(e,n,s)}function Pg(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=n.index,a=function lD(){return _t.lFrame.currentDirectiveIndex}();try{ls(s);for(let l=r;l<i;l++){const d=e.data[l],y=t[l];Rc(l),(null!==d.hostBindings||0!==d.hostVars||null!==d.hostAttrs)&&B0(d,y)}}finally{ls(-1),Rc(a)}}function B0(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Pd(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function G0(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ci(t)&&(n[""]=e)}}function W0(e,t,n,r,i){e.data[r]=i;const s=i.factory||(i.factory=er(i.type)),a=new $a(s,ci(i),Xs);e.blueprint[r]=a,n[r]=a,function V0(e,t,n,r,i){const s=i.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const l=~t.index;(function j0(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(n,r,s)}}(e,t,r,rl(e,n,i.hostVars,Rt),i)}function Zi(e,t,n,r,i,s){const a=Gr(e,t);!function Fd(e,t,n,r,i,s,a){if(null==s)e.removeAttribute(t,i,n);else{const l=null==a?ct(s):a(s,r||"",i);e.setAttribute(t,i,l,n)}}(t[mt],a,s,e.value,n,r,i)}function K0(e,t,n,r,i,s){const a=s[t];if(null!==a)for(let l=0;l<a.length;)Tg(r,n,a[l++],a[l++],a[l++],a[l++])}function q0(e,t,n){let r=null,i=0;for(;i<n.length;){const s=n[i];if(0!==s)if(5!==s){if("number"==typeof s)break;if(e.hasOwnProperty(s)){null===r&&(r=[]);const a=e[s];for(let l=0;l<a.length;l+=3)if(a[l]===t){r.push(s,a[l+1],a[l+2],n[i+1]);break}}i+=2}else i+=2;else i+=4}return r}function Fg(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function kg(e,t){const n=e.contentQueries;if(null!==n){const r=ne(null);try{for(let i=0;i<n.length;i+=2){const a=n[i+1];if(-1!==a){const l=e.data[a];Yl(n[i]),l.contentQueries(2,t[a],a)}}}finally{ne(r)}}}function Au(e,t){return e[ns]?e[Na][tr]=t:e[ns]=t,e[Na]=t,t}function kd(e,t,n){Yl(0);const r=ne(null);try{t(e,n)}finally{ne(r)}}function Lg(e){return e[zn]||(e[zn]=[])}function Vg(e){return e.cleanup||(e.cleanup=[])}function Ou(e,t){const n=e[Yn],r=n?n.get(Do,null):null;r&&r.handleError(t)}function Ld(e,t,n,r,i){for(let s=0;s<n.length;){const a=n[s++],l=n[s++],d=n[s++];Tg(e.data[a],t[a],r,l,d,i)}}function bo(e,t,n){const r=La(t,e);!function ug(e,t,n){e.setValue(t,n)}(e[mt],r,n)}function Q0(e,t){const n=di(t,e),r=n[Ne];!function Y0(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const i=n[Xt];null!==i&&null===n[Qn]&&(n[Qn]=sd(i,n[Yn])),Vd(r,n,n[pn])}function Vd(e,t,n){Fc(t);try{const r=e.viewQuery;null!==r&&kd(1,r,n);const i=e.template;null!==i&&Sg(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[Mi]?.finishViewCreation(e),e.staticContentQueries&&kg(e,t),e.staticViewQueries&&kd(2,e.viewQuery,n);const s=e.components;null!==s&&function Z0(e,t){for(let n=0;n<t.length;n++)Q0(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[et]&=-5,kc()}}function il(e,t,n,r){const i=ne(null);try{const s=t.tView,d=Su(e,s,n,4096&e[et]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);d[is]=e[t.index];const b=e[Mi];return null!==b&&(d[Mi]=b.createEmbeddedView(s)),Vd(s,d,n),d}finally{ne(i)}}function qs(e,t){return!t||null===t.firstChild||au(e)}function ol(e,t,n,r=!0){const i=t[Ne];if(function m0(e,t,n,r){const i=Wn+r,s=n.length;r>0&&(n[i-1][tr]=t),r<s-Wn?(t[tr]=n[i],so(n,Wn+r,t)):(n.push(t),t[tr]=null),t[on]=n;const a=t[is];null!==a&&n!==a&&function v0(e,t){const n=e[Lo];t[Bn]!==t[on][on][Bn]&&(e[et]|=Wl.HasTransplantedViews),null===n?e[Lo]=[t]:n.push(t)}(a,t);const l=t[Mi];null!==l&&l.insertView(e),Sc(t),t[et]|=128}(i,t,e,n),r){const a=Md(n,e),l=t[mt],d=Iu(l,e[ui]);null!==d&&function p0(e,t,n,r,i,s){r[Xt]=i,r[Cn]=t,Tu(e,r,n,1,i,s)}(i,e[Cn],l,t,d,a)}const s=t[Qn];null!==s&&null!==s.firstChild&&(s.firstChild=null)}function sl(e,t,n,r,i=!1){for(;null!==n;){const s=t[n.index];null!==s&&r.push(gn(s)),Tr(s)&&Bg(s,r);const a=n.type;if(8&a)sl(e,t,n.child,r);else if(32&a){const l=_d(n,t);let d;for(;d=l();)r.push(d)}else if(16&a){const l=Cg(t,n);if(Array.isArray(l))r.push(...l);else{const d=as(t[Bn]);sl(d[Ne],d,l,r,!0)}}n=i?n.projectionNext:n.next}return r}function Bg(e,t){for(let n=Wn;n<e.length;n++){const r=e[n],i=r[Ne].firstChild;null!==i&&sl(r[Ne],r,i,t)}e[ui]!==e[Xt]&&t.push(e[ui])}let $g=[];const nw={...oe,consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{ja(e.lView)},consumerOnSignalRead(){this.lView[Po]=this}},Hg=100;function Nu(e,t=!0,n=0){const r=e[kr],i=r.rendererFactory;i.begin?.();try{!function rw(e,t){Ud(e,t);let n=0;for(;Tc(e);){if(n===Hg)throw new ke(103,!1);n++,Ud(e,1)}}(e,n)}catch(a){throw t&&Ou(e,a),a}finally{i.end?.(),r.inlineEffectRunner?.flush()}}function iw(e,t,n,r){const i=t[et];if(!(256&~i))return;t[kr].inlineEffectRunner?.flush(),Fc(t);let a=null,l=null;(function ow(e){return 2!==e.type})(e)&&(l=function J0(e){return e[Po]??function ew(e){const t=$g.pop()??Object.create(nw);return t.lView=e,t}(e)}(t),a=function ht(e){return e&&(e.nextProducerIndex=0),ne(e)}(l));try{Ih(t),function xh(e){return _t.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Sg(e,t,n,2,r);const d=!(3&~i);if(d){const R=e.preOrderCheckHooks;null!==R&&Jl(t,R,null)}else{const R=e.preOrderHooks;null!==R&&eu(t,R,0,null),Lc(t,0)}if(function sw(e){for(let t=Dp(e);null!==t;t=Ep(t)){if(!(t[et]&Wl.HasTransplantedViews))continue;const n=t[Lo];for(let r=0;r<n.length;r++){Q_(n[r])}}}(t),Gg(t,0),null!==e.contentQueries&&kg(e,t),d){const R=e.contentCheckHooks;null!==R&&Jl(t,R)}else{const R=e.contentHooks;null!==R&&eu(t,R,1),Lc(t,1)}!function M0(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)ls(~i);else{const s=i,a=n[++r],l=n[++r];aD(a,s),l(2,t[s])}}}finally{ls(-1)}}(e,t);const y=e.components;null!==y&&Wg(t,y,0);const b=e.viewQuery;if(null!==b&&kd(2,b,r),d){const R=e.viewCheckHooks;null!==R&&Jl(t,R)}else{const R=e.viewHooks;null!==R&&eu(t,R,2),Lc(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[Ps]){for(const R of t[Ps])R();t[Ps]=null}t[et]&=-73}catch(d){throw ja(t),d}finally{null!==l&&(function bt(e,t){if(ne(t),e&&void 0!==e.producerNode&&void 0!==e.producerIndexOfThis&&void 0!==e.producerLastReadVersion){if(Ge(e))for(let n=e.nextProducerIndex;n<e.producerNode.length;n++)qe(e.producerNode[n],e.producerIndexOfThis[n]);for(;e.producerNode.length>e.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(l,a),function tw(e){e.lView[Po]!==e&&(e.lView=null,$g.push(e))}(l)),kc()}}function Gg(e,t){for(let n=Dp(e);null!==n;n=Ep(n))for(let r=Wn;r<n.length;r++)zg(n[r],t)}function aw(e,t,n){zg(di(t,e),n)}function zg(e,t){Mc(e)&&Ud(e,t)}function Ud(e,t){const r=e[Ne],i=e[et],s=e[Po];let a=!!(0===t&&16&i);if(a||=!!(64&i&&0===t),a||=!!(1024&i),a||=!(!s?.dirty||!pt(s)),s&&(s.dirty=!1),e[et]&=-9217,a)iw(r,e,r.template,e[pn]);else if(8192&i){Gg(e,1);const l=r.components;null!==l&&Wg(e,l,1)}}function Wg(e,t,n){for(let r=0;r<t.length;r++)aw(e,t[r],n)}function al(e){for(e[kr].changeDetectionScheduler?.notify();e;){e[et]|=64;const t=as(e);if(Pa(e)&&!t)return e;e=t}return null}class ll{get rootNodes(){const t=this._lView,n=t[Ne];return sl(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[pn]}set context(t){this._lView[pn]=t}get destroyed(){return!(256&~this._lView[et])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[on];if(Tr(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(el(t,r),Di(n,r))}this._attachedToViewContainer=!1}bu(this._lView[Ne],this._lView)}onDestroy(t){Ql(this._lView,t)}markForCheck(){al(this._cdRefInjectingView||this._lView)}detach(){this._lView[et]&=-129}reattach(){Sc(this._lView),this._lView[et]|=128}detectChanges(){this._lView[et]|=1024,Nu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new ke(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,cg(this._lView[Ne],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new ke(902,!1);this._appRef=t,Sc(this._lView)}}let ul=(()=>{class e{static{this.__NG_ELEMENT_ID__=cw}}return e})();const lw=ul,uw=class extends lw{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){const i=il(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new ll(i)}};function cw(){return Ru(dn(),ye())}function Ru(e,t){return 4&e.type?new uw(t,e,Us(e,t)):null}let Zg=()=>null;function Qs(e,t){return Zg(e,t)}class Wd{}class Pw{}class Jg{}class kw{resolveComponentFactory(t){throw function Fw(e){const t=Error(`No component factory found for ${ln(e)}.`);return t.ngComponent=e,t}(t)}}let Lu=(()=>{class e{static{this.NULL=new kw}}return e})();class tm{}let Lw=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function Vw(){const e=ye(),n=di(dn().index,e);return(gr(n)?n:e)[mt]}()}}return e})(),jw=(()=>{class e{static{this.\u0275prov=Dt({token:e,providedIn:"root",factory:()=>null})}}return e})();const Xd={},nm=new Set;function Ji(e){nm.has(e)||(nm.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function rm(...e){}class sr{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Yi(!1),this.onMicrotaskEmpty=new Yi(!1),this.onStable=new Yi(!1),this.onError=new Yi(!1),typeof Zone>"u")throw new ke(908,!1);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 Uw(){const e="function"==typeof ft.requestAnimationFrame;let t=ft[e?"requestAnimationFrame":"setTimeout"],n=ft[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&n){const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function Hw(e){const t=()=>{!function $w(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ft,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,qd(e),e.isCheckStableRunning=!0,Kd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),qd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,a,l)=>{if(function Gw(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(l))return n.invokeTask(i,s,a,l);try{return im(e),n.invokeTask(i,s,a,l)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),om(e)}},onInvoke:(n,r,i,s,a,l,d)=>{try{return im(e),n.invoke(i,s,a,l,d)}finally{e.shouldCoalesceRunChangeDetection&&t(),om(e)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,qd(e),Kd(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 typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!sr.isInAngularZone())throw new ke(909,!1)}static assertNotInAngularZone(){if(sr.isInAngularZone())throw new ke(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,i){const s=this._inner,a=s.scheduleEventTask("NgZoneEvent: "+i,t,Bw,rm,rm);try{return s.runTask(a,n,r)}finally{s.cancelTask(a)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const Bw={};function Kd(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 qd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function im(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function om(e){e._nesting--,Kd(e)}class sm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Yi,this.onMicrotaskEmpty=new Yi,this.onStable=new Yi,this.onError=new Yi}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)}}var ps=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ps||{});const am={destroy(){}};function lm(e,t){!t&&li();const n=t?.injector??S(fi);if(!function xi(e){return"browser"===(e??S(fi)).get(Zc)}(n))return am;Ji("NgAfterNextRender");const r=n.get(pl),i=r.handler??=new cm,s=t?.phase??ps.MixedReadWrite,a=()=>{i.unregister(d),l()},l=n.get(cs).onDestroy(a),d=Hi(n,()=>new um(s,()=>{a(),e()}));return i.register(d),{destroy:a}}class um{constructor(t,n){this.phase=t,this.callbackFn=n,this.zone=S(sr),this.errorHandler=S(Do,{optional:!0}),S(Wd,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(t){this.errorHandler?.handleError(t)}}}class cm{constructor(){this.executingCallbacks=!1,this.buckets={[ps.EarlyRead]:new Set,[ps.Write]:new Set,[ps.MixedReadWrite]:new Set,[ps.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const n of t)n.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let pl=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const n=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of n)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=Dt({token:e,providedIn:"root",factory:()=>new e})}}return e})();function $o(e){return!!Un(e)}function ju(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let a=0;a<t.length;a++){const l=t[a];"number"==typeof l?s=l:1==s?i=An(i,l):2==s&&(r=An(r,l+": "+t[++a]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}class hm extends Lu{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=Nt(t);return new vl(n,this.ngModule)}}function pm(e){const t=[];for(const n in e){if(!e.hasOwnProperty(n))continue;const r=e[n];void 0!==r&&t.push({propName:Array.isArray(r)?r[0]:r,templateName:n})}return t}class Uu{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=A(r);const i=this.injector.get(t,Xd,r);return i!==Xd||n===Xd?i:this.parentInjector.get(t,n,r)}}class vl extends Jg{get inputs(){const t=this.componentDef,n=t.inputTransforms,r=pm(t.inputs);if(null!==n)for(const i of r)n.hasOwnProperty(i.propName)&&(i.transform=n[i.propName]);return r}get outputs(){return pm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Oo(e){return e.map(Zr).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,i){const s=ne(null);try{let a=(i=i||this.ngModule)instanceof Jr?i:i?.injector;a&&null!==this.componentDef.getStandaloneInjector&&(a=this.componentDef.getStandaloneInjector(a)||a);const l=a?new Uu(t,a):t,d=l.get(tm,null);if(null===d)throw new ke(407,!1);const y=l.get(jw,null),U={rendererFactory:d,sanitizer:y,inlineEffectRunner:null,afterRenderEventManager:l.get(pl,null),changeDetectionScheduler:l.get(Wd,null)},G=d.createRenderer(null,this.componentDef),Z=this.componentDef.selectors[0][0]||"div",ve=r?function S0(e,t,n,r){const s=r.get(Vp,!1)||n===wi.ShadowDom,a=e.selectRootElement(t,s);return function A0(e){Og(e)}(a),a}(G,r,this.componentDef.encapsulation,l):wu(G,Z,function qw(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(Z));let Re=512;this.componentDef.signals?Re|=4096:this.componentDef.onPush||(Re|=16);let $e=null;null!==ve&&($e=sd(ve,l,!0));const be=Rd(0,null,null,1,0,null,null,null,null,null,null),vt=Su(null,be,null,Re,null,null,U,G,l,null,$e);let en,mn;Fc(vt);try{const Cr=this.componentDef;let ri,Ea=null;Cr.findHostDirectiveDefs?(ri=[],Ea=new Map,Cr.findHostDirectiveDefs(Cr,ri,Ea),ri.push(Cr)):ri=[Cr];const j_=function Yw(e,t){const n=e[Ne],r=Et;return e[r]=t,Ks(n,r,2,"#host",null)}(vt,ve),dA=function Zw(e,t,n,r,i,s,a){const l=i[Ne];!function Jw(e,t,n,r){for(const i of e)t.mergedAttrs=fo(t.mergedAttrs,i.hostAttrs);null!==t.mergedAttrs&&(ju(t,t.mergedAttrs,!0),null!==n&&wg(r,n,t))}(r,e,t,a);let d=null;null!==t&&(d=sd(t,i[Yn]));const y=s.rendererFactory.createRenderer(t,n);let b=16;n.signals?b=4096:n.onPush&&(b=64);const R=Su(i,Ag(n),null,b,i[e.index],e,s,y,null,null,d);return l.firstCreatePass&&Pd(l,e,r.length-1),Au(i,R),i[e.index]=R}(j_,ve,Cr,ri,vt,U,G);mn=Va(be,Et),ve&&function tb(e,t,n,r){if(r)co(e,n,["ng-version","17.3.12"]);else{const{attrs:i,classes:s}=function Is(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(!m(i))break;i=s}r++}return{attrs:t,classes:n}}(t.selectors[0]);i&&co(e,n,i),s&&s.length>0&&Eg(e,n,s.join(" "))}}(G,Cr,ve,r),void 0!==n&&function nb(e,t,n){const r=e.projection=[];for(let i=0;i<t.length;i++){const s=n[i];r.push(null!=s?Array.from(s):null)}}(mn,this.ngContentSelectors,n),en=function eb(e,t,n,r,i,s){const a=dn(),l=i[Ne],d=Gr(a,i);xg(l,i,a,n,null,r);for(let b=0;b<n.length;b++)Vr(us(i,l,a.directiveStart+b,a),i);Pg(l,i,a),d&&Vr(d,i);const y=us(i,l,a.directiveStart+a.componentOffset,a);if(e[pn]=i[pn]=y,null!==s)for(const b of s)b(y,t);return Ad(l,a,i),y}(dA,Cr,ri,Ea,vt,[rb]),Vd(be,vt,null)}finally{kc()}return new Qw(this.componentType,en,Us(mn,vt),vt,mn)}finally{ne(s)}}}class Qw extends Pw{constructor(t,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.previousInputValues=null,this.instance=n,this.hostView=this.changeDetectorRef=new ll(i,void 0,!1),this.componentType=t}setInput(t,n){const r=this._tNode.inputs;let i;if(null!==r&&(i=r[t])){if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const s=this._rootLView;Ld(s[Ne],s,i,t,n),this.previousInputValues.set(t,n),al(di(this._tNode.index,s))}}get injector(){return new mr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function rb(){const e=dn();Zl(ye()[Ne],e)}let Bu=(()=>{class e{static{this.__NG_ELEMENT_ID__=ib}}return e})();function ib(){return vm(dn(),ye())}const ob=Bu,gm=class extends ob{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Us(this._hostTNode,this._hostLView)}get injector(){return new mr(this._hostTNode,this._hostLView)}get parentInjector(){const t=ru(this._hostTNode,this._hostLView);if(jc(t)){const n=Ga(t,this._hostLView),r=Ha(t);return new mr(n[Ne].data[r+8],n)}return new mr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=mm(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Wn}createEmbeddedView(t,n,r){let i,s;"number"==typeof r?i=r:null!=r&&(i=r.index,s=r.injector);const a=Qs(this._lContainer,t.ssrId),l=t.createEmbeddedViewImpl(n||{},s,a);return this.insertImpl(l,i,qs(this._hostTNode,a)),l}createComponent(t,n,r,i,s){const a=t&&!function Ce(e){return"function"==typeof e}(t);let l;if(a)l=n;else{const Z=n||{};l=Z.index,r=Z.injector,i=Z.projectableNodes,s=Z.environmentInjector||Z.ngModuleRef}const d=a?t:new vl(Nt(t)),y=r||this.parentInjector;if(!s&&null==d.ngModule){const ve=(a?y:this.parentInjector).get(Jr,null);ve&&(s=ve)}const b=Nt(d.componentType??{}),R=Qs(this._lContainer,b?.id??null),G=d.create(y,i,R?.firstChild??null,s);return this.insertImpl(G.hostView,l,qs(this._hostTNode,R)),G}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){const i=t._lView;if(function q_(e){return Tr(e[on])}(i)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const d=i[on],y=new gm(d,d[Cn],d[on]);y.detach(y.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;return ol(a,i,s,r),t.attachToViewContainerRef(),so(Jd(a),s,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=mm(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=el(this._lContainer,n);r&&(Di(Jd(this._lContainer),n),bu(r[Ne],r))}detach(t){const n=this._adjustIndex(t,-1),r=el(this._lContainer,n);return r&&null!=Di(Jd(this._lContainer),n)?new ll(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function mm(e){return e[8]}function Jd(e){return e[8]||(e[8]=[])}function vm(e,t){let n;const r=t[e.index];return Tr(r)?n=r:(n=Fg(r,t,null,e),t[e.index]=n,Au(t,n)),ym(n,t,e,r),new gm(n,e,t)}let ym=function _m(e,t,n,r){if(e[ui])return;let i;i=8&n.type?gn(r):function sb(e,t){const n=e[mt],r=n.createComment(""),i=Gr(t,e);return hs(n,Iu(n,i),r,function D0(e,t){return e.nextSibling(t)}(n,i),!1),r}(t,n),e[ui]=i},ef=()=>!1;class tf{constructor(t){this.queryList=t,this.matches=null}clone(){return new tf(this.queryList)}setDirty(){this.queryList.setDirty()}}class nf{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 a=n.getByIndex(s);i.push(this.queries[a.indexInDeclarationView].clone())}return new nf(i)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}finishViewCreation(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let n=0;n<this.queries.length;n++)null!==uf(t,n).matches&&this.queries[n].setDirty()}}class Dm{constructor(t,n,r=null){this.flags=n,this.read=r,this.predicate="string"==typeof t?function pb(e){return e.split(",").map(t=>t.trim())}(t):t}}class rf{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 rf(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 sf{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 sf(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&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,cb(n,s)),this.matchTNodeWithReadOption(t,n,iu(n,t,s,!1,!1))}else r===ul?4&n.type&&this.matchTNodeWithReadOption(t,n,-1):this.matchTNodeWithReadOption(t,n,iu(n,t,r,!1,!1))}matchTNodeWithReadOption(t,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===za||i===Bu||i===ul&&4&n.type)this.addMatch(n.index,-2);else{const s=iu(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 cb(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 fb(e,t,n,r){return-1===n?function db(e,t){return 11&e.type?Us(e,t):4&e.type?Ru(e,t):null}(t,e):-2===n?function hb(e,t,n){return n===za?Us(t,e):n===ul?Ru(t,e):n===Bu?vm(t,e):void 0}(e,t,r):us(e,e[Ne],n,t)}function Em(e,t,n,r){const i=t[Mi].queries[r];if(null===i.matches){const s=e.data,a=n.matches,l=[];for(let d=0;null!==a&&d<a.length;d+=2){const y=a[d];l.push(y<0?null:fb(t,s[y],a[d+1],n.metadata.read))}i.matches=l}return i.matches}function af(e,t,n,r){const i=e.queries.getByIndex(n),s=i.matches;if(null!==s){const a=Em(e,t,i,n);for(let l=0;l<s.length;l+=2){const d=s[l];if(d>0)r.push(a[l/2]);else{const y=s[l+1],b=t[-d];for(let R=Wn;R<b.length;R++){const U=b[R];U[is]===U[on]&&af(U[Ne],U,y,r)}if(null!==b[Lo]){const R=b[Lo];for(let U=0;U<R.length;U++){const G=R[U];af(G[Ne],G,y,r)}}}}}return r}function wm(e,t,n){const r=new Xc(!(4&~n));return function R0(e,t,n,r){const i=Lg(t);i.push(n),e.firstCreatePass&&Vg(e).push(r,i.length-1)}(e,t,r,r.destroy),(t[Mi]??=new nf).queries.push(new tf(r))-1}function Mm(e,t,n){null===e.queries&&(e.queries=new rf),e.queries.track(new sf(t,n))}function uf(e,t){return e.queries.getByIndex(t)}function Tm(e,t){const n=e[Ne],r=uf(n,t);return r.crossesNgTemplate?af(n,e,t,[]):Em(n,e,r,t)}function Am(e,t){Ji("NgSignals");const n=function ae(e){const t=Object.create(je);t.value=e;const n=()=>(J(t),t.value);return n[ge]=t,n}(e),r=n[ge];return t?.equal&&(r.equal=t.equal),n.set=i=>_e(r,i),n.update=i=>function Me(e,t){ot()||tn(),_e(e,t(e.value))}(r,i),n.asReadonly=Om.bind(n),n}function Om(){const e=this[ge];if(void 0===e.readonlyFn){const t=()=>this();t[ge]=e,e.readonlyFn=t}return e.readonlyFn}function df(e){let t=function $m(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let i;if(ci(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new ke(903,!1);i=t.\u0275dir}if(i){if(n){r.push(i);const a=e;a.inputs=Hu(e.inputs),a.inputTransforms=Hu(e.inputTransforms),a.declaredInputs=Hu(e.declaredInputs),a.outputs=Hu(e.outputs);const l=i.hostBindings;l&&Ab(e,l);const d=i.viewQuery,y=i.contentQueries;if(d&&Tb(e,d),y&&Sb(e,y),Ib(e,i),lr(e.outputs,i.outputs),ci(i)&&i.data.animation){const b=e.data;b.animation=(b.animation||[]).concat(i.data.animation)}}const s=i.features;if(s)for(let a=0;a<s.length;a++){const l=s[a];l&&l.ngInherit&&l(e),l===df&&(n=!1)}}t=Object.getPrototypeOf(t)}!function Mb(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=fo(i.hostAttrs,n=fo(n,i.hostAttrs))}}(r)}function Ib(e,t){for(const n in t.inputs){if(!t.inputs.hasOwnProperty(n)||e.inputs.hasOwnProperty(n))continue;const r=t.inputs[n];if(void 0!==r&&(e.inputs[n]=r,e.declaredInputs[n]=t.declaredInputs[n],null!==t.inputTransforms)){const i=Array.isArray(r)?r[0]:r;if(!t.inputTransforms.hasOwnProperty(i))continue;e.inputTransforms??={},e.inputTransforms[i]=t.inputTransforms[i]}}}function Hu(e){return e===$r?{}:e===$t?[]:e}function Tb(e,t){const n=e.viewQuery;e.viewQuery=n?(r,i)=>{t(r,i),n(r,i)}:t}function Sb(e,t){const n=e.contentQueries;e.contentQueries=n?(r,i,s)=>{t(r,i,s),n(r,i,s)}:t}function Ab(e,t){const n=e.hostBindings;e.hostBindings=n?(r,i)=>{t(r,i),n(r,i)}:t}function Wm(e){const t=e.inputConfig,n={};for(const r in t)if(t.hasOwnProperty(r)){const i=t[r];Array.isArray(i)&&i[3]&&(n[r]=i[3])}e.inputTransforms=n}class gs{}class Xm{}function Fb(e,t){return new ff(e,t??null,[])}class ff extends gs{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new hm(this);const i=Un(t);this._bootstrapComponents=hi(i.bootstrap),this._r3Injector=sp(t,n,[{provide:gs,useValue:this},{provide:Lu,useValue:this.componentFactoryResolver},...r],ln(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class hf extends Xm{constructor(t){super(),this.moduleType=t}create(t){return new ff(this.moduleType,t,[])}}class Km extends gs{constructor(t){super(),this.componentFactoryResolver=new hm(this),this.instance=null;const n=new mo([...t.providers,{provide:gs,useValue:this},{provide:Lu,useValue:this.componentFactoryResolver}],t.parent||go(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function pf(e,t,n=null){return new Km({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let Zs=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Kt.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),n}remove(n){this.pendingTasks.delete(n),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function zu(e){return!!gf(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function gf(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function eo(e,t,n){return e[t]=n}function nr(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ms(e,t,n,r){const i=nr(e,t,n);return nr(e,t+1,r)||i}function Js(e,t,n,r,i,s,a,l){const d=ye(),y=zt(),b=e+Et,R=y.firstCreatePass?function $b(e,t,n,r,i,s,a,l,d){const y=t.consts,b=Ks(t,e,4,a||null,Xi(y,l));xd(t,n,b,Xi(y,d)),Zl(t,b);const R=b.tView=Rd(2,b,r,i,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,y,null);return null!==t.queries&&(t.queries.template(t,b),R.queries=t.queries.embeddedTView(b)),b}(b,y,d,t,n,r,i,s,a):y.data[b];Ki(R,!1);const U=qm(y,d,R,e);Ba()&&Mu(y,d,U,R),Vr(U,d);const G=Fg(U,d,U,R);return d[b]=G,Au(d,G),function Cm(e,t,n){return ef(e,t,n)}(G,R,d),xa(R)&&Od(y,d,R),null!=a&&Nd(d,R,l),Js}let qm=function Qm(e,t,n,r){return qi(!0),t[mt].createComment("")};function If(e,t,n,r){const i=ye();return nr(i,Ri(),t)&&(zt(),Zi(Tn(),i,e,t,n,r)),If}function aa(e,t,n,r){return nr(e,Ri(),n)?t+ct(n)+r:Rt}function la(e,t,n,r,i,s){const l=ms(e,function Co(){return _t.lFrame.bindingIndex}(),n,i);return _o(2),l?t+ct(n)+r+ct(i)+s:Rt}function Zu(e,t){return e<<17|t<<2}function zo(e){return e>>17&32767}function Mf(e){return 2|e}function ys(e){return(131068&e)>>2}function Tf(e,t){return-131069&e|t<<2}function Sf(e){return 1|e}function Tv(e,t,n,r){const i=e[n+1],s=null===t;let a=r?zo(i):ys(i),l=!1;for(;0!==a&&(!1===l||s);){const y=e[a+1];SI(e[a],t)&&(l=!0,e[a+1]=r?Sf(y):Mf(y)),a=r?zo(y):ys(y)}l&&(e[n+1]=r?Mf(i):Sf(i))}function SI(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Fr(e,t)>=0}const vr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Sv(e){return e.substring(vr.key,vr.keyEnd)}function Av(e,t){const n=vr.textEnd;return n===t?-1:(t=vr.keyEnd=function RI(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,vr.key=t,n),ga(e,t,n))}function ga(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Af(e,t,n){const r=ye();return nr(r,Ri(),t)&&ti(zt(),Tn(),r,e,t,r[mt],n,!1),Af}function Of(e,t,n,r,i){const a=i?"class":"style";Ld(e,n,t.inputs[a],a,r)}function Nf(e,t){return function Pi(e,t,n,r){const i=ye(),s=zt(),a=_o(2);s.firstUpdatePass&&kv(s,e,a,r),t!==Rt&&nr(i,a,t)&&Vv(s,s.data[Lr()],i,i[mt],e,i[a+1]=function GI(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ln(Eo(e)))),e}(t,n),r,a)}(e,t,null,!0),Nf}function no(e,t){for(let n=function OI(e){return function Nv(e){vr.key=0,vr.keyEnd=0,vr.value=0,vr.valueEnd=0,vr.textEnd=e.length}(e),Av(e,ga(e,0,vr.textEnd))}(t);n>=0;n=Av(t,n))hr(e,Sv(t),!0)}function Fv(e,t){return t>=e.expandoStartIndex}function kv(e,t,n,r){const i=e.data;if(null===i[n+1]){const s=i[Lr()],a=Fv(e,n);Uv(s,r)&&null===t&&!a&&(t=!1),t=function LI(e,t,n,r){const i=function xc(e){const t=_t.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=bl(n=Rf(null,e,t,n,r),t.attrs,r),s=null);else{const a=t.directiveStylingLast;if(-1===a||e[a]!==i)if(n=Rf(i,e,t,n,r),null===s){let d=function VI(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==ys(r))return e[zo(r)]}(e,t,r);void 0!==d&&Array.isArray(d)&&(d=Rf(null,e,t,d[1],r),d=bl(d,t.attrs,r),function jI(e,t,n,r){e[zo(n?t.classBindings:t.styleBindings)]=r}(e,t,r,d))}else s=function UI(e,t,n){let r;const i=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<i;s++)r=bl(r,e[s].hostAttrs,n);return bl(r,t.attrs,n)}(e,t,r)}return void 0!==s&&(r?t.residualClasses=s:t.residualStyles=s),n}(i,s,t,r),function MI(e,t,n,r,i,s){let a=s?t.classBindings:t.styleBindings,l=zo(a),d=ys(a);e[r]=n;let b,y=!1;if(Array.isArray(n)?(b=n[1],(null===b||Fr(n,b)>0)&&(y=!0)):b=n,i)if(0!==d){const U=zo(e[l+1]);e[r+1]=Zu(U,l),0!==U&&(e[U+1]=Tf(e[U+1],r)),e[l+1]=function bI(e,t){return 131071&e|t<<17}(e[l+1],r)}else e[r+1]=Zu(l,0),0!==l&&(e[l+1]=Tf(e[l+1],r)),l=r;else e[r+1]=Zu(d,0),0===l?l=r:e[d+1]=Tf(e[d+1],r),d=r;y&&(e[r+1]=Mf(e[r+1])),Tv(e,b,r,!0),Tv(e,b,r,!1),function TI(e,t,n,r,i){const s=i?e.residualClasses:e.residualStyles;null!=s&&"string"==typeof t&&Fr(s,t)>=0&&(n[r+1]=Sf(n[r+1]))}(t,b,e,r,s),a=Zu(l,d),s?t.classBindings=a:t.styleBindings=a}(i,s,t,n,a,r)}}function Rf(e,t,n,r,i){let s=null;const a=n.directiveEnd;let l=n.directiveStylingLast;for(-1===l?l=n.directiveStart:l++;l<a&&(s=t[l],r=bl(r,s.hostAttrs,i),s!==e);)l++;return null!==e&&(n.directiveStylingLast=l),r}function bl(e,t,n){const r=n?1:2;let i=-1;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),hr(e,a,!!n||t[++s]))}return void 0===e?null:e}function Vv(e,t,n,r,i,s,a,l){if(!(3&t.type))return;const d=e.data,y=d[l+1],b=function II(e){return!(1&~e)}(y)?jv(d,t,n,i,ys(y),a):void 0;Ju(b)||(Ju(s)||function wI(e){return!(2&~e)}(y)&&(s=jv(d,null,n,i,l,a)),function b0(e,t,n,r,i){if(t)i?e.addClass(n,r):e.removeClass(n,r);else{let s=-1===r.indexOf("-")?void 0:Eu.DashCase;null==i?e.removeStyle(n,r,s):("string"==typeof i&&i.endsWith("!important")&&(i=i.slice(0,-10),s|=Eu.Important),e.setStyle(n,r,i,s))}}(r,a,La(Lr(),n),i,s))}function jv(e,t,n,r,i,s){const a=null===t;let l;for(;i>0;){const d=e[i],y=Array.isArray(d),b=y?d[1]:d,R=null===b;let U=n[i+1];U===Rt&&(U=R?$t:void 0);let G=R?To(U,r):b===r?U:void 0;if(y&&!Ju(G)&&(G=To(d,r)),Ju(G)&&(l=G,a))return l;const Z=e[i+1];i=a?zo(Z):ys(Z)}if(null!==t){let d=s?t.residualClasses:t.residualStyles;null!=d&&(l=To(d,r))}return l}function Ju(e){return void 0!==e}function Uv(e,t){return!!(e.flags&(t?8:16))}function Bv(e,t,n){!function Fi(e,t,n,r){const i=zt(),s=_o(2);i.firstUpdatePass&&kv(i,null,s,r);const a=ye();if(n!==Rt&&nr(a,s,n)){const l=i.data[Lr()];if(Uv(l,r)&&!Fv(i,s)){let d=r?l.classesWithoutHost:l.stylesWithoutHost;null!==d&&(n=An(d,n||"")),Of(i,l,a,n,r)}else!function HI(e,t,n,r,i,s,a,l){i===Rt&&(i=$t);let d=0,y=0,b=0<i.length?i[0]:null,R=0<s.length?s[0]:null;for(;null!==b||null!==R;){const U=d<i.length?i[d+1]:void 0,G=y<s.length?s[y+1]:void 0;let ve,Z=null;b===R?(d+=2,y+=2,U!==G&&(Z=R,ve=G)):null===R||null!==b&&b<R?(d+=2,Z=b):(y+=2,Z=R,ve=G),null!==Z&&Vv(e,t,n,r,Z,ve,a,l),b=d<i.length?i[d]:null,R=y<s.length?s[y]:null}}(i,l,a,a[mt],a[s+1],a[s+1]=function BI(e,t,n){if(null==n||""===n)return $t;const r=[],i=Eo(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)}}(hr,no,aa(ye(),e,t,n),!0)}function zv(e,t,n){Ji("NgControlFlow");const r=ye(),i=Ri(),s=function Ff(e,t){return e[t]}(r,Et+e);if(nr(r,i,t)){const l=ne(null);try{if(function jd(e,t){const n=el(e,t);return void 0!==n&&bu(n[Ne],n),n}(s,0),-1!==t){const d=function kf(e,t){return Va(e,t)}(r[Ne],Et+t),y=Qs(s,d.tView.ssrId);ol(s,il(r,d,n,{dehydratedView:y}),0,qs(d,y))}}finally{ne(l)}}else{const l=function Ug(e,t){const n=Wn+t;if(n<e.length)return e[n]}(s,0);void 0!==l&&(l[pn]=n)}}function ec(e,t,n,r){const i=ye(),s=zt(),a=Et+e,l=i[mt],d=s.firstCreatePass?function dM(e,t,n,r,i,s){const a=t.consts,d=Ks(t,e,2,r,Xi(a,i));return xd(t,n,d,Xi(a,s)),null!==d.attrs&&ju(d,d.attrs,!1),null!==d.mergedAttrs&&ju(d,d.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,d),d}(a,s,i,t,n,r):s.data[a],y=Wv(s,i,d,l,t,e);i[a]=y;const b=xa(d);return Ki(d,!0),wg(l,y,d),!function _l(e){return!(32&~e.flags)}(d)&&Ba()&&Mu(s,i,y,d),0===function Y_(){return _t.lFrame.elementDepthCount}()&&Vr(y,i),function Z_(){_t.lFrame.elementDepthCount++}(),b&&(Od(s,i,d),Ad(s,d,i)),null!==r&&Nd(i,d),ec}function tc(){let e=dn();Oc()?Nc():(e=e.parent,Ki(e,!1));const t=e;(function eD(e){return _t.skipHydrationRootTNode===e})(t)&&function iD(){_t.skipHydrationRootTNode=null}(),function J_(){_t.lFrame.elementDepthCount--}();const n=zt();return n.firstCreatePass&&(Zl(n,e),Xl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function CD(e){return!!(8&e.flags)}(t)&&Of(n,t,ye(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function _D(e){return!!(16&e.flags)}(t)&&Of(n,t,ye(),t.stylesWithoutHost,!1),tc}function Lf(e,t,n,r){return ec(e,t,n,r),tc(),Lf}let Wv=(e,t,n,r,i,s)=>(qi(!0),wu(r,i,function Uh(){return _t.lFrame.currentNamespace}()));function nc(e,t,n){const r=ye(),i=zt(),s=e+Et,a=i.firstCreatePass?function pM(e,t,n,r,i){const s=t.consts,a=Xi(s,r),l=Ks(t,e,8,"ng-container",a);return null!==a&&ju(l,a,!0),xd(t,n,l,Xi(s,i)),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,r,t,n):i.data[s];Ki(a,!0);const l=Kv(i,r,a,e);return r[s]=l,Ba()&&Mu(i,r,l,a),Vr(l,r),xa(a)&&(Od(i,r,a),Ad(i,a,r)),null!=n&&Nd(r,a),nc}function rc(){let e=dn();const t=zt();return Oc()?Nc():(e=e.parent,Ki(e,!1)),t.firstCreatePass&&(Zl(t,e),Xl(e)&&t.queries.elementEnd(e)),rc}let Kv=(e,t,n,r)=>(qi(!0),Ed(t[mt],""));function qv(){return ye()}const Cs=void 0;var yM=["en",[["a","p"],["AM","PM"],Cs],[["AM","PM"],Cs,Cs],[["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"]],Cs,[["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"]],Cs,[["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}",Cs,"{1} 'at' {0}",Cs],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function vM(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let ma={};function Vf(e){const t=function CM(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Jv(t);if(n)return n;const r=t.split("-")[0];if(n=Jv(r),n)return n;if("en"===r)return yM;throw new ke(701,!1)}function Zv(e){return Vf(e)[va.PluralCase]}function Jv(e){return e in ma||(ma[e]=ft.ng&&ft.ng.common&&ft.ng.common.locales&&ft.ng.common.locales[e]),ma[e]}var va=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(va||{});const ya="en-US";let ey=ya;function Bf(e,t,n,r){const i=ye(),s=zt(),a=dn();return function $f(e,t,n,r,i,s,a){const l=xa(r),y=e.firstCreatePass&&Vg(e),b=t[pn],R=Lg(t);let U=!0;if(3&r.type||a){const ve=Gr(r,t),Re=a?a(ve):ve,$e=R.length,be=a?en=>a(gn(en[r.index])):r.index;let vt=null;if(!a&&l&&(vt=function gT(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const a=i[s];if(a===n&&i[s+1]===r){const l=t[zn],d=i[s+2];return l.length>d?l[d]:null}"string"==typeof a&&(s+=2)}return null}(e,t,i,r.index)),null!==vt)(vt.__ngLastListenerFn__||vt).__ngNextListenerFn__=s,vt.__ngLastListenerFn__=s,U=!1;else{s=Sy(r,t,b,s,!1);const en=n.listen(Re,i,s);R.push(s,en),y&&y.push(i,be,$e,$e+1)}}else s=Sy(r,t,b,s,!1);const G=r.outputs;let Z;if(U&&null!==G&&(Z=G[i])){const ve=Z.length;if(ve)for(let Re=0;Re<ve;Re+=2){const mn=t[Z[Re]][Z[Re+1]].subscribe(s),Cr=R.length;R.push(s,mn),y&&y.push(i,r.index,Cr,-(Cr+1))}}}(s,i,i[mt],a,e,t,r),Bf}function Ty(e,t,n,r){const i=ne(null);try{return Wi(6,t,n),!1!==n(r)}catch(s){return Ou(e,s),!1}finally{Wi(7,t,n),ne(i)}}function Sy(e,t,n,r,i){return function s(a){if(a===Function)return r;al(e.componentOffset>-1?di(e.index,t):t);let d=Ty(t,n,r,a),y=s.__ngNextListenerFn__;for(;y;)d=Ty(t,n,y,a)&&d,y=y.__ngNextListenerFn__;return i&&!1===d&&a.preventDefault(),d}}function Ay(e=1){return function cD(e){return(_t.lFrame.contextLView=function Mh(e,t){for(;e>0;)t=t[rs],e--;return t}(e,_t.lFrame.contextLView))[pn]}(e)}function mT(e,t){let n=null;const r=function Ke(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let i=0;i<t.length;i++){const s=t[i];if("*"!==s){if(null===r?B(e,s,!0):ai(r,s))return i}else n=i}return n}function Oy(e){const t=ye()[Bn][Cn];if(!t.projection){const r=t.projection=function Qr(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),i=r.slice();let s=t.child;for(;null!==s;){const a=e?mT(s,e):0;null!==a&&(i[a]?i[a].projectionNext=s:r[a]=s,i[a]=s),s=s.next}}}function Ny(e,t=0,n){const r=ye(),i=zt(),s=Ks(i,Et+e,16,null,n||null);null===s.projection&&(s.projection=t),Nc(),(!r[Qn]||ks())&&32&~s.flags&&function E0(e,t,n){Dg(t[mt],0,t,n,bd(e,n,t),gg(n.parent||t[Cn],n,t))}(i,r,s)}function Gf(e,t,n,r,i,s,a){const l=ye(),d=la(l,t,n,r,i,s);return d!==Rt&&ti(zt(),Tn(),l,e,d,l[mt],a,!1),Gf}function Uy(e,t,n,r){!function Im(e,t,n,r){const i=zt();if(i.firstCreatePass){const s=dn();Mm(i,new Dm(t,n,r),s.index),function gb(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&~n)&&(i.staticContentQueries=!0)}return wm(i,ye(),n)}(e,t,n,r)}function By(e,t,n){!function bm(e,t,n){const r=zt();return r.firstCreatePass&&(Mm(r,new Dm(e,t,n),-1),!(2&~t)&&(r.staticViewQueries=!0)),wm(r,ye(),t)}(e,t,n)}function $y(e){const t=ye(),n=zt(),r=Pc();Yl(r+1);const i=uf(n,r);if(e.dirty&&function K_(e){return!(4&~e[et])}(t)===!(2&~i.metadata.flags)){if(null===i.matches)e.reset([]);else{const s=Tm(t,r);e.reset(s,dp),e.notifyOnChanges()}return!0}return!1}function Hy(){return function lf(e,t){return e[Mi].queries[t].queryList}(ye(),Pc())}function Jy(e,t=""){const n=ye(),r=zt(),i=e+Et,s=r.firstCreatePass?Ks(r,i,1,t,null):r.data[i],a=eC(r,n,s,t,e);n[i]=a,Ba()&&Mu(r,n,a,s),Ki(s,!1)}let eC=(e,t,n,r,i)=>(qi(!0),function Dd(e,t){return e.createText(t)}(t[mt],r));function zf(e){return lc("",e,""),zf}function lc(e,t,n){const r=ye(),i=aa(r,e,t,n);return i!==Rt&&bo(r,Lr(),i),lc}function Wf(e,t,n,r,i){const s=ye(),a=la(s,e,t,n,r,i);return a!==Rt&&bo(s,Lr(),a),Wf}function Xf(e,t,n,r,i){if(e=z(e),Array.isArray(e))for(let s=0;s<e.length;s++)Xf(e[s],t,n,r,i);else{const s=zt(),a=ye(),l=dn();let d=Ni(e)?e:z(e.provide);const y=Ns(e),b=1048575&l.providerIndexes,R=l.directiveStart,U=l.providerIndexes>>20;if(Ni(e)||!e.multi){const G=new $a(y,i,Xs),Z=qf(d,t,i?b:b+U,R);-1===Z?($c(nu(l,a),s,d),Kf(s,e,t.length),t.push(d),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push(G),a.push(G)):(n[Z]=G,a[Z]=G)}else{const G=qf(d,t,b+U,R),Z=qf(d,t,b,b+U),Re=Z>=0&&n[Z];if(i&&!Re||!i&&!(G>=0&&n[G])){$c(nu(l,a),s,d);const $e=function LT(e,t,n,r,i){const s=new $a(e,n,Xs);return s.multi=[],s.index=t,s.componentProviders=0,cC(s,i,r&&!n),s}(i?kT:FT,n.length,i,r,y);!i&&Re&&(n[Z].providerFactory=$e),Kf(s,e,t.length,0),t.push(d),l.directiveStart++,l.directiveEnd++,i&&(l.providerIndexes+=1048576),n.push($e),a.push($e)}else Kf(s,e,G>-1?G:Z,cC(n[i?Z:G],y,!i&&r));!i&&r&&Re&&n[Z].componentProviders++}}}function Kf(e,t,n,r){const i=Ni(t),s=function Aa(e){return!!e.useClass}(t);if(i||s){const d=(s?z(t.useClass):t).prototype.ngOnDestroy;if(d){const y=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){const b=y.indexOf(n);-1===b?y.push(n,[r,d]):y[b+1].push(r,d)}else y.push(n,d)}}}function cC(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function qf(e,t,n,r){for(let i=n;i<r;i++)if(t[i]===e)return i;return-1}function FT(e,t,n,r){return Qf(this.multi,[])}function kT(e,t,n,r){const i=this.multi;let s;if(this.providerFactory){const a=this.providerFactory.componentProviders,l=us(n,n[Ne],this.providerFactory.index,r);s=l.slice(0,a),Qf(i,s);for(let d=a;d<l.length;d++)s.push(l[d])}else s=[],Qf(i,s);return s}function Qf(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function dC(e,t=[]){return n=>{n.providersResolver=(r,i)=>function PT(e,t,n){const r=zt();if(r.firstCreatePass){const i=ci(e);Xf(n,r.data,r.blueprint,i,!0),Xf(t,r.data,r.blueprint,i,!1)}}(r,i?i(e):e,t)}}let VT=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=xo(0,n.type),i=r.length>0?pf([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,i)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=Dt({token:e,providedIn:"environment",factory:()=>new e(ee(Jr))})}}return e})();function fC(e){Ji("NgStandalone"),e.getStandaloneInjector=t=>t.get(VT).getOrCreateStandaloneInjector(e)}function pC(e,t,n,r){return mC(ye(),zr(),e,t,n,r)}function gC(e,t,n,r,i){return vC(ye(),zr(),e,t,n,r,i)}function Nl(e,t){const n=e[t];return n===Rt?void 0:n}function mC(e,t,n,r,i,s){const a=t+n;return nr(e,a,i)?eo(e,a+1,s?r.call(s,i):r(i)):Nl(e,a+1)}function vC(e,t,n,r,i,s,a){const l=t+n;return ms(e,l,i,s)?eo(e,l+2,a?r.call(a,i,s):r(i,s)):Nl(e,l+2)}function DC(e,t){const n=zt();let r;const i=e+Et;n.firstCreatePass?(r=function qT(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??=[]).push(i,r.onDestroy)):r=n.data[i];const s=r.factory||(r.factory=er(r.type)),l=$n(Xs);try{const d=tu(!1),y=s();return tu(d),function _T(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,ye(),i,y),y}finally{$n(l)}}function EC(e,t,n){const r=e+Et,i=ye(),s=Fs(i,r);return Rl(i,r)?mC(i,zr(),t,s.transform,n,s):s.transform(n)}function wC(e,t,n,r){const i=e+Et,s=ye(),a=Fs(s,i);return Rl(s,i)?vC(s,zr(),t,a.transform,n,r,a):a.transform(n,r)}function Rl(e,t){return e[Ne].data[t].pure}class jC{constructor(t){this.full=t;const n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}}let UC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const zC=new ie(""),WC=new ie("");let nh,WS=(()=>{class e{constructor(n,r,i){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,nh||(function XS(e){nh=e}(i),i.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{sr.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1))}}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(a=>a.timeoutId!==s),n()},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}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,i){return[]}static{this.\u0275fac=function(r){return new(r||e)(ee(sr),ee(XC),ee(WC))}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac})}}return e})(),XC=(()=>{class e{constructor(){this._applications=new Map}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 nh?.findTestabilityInTree(this,n,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function rh(e){return!!e&&"function"==typeof e.then}function KC(e){return!!e&&"function"==typeof e.subscribe}const qC=new ie("");let ih=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=S(qC,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const i of this.appInits){const s=i();if(rh(s))n.push(s);else if(KC(s)){const a=new Promise((l,d)=>{s.subscribe({complete:l,error:d})});n.push(a)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const oh=new ie("");function ZC(e,t){return Array.isArray(t)?t.reduce(ZC,e):{...e,...t}}let Wo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=S(lp),this.afterRenderEffectManager=S(pl),this.externalTestViews=new Set,this.beforeRender=new fn.B,this.afterTick=new fn.B,this.componentTypes=[],this.components=[],this.isStable=S(Zs).hasPendingTasks.pipe((0,Ye.T)(n=>!n)),this._injector=S(Jr)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const i=n instanceof Jg;if(!this._injector.get(ih).done)throw!i&&Mr(n),new ke(405,!1);let a;a=i?n:this._injector.get(Lu).resolveComponentFactory(n),this.componentTypes.push(a.componentType);const l=function KS(e){return e.isBoundToModule}(a)?void 0:this._injector.get(gs),y=a.create(fi.NULL,[],r||a.selector,l),b=y.location.nativeElement,R=y.injector.get(zC,null);return R?.registerApplication(b),y.onDestroy(()=>{this.detachView(y.hostView),fc(this.components,y),R?.unregisterApplication(b)}),this._loadComponent(y),y}tick(){this._tick(!0)}_tick(n){if(this._runningTick)throw new ke(101,!1);const r=ne(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(n)}catch(i){this.internalErrorHandler(i)}finally{this.afterTick.next(),this._runningTick=!1,ne(r)}}detectChangesInAttachedViews(n){let r=0;const i=this.afterRenderEffectManager;for(;;){if(r===Hg)throw new ke(103,!1);if(n){const s=0===r;this.beforeRender.next(s);for(let{_lView:a,notifyErrorHandler:l}of this._views)QS(a,s,l)}if(r++,i.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>sh(s))&&(i.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:s})=>sh(s))))break}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;fc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(oh,[]);[...this._bootstrapListeners,...r].forEach(i=>i(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>fc(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new ke(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function fc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function QS(e,t,n){!t&&!sh(e)||function YS(e,t,n){let r;n?(r=0,e[et]|=1024):r=64&e[et]?0:1,Nu(e,t,r)}(e,n,t)}function sh(e){return Tc(e)}class ZS{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let JS=(()=>{class e{compileModuleSync(n){return new hf(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),s=hi(Un(n).declarations).reduce((a,l)=>{const d=Nt(l);return d&&a.push(new vl(d)),a},[]);return new ZS(r,s)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),n1=(()=>{class e{constructor(){this.zone=S(sr),this.applicationRef=S(Wo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function r1(){const e=S(sr),t=S(Do);return n=>e.runOutsideAngular(()=>t.handleError(n))}let s1=(()=>{class e{constructor(){this.subscription=new St.yU,this.initialized=!1,this.zone=S(sr),this.pendingTasks=S(Zs)}initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{sr.assertNotInAngularZone(),queueMicrotask(()=>{null!==n&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{sr.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const pc=new ie("",{providedIn:"root",factory:()=>S(pc,Mt.Optional|Mt.SkipSelf)||function a1(){return typeof $localize<"u"&&$localize.locale||ya}()}),l1=new ie("",{providedIn:"root",factory:()=>"USD"}),ah=new ie("");let n_=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const i=function zw(e="zone.js",t){return"noop"===e?new sm:"zone.js"===e?new sr(t):e}(r?.ngZone,function t_(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return i.run(()=>{const s=function kb(e,t,n){return new ff(e,t,n)}(n.moduleType,this.injector,function e_(e){return[{provide:sr,useFactory:e},{provide:Ei,multi:!0,useFactory:()=>{const t=S(n1,{optional:!0});return()=>t.initialize()}},{provide:Ei,multi:!0,useFactory:()=>{const t=S(s1);return()=>{t.initialize()}}},{provide:lp,useFactory:r1}]}(()=>i)),a=s.injector.get(Do,null);return i.runOutsideAngular(()=>{const l=i.onError.subscribe({next:d=>{a.handleError(d)}});s.onDestroy(()=>{fc(this._modules,s),l.unsubscribe()})}),function YC(e,t,n){try{const r=n();return rh(r)?r.catch(i=>{throw t.runOutsideAngular(()=>e.handleError(i)),i}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(a,i,()=>{const l=s.injector.get(ih);return l.runInitializers(),l.donePromise.then(()=>(function ty(e){"string"==typeof e&&(ey=e.toLowerCase().replace(/_/g,"-"))}(s.injector.get(pc,ya)||ya),this._moduleDoBootstrap(s),s))})})}bootstrapModule(n,r=[]){const i=ZC({},r);return function t1(e,t,n){const r=new hf(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(Wo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new ke(-403,!1);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 ke(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(ah,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(ee(fi))}}static{this.\u0275prov=Dt({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Xo=null;const r_=new ie("");function i_(e,t,n=[]){const r=`Platform: ${t}`,i=new ie(r);return(s=[])=>{let a=lh();if(!a||a.injector.get(r_,!1)){const l=[...n,...s,{provide:i,useValue:!0}];e?e(l):function c1(e){if(Xo&&!Xo.get(r_,!1))throw new ke(400,!1);(function QC(){!function Sn(e){Ht=e}(()=>{throw new ke(600,!1)})})(),Xo=e;const t=e.get(n_);(function s_(e){e.get(Rp,null)?.forEach(n=>n())})(e)}(function o_(e=[],t){return fi.create({name:t,providers:[{provide:Jo,useValue:"platform"},{provide:ah,useValue:new Set([()=>Xo=null])},...e]})}(l,r))}return function d1(e){const t=lh();if(!t)throw new ke(401,!1);return t}()}}function lh(){return Xo?.get(n_)??null}let l_=(()=>{class e{static{this.__NG_ELEMENT_ID__=h1}}return e})();function h1(e){return function p1(e,t,n){if(Vo(e)&&!n){const r=di(e.index,t);return new ll(r,r)}return 47&e.type?new ll(t[Bn],t):null}(dn(),ye(),!(16&~e))}class f_{constructor(){}supports(t){return zu(t)}create(t){return new C1(t)}}const y1=(e,t)=>t;class C1{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||y1}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 a=!r||n&&n.currentIndex<p_(r,i,s)?n:r,l=p_(a,i,s),d=a.currentIndex;if(a===r)i--,r=r._nextRemoved;else if(n=n._next,null==a.previousIndex)i++;else{s||(s=[]);const y=l-i,b=d-i;if(y!=b){for(let U=0;U<y;U++){const G=U<s.length?s[U]:s[U]=0,Z=G+U;b<=Z&&Z<y&&(s[U]=G+1)}s[a.previousIndex]=b-y}}l!==d&&t(a,l,d)}}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=[]),!zu(t))throw new ke(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let i,s,a,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let l=0;l<this.length;l++)s=t[l],a=this._trackByFn(l,s),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,s,a,l)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,a,l),r=!0),n=n._next}else i=0,function Ub(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Symbol.iterator]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,l=>{a=this._trackByFn(i,l),null!==n&&Object.is(n.trackById,a)?(r&&(n=this._verifyReinsertion(n,l,a,i)),Object.is(n.item,l)||this._addIdentityChange(n,l)):(n=this._mismatch(n,l,a,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 _1(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 h_),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 h_),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 _1{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 D1{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 h_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new D1,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 p_(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 g_{constructor(){}supports(t){return t instanceof Map||gf(t)}create(){return new E1}}class E1{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||gf(t)))throw new ke(900,!1)}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,a=i._next;return s&&(s._next=a),a&&(a._prev=s),i._next=null,i._prev=null,i}const r=new w1(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 w1{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 m_(){return new hh([new f_])}let hh=(()=>{class e{static{this.\u0275prov=Dt({token:e,providedIn:"root",factory:m_})}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||m_()),deps:[[e,new jn,new Vn]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new ke(901,!1)}}return e})();function v_(){return new ph([new g_])}let ph=(()=>{class e{static{this.\u0275prov=Dt({token:e,providedIn:"root",factory:v_})}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||v_()),deps:[[e,new jn,new Vn]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new ke(901,!1)}}return e})();const M1=i_(null,"core",[]);let T1=(()=>{class e{constructor(n){}static{this.\u0275fac=function(r){return new(r||e)(ee(Wo))}}static{this.\u0275mod=Ms({type:e})}static{this.\u0275inj=dr({})}}return e})();function nA(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function iA(e){const t=ne(null);try{return e()}finally{ne(t)}}function cA(e){const t=Nt(e);if(!t)return null;const n=new vl(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},9911:(Ze,he,M)=>{M.d(he,{ok:()=>Ko,MJ:()=>It,JD:()=>A,gE:()=>Dr,j4:()=>yn,cz:()=>Ge,kq:()=>Te,BC:()=>Pn,cb:()=>$,xH:()=>un,X1:()=>Ao,wz:()=>Tt,k0:()=>Je,qT:()=>vi,y7:()=>er});var h=M(8284),o=M(2943),K=M(4850),q=M(7787),x=M(4047),ge=M(7412),ne=M(1315),Ee=M(5510),pe=M(7236),ce=M(8746),J=M(2816);let Ae=(()=>{class E{constructor(m,O){this._renderer=m,this._elementRef=O,this.onChange=B=>{},this.onTouched=()=>{}}setProperty(m,O){this._renderer.setProperty(this._elementRef.nativeElement,m,O)}registerOnTouched(m){this.onTouched=m}registerOnChange(m){this.onChange=m}setDisabledState(m){this.setProperty("disabled",m)}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(h.sFG),h.rXU(h.aKT))}}static{this.\u0275dir=h.FsC({type:E})}}return E})(),me=(()=>{class E extends Ae{static{this.\u0275fac=(()=>{let m;return function(B){return(m||(m=h.xGo(E)))(B||E)}})()}static{this.\u0275dir=h.FsC({type:E,features:[h.Vt3]})}}return E})();const Te=new h.nKC(""),ht={provide:Te,useExisting:(0,h.Rfq)(()=>xe),multi:!0},pt=new h.nKC("");let xe=(()=>{class E extends Ae{constructor(m,O,B){super(m,O),this._compositionMode=B,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function bt(){const E=(0,o.QT)()?(0,o.QT)().getUserAgent():"";return/android (\d+)/.test(E.toLowerCase())}())}writeValue(m){this.setProperty("value",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)}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(pt,8))}}static{this.\u0275dir=h.FsC({type:E,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(O,B){1&O&&h.bIt("input",function(gt){return B._handleInput(gt.target.value)})("blur",function(){return B.onTouched()})("compositionstart",function(){return B._compositionStart()})("compositionend",function(gt){return B._compositionEnd(gt.target.value)})},features:[h.Jv_([ht]),h.Vt3]})}}return E})();function Se(E){return null==E||("string"==typeof E||Array.isArray(E))&&0===E.length}function qe(E){return null!=E&&"number"==typeof E.length}const Ge=new h.nKC(""),Fe=new h.nKC(""),Ue=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class Je{static min(w){return function Ie(E){return w=>{if(Se(w.value)||Se(E))return null;const m=parseFloat(w.value);return!isNaN(m)&&m<E?{min:{min:E,actual:w.value}}:null}}(w)}static max(w){return function at(E){return w=>{if(Se(w.value)||Se(E))return null;const m=parseFloat(w.value);return!isNaN(m)&&m>E?{max:{max:E,actual:w.value}}:null}}(w)}static required(w){return function we(E){return Se(E.value)?{required:!0}:null}(w)}static requiredTrue(w){return function He(E){return!0===E.value?null:{required:!0}}(w)}static email(w){return function dt(E){return Se(E.value)||Ue.test(E.value)?null:{email:!0}}(w)}static minLength(w){return function Ht(E){return w=>Se(w.value)||!qe(w.value)?null:w.value.length<E?{minlength:{requiredLength:E,actualLength:w.value.length}}:null}(w)}static maxLength(w){return function tn(E){return w=>qe(w.value)&&w.value.length>E?{maxlength:{requiredLength:E,actualLength:w.value.length}}:null}(w)}static pattern(w){return function Sn(E){if(!E)return te;let w,m;return"string"==typeof E?(m="","^"!==E.charAt(0)&&(m+="^"),m+=E,"$"!==E.charAt(E.length-1)&&(m+="$"),w=new RegExp(m)):(m=E.toString(),w=E),O=>{if(Se(O.value))return null;const B=O.value;return w.test(B)?null:{pattern:{requiredPattern:m,actualValue:B}}}}(w)}static nullValidator(w){return null}static compose(w){return xt(w)}static composeAsync(w){return lt(w)}}function te(E){return null}function ae(E){return null!=E}function le(E){return(0,h.jNT)(E)?(0,K.H)(E):E}function fe(E){let w={};return E.forEach(m=>{w=null!=m?{...w,...m}:w}),0===Object.keys(w).length?null:w}function _e(E,w){return w.map(m=>m(E))}function je(E){return E.map(w=>function Me(E){return!E.validate}(w)?w:m=>w.validate(m))}function xt(E){if(!E)return null;const w=E.filter(ae);return 0==w.length?null:function(m){return fe(_e(m,w))}}function nn(E){return null!=E?xt(je(E)):null}function lt(E){if(!E)return null;const w=E.filter(ae);return 0==w.length?null:function(m){return function oe(...E){const w=(0,ne.ms)(E),{args:m,keys:O}=(0,x.D)(E),B=new q.c(Ke=>{const{length:gt}=m;if(!gt)return void Ke.complete();const Ot=new Array(gt);let ai=gt,Hr=gt;for(let Zr=0;Zr<gt;Zr++){let Oo=!1;(0,ge.Tg)(m[Zr]).subscribe((0,Ee._)(Ke,Is=>{Oo||(Oo=!0,Hr--),Ot[Zr]=Is},()=>ai--,void 0,()=>{(!ai||!Oo)&&(Hr||Ke.next(O?(0,ce.e)(O,Ot):Ot),Ke.complete())}))}});return w?B.pipe((0,pe.I)(w)):B}(_e(m,w).map(le)).pipe((0,J.T)(fe))}}function jt(E){return null!=E?lt(je(E)):null}function sn(E,w){return null===E?[w]:Array.isArray(E)?[...E,w]:[E,w]}function fn(E){return E._rawValidators}function St(E){return E._rawAsyncValidators}function Kt(E){return E?Array.isArray(E)?E:[E]:[]}function Ye(E,w){return Array.isArray(E)?E.includes(w):E===w}function Ut(E,w){const m=Kt(w);return Kt(E).forEach(B=>{Ye(m,B)||m.push(B)}),m}function hn(E,w){return Kt(w).filter(m=>!Ye(E,m))}class ke{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(w){this._rawValidators=w||[],this._composedValidatorFn=nn(this._rawValidators)}_setAsyncValidators(w){this._rawAsyncValidators=w||[],this._composedAsyncValidatorFn=jt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(w){this._onDestroyCallbacks.push(w)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(w=>w()),this._onDestroyCallbacks=[]}reset(w=void 0){this.control&&this.control.reset(w)}hasError(w,m){return!!this.control&&this.control.hasError(w,m)}getError(w,m){return this.control?this.control.getError(w,m):null}}class qt extends ke{get formDirective(){return null}get path(){return null}}class _n extends ke{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class Dn{constructor(w){this._cd=w}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Pn=(()=>{class E extends Dn{constructor(m){super(m)}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(_n,2))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(O,B){2&O&&h.AVh("ng-untouched",B.isUntouched)("ng-touched",B.isTouched)("ng-pristine",B.isPristine)("ng-dirty",B.isDirty)("ng-valid",B.isValid)("ng-invalid",B.isInvalid)("ng-pending",B.isPending)},features:[h.Vt3]})}}return E})(),$=(()=>{class E extends Dn{constructor(m){super(m)}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(qt,10))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(O,B){2&O&&h.AVh("ng-untouched",B.isUntouched)("ng-touched",B.isTouched)("ng-pristine",B.isPristine)("ng-dirty",B.isDirty)("ng-valid",B.isValid)("ng-invalid",B.isInvalid)("ng-pending",B.isPending)("ng-submitted",B.isSubmitted)},features:[h.Vt3]})}}return E})();const z="VALID",Y="INVALID",F="PENDING",H="DISABLED";function De(E){return(rn(E)?E.validators:E)||null}function ut(E,w){return(rn(w)?w.asyncValidators:E)||null}function rn(E){return null!=E&&!Array.isArray(E)&&"object"==typeof E}function En(E,w,m){const O=E.controls;if(!(w?Object.keys(O):O).length)throw new h.wOt(1e3,"");if(!O[m])throw new h.wOt(1001,"")}function cr(E,w,m){E._forEachChild((O,B)=>{if(void 0===m[B])throw new h.wOt(1002,"")})}class kn{constructor(w,m){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(w),this._assignAsyncValidators(m)}get validator(){return this._composedValidatorFn}set validator(w){this._rawValidators=this._composedValidatorFn=w}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(w){this._rawAsyncValidators=this._composedAsyncValidatorFn=w}get parent(){return this._parent}get valid(){return this.status===z}get invalid(){return this.status===Y}get pending(){return this.status==F}get disabled(){return this.status===H}get enabled(){return this.status!==H}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(w){this._assignValidators(w)}setAsyncValidators(w){this._assignAsyncValidators(w)}addValidators(w){this.setValidators(Ut(w,this._rawValidators))}addAsyncValidators(w){this.setAsyncValidators(Ut(w,this._rawAsyncValidators))}removeValidators(w){this.setValidators(hn(w,this._rawValidators))}removeAsyncValidators(w){this.setAsyncValidators(hn(w,this._rawAsyncValidators))}hasValidator(w){return Ye(this._rawValidators,w)}hasAsyncValidator(w){return Ye(this._rawAsyncValidators,w)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(w={}){this.touched=!0,this._parent&&!w.onlySelf&&this._parent.markAsTouched(w)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(w=>w.markAllAsTouched())}markAsUntouched(w={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(m=>{m.markAsUntouched({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}markAsDirty(w={}){this.pristine=!1,this._parent&&!w.onlySelf&&this._parent.markAsDirty(w)}markAsPristine(w={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(m=>{m.markAsPristine({onlySelf:!0})}),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}markAsPending(w={}){this.status=F,!1!==w.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!w.onlySelf&&this._parent.markAsPending(w)}disable(w={}){const m=this._parentMarkedDirty(w.onlySelf);this.status=H,this.errors=null,this._forEachChild(O=>{O.disable({...w,onlySelf:!0})}),this._updateValue(),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...w,skipPristineCheck:m}),this._onDisabledChange.forEach(O=>O(!0))}enable(w={}){const m=this._parentMarkedDirty(w.onlySelf);this.status=z,this._forEachChild(O=>{O.enable({...w,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent}),this._updateAncestors({...w,skipPristineCheck:m}),this._onDisabledChange.forEach(O=>O(!1))}_updateAncestors(w){this._parent&&!w.onlySelf&&(this._parent.updateValueAndValidity(w),w.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(w){this._parent=w}getRawValue(){return this.value}updateValueAndValidity(w={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===z||this.status===F)&&this._runAsyncValidator(w.emitEvent)),!1!==w.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!w.onlySelf&&this._parent.updateValueAndValidity(w)}_updateTreeValidity(w={emitEvent:!0}){this._forEachChild(m=>m._updateTreeValidity(w)),this.updateValueAndValidity({onlySelf:!0,emitEvent:w.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?H:z}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(w){if(this.asyncValidator){this.status=F,this._hasOwnPendingAsyncValidator=!0;const m=le(this.asyncValidator(this));this._asyncValidationSubscription=m.subscribe(O=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(O,{emitEvent:w})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(w,m={}){this.errors=w,this._updateControlsErrors(!1!==m.emitEvent)}get(w){let m=w;return null==m||(Array.isArray(m)||(m=m.split(".")),0===m.length)?null:m.reduce((O,B)=>O&&O._find(B),this)}getError(w,m){const O=m?this.get(m):this;return O&&O.errors?O.errors[w]:null}hasError(w,m){return!!this.getError(w,m)}get root(){let w=this;for(;w._parent;)w=w._parent;return w}_updateControlsErrors(w){this.status=this._calculateStatus(),w&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(w)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?H:this.errors?Y:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F)?F:this._anyControlsHaveStatus(Y)?Y:z}_anyControlsHaveStatus(w){return this._anyControls(m=>m.status===w)}_anyControlsDirty(){return this._anyControls(w=>w.dirty)}_anyControlsTouched(){return this._anyControls(w=>w.touched)}_updatePristine(w={}){this.pristine=!this._anyControlsDirty(),this._parent&&!w.onlySelf&&this._parent._updatePristine(w)}_updateTouched(w={}){this.touched=this._anyControlsTouched(),this._parent&&!w.onlySelf&&this._parent._updateTouched(w)}_registerOnCollectionChange(w){this._onCollectionChange=w}_setUpdateStrategy(w){rn(w)&&null!=w.updateOn&&(this._updateOn=w.updateOn)}_parentMarkedDirty(w){return!w&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(w){return null}_assignValidators(w){this._rawValidators=Array.isArray(w)?w.slice():w,this._composedValidatorFn=function We(E){return Array.isArray(E)?nn(E):E||null}(this._rawValidators)}_assignAsyncValidators(w){this._rawAsyncValidators=Array.isArray(w)?w.slice():w,this._composedAsyncValidatorFn=function Gt(E){return Array.isArray(E)?jt(E):E||null}(this._rawAsyncValidators)}}class Dr extends kn{constructor(w,m,O){super(De(m),ut(O,m)),this.controls=w,this._initObservables(),this._setUpdateStrategy(m),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(w,m){return this.controls[w]?this.controls[w]:(this.controls[w]=m,m.setParent(this),m._registerOnCollectionChange(this._onCollectionChange),m)}addControl(w,m,O={}){this.registerControl(w,m),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}removeControl(w,m={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],this.updateValueAndValidity({emitEvent:m.emitEvent}),this._onCollectionChange()}setControl(w,m,O={}){this.controls[w]&&this.controls[w]._registerOnCollectionChange(()=>{}),delete this.controls[w],m&&this.registerControl(w,m),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}contains(w){return this.controls.hasOwnProperty(w)&&this.controls[w].enabled}setValue(w,m={}){cr(this,0,w),Object.keys(w).forEach(O=>{En(this,!0,O),this.controls[O].setValue(w[O],{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m)}patchValue(w,m={}){null!=w&&(Object.keys(w).forEach(O=>{const B=this.controls[O];B&&B.patchValue(w[O],{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m))}reset(w={},m={}){this._forEachChild((O,B)=>{O.reset(w?w[B]:null,{onlySelf:!0,emitEvent:m.emitEvent})}),this._updatePristine(m),this._updateTouched(m),this.updateValueAndValidity(m)}getRawValue(){return this._reduceChildren({},(w,m,O)=>(w[O]=m.getRawValue(),w))}_syncPendingControls(){let w=this._reduceChildren(!1,(m,O)=>!!O._syncPendingControls()||m);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_forEachChild(w){Object.keys(this.controls).forEach(m=>{const O=this.controls[m];O&&w(O,m)})}_setUpControls(){this._forEachChild(w=>{w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(w){for(const[m,O]of Object.entries(this.controls))if(this.contains(m)&&w(O))return!0;return!1}_reduceValue(){return this._reduceChildren({},(m,O,B)=>((O.enabled||this.disabled)&&(m[B]=O.value),m))}_reduceChildren(w,m){let O=w;return this._forEachChild((B,Ke)=>{O=m(O,B,Ke)}),O}_allControlsDisabled(){for(const w of Object.keys(this.controls))if(this.controls[w].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(w){return this.controls.hasOwnProperty(w)?this.controls[w]:null}}class st extends Dr{}const Er=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>Xr}),Xr="always";function wr(E,w,m=Xr){Sr(E,w),w.valueAccessor.writeValue(E.value),(E.disabled||"always"===m)&&w.valueAccessor.setDisabledState?.(E.disabled),function Rr(E,w){w.valueAccessor.registerOnChange(m=>{E._pendingValue=m,E._pendingChange=!0,E._pendingDirty=!0,"change"===E.updateOn&&br(E,w)})}(E,w),function P(E,w){const m=(O,B)=>{w.valueAccessor.writeValue(O),B&&w.viewToModelUpdate(O)};E.registerOnChange(m),w._registerOnDestroy(()=>{E._unregisterOnChange(m)})}(E,w),function xr(E,w){w.valueAccessor.registerOnTouched(()=>{E._pendingTouched=!0,"blur"===E.updateOn&&E._pendingChange&&br(E,w),"submit"!==E.updateOn&&E.markAsTouched()})}(E,w),function dr(E,w){if(w.valueAccessor.setDisabledState){const m=O=>{w.valueAccessor.setDisabledState(O)};E.registerOnDisabledChange(m),w._registerOnDestroy(()=>{E._unregisterOnDisabledChange(m)})}}(E,w)}function Dt(E,w,m=!0){const O=()=>{};w.valueAccessor&&(w.valueAccessor.registerOnChange(O),w.valueAccessor.registerOnTouched(O)),Ar(E,w),E&&(w._invokeOnDestroyCallbacks(),E._registerOnCollectionChange(()=>{}))}function qr(E,w){E.forEach(m=>{m.registerOnValidatorChange&&m.registerOnValidatorChange(w)})}function Sr(E,w){const m=fn(E);null!==w.validator?E.setValidators(sn(m,w.validator)):"function"==typeof m&&E.setValidators([m]);const O=St(E);null!==w.asyncValidator?E.setAsyncValidators(sn(O,w.asyncValidator)):"function"==typeof O&&E.setAsyncValidators([O]);const B=()=>E.updateValueAndValidity();qr(w._rawValidators,B),qr(w._rawAsyncValidators,B)}function Ar(E,w){let m=!1;if(null!==E){if(null!==w.validator){const B=fn(E);if(Array.isArray(B)&&B.length>0){const Ke=B.filter(gt=>gt!==w.validator);Ke.length!==B.length&&(m=!0,E.setValidators(Ke))}}if(null!==w.asyncValidator){const B=St(E);if(Array.isArray(B)&&B.length>0){const Ke=B.filter(gt=>gt!==w.asyncValidator);Ke.length!==B.length&&(m=!0,E.setAsyncValidators(Ke))}}}const O=()=>{};return qr(w._rawValidators,O),qr(w._rawAsyncValidators,O),m}function br(E,w){E._pendingDirty&&E.markAsDirty(),E.setValue(E._pendingValue,{emitModelToViewChange:!1}),w.viewToModelUpdate(E._pendingValue),E._pendingChange=!1}function Wt(E,w){const m=E.indexOf(w);m>-1&&E.splice(m,1)}function Xn(E){return"object"==typeof E&&null!==E&&2===Object.keys(E).length&&"value"in E&&"disabled"in E}Promise.resolve();const It=class extends kn{constructor(w=null,m,O){super(De(m),ut(O,m)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(w),this._setUpdateStrategy(m),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),rn(m)&&(m.nonNullable||m.initialValueIsDefault)&&(this.defaultValue=Xn(w)?w.value:w)}setValue(w,m={}){this.value=this._pendingValue=w,this._onChange.length&&!1!==m.emitModelToViewChange&&this._onChange.forEach(O=>O(this.value,!1!==m.emitViewToModelChange)),this.updateValueAndValidity(m)}patchValue(w,m={}){this.setValue(w,m)}reset(w=this.defaultValue,m={}){this._applyFormState(w),this.markAsPristine(m),this.markAsUntouched(m),this.setValue(this.value,m),this._pendingChange=!1}_updateValue(){}_anyControls(w){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(w){this._onChange.push(w)}_unregisterOnChange(w){Wt(this._onChange,w)}registerOnDisabledChange(w){this._onDisabledChange.push(w)}_unregisterOnDisabledChange(w){Wt(this._onDisabledChange,w)}_forEachChild(w){}_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(w){Xn(w)?(this.value=this._pendingValue=w.value,w.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=w}};Promise.resolve();let vi=(()=>{class E{static{this.\u0275fac=function(O){return new(O||E)}}static{this.\u0275dir=h.FsC({type:E,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return E})();const jr=new h.nKC(""),Ci={provide:qt,useExisting:(0,h.Rfq)(()=>yn)};let yn=(()=>{class E extends qt{constructor(m,O,B){super(),this.callSetDisabledState=B,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new h.bkB,this._setValidators(m),this._setAsyncValidators(O)}ngOnChanges(m){this._checkFormPresent(),m.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Ar(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(m){const O=this.form.get(m.path);return wr(O,m,this.callSetDisabledState),O.updateValueAndValidity({emitEvent:!1}),this.directives.push(m),O}getControl(m){return this.form.get(m.path)}removeControl(m){Dt(m.control||null,m,!1),function Ln(E,w){const m=E.indexOf(w);m>-1&&E.splice(m,1)}(this.directives,m)}addFormGroup(m){this._setUpFormContainer(m)}removeFormGroup(m){this._cleanUpFormContainer(m)}getFormGroup(m){return this.form.get(m.path)}addFormArray(m){this._setUpFormContainer(m)}removeFormArray(m){this._cleanUpFormContainer(m)}getFormArray(m){return this.form.get(m.path)}updateModel(m,O){this.form.get(m.path).setValue(O)}onSubmit(m){return this.submitted=!0,function vn(E,w){E._syncPendingControls(),w.forEach(m=>{const O=m.control;"submit"===O.updateOn&&O._pendingChange&&(m.viewToModelUpdate(O._pendingValue),O._pendingChange=!1)})}(this.form,this.directives),this.ngSubmit.emit(m),"dialog"===m?.target?.method}onReset(){this.resetForm()}resetForm(m=void 0){this.form.reset(m),this.submitted=!1}_updateDomValue(){this.directives.forEach(m=>{const O=m.control,B=this.form.get(m.path);O!==B&&(Dt(O||null,m),(E=>E instanceof It)(B)&&(wr(B,m,this.callSetDisabledState),m.control=B))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(m){const O=this.form.get(m.path);(function V(E,w){Sr(E,w)})(O,m),O.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(m){if(this.form){const O=this.form.get(m.path);O&&function j(E,w){return Ar(E,w)}(O,m)&&O.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Sr(this.form,this),this._oldForm&&Ar(this._oldForm,this)}_checkFormPresent(){}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(Ge,10),h.rXU(Fe,10),h.rXU(Er,8))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["","formGroup",""]],hostBindings:function(O,B){1&O&&h.bIt("submit",function(gt){return B.onSubmit(gt)})("reset",function(){return B.onReset()})},inputs:{form:[h.Mj6.None,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[h.Jv_([Ci]),h.Vt3,h.OA$]})}}return E})();const S={provide:_n,useExisting:(0,h.Rfq)(()=>A)};let A=(()=>{class E extends _n{set isDisabled(m){}static{this._ngModelWarningSentOnce=!1}constructor(m,O,B,Ke,gt){super(),this._ngModelWarningConfig=gt,this._added=!1,this.name=null,this.update=new h.bkB,this._ngModelWarningSent=!1,this._parent=m,this._setValidators(O),this._setAsyncValidators(B),this.valueAccessor=function Pt(E,w){if(!w)return null;let m,O,B;return Array.isArray(w),w.forEach(Ke=>{Ke.constructor===xe?m=Ke:function Vt(E){return Object.getPrototypeOf(E.constructor)===me}(Ke)?O=Ke:B=Ke}),B||O||m||null}(0,Ke)}ngOnChanges(m){this._added||this._setUpControl(),function it(E,w){if(!E.hasOwnProperty("model"))return!1;const m=E.model;return!!m.isFirstChange()||!Object.is(w,m.currentValue)}(m,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(m){this.viewModel=m,this.update.emit(m)}get path(){return function Kr(E,w){return[...w.path,E]}(null==this.name?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}_setUpControl(){this._checkParentType(),this.control=this.formDirective.addControl(this),this._added=!0}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(qt,13),h.rXU(Ge,10),h.rXU(Fe,10),h.rXU(Te,10),h.rXU(jr,8))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["","formControlName",""]],inputs:{name:[h.Mj6.None,"formControlName","name"],isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"]},outputs:{update:"ngModelChange"},features:[h.Jv_([S]),h.Vt3,h.OA$]})}}return E})();const W={provide:Te,useExisting:(0,h.Rfq)(()=>Tt),multi:!0};function Oe(E,w){return null==E?`${w}`:(w&&"object"==typeof w&&(w="Object"),`${E}: ${w}`.slice(0,50))}let Tt=(()=>{class E extends me{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 B=Oe(this._getOptionId(m),m);this.setProperty("value",B)}registerOnChange(m){this.onChange=O=>{this.value=this._getOptionValue(O),m(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(m){for(const O of this._optionMap.keys())if(this._compareWith(this._optionMap.get(O),m))return O;return null}_getOptionValue(m){const O=function tt(E){return E.split(":")[0]}(m);return this._optionMap.has(O)?this._optionMap.get(O):m}static{this.\u0275fac=(()=>{let m;return function(B){return(m||(m=h.xGo(E)))(B||E)}})()}static{this.\u0275dir=h.FsC({type:E,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(O,B){1&O&&h.bIt("change",function(gt){return B.onChange(gt.target.value)})("blur",function(){return B.onTouched()})},inputs:{compareWith:"compareWith"},features:[h.Jv_([W]),h.Vt3]})}}return E})(),un=(()=>{class E{constructor(m,O,B){this._element=m,this._renderer=O,this._select=B,this._select&&(this.id=this._select._registerOption())}set ngValue(m){null!=this._select&&(this._select._optionMap.set(this.id,m),this._setElementValue(Oe(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))}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(Tt,9))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return E})();const qn={provide:Te,useExisting:(0,h.Rfq)(()=>_i),multi:!0};function Vn(E,w){return null==E?`${w}`:("string"==typeof w&&(w=`'${w}'`),w&&"object"==typeof w&&(w="Object"),`${E}: ${w}`.slice(0,50))}let _i=(()=>{class E extends me{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(m){this._compareWith=m}writeValue(m){let O;if(this.value=m,Array.isArray(m)){const B=m.map(Ke=>this._getOptionId(Ke));O=(Ke,gt)=>{Ke._setSelected(B.indexOf(gt.toString())>-1)}}else O=(B,Ke)=>{B._setSelected(!1)};this._optionMap.forEach(O)}registerOnChange(m){this.onChange=O=>{const B=[],Ke=O.selectedOptions;if(void 0!==Ke){const gt=Ke;for(let Ot=0;Ot<gt.length;Ot++){const Hr=this._getOptionValue(gt[Ot].value);B.push(Hr)}}else{const gt=O.options;for(let Ot=0;Ot<gt.length;Ot++){const ai=gt[Ot];if(ai.selected){const Hr=this._getOptionValue(ai.value);B.push(Hr)}}}this.value=B,m(B)}}_registerOption(m){const O=(this._idCounter++).toString();return this._optionMap.set(O,m),O}_getOptionId(m){for(const O of this._optionMap.keys())if(this._compareWith(this._optionMap.get(O)._value,m))return O;return null}_getOptionValue(m){const O=function Nn(E){return E.split(":")[0]}(m);return this._optionMap.has(O)?this._optionMap.get(O)._value:m}static{this.\u0275fac=(()=>{let m;return function(B){return(m||(m=h.xGo(E)))(B||E)}})()}static{this.\u0275dir=h.FsC({type:E,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(O,B){1&O&&h.bIt("change",function(gt){return B.onChange(gt.target)})("blur",function(){return B.onTouched()})},inputs:{compareWith:"compareWith"},features:[h.Jv_([qn]),h.Vt3]})}}return E})(),er=(()=>{class E{constructor(m,O,B){this._element=m,this._renderer=O,this._select=B,this._select&&(this.id=this._select._registerOption(this))}set ngValue(m){null!=this._select&&(this._value=m,this._setElementValue(Vn(this.id,m)),this._select.writeValue(this._select.value))}set value(m){this._select?(this._value=m,this._setElementValue(Vn(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))}static{this.\u0275fac=function(O){return new(O||E)(h.rXU(h.aKT),h.rXU(h.sFG),h.rXU(_i,9))}}static{this.\u0275dir=h.FsC({type:E,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}})}}return E})(),wi=(()=>{class E{static{this.\u0275fac=function(O){return new(O||E)}}static{this.\u0275mod=h.$C({type:E})}static{this.\u0275inj=h.G2t({})}}return E})();class Yr extends kn{constructor(w,m,O){super(De(m),ut(O,m)),this.controls=w,this._initObservables(),this._setUpdateStrategy(m),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(w){return this.controls[this._adjustIndex(w)]}push(w,m={}){this.controls.push(w),this._registerControl(w),this.updateValueAndValidity({emitEvent:m.emitEvent}),this._onCollectionChange()}insert(w,m,O={}){this.controls.splice(w,0,m),this._registerControl(m),this.updateValueAndValidity({emitEvent:O.emitEvent})}removeAt(w,m={}){let O=this._adjustIndex(w);O<0&&(O=0),this.controls[O]&&this.controls[O]._registerOnCollectionChange(()=>{}),this.controls.splice(O,1),this.updateValueAndValidity({emitEvent:m.emitEvent})}setControl(w,m,O={}){let B=this._adjustIndex(w);B<0&&(B=0),this.controls[B]&&this.controls[B]._registerOnCollectionChange(()=>{}),this.controls.splice(B,1),m&&(this.controls.splice(B,0,m),this._registerControl(m)),this.updateValueAndValidity({emitEvent:O.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(w,m={}){cr(this,0,w),w.forEach((O,B)=>{En(this,!1,B),this.at(B).setValue(O,{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m)}patchValue(w,m={}){null!=w&&(w.forEach((O,B)=>{this.at(B)&&this.at(B).patchValue(O,{onlySelf:!0,emitEvent:m.emitEvent})}),this.updateValueAndValidity(m))}reset(w=[],m={}){this._forEachChild((O,B)=>{O.reset(w[B],{onlySelf:!0,emitEvent:m.emitEvent})}),this._updatePristine(m),this._updateTouched(m),this.updateValueAndValidity(m)}getRawValue(){return this.controls.map(w=>w.getRawValue())}clear(w={}){this.controls.length<1||(this._forEachChild(m=>m._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:w.emitEvent}))}_adjustIndex(w){return w<0?w+this.length:w}_syncPendingControls(){let w=this.controls.reduce((m,O)=>!!O._syncPendingControls()||m,!1);return w&&this.updateValueAndValidity({onlySelf:!0}),w}_forEachChild(w){this.controls.forEach((m,O)=>{w(m,O)})}_updateValue(){this.value=this.controls.filter(w=>w.enabled||this.disabled).map(w=>w.value)}_anyControls(w){return this.controls.some(m=>m.enabled&&w(m))}_setUpControls(){this._forEachChild(w=>this._registerControl(w))}_allControlsDisabled(){for(const w of this.controls)if(w.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(w){w.setParent(this),w._registerOnCollectionChange(this._onCollectionChange)}_find(w){return this.at(w)??null}}function bi(E){return!!E&&(void 0!==E.asyncValidators||void 0!==E.validators||void 0!==E.updateOn)}let Ko=(()=>{class E{constructor(){this.useNonNullable=!1}get nonNullable(){const m=new E;return m.useNonNullable=!0,m}group(m,O=null){const B=this._reduceControls(m);let Ke={};return bi(O)?Ke=O:null!==O&&(Ke.validators=O.validator,Ke.asyncValidators=O.asyncValidator),new Dr(B,Ke)}record(m,O=null){const B=this._reduceControls(m);return new st(B,O)}control(m,O,B){let Ke={};return this.useNonNullable?(bi(O)?Ke=O:(Ke.validators=O,Ke.asyncValidators=B),new It(m,{...Ke,nonNullable:!0})):new It(m,O,B)}array(m,O,B){const Ke=m.map(gt=>this._createControl(gt));return new Yr(Ke,O,B)}_reduceControls(m){const O={};return Object.keys(m).forEach(B=>{O[B]=this._createControl(m[B])}),O}_createControl(m){return m instanceof It||m instanceof kn?m:Array.isArray(m)?this.control(m[0],m.length>1?m[1]:null,m.length>2?m[2]:null):this.control(m)}static{this.\u0275fac=function(O){return new(O||E)}}static{this.\u0275prov=h.jDH({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})(),Ao=(()=>{class E{static withConfig(m){return{ngModule:E,providers:[{provide:jr,useValue:m.warnOnNgModelWithFormControl??"always"},{provide:Er,useValue:m.callSetDisabledState??Xr}]}}static{this.\u0275fac=function(O){return new(O||E)}}static{this.\u0275mod=h.$C({type:E})}static{this.\u0275inj=h.G2t({imports:[wi]})}}return E})()},7711:(Ze,he,M)=>{M.d(he,{Bb:()=>Kt,hE:()=>hn,sG:()=>jt,up:()=>Fn});var h=M(8284),o=M(2943);class K extends o.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class q extends K{static makeCurrent(){(0,o.ZD)(new q)}onAndCancel(Y,F,H){return Y.addEventListener(F,H),()=>{Y.removeEventListener(F,H)}}dispatchEvent(Y,F){Y.dispatchEvent(F)}remove(Y){Y.parentNode&&Y.parentNode.removeChild(Y)}createElement(Y,F){return(F=F||this.getDefaultDocument()).createElement(Y)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Y){return Y.nodeType===Node.ELEMENT_NODE}isShadowRoot(Y){return Y instanceof DocumentFragment}getGlobalEventTarget(Y,F){return"window"===F?window:"document"===F?Y:"body"===F?Y.body:null}getBaseHref(Y){const F=function ge(){return x=x||document.querySelector("base"),x?x.getAttribute("href"):null}();return null==F?null:function ne(z){return new URL(z,document.baseURI).pathname}(F)}resetBaseElement(){x=null}getUserAgent(){return window.navigator.userAgent}getCookie(Y){return(0,o._b)(document.cookie,Y)}}let x=null,pe=(()=>{class z{build(){return new XMLHttpRequest}static{this.\u0275fac=function(H){return new(H||z)}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();const ce=new h.nKC("");let oe=(()=>{class z{constructor(F,H){this._zone=H,this._eventNameToPlugin=new Map,F.forEach(De=>{De.manager=this}),this._plugins=F.slice().reverse()}addEventListener(F,H,De){return this._findPluginFor(H).addEventListener(F,H,De)}getZone(){return this._zone}_findPluginFor(F){let H=this._eventNameToPlugin.get(F);if(H)return H;if(H=this._plugins.find(We=>We.supports(F)),!H)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(F,H),H}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(ce),h.KVO(h.SKi))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();class J{constructor(Y){this._doc=Y}}const Ae="ng-app-id";let me=(()=>{class z{constructor(F,H,De,We={}){this.doc=F,this.appId=H,this.nonce=De,this.platformId=We,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,o.Vy)(We),this.resetHostNodes()}addStyles(F){for(const H of F)1===this.changeUsageCount(H,1)&&this.onStyleAdded(H)}removeStyles(F){for(const H of F)this.changeUsageCount(H,-1)<=0&&this.onStyleRemoved(H)}ngOnDestroy(){const F=this.styleNodesInDOM;F&&(F.forEach(H=>H.remove()),F.clear());for(const H of this.getAllStyles())this.onStyleRemoved(H);this.resetHostNodes()}addHost(F){this.hostNodes.add(F);for(const H of this.getAllStyles())this.addStyleToHost(F,H)}removeHost(F){this.hostNodes.delete(F)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(F){for(const H of this.hostNodes)this.addStyleToHost(H,F)}onStyleRemoved(F){const H=this.styleRef;H.get(F)?.elements?.forEach(De=>De.remove()),H.delete(F)}collectServerRenderedStyles(){const F=this.doc.head?.querySelectorAll(`style[${Ae}="${this.appId}"]`);if(F?.length){const H=new Map;return F.forEach(De=>{null!=De.textContent&&H.set(De.textContent,De)}),H}return null}changeUsageCount(F,H){const De=this.styleRef;if(De.has(F)){const We=De.get(F);return We.usage+=H,We.usage}return De.set(F,{usage:H,elements:[]}),H}getStyleElement(F,H){const De=this.styleNodesInDOM,We=De?.get(H);if(We?.parentNode===F)return De.delete(H),We.removeAttribute(Ae),We;{const ut=this.doc.createElement("style");return this.nonce&&ut.setAttribute("nonce",this.nonce),ut.textContent=H,this.platformIsServer&&ut.setAttribute(Ae,this.appId),F.appendChild(ut),ut}}addStyleToHost(F,H){const De=this.getStyleElement(F,H),We=this.styleRef,ut=We.get(H)?.elements;ut?ut.push(De):We.set(H,{elements:[De],usage:1})}resetHostNodes(){const F=this.hostNodes;F.clear(),F.add(this.doc.head)}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(o.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();const Te={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/"},ot=/%COMP%/g,xe=new h.nKC("",{providedIn:"root",factory:()=>!0});function Ge(z,Y){return Y.map(F=>F.replace(ot,z))}let Fe=(()=>{class z{constructor(F,H,De,We,ut,Gt,rn,En=null){this.eventManager=F,this.sharedStylesHost=H,this.appId=De,this.removeStylesOnCompDestroy=We,this.doc=ut,this.platformId=Gt,this.ngZone=rn,this.nonce=En,this.rendererByCompId=new Map,this.platformIsServer=(0,o.Vy)(Gt),this.defaultRenderer=new Ue(F,ut,rn,this.platformIsServer)}createRenderer(F,H){if(!F||!H)return this.defaultRenderer;this.platformIsServer&&H.encapsulation===h.gXe.ShadowDom&&(H={...H,encapsulation:h.gXe.Emulated});const De=this.getOrCreateRenderer(F,H);return De instanceof dt?De.applyToHost(F):De instanceof He&&De.applyStyles(),De}getOrCreateRenderer(F,H){const De=this.rendererByCompId;let We=De.get(H.id);if(!We){const ut=this.doc,Gt=this.ngZone,rn=this.eventManager,En=this.sharedStylesHost,cr=this.removeStylesOnCompDestroy,kn=this.platformIsServer;switch(H.encapsulation){case h.gXe.Emulated:We=new dt(rn,En,H,this.appId,cr,ut,Gt,kn);break;case h.gXe.ShadowDom:return new we(rn,En,F,H,ut,Gt,this.nonce,kn);default:We=new He(rn,En,H,cr,ut,Gt,kn)}De.set(H.id,We)}return We}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(oe),h.KVO(me),h.KVO(h.sZ2),h.KVO(xe),h.KVO(o.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();class Ue{constructor(Y,F,H,De){this.eventManager=Y,this.doc=F,this.ngZone=H,this.platformIsServer=De,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(Y,F){return F?this.doc.createElementNS(Te[F]||F,Y):this.doc.createElement(Y)}createComment(Y){return this.doc.createComment(Y)}createText(Y){return this.doc.createTextNode(Y)}appendChild(Y,F){(at(Y)?Y.content:Y).appendChild(F)}insertBefore(Y,F,H){Y&&(at(Y)?Y.content:Y).insertBefore(F,H)}removeChild(Y,F){Y&&Y.removeChild(F)}selectRootElement(Y,F){let H="string"==typeof Y?this.doc.querySelector(Y):Y;if(!H)throw new h.wOt(-5104,!1);return F||(H.textContent=""),H}parentNode(Y){return Y.parentNode}nextSibling(Y){return Y.nextSibling}setAttribute(Y,F,H,De){if(De){F=De+":"+F;const We=Te[De];We?Y.setAttributeNS(We,F,H):Y.setAttribute(F,H)}else Y.setAttribute(F,H)}removeAttribute(Y,F,H){if(H){const De=Te[H];De?Y.removeAttributeNS(De,F):Y.removeAttribute(`${H}:${F}`)}else Y.removeAttribute(F)}addClass(Y,F){Y.classList.add(F)}removeClass(Y,F){Y.classList.remove(F)}setStyle(Y,F,H,De){De&(h.czy.DashCase|h.czy.Important)?Y.style.setProperty(F,H,De&h.czy.Important?"important":""):Y.style[F]=H}removeStyle(Y,F,H){H&h.czy.DashCase?Y.style.removeProperty(F):Y.style[F]=""}setProperty(Y,F,H){null!=Y&&(Y[F]=H)}setValue(Y,F){Y.nodeValue=F}listen(Y,F,H){if("string"==typeof Y&&!(Y=(0,o.QT)().getGlobalEventTarget(this.doc,Y)))throw new Error(`Unsupported event target ${Y} for event ${F}`);return this.eventManager.addEventListener(Y,F,this.decoratePreventDefault(H))}decoratePreventDefault(Y){return F=>{if("__ngUnwrap__"===F)return Y;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>Y(F)):Y(F))&&F.preventDefault()}}}function at(z){return"TEMPLATE"===z.tagName&&void 0!==z.content}class we extends Ue{constructor(Y,F,H,De,We,ut,Gt,rn){super(Y,We,ut,rn),this.sharedStylesHost=F,this.hostEl=H,this.shadowRoot=H.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const En=Ge(De.id,De.styles);for(const cr of En){const kn=document.createElement("style");Gt&&kn.setAttribute("nonce",Gt),kn.textContent=cr,this.shadowRoot.appendChild(kn)}}nodeOrShadowRoot(Y){return Y===this.hostEl?this.shadowRoot:Y}appendChild(Y,F){return super.appendChild(this.nodeOrShadowRoot(Y),F)}insertBefore(Y,F,H){return super.insertBefore(this.nodeOrShadowRoot(Y),F,H)}removeChild(Y,F){return super.removeChild(this.nodeOrShadowRoot(Y),F)}parentNode(Y){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(Y)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class He extends Ue{constructor(Y,F,H,De,We,ut,Gt,rn){super(Y,We,ut,Gt),this.sharedStylesHost=F,this.removeStylesOnCompDestroy=De,this.styles=rn?Ge(rn,H.styles):H.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class dt extends He{constructor(Y,F,H,De,We,ut,Gt,rn){const En=De+"-"+H.id;super(Y,F,H,We,ut,Gt,rn,En),this.contentAttr=function Se(z){return"_ngcontent-%COMP%".replace(ot,z)}(En),this.hostAttr=function qe(z){return"_nghost-%COMP%".replace(ot,z)}(En)}applyToHost(Y){this.applyStyles(),this.setAttribute(Y,this.hostAttr,"")}createElement(Y,F){const H=super.createElement(Y,F);return super.setAttribute(H,this.contentAttr,""),H}}let Ht=(()=>{class z extends J{constructor(F){super(F)}supports(F){return!0}addEventListener(F,H,De){return F.addEventListener(H,De,!1),()=>this.removeEventListener(F,H,De)}removeEventListener(F,H,De){return F.removeEventListener(H,De)}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(o.qQ))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();const tn=["alt","control","meta","shift"],Sn={"\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"},te={alt:z=>z.altKey,control:z=>z.ctrlKey,meta:z=>z.metaKey,shift:z=>z.shiftKey};let ae=(()=>{class z extends J{constructor(F){super(F)}supports(F){return null!=z.parseEventName(F)}addEventListener(F,H,De){const We=z.parseEventName(H),ut=z.eventCallback(We.fullKey,De,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,o.QT)().onAndCancel(F,We.domEventName,ut))}static parseEventName(F){const H=F.toLowerCase().split("."),De=H.shift();if(0===H.length||"keydown"!==De&&"keyup"!==De)return null;const We=z._normalizeKey(H.pop());let ut="",Gt=H.indexOf("code");if(Gt>-1&&(H.splice(Gt,1),ut="code."),tn.forEach(En=>{const cr=H.indexOf(En);cr>-1&&(H.splice(cr,1),ut+=En+".")}),ut+=We,0!=H.length||0===We.length)return null;const rn={};return rn.domEventName=De,rn.fullKey=ut,rn}static matchEventFullKeyCode(F,H){let De=Sn[F.key]||F.key,We="";return H.indexOf("code.")>-1&&(De=F.code,We="code."),!(null==De||!De)&&(De=De.toLowerCase()," "===De?De="space":"."===De&&(De="dot"),tn.forEach(ut=>{ut!==De&&(0,te[ut])(F)&&(We+=ut+".")}),We+=De,We===H)}static eventCallback(F,H,De){return We=>{z.matchEventFullKeyCode(We,F)&&De.runGuarded(()=>H(We))}}static _normalizeKey(F){return"esc"===F?"escape":F}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(o.qQ))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac})}}return z})();const jt=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:o.AJ},{provide:h.PLl,useValue:function je(){q.makeCurrent()},multi:!0},{provide:o.qQ,useFactory:function nn(){return(0,h.TL$)(document),document},deps:[]}]),sn=new h.nKC(""),fn=[{provide:h.e01,useClass:class Ee{addToWindow(Y){h.JZv.getAngularTestability=(H,De=!0)=>{const We=Y.findTestabilityInTree(H,De);if(null==We)throw new h.wOt(5103,!1);return We},h.JZv.getAllAngularTestabilities=()=>Y.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>Y.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(H=>{const De=h.JZv.getAllAngularTestabilities();let We=De.length;const ut=function(){We--,0==We&&H()};De.forEach(Gt=>{Gt.whenStable(ut)})})}findTestabilityInTree(Y,F,H){return null==F?null:Y.getTestability(F)??(H?(0,o.QT)().isShadowRoot(F)?this.findTestabilityInTree(Y,F.host,!0):this.findTestabilityInTree(Y,F.parentElement,!0):null)}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],St=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function xt(){return new h.zcH},deps:[]},{provide:ce,useClass:Ht,multi:!0,deps:[o.qQ,h.SKi,h.Agw]},{provide:ce,useClass:ae,multi:!0,deps:[o.qQ]},Fe,me,oe,{provide:h._9s,useExisting:Fe},{provide:o.N0,useClass:pe,deps:[]},[]];let Kt=(()=>{class z{constructor(F){}static withServerTransition(F){return{ngModule:z,providers:[{provide:h.sZ2,useValue:F.appId}]}}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(sn,12))}}static{this.\u0275mod=h.$C({type:z})}static{this.\u0275inj=h.G2t({providers:[...St,...fn],imports:[o.MD,h.Hbi]})}}return z})(),hn=(()=>{class z{constructor(F){this._doc=F}getTitle(){return this._doc.title}setTitle(F){this._doc.title=F||""}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(o.qQ))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})(),Fn=(()=>{class z{static{this.\u0275fac=function(H){return new(H||z)}}static{this.\u0275prov=h.jDH({token:z,factory:function(H){let De=null;return De=H?new(H||z):h.KVO(ft),De},providedIn:"root"})}}return z})(),ft=(()=>{class z extends Fn{constructor(F){super(),this._doc=F}sanitize(F,H){if(null==H)return null;switch(F){case h.WPN.NONE:return H;case h.WPN.HTML:return(0,h.ZF7)(H,"HTML")?(0,h.rcV)(H):(0,h.h9k)(this._doc,String(H)).toString();case h.WPN.STYLE:return(0,h.ZF7)(H,"Style")?(0,h.rcV)(H):H;case h.WPN.SCRIPT:if((0,h.ZF7)(H,"Script"))return(0,h.rcV)(H);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(H,"URL")?(0,h.rcV)(H):(0,h.$MX)(String(H));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(H,"ResourceURL"))return(0,h.rcV)(H);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(F){return(0,h.Kcf)(F)}bypassSecurityTrustStyle(F){return(0,h.cWb)(F)}bypassSecurityTrustScript(F){return(0,h.UyX)(F)}bypassSecurityTrustUrl(F){return(0,h.osQ)(F)}bypassSecurityTrustResourceUrl(F){return(0,h.e5t)(F)}static{this.\u0275fac=function(H){return new(H||z)(h.KVO(o.qQ))}}static{this.\u0275prov=h.jDH({token:z,factory:z.\u0275fac,providedIn:"root"})}}return z})()},3123:(Ze,he,M)=>{M.d(he,{nX:()=>C,wF:()=>It,Ix:()=>zn,Wk:()=>kr,wQ:()=>mt,iI:()=>ql,n3:()=>Vn});var h=M(7431),o=M(8284),K=M(7624),q=M(4850),x=M(1467),ge=M(2410),ne=M(4782),Ee=M(4392),pe=M(3575),ce=M(3867);function oe(u=1/0){return(0,pe.Z)(ce.D,u)}var Ae=M(1315);function me(...u){return function J(){return oe(1)}()((0,q.H)(u,(0,Ae.lI)(u)))}var Te=M(6852),ot=M(9493),nt=M(7787),ht=M(2097);function bt(u,p){const c=(0,ht.T)(u)?u:()=>u,g=_=>_.error(c());return new nt.c(p?_=>p.schedule(g,0,_):g)}const pt=new nt.c(u=>u.complete());var qe=M(7233),Ge=M(1524),Fe=M(5510);function Ue(){return(0,Ge.N)((u,p)=>{let c=null;u._refCount++;const g=(0,Fe._)(p,void 0,void 0,void 0,()=>{if(!u||u._refCount<=0||0<--u._refCount)return void(c=null);const _=u._connection,T=c;c=null,_&&(!T||_===T)&&_.unsubscribe(),p.unsubscribe()});u.subscribe(g),g.closed||(c=u.connect())})}class Je extends nt.c{constructor(p,c){super(),this.source=p,this.subjectFactory=c,this._subject=null,this._refCount=0,this._connection=null,(0,Ge.S)(p)&&(this.lift=p.lift)}_subscribe(p){return this.getSubject().subscribe(p)}getSubject(){const p=this._subject;return(!p||p.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:p}=this;this._subject=this._connection=null,p?.unsubscribe()}connect(){let p=this._connection;if(!p){p=this._connection=new qe.yU;const c=this.getSubject();p.add(this.source.subscribe((0,Fe._)(c,void 0,()=>{this._teardown(),c.complete()},g=>{this._teardown(),c.error(g)},()=>this._teardown()))),p.closed&&(this._connection=null,p=qe.yU.EMPTY)}return p}refCount(){return Ue()(this)}}var Ie=M(1087),at=M(2943),we=M(2816),He=M(8128);function dt(u){return u<=0?()=>pt:(0,Ge.N)((p,c)=>{let g=0;p.subscribe((0,Fe._)(c,_=>{++g<=u&&(c.next(_),u<=g&&c.complete())}))})}var tn=M(4534);function Sn(u){return(0,Ge.N)((p,c)=>{let g=!1;p.subscribe((0,Fe._)(c,_=>{g=!0,c.next(_)},()=>{g||c.next(u),c.complete()}))})}function te(u=ae){return(0,Ge.N)((p,c)=>{let g=!1;p.subscribe((0,Fe._)(c,_=>{g=!0,c.next(_)},()=>g?c.complete():c.error(u())))})}function ae(){return new Ee.G}function le(u,p){const c=arguments.length>=2;return g=>g.pipe(u?(0,tn.p)((_,T)=>u(_,T,g)):ce.D,dt(1),c?Sn(p):te(()=>new Ee.G))}var fe=M(6944);function _e(u,p,c){const g=(0,ht.T)(u)||p||c?{next:u,error:p,complete:c}:u;return g?(0,Ge.N)((_,T)=>{var L;null===(L=g.subscribe)||void 0===L||L.call(g);let re=!0;_.subscribe((0,Fe._)(T,Q=>{var Ve;null===(Ve=g.next)||void 0===Ve||Ve.call(g,Q),T.next(Q)},()=>{var Q;re=!1,null===(Q=g.complete)||void 0===Q||Q.call(g),T.complete()},Q=>{var Ve;re=!1,null===(Ve=g.error)||void 0===Ve||Ve.call(g,Q),T.error(Q)},()=>{var Q,Ve;re&&(null===(Q=g.unsubscribe)||void 0===Q||Q.call(g)),null===(Ve=g.finalize)||void 0===Ve||Ve.call(g)}))}):ce.D}var Me=M(7412);function je(u){return(0,Ge.N)((p,c)=>{let T,g=null,_=!1;g=p.subscribe((0,Fe._)(c,void 0,void 0,L=>{T=(0,Me.Tg)(u(L,je(u)(p))),g?(g.unsubscribe(),g=null,T.subscribe(c)):_=!0})),_&&(g.unsubscribe(),g=null,T.subscribe(c))})}function lt(u){return u<=0?()=>pt:(0,Ge.N)((p,c)=>{let g=[];p.subscribe((0,Fe._)(c,_=>{g.push(_),u<g.length&&g.shift()},()=>{for(const _ of g)c.next(_);c.complete()},void 0,()=>{g=null}))})}var fn=M(1554),St=M(5719),Kt=M(7711);const Ye="primary",Ut=Symbol("RouteTitle");class hn{constructor(p){this.params=p||{}}has(p){return Object.prototype.hasOwnProperty.call(this.params,p)}get(p){if(this.has(p)){const c=this.params[p];return Array.isArray(c)?c[0]:c}return null}getAll(p){if(this.has(p)){const c=this.params[p];return Array.isArray(c)?c:[c]}return[]}get keys(){return Object.keys(this.params)}}function ke(u){return new hn(u)}function qt(u,p,c){const g=c.path.split("/");if(g.length>u.length||"full"===c.pathMatch&&(p.hasChildren()||g.length<u.length))return null;const _={};for(let T=0;T<g.length;T++){const L=g[T],re=u[T];if(L.startsWith(":"))_[L.substring(1)]=re;else if(L!==re.path)return null}return{consumed:u.slice(0,g.length),posParams:_}}function Dn(u,p){const c=u?_r(u):void 0,g=p?_r(p):void 0;if(!c||!g||c.length!=g.length)return!1;let _;for(let T=0;T<c.length;T++)if(_=c[T],!gi(u[_],p[_]))return!1;return!0}function _r(u){return[...Object.keys(u),...Object.getOwnPropertySymbols(u)]}function gi(u,p){if(Array.isArray(u)&&Array.isArray(p)){if(u.length!==p.length)return!1;const c=[...u].sort(),g=[...p].sort();return c.every((_,T)=>g[T]===_)}return u===p}function Pn(u){return u.length>0?u[u.length-1]:null}function $(u){return(0,K.A)(u)?u:(0,o.jNT)(u)?(0,q.H)(Promise.resolve(u)):(0,x.of)(u)}const ze={exact:function Bt(u,p,c){if(!An(u.segments,p.segments)||!ar(u.segments,p.segments,c)||u.numberOfChildren!==p.numberOfChildren)return!1;for(const g in p.children)if(!u.children[g]||!Bt(u.children[g],p.children[g],c))return!1;return!0},subset:Fn},X={exact:function Be(u,p){return Dn(u,p)},subset:function Qt(u,p){return Object.keys(p).length<=Object.keys(u).length&&Object.keys(p).every(c=>gi(u[c],p[c]))},ignored:()=>!0};function de(u,p,c){return ze[c.paths](u.root,p.root,c.matrixParams)&&X[c.queryParams](u.queryParams,p.queryParams)&&!("exact"===c.fragment&&u.fragment!==p.fragment)}function Fn(u,p,c){return ft(u,p,p.segments,c)}function ft(u,p,c,g){if(u.segments.length>c.length){const _=u.segments.slice(0,c.length);return!(!An(_,c)||p.hasChildren()||!ar(_,c,g))}if(u.segments.length===c.length){if(!An(u.segments,c)||!ar(u.segments,c,g))return!1;for(const _ in p.children)if(!u.children[_]||!Fn(u.children[_],p.children[_],g))return!1;return!0}{const _=c.slice(0,u.segments.length),T=c.slice(u.segments.length);return!!(An(u.segments,_)&&ar(u.segments,_,g)&&u.children[Ye])&&ft(u.children[Ye],p,T,g)}}function ar(u,p,c){return p.every((g,_)=>X[c](u[_].parameters,g.parameters))}class At{constructor(p=new rt([],{}),c={},g=null){this.root=p,this.queryParams=c,this.fragment=g}get queryParamMap(){return this._queryParamMap??=ke(this.queryParams),this._queryParamMap}toString(){return z.serialize(this)}}class rt{constructor(p,c){this.segments=p,this.children=c,this.parent=null,Object.values(c).forEach(g=>g.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Y(this)}}class lr{constructor(p,c){this.path=p,this.parameters=c}get parameterMap(){return this._parameterMap??=ke(this.parameters),this._parameterMap}toString(){return En(this)}}function An(u,p){return u.length===p.length&&u.every((c,g)=>c.path===p[g].path)}let ur=(()=>{class u{static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:()=>new or,providedIn:"root"})}}return u})();class or{parse(p){const c=new Kr(p);return new At(c.parseRootSegment(),c.parseQueryParams(),c.parseFragment())}serialize(p){const c=`/${F(p.root,!0)}`,g=function kn(u){const p=Object.entries(u).map(([c,g])=>Array.isArray(g)?g.map(_=>`${De(c)}=${De(_)}`).join("&"):`${De(c)}=${De(g)}`).filter(c=>c);return p.length?`?${p.join("&")}`:""}(p.queryParams);return`${c}${g}${"string"==typeof p.fragment?`#${function We(u){return encodeURI(u)}(p.fragment)}`:""}`}}const z=new or;function Y(u){return u.segments.map(p=>En(p)).join("/")}function F(u,p){if(!u.hasChildren())return Y(u);if(p){const c=u.children[Ye]?F(u.children[Ye],!1):"",g=[];return Object.entries(u.children).forEach(([_,T])=>{_!==Ye&&g.push(`${_}:${F(T,!1)}`)}),g.length>0?`${c}(${g.join("//")})`:c}{const c=function Si(u,p){let c=[];return Object.entries(u.children).forEach(([g,_])=>{g===Ye&&(c=c.concat(p(_,g)))}),Object.entries(u.children).forEach(([g,_])=>{g!==Ye&&(c=c.concat(p(_,g)))}),c}(u,(g,_)=>_===Ye?[F(u.children[Ye],!1)]:[`${_}:${F(g,!1)}`]);return 1===Object.keys(u.children).length&&null!=u.children[Ye]?`${Y(u)}/${c[0]}`:`${Y(u)}/(${c.join("//")})`}}function H(u){return encodeURIComponent(u).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function De(u){return H(u).replace(/%3B/gi,";")}function ut(u){return H(u).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Gt(u){return decodeURIComponent(u)}function rn(u){return Gt(u.replace(/\+/g,"%20"))}function En(u){return`${ut(u.path)}${function cr(u){return Object.entries(u).map(([p,c])=>`;${ut(p)}=${ut(c)}`).join("")}(u.parameters)}`}const Dr=/^[^\/()?;#]+/;function ii(u){const p=u.match(Dr);return p?p[0]:""}const ki=/^[^\/()?;=#]+/,st=/^[^=?&#]+/,Er=/^[^&#]+/;class Kr{constructor(p){this.url=p,this.remaining=p}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rt([],{}):new rt([],this.parseChildren())}parseQueryParams(){const p={};if(this.consumeOptional("?"))do{this.parseQueryParam(p)}while(this.consumeOptional("&"));return p}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const p=[];for(this.peekStartsWith("(")||p.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),p.push(this.parseSegment());let c={};this.peekStartsWith("/(")&&(this.capture("/"),c=this.parseParens(!0));let g={};return this.peekStartsWith("(")&&(g=this.parseParens(!1)),(p.length>0||Object.keys(c).length>0)&&(g[Ye]=new rt(p,c)),g}parseSegment(){const p=ii(this.remaining);if(""===p&&this.peekStartsWith(";"))throw new o.wOt(4009,!1);return this.capture(p),new lr(Gt(p),this.parseMatrixParams())}parseMatrixParams(){const p={};for(;this.consumeOptional(";");)this.parseParam(p);return p}parseParam(p){const c=function wn(u){const p=u.match(ki);return p?p[0]:""}(this.remaining);if(!c)return;this.capture(c);let g="";if(this.consumeOptional("=")){const _=ii(this.remaining);_&&(g=_,this.capture(g))}p[Gt(c)]=Gt(g)}parseQueryParam(p){const c=function Nr(u){const p=u.match(st);return p?p[0]:""}(this.remaining);if(!c)return;this.capture(c);let g="";if(this.consumeOptional("=")){const L=function Xr(u){const p=u.match(Er);return p?p[0]:""}(this.remaining);L&&(g=L,this.capture(g))}const _=rn(c),T=rn(g);if(p.hasOwnProperty(_)){let L=p[_];Array.isArray(L)||(L=[L],p[_]=L),L.push(T)}else p[_]=T}parseParens(p){const c={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const g=ii(this.remaining),_=this.remaining[g.length];if("/"!==_&&")"!==_&&";"!==_)throw new o.wOt(4010,!1);let T;g.indexOf(":")>-1?(T=g.slice(0,g.indexOf(":")),this.capture(T),this.capture(":")):p&&(T=Ye);const L=this.parseChildren();c[T]=1===Object.keys(L).length?L[Ye]:new rt([],L),this.consumeOptional("//")}return c}peekStartsWith(p){return this.remaining.startsWith(p)}consumeOptional(p){return!!this.peekStartsWith(p)&&(this.remaining=this.remaining.substring(p.length),!0)}capture(p){if(!this.consumeOptional(p))throw new o.wOt(4011,!1)}}function wr(u){return u.segments.length>0?new rt([],{[Ye]:u}):u}function Dt(u){const p={};for(const[g,_]of Object.entries(u.children)){const T=Dt(_);if(g===Ye&&0===T.segments.length&&T.hasChildren())for(const[L,re]of Object.entries(T.children))p[L]=re;else(T.segments.length>0||T.hasChildren())&&(p[g]=T)}return function qr(u){if(1===u.numberOfChildren&&u.children[Ye]){const p=u.children[Ye];return new rt(u.segments.concat(p.segments),p.children)}return u}(new rt(u.segments,p))}function dr(u){return u instanceof At}function Ar(u){let p;const _=wr(function c(T){const L={};for(const Q of T.children){const Ve=c(Q);L[Q.outlet]=Ve}const re=new rt(T.url,L);return T===u&&(p=re),re}(u.root));return p??_}function Rr(u,p,c,g){let _=u;for(;_.parent;)_=_.parent;if(0===p.length)return P(_,_,_,c,g);const T=function ue(u){if("string"==typeof u[0]&&1===u.length&&"/"===u[0])return new j(!0,0,u);let p=0,c=!1;const g=u.reduce((_,T,L)=>{if("object"==typeof T&&null!=T){if(T.outlets){const re={};return Object.entries(T.outlets).forEach(([Q,Ve])=>{re[Q]="string"==typeof Ve?Ve.split("/"):Ve}),[..._,{outlets:re}]}if(T.segmentPath)return[..._,T.segmentPath]}return"string"!=typeof T?[..._,T]:0===L?(T.split("/").forEach((re,Q)=>{0==Q&&"."===re||(0==Q&&""===re?c=!0:".."===re?p++:""!=re&&_.push(re))}),_):[..._,T]},[]);return new j(c,p,g)}(p);if(T.toRoot())return P(_,_,new rt([],{}),c,g);const L=function Pe(u,p,c){if(u.isAbsolute)return new ie(p,!0,0);if(!c)return new ie(p,!1,NaN);if(null===c.parent)return new ie(c,!0,0);const g=xr(u.commands[0])?0:1;return function Le(u,p,c){let g=u,_=p,T=c;for(;T>_;){if(T-=_,g=g.parent,!g)throw new o.wOt(4005,!1);_=g.segments.length}return new ie(g,!1,_-T)}(c,c.segments.length-1+g,u.numberOfDoubleDots)}(T,_,u),re=L.processChildren?Vt(L.segmentGroup,L.index,T.commands):it(L.segmentGroup,L.index,T.commands);return P(_,L.segmentGroup,re,c,g)}function xr(u){return"object"==typeof u&&null!=u&&!u.outlets&&!u.segmentPath}function br(u){return"object"==typeof u&&null!=u&&u.outlets}function P(u,p,c,g,_){let L,T={};g&&Object.entries(g).forEach(([Q,Ve])=>{T[Q]=Array.isArray(Ve)?Ve.map(wt=>`${wt}`):`${Ve}`}),L=u===p?c:V(u,p,c);const re=wr(Dt(L));return new At(re,T,_)}function V(u,p,c){const g={};return Object.entries(u.children).forEach(([_,T])=>{g[_]=T===p?c:V(T,p,c)}),new rt(u.segments,g)}class j{constructor(p,c,g){if(this.isAbsolute=p,this.numberOfDoubleDots=c,this.commands=g,p&&g.length>0&&xr(g[0]))throw new o.wOt(4003,!1);const _=g.find(br);if(_&&_!==Pn(g))throw new o.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ie{constructor(p,c,g){this.segmentGroup=p,this.processChildren=c,this.index=g}}function it(u,p,c){if(u??=new rt([],{}),0===u.segments.length&&u.hasChildren())return Vt(u,p,c);const g=function vn(u,p,c){let g=0,_=p;const T={match:!1,pathIndex:0,commandIndex:0};for(;_<u.segments.length;){if(g>=c.length)return T;const L=u.segments[_],re=c[g];if(br(re))break;const Q=`${re}`,Ve=g<c.length-1?c[g+1]:null;if(_>0&&void 0===Q)break;if(Q&&Ve&&"object"==typeof Ve&&void 0===Ve.outlets){if(!bn(Q,Ve,L))return T;g+=2}else{if(!bn(Q,{},L))return T;g++}_++}return{match:!0,pathIndex:_,commandIndex:g}}(u,p,c),_=c.slice(g.commandIndex);if(g.match&&g.pathIndex<u.segments.length){const T=new rt(u.segments.slice(0,g.pathIndex),{});return T.children[Ye]=new rt(u.segments.slice(g.pathIndex),u.children),Vt(T,0,_)}return g.match&&0===_.length?new rt(u.segments,{}):g.match&&!u.hasChildren()?Pt(u,p,c):g.match?Vt(u,0,_):Pt(u,p,c)}function Vt(u,p,c){if(0===c.length)return new rt(u.segments,{});{const g=function yt(u){return br(u[0])?u[0].outlets:{[Ye]:u}}(c),_={};if(Object.keys(g).some(T=>T!==Ye)&&u.children[Ye]&&1===u.numberOfChildren&&0===u.children[Ye].segments.length){const T=Vt(u.children[Ye],p,c);return new rt(u.segments,T.children)}return Object.entries(g).forEach(([T,L])=>{"string"==typeof L&&(L=[L]),null!==L&&(_[T]=it(u.children[T],p,L))}),Object.entries(u.children).forEach(([T,L])=>{void 0===g[T]&&(_[T]=L)}),new rt(u.segments,_)}}function Pt(u,p,c){const g=u.segments.slice(0,p);let _=0;for(;_<c.length;){const T=c[_];if(br(T)){const Q=Ln(T.outlets);return new rt(g,Q)}if(0===_&&xr(c[0])){g.push(new lr(u.segments[p].path,Jn(c[0]))),_++;continue}const L=br(T)?T.outlets[Ye]:`${T}`,re=_<c.length-1?c[_+1]:null;L&&re&&xr(re)?(g.push(new lr(L,Jn(re))),_+=2):(g.push(new lr(L,{})),_++)}return new rt(g,{})}function Ln(u){const p={};return Object.entries(u).forEach(([c,g])=>{"string"==typeof g&&(g=[g]),null!==g&&(p[c]=Pt(new rt([],{}),0,g))}),p}function Jn(u){const p={};return Object.entries(u).forEach(([c,g])=>p[c]=`${g}`),p}function bn(u,p,c){return u==c.path&&Dn(p,c.parameters)}const Ct="imperative";var Xe=function(u){return u[u.NavigationStart=0]="NavigationStart",u[u.NavigationEnd=1]="NavigationEnd",u[u.NavigationCancel=2]="NavigationCancel",u[u.NavigationError=3]="NavigationError",u[u.RoutesRecognized=4]="RoutesRecognized",u[u.ResolveStart=5]="ResolveStart",u[u.ResolveEnd=6]="ResolveEnd",u[u.GuardsCheckStart=7]="GuardsCheckStart",u[u.GuardsCheckEnd=8]="GuardsCheckEnd",u[u.RouteConfigLoadStart=9]="RouteConfigLoadStart",u[u.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",u[u.ChildActivationStart=11]="ChildActivationStart",u[u.ChildActivationEnd=12]="ChildActivationEnd",u[u.ActivationStart=13]="ActivationStart",u[u.ActivationEnd=14]="ActivationEnd",u[u.Scroll=15]="Scroll",u[u.NavigationSkipped=16]="NavigationSkipped",u}(Xe||{});class Wt{constructor(p,c){this.id=p,this.url=c}}class Xn extends Wt{constructor(p,c,g="imperative",_=null){super(p,c),this.type=Xe.NavigationStart,this.navigationTrigger=g,this.restoredState=_}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class It extends Wt{constructor(p,c,g){super(p,c),this.urlAfterRedirects=g,this.type=Xe.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Yt=function(u){return u[u.Redirect=0]="Redirect",u[u.SupersededByNewNavigation=1]="SupersededByNewNavigation",u[u.NoDataFromResolver=2]="NoDataFromResolver",u[u.GuardRejected=3]="GuardRejected",u}(Yt||{}),Kn=function(u){return u[u.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",u[u.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",u}(Kn||{});class On extends Wt{constructor(p,c,g,_){super(p,c),this.reason=g,this.code=_,this.type=Xe.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class ct extends Wt{constructor(p,c,g,_){super(p,c),this.reason=g,this.code=_,this.type=Xe.NavigationSkipped}}class Ft extends Wt{constructor(p,c,g,_){super(p,c),this.error=g,this.target=_,this.type=Xe.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Ds extends Wt{constructor(p,c,g,_){super(p,c),this.urlAfterRedirects=g,this.state=_,this.type=Xe.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ir extends Wt{constructor(p,c,g,_){super(p,c),this.urlAfterRedirects=g,this.state=_,this.type=Xe.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ro extends Wt{constructor(p,c,g,_,T){super(p,c),this.urlAfterRedirects=g,this.state=_,this.shouldActivate=T,this.type=Xe.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class io extends Wt{constructor(p,c,g,_){super(p,c),this.urlAfterRedirects=g,this.state=_,this.type=Xe.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class oo extends Wt{constructor(p,c,g,_){super(p,c),this.urlAfterRedirects=g,this.state=_,this.type=Xe.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mi{constructor(p){this.route=p,this.type=Xe.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Mt{constructor(p){this.route=p,this.type=Xe.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class vi{constructor(p){this.snapshot=p,this.type=Xe.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Li{constructor(p){this.snapshot=p,this.type=Xe.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $n{constructor(p){this.snapshot=p,this.type=Xe.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Vi{constructor(p){this.snapshot=p,this.type=Xe.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Io{constructor(p,c,g){this.routerEvent=p,this.position=c,this.anchor=g,this.type=Xe.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ji{}class Pr{constructor(p){this.url=p}}class oi{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new jr,this.attachRef=null}}let jr=(()=>{class u{constructor(){this.contexts=new Map}onChildOutletCreated(c,g){const _=this.getOrCreateContext(c);_.outlet=g,this.contexts.set(c,_)}onChildOutletDestroyed(c){const g=this.getContext(c);g&&(g.outlet=null,g.attachRef=null)}onOutletDeactivated(){const c=this.contexts;return this.contexts=new Map,c}onOutletReAttached(c){this.contexts=c}getOrCreateContext(c){let g=this.getContext(c);return g||(g=new oi,this.contexts.set(c,g)),g}getContext(c){return this.contexts.get(c)||null}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();class Ui{constructor(p){this._root=p}get root(){return this._root.value}parent(p){const c=this.pathFromRoot(p);return c.length>1?c[c.length-2]:null}children(p){const c=yi(p,this._root);return c?c.children.map(g=>g.value):[]}firstChild(p){const c=yi(p,this._root);return c&&c.children.length>0?c.children[0].value:null}siblings(p){const c=Ci(p,this._root);return c.length<2?[]:c[c.length-2].children.map(_=>_.value).filter(_=>_!==p)}pathFromRoot(p){return Ci(p,this._root).map(c=>c.value)}}function yi(u,p){if(u===p.value)return p;for(const c of p.children){const g=yi(u,c);if(g)return g}return null}function Ci(u,p){if(u===p.value)return[p];for(const c of p.children){const g=Ci(u,c);if(g.length)return g.unshift(p),g}return[]}class yn{constructor(p,c){this.value=p,this.children=c}toString(){return`TreeNode(${this.value})`}}function Ur(u){const p={};return u&&u.children.forEach(c=>p[c.value.outlet]=c),p}class fr extends Ui{constructor(p,c){super(p),this.snapshot=c,Oe(this,p)}toString(){return this.snapshot.toString()}}function N(u){const p=function ee(u){const T=new A([],{},{},"",{},Ye,u,null,{});return new W("",new yn(T,[]))}(u),c=new ge.t([new lr("",{})]),g=new ge.t({}),_=new ge.t({}),T=new ge.t({}),L=new ge.t(""),re=new C(c,g,T,L,_,Ye,u,p.root);return re.snapshot=p.root,new fr(new yn(re,[]),p)}class C{constructor(p,c,g,_,T,L,re,Q){this.urlSubject=p,this.paramsSubject=c,this.queryParamsSubject=g,this.fragmentSubject=_,this.dataSubject=T,this.outlet=L,this.component=re,this._futureSnapshot=Q,this.title=this.dataSubject?.pipe((0,we.T)(Ve=>Ve[Ut]))??(0,x.of)(void 0),this.url=p,this.params=c,this.queryParams=g,this.fragment=_,this.data=T}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.params.pipe((0,we.T)(p=>ke(p))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe((0,we.T)(p=>ke(p))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function S(u,p,c="emptyOnly"){let g;const{routeConfig:_}=u;return g=null===p||"always"!==c&&""!==_?.path&&(p.component||p.routeConfig?.loadComponent)?{params:{...u.params},data:{...u.data},resolve:{...u.data,...u._resolvedData??{}}}:{params:{...p.params,...u.params},data:{...p.data,...u.data},resolve:{...u.data,...p.data,..._?.data,...u._resolvedData}},_&&qn(_)&&(g.resolve[Ut]=_.title),g}class A{get title(){return this.data?.[Ut]}constructor(p,c,g,_,T,L,re,Q,Ve){this.url=p,this.params=c,this.queryParams=g,this.fragment=_,this.data=T,this.outlet=L,this.component=re,this.routeConfig=Q,this._resolve=Ve}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??=ke(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ke(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(g=>g.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class W extends Ui{constructor(p,c){super(c),this.url=p,Oe(this,c)}toString(){return tt(this._root)}}function Oe(u,p){p.value._routerState=u,p.children.forEach(c=>Oe(u,c))}function tt(u){const p=u.children.length>0?` { ${u.children.map(tt).join(", ")} } `:"";return`${u.value}${p}`}function Tt(u){if(u.snapshot){const p=u.snapshot,c=u._futureSnapshot;u.snapshot=c,Dn(p.queryParams,c.queryParams)||u.queryParamsSubject.next(c.queryParams),p.fragment!==c.fragment&&u.fragmentSubject.next(c.fragment),Dn(p.params,c.params)||u.paramsSubject.next(c.params),function _n(u,p){if(u.length!==p.length)return!1;for(let c=0;c<u.length;++c)if(!Dn(u[c],p[c]))return!1;return!0}(p.url,c.url)||u.urlSubject.next(c.url),Dn(p.data,c.data)||u.dataSubject.next(c.data)}else u.snapshot=u._futureSnapshot,u.dataSubject.next(u._futureSnapshot.data)}function un(u,p){const c=Dn(u.params,p.params)&&function ln(u,p){return An(u,p)&&u.every((c,g)=>Dn(c.parameters,p[g].parameters))}(u.url,p.url);return c&&!(!u.parent!=!p.parent)&&(!u.parent||un(u.parent,p.parent))}function qn(u){return"string"==typeof u.title||null===u.title}let Vn=(()=>{class u{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ye,this.activateEvents=new o.bkB,this.deactivateEvents=new o.bkB,this.attachEvents=new o.bkB,this.detachEvents=new o.bkB,this.parentContexts=(0,o.WQX)(jr),this.location=(0,o.WQX)(o.c1b),this.changeDetector=(0,o.WQX)(o.gRc),this.environmentInjector=(0,o.WQX)(o.uvJ),this.inputBinder=(0,o.WQX)(jn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(c){if(c.name){const{firstChange:g,previousValue:_}=c.name;if(g)return;this.isTrackedInParentContexts(_)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(_)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(c){return this.parentContexts.getContext(c)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const c=this.parentContexts.getContext(this.name);c?.route&&(c.attachRef?this.attach(c.attachRef,c.route):this.activateWith(c.route,c.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new o.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new o.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new o.wOt(4012,!1);this.location.detach();const c=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(c.instance),c}attach(c,g){this.activated=c,this._activatedRoute=g,this.location.insert(c.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(c.instance)}deactivate(){if(this.activated){const c=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(c)}}activateWith(c,g){if(this.isActivated)throw new o.wOt(4013,!1);this._activatedRoute=c;const _=this.location,L=c.snapshot.component,re=this.parentContexts.getOrCreateContext(this.name).children,Q=new Nn(c,re,_.injector);this.activated=_.createComponent(L,{index:_.length,injector:Q,environmentInjector:g??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275dir=o.FsC({type:u,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[o.OA$]})}}return u})();class Nn{__ngOutletInjector(p){return new Nn(this.route,this.childContexts,p)}constructor(p,c,g){this.route=p,this.childContexts=c,this.parent=g}get(p,c){return p===C?this.route:p===jr?this.childContexts:this.parent.get(p,c)}}const jn=new o.nKC("");let _i=(()=>{class u{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(c){this.unsubscribeFromRouteData(c),this.subscribeToRouteData(c)}unsubscribeFromRouteData(c){this.outletDataSubscriptions.get(c)?.unsubscribe(),this.outletDataSubscriptions.delete(c)}subscribeToRouteData(c){const{activatedRoute:g}=c,_=(0,ne.z)([g.queryParams,g.params,g.data]).pipe((0,He.n)(([T,L,re],Q)=>(re={...T,...L,...re},0===Q?(0,x.of)(re):Promise.resolve(re)))).subscribe(T=>{if(!c.isActivated||!c.activatedComponentRef||c.activatedRoute!==g||null===g.component)return void this.unsubscribeFromRouteData(c);const L=(0,o.HJs)(g.component);if(L)for(const{templateName:re}of L.inputs)c.activatedComponentRef.setInput(re,T[re]);else this.unsubscribeFromRouteData(c)});this.outletDataSubscriptions.set(c,_)}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac})}}return u})();function Br(u,p,c){if(c&&u.shouldReuseRoute(p.value,c.value.snapshot)){const g=c.value;g._futureSnapshot=p.value;const _=function In(u,p,c){return p.children.map(g=>{for(const _ of c.children)if(u.shouldReuseRoute(g.value,_.value.snapshot))return Br(u,g,_);return Br(u,g)})}(u,p,c);return new yn(g,_)}{if(u.shouldAttach(p.value)){const T=u.retrieve(p.value);if(null!==T){const L=T.route;return L.value._futureSnapshot=p.value,L.children=p.children.map(re=>Br(u,re)),L}}const g=function Hn(u){return new C(new ge.t(u.url),new ge.t(u.params),new ge.t(u.queryParams),new ge.t(u.fragment),new ge.t(u.data),u.outlet,u.component,u)}(p.value),_=p.children.map(T=>Br(u,T));return new yn(g,_)}}const so="ngNavigationCancelingError";function Di(u,p){const{redirectTo:c,navigationBehaviorOptions:g}=dr(p)?{redirectTo:p,navigationBehaviorOptions:void 0}:p,_=Qr(!1,Yt.Redirect);return _.url=c,_.navigationBehaviorOptions=g,_}function Qr(u,p){const c=new Error(`NavigationCancelingError: ${u||""}`);return c[so]=!0,c.cancellationCode=p,c}function Bi(u){return!!u&&u[so]}let Mo=(()=>{class u{static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275cmp=o.VBU({type:u,selectors:[["ng-component"]],standalone:!0,features:[o.aNF],decls:1,vars:0,template:function(g,_){1&g&&o.nrm(0,"router-outlet")},dependencies:[Vn],encapsulation:2})}}return u})();function $i(u){const p=u.children&&u.children.map($i),c=p?{...u,children:p}:{...u};return!c.component&&!c.loadComponent&&(p||c.loadChildren)&&c.outlet&&c.outlet!==Ye&&(c.component=Mo),c}function Or(u){return u.outlet||Ye}function si(u){if(!u)return null;if(u.routeConfig?._injector)return u.routeConfig._injector;for(let p=u.parent;p;p=p.parent){const c=p.routeConfig;if(c?._loadedInjector)return c._loadedInjector;if(c?._injector)return c._injector}return null}class ws{constructor(p,c,g,_,T){this.routeReuseStrategy=p,this.futureState=c,this.currState=g,this.forwardEvent=_,this.inputBindingEnabled=T}activate(p){const c=this.futureState._root,g=this.currState?this.currState._root:null;this.deactivateChildRoutes(c,g,p),Tt(this.futureState.root),this.activateChildRoutes(c,g,p)}deactivateChildRoutes(p,c,g){const _=Ur(c);p.children.forEach(T=>{const L=T.value.outlet;this.deactivateRoutes(T,_[L],g),delete _[L]}),Object.values(_).forEach(T=>{this.deactivateRouteAndItsChildren(T,g)})}deactivateRoutes(p,c,g){const _=p.value,T=c?c.value:null;if(_===T)if(_.component){const L=g.getContext(_.outlet);L&&this.deactivateChildRoutes(p,c,L.children)}else this.deactivateChildRoutes(p,c,g);else T&&this.deactivateRouteAndItsChildren(c,g)}deactivateRouteAndItsChildren(p,c){p.value.component&&this.routeReuseStrategy.shouldDetach(p.value.snapshot)?this.detachAndStoreRouteSubtree(p,c):this.deactivateRouteAndOutlet(p,c)}detachAndStoreRouteSubtree(p,c){const g=c.getContext(p.value.outlet),_=g&&p.value.component?g.children:c,T=Ur(p);for(const L of Object.values(T))this.deactivateRouteAndItsChildren(L,_);if(g&&g.outlet){const L=g.outlet.detach(),re=g.children.onOutletDeactivated();this.routeReuseStrategy.store(p.value.snapshot,{componentRef:L,route:p,contexts:re})}}deactivateRouteAndOutlet(p,c){const g=c.getContext(p.value.outlet),_=g&&p.value.component?g.children:c,T=Ur(p);for(const L of Object.values(T))this.deactivateRouteAndItsChildren(L,_);g&&(g.outlet&&(g.outlet.deactivate(),g.children.onOutletDeactivated()),g.attachRef=null,g.route=null)}activateChildRoutes(p,c,g){const _=Ur(c);p.children.forEach(T=>{this.activateRoutes(T,_[T.value.outlet],g),this.forwardEvent(new Vi(T.value.snapshot))}),p.children.length&&this.forwardEvent(new Li(p.value.snapshot))}activateRoutes(p,c,g){const _=p.value,T=c?c.value:null;if(Tt(_),_===T)if(_.component){const L=g.getOrCreateContext(_.outlet);this.activateChildRoutes(p,c,L.children)}else this.activateChildRoutes(p,c,g);else if(_.component){const L=g.getOrCreateContext(_.outlet);if(this.routeReuseStrategy.shouldAttach(_.snapshot)){const re=this.routeReuseStrategy.retrieve(_.snapshot);this.routeReuseStrategy.store(_.snapshot,null),L.children.onOutletReAttached(re.contexts),L.attachRef=re.componentRef,L.route=re.route.value,L.outlet&&L.outlet.attach(re.componentRef,re.route.value),Tt(re.route.value),this.activateChildRoutes(p,null,L.children)}else{const re=si(_.snapshot);L.attachRef=null,L.route=_,L.injector=re,L.outlet&&L.outlet.activateWith(_,L.injector),this.activateChildRoutes(p,null,L.children)}}else this.activateChildRoutes(p,null,g)}}class co{constructor(p){this.path=p,this.route=this.path[this.path.length-1]}}class bi{constructor(p,c){this.component=p,this.route=c}}function Ko(u,p,c){const g=u._root;return Oi(g,p?p._root:null,c,[g.value])}function Ii(u,p){const c=Symbol(),g=p.get(u,c);return g===c?"function"!=typeof u||(0,o.LfX)(u)?p.get(u):u:g}function Oi(u,p,c,g,_={canDeactivateChecks:[],canActivateChecks:[]}){const T=Ur(p);return u.children.forEach(L=>{(function bs(u,p,c,g,_={canDeactivateChecks:[],canActivateChecks:[]}){const T=u.value,L=p?p.value:null,re=c?c.getContext(u.value.outlet):null;if(L&&T.routeConfig===L.routeConfig){const Q=function Ao(u,p,c){if("function"==typeof c)return c(u,p);switch(c){case"pathParamsChange":return!An(u.url,p.url);case"pathParamsOrQueryParamsChange":return!An(u.url,p.url)||!Dn(u.queryParams,p.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!un(u,p)||!Dn(u.queryParams,p.queryParams);default:return!un(u,p)}}(L,T,T.routeConfig.runGuardsAndResolvers);Q?_.canActivateChecks.push(new co(g)):(T.data=L.data,T._resolvedData=L._resolvedData),Oi(u,p,T.component?re?re.children:null:c,g,_),Q&&re&&re.outlet&&re.outlet.isActivated&&_.canDeactivateChecks.push(new bi(re.outlet.component,L))}else L&&E(p,re,_),_.canActivateChecks.push(new co(g)),Oi(u,null,T.component?re?re.children:null:c,g,_)})(L,T[L.value.outlet],c,g.concat([L.value]),_),delete T[L.value.outlet]}),Object.entries(T).forEach(([L,re])=>E(re,c.getContext(L),_)),_}function E(u,p,c){const g=Ur(u),_=u.value;Object.entries(g).forEach(([T,L])=>{E(L,_.component?p?p.children.getContext(T):null:p,c)}),c.canDeactivateChecks.push(new bi(_.component&&p&&p.outlet&&p.outlet.isActivated?p.outlet.component:null,_))}function w(u){return"function"==typeof u}function ai(u){return u instanceof Ee.G||"EmptyError"===u?.name}const Hr=Symbol("INITIAL_VALUE");function Zr(){return(0,He.n)(u=>(0,ne.z)(u.map(p=>p.pipe(dt(1),function Ht(...u){const p=(0,Ae.lI)(u);return(0,Ge.N)((c,g)=>{(p?me(u,c,p):me(u,c)).subscribe(g)})}(Hr)))).pipe((0,we.T)(p=>{for(const c of p)if(!0!==c){if(c===Hr)return Hr;if(!1===c||c instanceof At)return c}return!0}),(0,tn.p)(p=>p!==Hr),dt(1)))}function Nt(u){return(0,ot.F)(_e(p=>{if(dr(p))throw Di(0,p)}),(0,we.T)(p=>!0===p))}class Rn{constructor(p){this.segmentGroup=p||null}}class Mr extends Error{constructor(p){super(),this.urlTree=p}}function Un(u){return bt(new Rn(u))}class jl{constructor(p,c){this.urlSerializer=p,this.urlTree=c}lineralizeSegments(p,c){let g=[],_=c.root;for(;;){if(g=g.concat(_.segments),0===_.numberOfChildren)return(0,x.of)(g);if(_.numberOfChildren>1||!_.children[Ye])return bt(new o.wOt(4e3,!1));_=_.children[Ye]}}applyRedirectCommands(p,c,g){const _=this.applyRedirectCreateUrlTree(c,this.urlSerializer.parse(c),p,g);if(c.startsWith("/"))throw new Mr(_);return _}applyRedirectCreateUrlTree(p,c,g,_){const T=this.createSegmentGroup(p,c.root,g,_);return new At(T,this.createQueryParams(c.queryParams,this.urlTree.queryParams),c.fragment)}createQueryParams(p,c){const g={};return Object.entries(p).forEach(([_,T])=>{if("string"==typeof T&&T.startsWith(":")){const re=T.substring(1);g[_]=c[re]}else g[_]=T}),g}createSegmentGroup(p,c,g,_){const T=this.createSegments(p,c.segments,g,_);let L={};return Object.entries(c.children).forEach(([re,Q])=>{L[re]=this.createSegmentGroup(p,Q,g,_)}),new rt(T,L)}createSegments(p,c,g,_){return c.map(T=>T.path.startsWith(":")?this.findPosParam(p,T,_):this.findOrReturn(T,g))}findPosParam(p,c,g){const _=g[c.path.substring(1)];if(!_)throw new o.wOt(4001,!1);return _}findOrReturn(p,c){let g=0;for(const _ of c){if(_.path===p.path)return c.splice(g),_;g++}return p}}const Ts={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function No(u,p,c,g,_){const T=Ro(u,p,c);return T.matched?(g=function lo(u,p){return u.providers&&!u._injector&&(u._injector=(0,o.Ol2)(u.providers,p,`Route: ${u.path}`)),u._injector??p}(p,g),function Gn(u,p,c,g){const _=p.canMatch;if(!_||0===_.length)return(0,x.of)(!0);const T=_.map(L=>{const re=Ii(L,u);return $(function Ot(u){return u&&w(u.canMatch)}(re)?re.canMatch(p,c):(0,o.N4e)(u,()=>re(p,c)))});return(0,x.of)(T).pipe(Zr(),Nt())}(g,p,c).pipe((0,we.T)(L=>!0===L?T:{...Ts}))):(0,x.of)(T)}function Ro(u,p,c){if("**"===p.path)return function xo(u){return{matched:!0,parameters:u.length>0?Pn(u).parameters:{},consumedSegments:u,remainingSegments:[],positionalParamSegments:{}}}(c);if(""===p.path)return"full"===p.pathMatch&&(u.hasChildren()||c.length>0)?{...Ts}:{matched:!0,consumedSegments:[],remainingSegments:c,parameters:{},positionalParamSegments:{}};const _=(p.matcher||qt)(c,u,p);if(!_)return{...Ts};const T={};Object.entries(_.posParams??{}).forEach(([re,Q])=>{T[re]=Q.path});const L=_.consumed.length>0?{...T,..._.consumed[_.consumed.length-1].parameters}:T;return{matched:!0,consumedSegments:_.consumed,remainingSegments:c.slice(_.consumed.length),parameters:L,positionalParamSegments:_.posParams??{}}}function Yo(u,p,c,g){return c.length>0&&function Ss(u,p,c){return c.some(g=>po(u,p,g)&&Or(g)!==Ye)}(u,c,g)?{segmentGroup:new rt(p,Ec(g,new rt(c,u.children))),slicedSegments:[]}:0===c.length&&function Ul(u,p,c){return c.some(g=>po(u,p,g))}(u,c,g)?{segmentGroup:new rt(u.segments,Zo(u,c,g,u.children)),slicedSegments:c}:{segmentGroup:new rt(u.segments,u.children),slicedSegments:c}}function Zo(u,p,c,g){const _={};for(const T of c)if(po(u,p,T)&&!g[Or(T)]){const L=new rt([],{});_[Or(T)]=L}return{...g,..._}}function Ec(u,p){const c={};c[Ye]=p;for(const g of u)if(""===g.path&&Or(g)!==Ye){const _=new rt([],{});c[Or(g)]=_}return c}function po(u,p,c){return(!(u.hasChildren()||p.length>0)||"full"!==c.pathMatch)&&""===c.path}class Ni{}class es{constructor(p,c,g,_,T,L,re){this.injector=p,this.configLoader=c,this.rootComponentType=g,this.config=_,this.urlTree=T,this.paramsInheritanceStrategy=L,this.urlSerializer=re,this.applyRedirects=new jl(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(p){return new o.wOt(4002,`'${p.segmentGroup}'`)}recognize(){const p=Yo(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(p).pipe((0,we.T)(c=>{const g=new A([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ye,this.rootComponentType,null,{}),_=new yn(g,c),T=new W("",_),L=function Sr(u,p,c=null,g=null){return Rr(Ar(u),p,c,g)}(g,[],this.urlTree.queryParams,this.urlTree.fragment);return L.queryParams=this.urlTree.queryParams,T.url=this.urlSerializer.serialize(L),this.inheritParamsAndData(T._root,null),{state:T,tree:L}}))}match(p){return this.processSegmentGroup(this.injector,this.config,p,Ye).pipe(je(g=>{if(g instanceof Mr)return this.urlTree=g.urlTree,this.match(g.urlTree.root);throw g instanceof Rn?this.noMatchError(g):g}))}inheritParamsAndData(p,c){const g=p.value,_=S(g,c,this.paramsInheritanceStrategy);g.params=Object.freeze(_.params),g.data=Object.freeze(_.data),p.children.forEach(T=>this.inheritParamsAndData(T,g))}processSegmentGroup(p,c,g,_){return 0===g.segments.length&&g.hasChildren()?this.processChildren(p,c,g):this.processSegment(p,c,g,g.segments,_,!0).pipe((0,we.T)(T=>T instanceof yn?[T]:[]))}processChildren(p,c,g){const _=[];for(const T of Object.keys(g.children))"primary"===T?_.unshift(T):_.push(T);return(0,q.H)(_).pipe((0,fe.H)(T=>{const L=g.children[T],re=function uo(u,p){const c=u.filter(g=>Or(g)===p);return c.push(...u.filter(g=>Or(g)!==p)),c}(c,T);return this.processSegmentGroup(p,re,L,T)}),function nn(u,p){return(0,Ge.N)(function xt(u,p,c,g,_){return(T,L)=>{let re=c,Q=p,Ve=0;T.subscribe((0,Fe._)(L,wt=>{const Lt=Ve++;Q=re?u(Q,wt,Lt):(re=!0,wt),g&&L.next(Q)},_&&(()=>{re&&L.next(Q),L.complete()})))}}(u,p,arguments.length>=2,!0))}((T,L)=>(T.push(...L),T)),Sn(null),function jt(u,p){const c=arguments.length>=2;return g=>g.pipe(u?(0,tn.p)((_,T)=>u(_,T,g)):ce.D,lt(1),c?Sn(p):te(()=>new Ee.G))}(),(0,pe.Z)(T=>{if(null===T)return Un(g);const L=go(T);return function Oa(u){u.sort((p,c)=>p.value.outlet===Ye?-1:c.value.outlet===Ye?1:p.value.outlet.localeCompare(c.value.outlet))}(L),(0,x.of)(L)}))}processSegment(p,c,g,_,T,L){return(0,q.H)(c).pipe((0,fe.H)(re=>this.processSegmentAgainstRoute(re._injector??p,c,re,g,_,T,L).pipe(je(Q=>{if(Q instanceof Rn)return(0,x.of)(null);throw Q}))),le(re=>!!re),je(re=>{if(ai(re))return function Sa(u,p,c){return 0===p.length&&!u.children[c]}(g,_,T)?(0,x.of)(new Ni):Un(g);throw re}))}processSegmentAgainstRoute(p,c,g,_,T,L,re){return function Ta(u,p,c,g){return!!(Or(u)===g||g!==Ye&&po(p,c,u))&&Ro(p,u,c).matched}(g,_,T,L)?void 0===g.redirectTo?this.matchSegmentAgainstRoute(p,_,g,T,L):this.allowRedirects&&re?this.expandSegmentAgainstRouteUsingRedirect(p,_,c,g,T,L):Un(_):Un(_)}expandSegmentAgainstRouteUsingRedirect(p,c,g,_,T,L){const{matched:re,consumedSegments:Q,positionalParamSegments:Ve,remainingSegments:wt}=Ro(c,_,T);if(!re)return Un(c);_.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Lt=this.applyRedirects.applyRedirectCommands(Q,_.redirectTo,Ve);return this.applyRedirects.lineralizeSegments(_,Lt).pipe((0,pe.Z)(Zn=>this.processSegment(p,g,c,Zn.concat(wt),L,!1)))}matchSegmentAgainstRoute(p,c,g,_,T){const L=No(c,g,_,p);return"**"===g.path&&(c.children={}),L.pipe((0,He.n)(re=>re.matched?this.getChildConfig(p=g._injector??p,g,_).pipe((0,He.n)(({routes:Q})=>{const Ve=g._loadedInjector??p,{consumedSegments:wt,remainingSegments:Lt,parameters:Zn}=re,jo=new A(wt,Zn,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function mo(u){return u.data||{}}(g),Or(g),g.component??g._loadedComponent??null,g,function Os(u){return u.resolve||{}}(g)),{segmentGroup:Uo,slicedSegments:os}=Yo(c,wt,Lt,Q);if(0===os.length&&Uo.hasChildren())return this.processChildren(Ve,Q,Uo).pipe((0,we.T)(yo=>null===yo?null:new yn(jo,yo)));if(0===Q.length&&0===os.length)return(0,x.of)(new yn(jo,[]));const ss=Or(g)===T;return this.processSegment(Ve,Q,Uo,os,ss?Ye:T,!0).pipe((0,we.T)(yo=>new yn(jo,yo instanceof yn?[yo]:[])))})):Un(c)))}getChildConfig(p,c,g){return c.children?(0,x.of)({routes:c.children,injector:p}):c.loadChildren?void 0!==c._loadedRoutes?(0,x.of)({routes:c._loadedRoutes,injector:c._loadedInjector}):function qo(u,p,c,g){const _=p.canLoad;if(void 0===_||0===_.length)return(0,x.of)(!0);const T=_.map(L=>{const re=Ii(L,u);return $(function O(u){return u&&w(u.canLoad)}(re)?re.canLoad(p,c):(0,o.N4e)(u,()=>re(p,c)))});return(0,x.of)(T).pipe(Zr(),Nt())}(p,c,g).pipe((0,pe.Z)(_=>_?this.configLoader.loadChildren(p,c).pipe(_e(T=>{c._loadedRoutes=T.routes,c._loadedInjector=T.injector})):function ho(u){return bt(Qr(!1,Yt.GuardRejected))}())):(0,x.of)({routes:[],injector:p})}}function As(u){const p=u.value.routeConfig;return p&&""===p.path}function go(u){const p=[],c=new Set;for(const g of u){if(!As(g)){p.push(g);continue}const _=p.find(T=>g.value.routeConfig===T.value.routeConfig);void 0!==_?(_.children.push(...g.children),c.add(_)):p.push(g)}for(const g of c){const _=go(g.children);p.push(new yn(g.value,_))}return p.filter(g=>!c.has(g))}function Ns(u){const p=u.children.map(c=>Ns(c)).flat();return[u,...p]}function Rs(u){return(0,He.n)(p=>{const c=u(p);return c?(0,q.H)(c).pipe((0,we.T)(()=>p)):(0,x.of)(p)})}let ts=(()=>{class u{buildTitle(c){let g,_=c.root;for(;void 0!==_;)g=this.getResolvedTitleForRoute(_)??g,_=_.children.find(T=>T.outlet===Ye);return g}getResolvedTitleForRoute(c){return c.data[Ut]}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:()=>(0,o.WQX)(Hi),providedIn:"root"})}}return u})(),Hi=(()=>{class u extends ts{constructor(c){super(),this.title=c}updateTitle(c){const g=this.buildTitle(c);void 0!==g&&this.title.setTitle(g)}static{this.\u0275fac=function(g){return new(g||u)(o.KVO(Kt.hE))}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();const Gi=new o.nKC("",{providedIn:"root",factory:()=>({})}),li=new o.nKC("");let f=(()=>{class u{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,o.WQX)(o.Ql9)}loadComponent(c){if(this.componentLoaders.get(c))return this.componentLoaders.get(c);if(c._loadedComponent)return(0,x.of)(c._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(c);const g=$(c.loadComponent()).pipe((0,we.T)(D),_e(T=>{this.onLoadEndListener&&this.onLoadEndListener(c),c._loadedComponent=T}),(0,fn.j)(()=>{this.componentLoaders.delete(c)})),_=new Je(g,()=>new Ie.B).pipe(Ue());return this.componentLoaders.set(c,_),_}loadChildren(c,g){if(this.childrenLoaders.get(g))return this.childrenLoaders.get(g);if(g._loadedRoutes)return(0,x.of)({routes:g._loadedRoutes,injector:g._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(g);const T=function I(u,p,c,g){return $(u.loadChildren()).pipe((0,we.T)(D),(0,pe.Z)(_=>_ instanceof o.Co$||Array.isArray(_)?(0,x.of)(_):(0,q.H)(p.compileModuleAsync(_))),(0,we.T)(_=>{g&&g(u);let T,L,re=!1;return Array.isArray(_)?(L=_,!0):(T=_.create(c).injector,L=T.get(li,[],{optional:!0,self:!0}).flat()),{routes:L.map($i),injector:T}}))}(g,this.compiler,c,this.onLoadEndListener).pipe((0,fn.j)(()=>{this.childrenLoaders.delete(g)})),L=new Je(T,()=>new Ie.B).pipe(Ue());return this.childrenLoaders.set(g,L),L}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();function D(u){return function v(u){return u&&"object"==typeof u&&"default"in u}(u)?u.default:u}let k=(()=>{class u{static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:()=>(0,o.WQX)(se),providedIn:"root"})}}return u})(),se=(()=>{class u{shouldProcessUrl(c){return!0}extract(c){return c}merge(c,g){return c}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();const Ce=new o.nKC(""),Qe=new o.nKC("");function cn(u,p,c){const g=u.get(Qe),_=u.get(at.qQ);return u.get(o.SKi).runOutsideAngular(()=>{if(!_.startViewTransition||g.skipNextTransition)return g.skipNextTransition=!1,new Promise(Ve=>setTimeout(Ve));let T;const L=new Promise(Ve=>{T=Ve}),re=_.startViewTransition(()=>(T(),function an(u){return new Promise(p=>{(0,o.mal)(p,{injector:u})})}(u))),{onViewTransitionCreated:Q}=g;return Q&&(0,o.N4e)(u,()=>Q({transition:re,from:p,to:c})),L})}let Zt=(()=>{class u{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ie.B,this.transitionAbortSubject=new Ie.B,this.configLoader=(0,o.WQX)(f),this.environmentInjector=(0,o.WQX)(o.uvJ),this.urlSerializer=(0,o.WQX)(ur),this.rootContexts=(0,o.WQX)(jr),this.location=(0,o.WQX)(at.aZ),this.inputBindingEnabled=null!==(0,o.WQX)(jn,{optional:!0}),this.titleStrategy=(0,o.WQX)(ts),this.options=(0,o.WQX)(Gi,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,o.WQX)(k),this.createViewTransition=(0,o.WQX)(Ce,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,x.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=_=>this.events.next(new Mt(_)),this.configLoader.onLoadStartListener=_=>this.events.next(new mi(_))}complete(){this.transitions?.complete()}handleNavigationRequest(c){const g=++this.navigationId;this.transitions?.next({...this.transitions.value,...c,id:g})}setupNavigations(c,g,_){return this.transitions=new ge.t({id:0,currentUrlTree:g,currentRawUrl:g,extractedUrl:this.urlHandlingStrategy.extract(g),urlAfterRedirects:this.urlHandlingStrategy.extract(g),rawUrl:g,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ct,restoredState:null,currentSnapshot:_.snapshot,targetSnapshot:null,currentRouterState:_,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,tn.p)(T=>0!==T.id),(0,we.T)(T=>({...T,extractedUrl:this.urlHandlingStrategy.extract(T.rawUrl)})),(0,He.n)(T=>{let L=!1,re=!1;return(0,x.of)(T).pipe((0,He.n)(Q=>{if(this.navigationId>T.id)return this.cancelNavigationTransition(T,"",Yt.SupersededByNewNavigation),pt;this.currentTransition=T,this.currentNavigation={id:Q.id,initialUrl:Q.rawUrl,extractedUrl:Q.extractedUrl,trigger:Q.source,extras:Q.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Ve=!c.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!Ve&&"reload"!==(Q.extras.onSameUrlNavigation??c.onSameUrlNavigation)){const Lt="";return this.events.next(new ct(Q.id,this.urlSerializer.serialize(Q.rawUrl),Lt,Kn.IgnoredSameUrlNavigation)),Q.resolve(null),pt}if(this.urlHandlingStrategy.shouldProcessUrl(Q.rawUrl))return(0,x.of)(Q).pipe((0,He.n)(Lt=>{const Zn=this.transitions?.getValue();return this.events.next(new Xn(Lt.id,this.urlSerializer.serialize(Lt.extractedUrl),Lt.source,Lt.restoredState)),Zn!==this.transitions?.getValue()?pt:Promise.resolve(Lt)}),function Bl(u,p,c,g,_,T){return(0,pe.Z)(L=>function Aa(u,p,c,g,_,T,L="emptyOnly"){return new es(u,p,c,g,_,L,T).recognize()}(u,p,c,g,L.extractedUrl,_,T).pipe((0,we.T)(({state:re,tree:Q})=>({...L,targetSnapshot:re,urlAfterRedirects:Q}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,c.config,this.urlSerializer,this.paramsInheritanceStrategy),_e(Lt=>{T.targetSnapshot=Lt.targetSnapshot,T.urlAfterRedirects=Lt.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Lt.urlAfterRedirects};const Zn=new Ds(Lt.id,this.urlSerializer.serialize(Lt.extractedUrl),this.urlSerializer.serialize(Lt.urlAfterRedirects),Lt.targetSnapshot);this.events.next(Zn)}));if(Ve&&this.urlHandlingStrategy.shouldProcessUrl(Q.currentRawUrl)){const{id:Lt,extractedUrl:Zn,source:jo,restoredState:Uo,extras:os}=Q,ss=new Xn(Lt,this.urlSerializer.serialize(Zn),jo,Uo);this.events.next(ss);const yo=N(this.rootComponentType).snapshot;return this.currentTransition=T={...Q,targetSnapshot:yo,urlAfterRedirects:Zn,extras:{...os,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=Zn,(0,x.of)(T)}{const Lt="";return this.events.next(new ct(Q.id,this.urlSerializer.serialize(Q.extractedUrl),Lt,Kn.IgnoredByUrlHandlingStrategy)),Q.resolve(null),pt}}),_e(Q=>{const Ve=new Ir(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot);this.events.next(Ve)}),(0,we.T)(Q=>(this.currentTransition=T={...Q,guards:Ko(Q.targetSnapshot,Q.currentSnapshot,this.rootContexts)},T)),function Oo(u,p){return(0,pe.Z)(c=>{const{targetSnapshot:g,currentSnapshot:_,guards:{canActivateChecks:T,canDeactivateChecks:L}}=c;return 0===L.length&&0===T.length?(0,x.of)({...c,guardsResult:!0}):function Is(u,p,c,g){return(0,q.H)(u).pipe((0,pe.Z)(_=>function Ma(u,p,c,g,_){const T=p&&p.routeConfig?p.routeConfig.canDeactivate:null;if(!T||0===T.length)return(0,x.of)(!0);const L=T.map(re=>{const Q=si(p)??_,Ve=Ii(re,Q);return $(function gt(u){return u&&w(u.canDeactivate)}(Ve)?Ve.canDeactivate(u,p,c,g):(0,o.N4e)(Q,()=>Ve(u,p,c,g))).pipe(le())});return(0,x.of)(L).pipe(Zr())}(_.component,_.route,c,p,g)),le(_=>!0!==_,!0))}(L,g,_,u).pipe((0,pe.Z)(re=>re&&function m(u){return"boolean"==typeof u}(re)?function wa(u,p,c,g){return(0,q.H)(p).pipe((0,fe.H)(_=>me(function ba(u,p){return null!==u&&p&&p(new vi(u)),(0,x.of)(!0)}(_.route.parent,g),function Ll(u,p){return null!==u&&p&&p(new $n(u)),(0,x.of)(!0)}(_.route,g),function Ia(u,p,c){const g=p[p.length-1],T=p.slice(0,p.length-1).reverse().map(L=>function fo(u){const p=u.routeConfig?u.routeConfig.canActivateChild:null;return p&&0!==p.length?{node:u,guards:p}:null}(L)).filter(L=>null!==L).map(L=>(0,Te.v)(()=>{const re=L.guards.map(Q=>{const Ve=si(L.node)??c,wt=Ii(Q,Ve);return $(function Ke(u){return u&&w(u.canActivateChild)}(wt)?wt.canActivateChild(g,u):(0,o.N4e)(Ve,()=>wt(g,u))).pipe(le())});return(0,x.of)(re).pipe(Zr())}));return(0,x.of)(T).pipe(Zr())}(u,_.path,c),function Ms(u,p,c){const g=p.routeConfig?p.routeConfig.canActivate:null;if(!g||0===g.length)return(0,x.of)(!0);const _=g.map(T=>(0,Te.v)(()=>{const L=si(p)??c,re=Ii(T,L);return $(function B(u){return u&&w(u.canActivate)}(re)?re.canActivate(p,u):(0,o.N4e)(L,()=>re(p,u))).pipe(le())}));return(0,x.of)(_).pipe(Zr())}(u,_.route,c))),le(_=>!0!==_,!0))}(g,T,u,p):(0,x.of)(re)),(0,we.T)(re=>({...c,guardsResult:re})))})}(this.environmentInjector,Q=>this.events.next(Q)),_e(Q=>{if(T.guardsResult=Q.guardsResult,dr(Q.guardsResult))throw Di(0,Q.guardsResult);const Ve=new ro(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects),Q.targetSnapshot,!!Q.guardsResult);this.events.next(Ve)}),(0,tn.p)(Q=>!!Q.guardsResult||(this.cancelNavigationTransition(Q,"",Yt.GuardRejected),!1)),Rs(Q=>{if(Q.guards.canActivateChecks.length)return(0,x.of)(Q).pipe(_e(Ve=>{const wt=new io(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),this.urlSerializer.serialize(Ve.urlAfterRedirects),Ve.targetSnapshot);this.events.next(wt)}),(0,He.n)(Ve=>{let wt=!1;return(0,x.of)(Ve).pipe(function $l(u,p){return(0,pe.Z)(c=>{const{targetSnapshot:g,guards:{canActivateChecks:_}}=c;if(!_.length)return(0,x.of)(c);const T=new Set(_.map(Q=>Q.route)),L=new Set;for(const Q of T)if(!L.has(Q))for(const Ve of Ns(Q))L.add(Ve);let re=0;return(0,q.H)(L).pipe((0,fe.H)(Q=>T.has(Q)?function vo(u,p,c,g){const _=u.routeConfig,T=u._resolve;return void 0!==_?.title&&!qn(_)&&(T[Ut]=_.title),function Hl(u,p,c,g){const _=_r(u);if(0===_.length)return(0,x.of)({});const T={};return(0,q.H)(_).pipe((0,pe.Z)(L=>function Gl(u,p,c,g){const _=si(p)??g,T=Ii(u,_);return $(T.resolve?T.resolve(p,c):(0,o.N4e)(_,()=>T(p,c)))}(u[L],p,c,g).pipe(le(),_e(re=>{T[L]=re}))),lt(1),function sn(u){return(0,we.T)(()=>u)}(T),je(L=>ai(L)?pt:bt(L)))}(T,u,p,g).pipe((0,we.T)(L=>(u._resolvedData=L,u.data=S(u,u.parent,c).resolve,null)))}(Q,g,u,p):(Q.data=S(Q,Q.parent,u).resolve,(0,x.of)(void 0))),_e(()=>re++),lt(1),(0,pe.Z)(Q=>re===L.size?(0,x.of)(c):pt))})}(this.paramsInheritanceStrategy,this.environmentInjector),_e({next:()=>wt=!0,complete:()=>{wt||this.cancelNavigationTransition(Ve,"",Yt.NoDataFromResolver)}}))}),_e(Ve=>{const wt=new oo(Ve.id,this.urlSerializer.serialize(Ve.extractedUrl),this.urlSerializer.serialize(Ve.urlAfterRedirects),Ve.targetSnapshot);this.events.next(wt)}))}),Rs(Q=>{const Ve=wt=>{const Lt=[];wt.routeConfig?.loadComponent&&!wt.routeConfig._loadedComponent&&Lt.push(this.configLoader.loadComponent(wt.routeConfig).pipe(_e(Zn=>{wt.component=Zn}),(0,we.T)(()=>{})));for(const Zn of wt.children)Lt.push(...Ve(Zn));return Lt};return(0,ne.z)(Ve(Q.targetSnapshot.root)).pipe(Sn(null),dt(1))}),Rs(()=>this.afterPreactivation()),(0,He.n)(()=>{const{currentSnapshot:Q,targetSnapshot:Ve}=T,wt=this.createViewTransition?.(this.environmentInjector,Q.root,Ve.root);return wt?(0,q.H)(wt).pipe((0,we.T)(()=>T)):(0,x.of)(T)}),(0,we.T)(Q=>{const Ve=function er(u,p,c){const g=Br(u,p._root,c?c._root:void 0);return new fr(g,p)}(c.routeReuseStrategy,Q.targetSnapshot,Q.currentRouterState);return this.currentTransition=T={...Q,targetRouterState:Ve},this.currentNavigation.targetRouterState=Ve,T}),_e(()=>{this.events.next(new ji)}),((u,p,c,g)=>(0,we.T)(_=>(new ws(p,_.targetRouterState,_.currentRouterState,c,g).activate(u),_)))(this.rootContexts,c.routeReuseStrategy,Q=>this.events.next(Q),this.inputBindingEnabled),dt(1),_e({next:Q=>{L=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new It(Q.id,this.urlSerializer.serialize(Q.extractedUrl),this.urlSerializer.serialize(Q.urlAfterRedirects))),this.titleStrategy?.updateTitle(Q.targetRouterState.snapshot),Q.resolve(!0)},complete:()=>{L=!0}}),(0,St.Q)(this.transitionAbortSubject.pipe(_e(Q=>{throw Q}))),(0,fn.j)(()=>{!L&&!re&&this.cancelNavigationTransition(T,"",Yt.SupersededByNewNavigation),this.currentTransition?.id===T.id&&(this.currentNavigation=null,this.currentTransition=null)}),je(Q=>{if(re=!0,Bi(Q))this.events.next(new On(T.id,this.urlSerializer.serialize(T.extractedUrl),Q.message,Q.cancellationCode)),function ao(u){return Bi(u)&&dr(u.url)}(Q)?this.events.next(new Pr(Q.url)):T.resolve(!1);else{this.events.next(new Ft(T.id,this.urlSerializer.serialize(T.extractedUrl),Q,T.targetSnapshot??void 0));try{T.resolve(c.errorHandler(Q))}catch(Ve){this.options.resolveNavigationPromiseOnError?T.resolve(!1):T.reject(Ve)}}return pt}))}))}cancelNavigationTransition(c,g,_){const T=new On(c.id,this.urlSerializer.serialize(c.extractedUrl),g,_);this.events.next(T),c.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();function kt(u){return u!==Ct}let Mn=(()=>{class u{static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:()=>(0,o.WQX)(xn),providedIn:"root"})}}return u})();class Jt{shouldDetach(p){return!1}store(p,c){}shouldAttach(p){return!1}retrieve(p){return null}shouldReuseRoute(p,c){return p.routeConfig===c.routeConfig}}let xn=(()=>{class u extends Jt{static{this.\u0275fac=(()=>{let c;return function(_){return(c||(c=o.xGo(u)))(_||u)}})()}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})(),Xt=(()=>{class u{static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:()=>(0,o.WQX)(Ne),providedIn:"root"})}}return u})(),Ne=(()=>{class u extends Xt{constructor(){super(...arguments),this.location=(0,o.WQX)(at.aZ),this.urlSerializer=(0,o.WQX)(ur),this.options=(0,o.WQX)(Gi,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,o.WQX)(k),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new At,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=N(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(c){return this.location.subscribe(g=>{"popstate"===g.type&&c(g.url,g.state)})}handleRouterEvent(c,g){if(c instanceof Xn)this.stateMemento=this.createStateMemento();else if(c instanceof ct)this.rawUrlTree=g.initialUrl;else if(c instanceof Ds){if("eager"===this.urlUpdateStrategy&&!g.extras.skipLocationChange){const _=this.urlHandlingStrategy.merge(g.finalUrl,g.initialUrl);this.setBrowserUrl(_,g)}}else c instanceof ji?(this.currentUrlTree=g.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(g.finalUrl,g.initialUrl),this.routerState=g.targetRouterState,"deferred"===this.urlUpdateStrategy&&(g.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,g))):c instanceof On&&(c.code===Yt.GuardRejected||c.code===Yt.NoDataFromResolver)?this.restoreHistory(g):c instanceof Ft?this.restoreHistory(g,!0):c instanceof It&&(this.lastSuccessfulId=c.id,this.currentPageId=this.browserPageId)}setBrowserUrl(c,g){const _=this.urlSerializer.serialize(c);if(this.location.isCurrentPathEqualTo(_)||g.extras.replaceUrl){const L={...g.extras.state,...this.generateNgRouterState(g.id,this.browserPageId)};this.location.replaceState(_,"",L)}else{const T={...g.extras.state,...this.generateNgRouterState(g.id,this.browserPageId+1)};this.location.go(_,"",T)}}restoreHistory(c,g=!1){if("computed"===this.canceledNavigationResolution){const T=this.currentPageId-this.browserPageId;0!==T?this.location.historyGo(T):this.currentUrlTree===c.finalUrl&&0===T&&(this.resetState(c),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(g&&this.resetState(c),this.resetUrlToCurrentUrlTree())}resetState(c){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,c.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(c,g){return"computed"===this.canceledNavigationResolution?{navigationId:c,\u0275routerPageId:g}:{navigationId:c}}static{this.\u0275fac=(()=>{let c;return function(_){return(c||(c=o.xGo(u)))(_||u)}})()}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();var et=function(u){return u[u.COMPLETE=0]="COMPLETE",u[u.FAILED=1]="FAILED",u[u.REDIRECTING=2]="REDIRECTING",u}(et||{});function on(u,p){u.events.pipe((0,tn.p)(c=>c instanceof It||c instanceof On||c instanceof Ft||c instanceof ct),(0,we.T)(c=>c instanceof It||c instanceof ct?et.COMPLETE:c instanceof On&&(c.code===Yt.Redirect||c.code===Yt.SupersededByNewNavigation)?et.REDIRECTING:et.FAILED),(0,tn.p)(c=>c!==et.REDIRECTING),dt(1)).subscribe(()=>{p()})}function tr(u){throw u}const Cn={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Qn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let zn=(()=>{class u{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,o.WQX)(o.H3F),this.stateManager=(0,o.WQX)(Xt),this.options=(0,o.WQX)(Gi,{optional:!0})||{},this.pendingTasks=(0,o.WQX)(o.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,o.WQX)(Zt),this.urlSerializer=(0,o.WQX)(ur),this.location=(0,o.WQX)(at.aZ),this.urlHandlingStrategy=(0,o.WQX)(k),this._events=new Ie.B,this.errorHandler=this.options.errorHandler||tr,this.navigated=!1,this.routeReuseStrategy=(0,o.WQX)(Mn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=(0,o.WQX)(li,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!(0,o.WQX)(jn,{optional:!0}),this.eventsSubscription=new qe.yU,this.isNgZoneEnabled=(0,o.WQX)(o.SKi)instanceof o.SKi&&o.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:c=>{this.console.warn(c)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const c=this.navigationTransitions.events.subscribe(g=>{try{const _=this.navigationTransitions.currentTransition,T=this.navigationTransitions.currentNavigation;if(null!==_&&null!==T)if(this.stateManager.handleRouterEvent(g,T),g instanceof On&&g.code!==Yt.Redirect&&g.code!==Yt.SupersededByNewNavigation)this.navigated=!0;else if(g instanceof It)this.navigated=!0;else if(g instanceof Pr){const L=this.urlHandlingStrategy.merge(g.url,_.currentRawUrl),re={info:_.extras.info,skipLocationChange:_.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||kt(_.source)};this.scheduleNavigation(L,Ct,null,re,{resolve:_.resolve,reject:_.reject,promise:_.promise})}(function Yn(u){return!(u instanceof ji||u instanceof Pr)})(g)&&this._events.next(g)}catch(_){this.navigationTransitions.transitionAbortSubject.next(_)}});this.eventsSubscription.add(c)}resetRootComponentType(c){this.routerState.root.component=c,this.navigationTransitions.rootComponentType=c}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ct,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((c,g)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(c,"popstate",g)},0)})}navigateToSyncWithBrowser(c,g,_){const T={replaceUrl:!0},L=_?.navigationId?_:null;if(_){const Q={..._};delete Q.navigationId,delete Q.\u0275routerPageId,0!==Object.keys(Q).length&&(T.state=Q)}const re=this.parseUrl(c);this.scheduleNavigation(re,g,L,T)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(c){this.config=c.map($i),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(c,g={}){const{relativeTo:_,queryParams:T,fragment:L,queryParamsHandling:re,preserveFragment:Q}=g,Ve=Q?this.currentUrlTree.fragment:L;let Lt,wt=null;switch(re){case"merge":wt={...this.currentUrlTree.queryParams,...T};break;case"preserve":wt=this.currentUrlTree.queryParams;break;default:wt=T||null}null!==wt&&(wt=this.removeEmptyProps(wt));try{Lt=Ar(_?_.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof c[0]||!c[0].startsWith("/"))&&(c=[]),Lt=this.currentUrlTree.root}return Rr(Lt,c,wt,Ve??null)}navigateByUrl(c,g={skipLocationChange:!1}){const _=dr(c)?c:this.parseUrl(c),T=this.urlHandlingStrategy.merge(_,this.rawUrlTree);return this.scheduleNavigation(T,Ct,null,g)}navigate(c,g={skipLocationChange:!1}){return function pn(u){for(let p=0;p<u.length;p++)if(null==u[p])throw new o.wOt(4008,!1)}(c),this.navigateByUrl(this.createUrlTree(c,g),g)}serializeUrl(c){return this.urlSerializer.serialize(c)}parseUrl(c){try{return this.urlSerializer.parse(c)}catch{return this.urlSerializer.parse("/")}}isActive(c,g){let _;if(_=!0===g?{...Cn}:!1===g?{...Qn}:g,dr(c))return de(this.currentUrlTree,c,_);const T=this.parseUrl(c);return de(this.currentUrlTree,T,_)}removeEmptyProps(c){return Object.entries(c).reduce((g,[_,T])=>(null!=T&&(g[_]=T),g),{})}scheduleNavigation(c,g,_,T,L){if(this.disposed)return Promise.resolve(!1);let re,Q,Ve;L?(re=L.resolve,Q=L.reject,Ve=L.promise):Ve=new Promise((Lt,Zn)=>{re=Lt,Q=Zn});const wt=this.pendingTasks.add();return on(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(wt))}),this.navigationTransitions.handleNavigationRequest({source:g,restoredState:_,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:c,extras:T,resolve:re,reject:Q,promise:Ve,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Ve.catch(Lt=>Promise.reject(Lt))}static{this.\u0275fac=function(g){return new(g||u)}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})(),kr=(()=>{class u{constructor(c,g,_,T,L,re){this.router=c,this.route=g,this.tabIndexAttribute=_,this.renderer=T,this.el=L,this.locationStrategy=re,this.href=null,this.commands=null,this.onChanges=new Ie.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Q=L.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===Q||"area"===Q,this.isAnchorElement?this.subscription=c.events.subscribe(Ve=>{Ve instanceof It&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(c){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",c)}ngOnChanges(c){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(c){null!=c?(this.commands=Array.isArray(c)?c:[c],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(c,g,_,T,L){const re=this.urlTree;return!!(null===re||this.isAnchorElement&&(0!==c||g||_||T||L||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(re,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const c=this.urlTree;this.href=null!==c&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(c)):null;const g=null===this.href?null:(0,o.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",g)}applyAttributeValue(c,g){const _=this.renderer,T=this.el.nativeElement;null!==g?_.setAttribute(T,c,g):_.removeAttribute(T,c)}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:this.preserveFragment})}static{this.\u0275fac=function(g){return new(g||u)(o.rXU(zn),o.rXU(C),o.kS0("tabindex"),o.rXU(o.sFG),o.rXU(o.aKT),o.rXU(at.hb))}}static{this.\u0275dir=o.FsC({type:u,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(g,_){1&g&&o.bIt("click",function(L){return _.onClick(L.button,L.ctrlKey,L.shiftKey,L.altKey,L.metaKey)}),2&g&&o.BMQ("target",_.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[o.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",o.L39],skipLocationChange:[o.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",o.L39],replaceUrl:[o.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",o.L39],routerLink:"routerLink"},standalone:!0,features:[o.GFd,o.OA$]})}}return u})(),mt=(()=>{class u{get isActive(){return this._isActive}constructor(c,g,_,T,L){this.router=c,this.element=g,this.renderer=_,this.cdr=T,this.link=L,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new o.bkB,this.routerEventsSubscription=c.events.subscribe(re=>{re instanceof It&&this.update()})}ngAfterContentInit(){(0,x.of)(this.links.changes,(0,x.of)(null)).pipe(oe()).subscribe(c=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const c=[...this.links.toArray(),this.link].filter(g=>!!g).map(g=>g.onChanges);this.linkInputChangesSubscription=(0,q.H)(c).pipe(oe()).subscribe(g=>{this._isActive!==this.isLinkActive(this.router)(g)&&this.update()})}set routerLinkActive(c){const g=Array.isArray(c)?c:c.split(" ");this.classes=g.filter(_=>!!_)}ngOnChanges(c){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const c=this.hasActiveLinks();this.classes.forEach(g=>{c?this.renderer.addClass(this.element.nativeElement,g):this.renderer.removeClass(this.element.nativeElement,g)}),c&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==c&&(this._isActive=c,this.cdr.markForCheck(),this.isActiveChange.emit(c))})}isLinkActive(c){const g=function ns(u){return!!u.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return _=>{const T=_.urlTree;return!!T&&c.isActive(T,g)}}hasActiveLinks(){const c=this.isLinkActive(this.router);return this.link&&c(this.link)||this.links.some(c)}static{this.\u0275fac=function(g){return new(g||u)(o.rXU(zn),o.rXU(o.aKT),o.rXU(o.sFG),o.rXU(o.gRc),o.rXU(kr,8))}}static{this.\u0275dir=o.FsC({type:u,selectors:[["","routerLinkActive",""]],contentQueries:function(g,_,T){if(1&g&&o.wni(T,kr,5),2&g){let L;o.mGM(L=o.lsd())&&(_.links=L)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[o.OA$]})}}return u})();class Na{}let is=(()=>{class u{constructor(c,g,_,T,L){this.router=c,this.injector=_,this.preloadingStrategy=T,this.loader=L}setUpPreloading(){this.subscription=this.router.events.pipe((0,tn.p)(c=>c instanceof It),(0,fe.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(c,g){const _=[];for(const T of g){T.providers&&!T._injector&&(T._injector=(0,o.Ol2)(T.providers,c,`Route: ${T.path}`));const L=T._injector??c,re=T._loadedInjector??L;(T.loadChildren&&!T._loadedRoutes&&void 0===T.canLoad||T.loadComponent&&!T._loadedComponent)&&_.push(this.preloadConfig(L,T)),(T.children||T._loadedRoutes)&&_.push(this.processRoutes(re,T.children??T._loadedRoutes))}return(0,q.H)(_).pipe(oe())}preloadConfig(c,g){return this.preloadingStrategy.preload(g,()=>{let _;_=g.loadChildren&&void 0===g.canLoad?this.loader.loadChildren(c,g):(0,x.of)(null);const T=_.pipe((0,pe.Z)(L=>null===L?(0,x.of)(void 0):(g._loadedRoutes=L.routes,g._loadedInjector=L.injector,this.processRoutes(L.injector??c,L.routes))));if(g.loadComponent&&!g._loadedComponent){const L=this.loader.loadComponent(g);return(0,q.H)([T,L]).pipe(oe())}return T})}static{this.\u0275fac=function(g){return new(g||u)(o.KVO(zn),o.KVO(o.Ql9),o.KVO(o.uvJ),o.KVO(Na),o.KVO(f))}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac,providedIn:"root"})}}return u})();const zi=new o.nKC("");let Mi=(()=>{class u{constructor(c,g,_,T,L={}){this.urlSerializer=c,this.transitions=g,this.viewportScroller=_,this.zone=T,this.options=L,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,o.WQX)(o.uvJ),L.scrollPositionRestoration||="disabled",L.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(c=>{c instanceof Xn?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=c.navigationTrigger,this.restoredId=c.restoredState?c.restoredState.navigationId:0):c instanceof It?(this.lastId=c.id,this.scheduleScrollEvent(c,this.urlSerializer.parse(c.urlAfterRedirects).fragment)):c instanceof ct&&c.code===Kn.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(c,this.urlSerializer.parse(c.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(c=>{c instanceof Io&&(c.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(c.position):c.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(c.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(c,g){var _=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(T=>{setTimeout(()=>{T()}),(0,o.mal)(()=>{T()},{injector:_.environmentInjector})}),_.zone.run(()=>{_.transitions.events.next(new Io(c,"popstate"===_.lastSource?_.store[_.restoredId]:null,g))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(g){o.QTQ()}}static{this.\u0275prov=o.jDH({token:u,factory:u.\u0275fac})}}return u})();function pr(u,p){return{\u0275kind:u,\u0275providers:p}}function Fo(){const u=(0,o.WQX)(o.zZn);return p=>{const c=u.get(o.o8S);if(p!==c.components[0])return;const g=u.get(zn),_=u.get(ui);1===u.get(ko)&&g.initialNavigation(),u.get(gr,null,o.$GK.Optional)?.setUpPreloading(),u.get(zi,null,o.$GK.Optional)?.init(),g.resetRootComponentType(c.componentTypes[0]),_.closed||(_.next(),_.complete(),_.unsubscribe())}}const ui=new o.nKC("",{factory:()=>new Ie.B}),ko=new o.nKC("",{providedIn:"root",factory:()=>1}),gr=new o.nKC("");function Tr(u){return pr(0,[{provide:gr,useExisting:is},{provide:Na,useExisting:u}])}function Pa(u){return pr(9,[{provide:Ce,useValue:cn},{provide:Qe,useValue:{skipNextTransition:!!u?.skipInitialTransition,...u}}])}const Kl=new o.nKC("ROUTER_FORROOT_GUARD"),Fa=[at.aZ,{provide:ur,useClass:or},zn,jr,{provide:C,useFactory:function Ra(u){return u.routerState.root},deps:[zn]},f,[]];let ql=(()=>{class u{constructor(c){}static forRoot(c,g){return{ngModule:u,providers:[Fa,[],{provide:li,multi:!0,useValue:c},{provide:Kl,useFactory:Ch,deps:[[zn,new o.Xx1,new o.kdw]]},{provide:Gi,useValue:g||{}},g?.useHash?{provide:at.hb,useClass:at.fw}:{provide:at.hb,useClass:at.Sm},{provide:zi,useFactory:()=>{const u=(0,o.WQX)(at.Xr),p=(0,o.WQX)(o.SKi),c=(0,o.WQX)(Gi),g=(0,o.WQX)(Zt),_=(0,o.WQX)(ur);return c.scrollOffset&&u.setOffset(c.scrollOffset),new Mi(_,g,u,p,c)}},g?.preloadingStrategy?Tr(g.preloadingStrategy).\u0275providers:[],g?.initialNavigation?_h(g):[],g?.bindToComponentInputs?pr(8,[_i,{provide:jn,useExisting:_i}]).\u0275providers:[],g?.enableViewTransitions?Pa().\u0275providers:[],[{provide:bc,useFactory:Fo},{provide:o.iLQ,multi:!0,useExisting:bc}]]}}static forChild(c){return{ngModule:u,providers:[{provide:li,multi:!0,useValue:c}]}}static{this.\u0275fac=function(g){return new(g||u)(o.KVO(Kl,8))}}static{this.\u0275mod=o.$C({type:u})}static{this.\u0275inj=o.G2t({})}}return u})();function Ch(u){return"guarded"}function _h(u){return["disabled"===u.initialNavigation?pr(3,[{provide:o.hnV,multi:!0,useFactory:()=>{const p=(0,o.WQX)(zn);return()=>{p.setUpLocationChangeListener()}}},{provide:ko,useValue:2}]).\u0275providers:[],"enabledBlocking"===u.initialNavigation?pr(2,[{provide:ko,useValue:0},{provide:o.hnV,multi:!0,deps:[o.zZn],useFactory:p=>{const c=p.get(at.hj,Promise.resolve());return()=>c.then(()=>new Promise(g=>{const _=p.get(zn),T=p.get(ui);on(_,()=>{g(!0)}),p.get(Zt).afterPreactivation=()=>(g(!0),T.closed?(0,x.of)(void 0):T),_.initialNavigation()}))}}]).\u0275providers:[]]}const bc=new o.nKC("")},7431:(Ze,he,M)=>{function h(K,q,x,ge,ne,Ee,pe){try{var ce=K[Ee](pe),oe=ce.value}catch(J){return void x(J)}ce.done?q(oe):Promise.resolve(oe).then(ge,ne)}function o(K){return function(){var q=this,x=arguments;return new Promise(function(ge,ne){var Ee=K.apply(q,x);function pe(oe){h(Ee,ge,ne,pe,ce,"next",oe)}function ce(oe){h(Ee,ge,ne,pe,ce,"throw",oe)}pe(void 0)})}}M.d(he,{A:()=>o})},5823:(Ze,he,M)=>{function J(te,ae,le,fe){return new(le||(le=Promise))(function(Me,je){function xt(jt){try{lt(fe.next(jt))}catch(sn){je(sn)}}function nn(jt){try{lt(fe.throw(jt))}catch(sn){je(sn)}}function lt(jt){jt.done?Me(jt.value):function _e(Me){return Me instanceof le?Me:new le(function(je){je(Me)})}(jt.value).then(xt,nn)}lt((fe=fe.apply(te,ae||[])).next())})}function xe(te){return this instanceof xe?(this.v=te,this):new xe(te)}function Se(te,ae,le){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _e,fe=le.apply(te,ae||[]),Me=[];return _e=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),xt("next"),xt("throw"),xt("return",function je(St){return function(Kt){return Promise.resolve(Kt).then(St,sn)}}),_e[Symbol.asyncIterator]=function(){return this},_e;function xt(St,Kt){fe[St]&&(_e[St]=function(Ye){return new Promise(function(Ut,hn){Me.push([St,Ye,Ut,hn])>1||nn(St,Ye)})},Kt&&(_e[St]=Kt(_e[St])))}function nn(St,Kt){try{!function lt(St){St.value instanceof xe?Promise.resolve(St.value.v).then(jt,sn):fn(Me[0][2],St)}(fe[St](Kt))}catch(Ye){fn(Me[0][3],Ye)}}function jt(St){nn("next",St)}function sn(St){nn("throw",St)}function fn(St,Kt){St(Kt),Me.shift(),Me.length&&nn(Me[0][0],Me[0][1])}}function Ge(te){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var le,ae=te[Symbol.asyncIterator];return ae?ae.call(te):(te=function ot(te){var ae="function"==typeof Symbol&&Symbol.iterator,le=ae&&te[ae],fe=0;if(le)return le.call(te);if(te&&"number"==typeof te.length)return{next:function(){return te&&fe>=te.length&&(te=void 0),{value:te&&te[fe++],done:!te}}};throw new TypeError(ae?"Object is not iterable.":"Symbol.iterator is not defined.")}(te),le={},fe("next"),fe("throw"),fe("return"),le[Symbol.asyncIterator]=function(){return this},le);function fe(Me){le[Me]=te[Me]&&function(je){return new Promise(function(xt,nn){!function _e(Me,je,xt,nn){Promise.resolve(nn).then(function(lt){Me({value:lt,done:xt})},je)}(xt,nn,(je=te[Me](je)).done,je.value)})}}}M.d(he,{AQ:()=>Se,N3:()=>xe,sH:()=>J,xN:()=>Ge}),"function"==typeof SuppressedError&&SuppressedError}},Ze=>{Ze(Ze.s=7309)}]);