dealpos 12.0.2 → 12.0.3

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.
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkPOS=self.webpackChunkPOS||[]).push([[3515],{53515:(ze,_e,a)=>{a.r(_e),a.d(_e,{MenuMasterModule:()=>Ie});var r=a(24006),K=a(36806),l=a(94650),A=a(59612);let t=(()=>{class S{constructor(Z,B){this.authService=Z,this.router=B}canLoad(Z,B){return!this.authService.isTokenExpired()||(this.authService.returnUrl=this.getUrlRedirect(B),this.router.navigate(["/"]),!1)}getUrlRedirect(Z){let B="/menu";Z.forEach(ae=>B+=`/${ae.path}`);const ye=this.router.getCurrentNavigation().extractedUrl.queryParams;return Object.keys(ye).forEach((ae,ge)=>{B=0==ge?`${B}?${ae}=${ye[ae]}`:`${B}&${ae}=${ye[ae]}`}),B}}return S.\u0275fac=function(Z){return new(Z||S)(l.LFG(A.e),l.LFG(K.F0))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();var Q=a(85657),W=a(10962);let P=(()=>{class S{constructor(Z,B){this.cookiesService=Z,this.reportService=B}canDeactivate(Z,B,ye){return this.cookiesService.delete("ReportFilter","/"),this.reportService.resetFilter(),!0}}return S.\u0275fac=function(Z){return new(Z||S)(l.LFG(Q.N),l.LFG(W.z))},S.\u0275prov=l.Yz7({token:S,factory:S.\u0275fac,providedIn:"root"}),S})();var re=a(67327),se=a(77579),he=a(82722),pe=a(39300),x=a(24766),v=a(54147),G=a(35078),J=a(14070),ie=a(8071),q=a(10266),ve=a(36895),oe=a(93669);function H(S,me){if(1&S&&(l.TgZ(0,"a",28),l._UZ(1,"i",29),l.TgZ(2,"span"),l._uU(3),l.qZA()()),2&S){const Z=me.$implicit;l.Q6J("routerLink",Z.U),l.xp6(1),l.Tol(Z.I+" me-2"),l.xp6(2),l.Oqu(Z.T)}}const le=function(S){return[S]};function I(S,me){if(1&S&&(l.TgZ(0,"li")(1,"a",30),l._UZ(2,"i"),l.TgZ(3,"p"),l._uU(4),l.qZA()()()),2&S){const Z=me.$implicit,B=l.oxw();l.ekj("active",B.activeMenu==Z.T),l.uIk("data-cy",Z.T),l.xp6(1),l.Q6J("matTooltip",B.toggleSideMenu?Z.T:"")("routerLink",l.VKq(8,le,Z.U)),l.xp6(1),l.Tol(Z.I),l.xp6(2),l.Oqu(Z.T)}}const V=function(S,me){return{"full-container":S,"subscription-bar-visible":me}};let ce=(()=>{class S{constructor(Z,B,ye,xe,ae){this.toggleSidebar=Z,this.signalRClientService=B,this.notificationAlertService=ye,this.router=xe,this.authService=ae,this.Menu={},this.KeyMenu="MenuPageData",this.toggleSideMenu=!1,this.appVersion=x.N.version,this.subsStatusEnum=v.y,this.Menu=JSON.parse(localStorage.getItem(this.KeyMenu)),this.toggleSidebar.toggleState$.subscribe(ge=>this.isNavOpen=ge),this.destroy$=new se.x}ngOnInit(){this.subscribeToPushNotification(),this.initializeActiveMenu(),this.subscribeRouterChanges(),this.getCurrentSubscriptionStatus()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}initializeActiveMenu(){this.parseUrlForActiveMenu(window.location.href)}subscribeRouterChanges(){this.router.events.subscribe({next:Z=>{Z instanceof K.m2&&this.parseUrlForActiveMenu(Z.url)}})}parseUrlForActiveMenu(Z){const B=Z.split("menu/");B.length>0&&(this.activeMenu=B[1],B.length>1&&(this.activeMenu=this.activeMenu.split("/")[0],this.activeMenu=this.activeMenu.replace("_"," ")))}subscribeToPushNotification(){let Z=localStorage.getItem("PushNotificationID");re.gT.IsNotEmpty(Z)&&(this.signalRClientService.SubscribeGroup(Z),this.notificationAlertService.initPermission()),this.signalRClientService.OnReceivePushNotification.pipe((0,he.R)(this.destroy$),(0,pe.h)(B=>re.gT.IsNotEmpty(B))).subscribe(B=>{if(re.gT.IsNotEmpty(B)){const ye=JSON.parse(B);let xe="//res.cloudinary.com/pos/image/upload/v1657006791/icons/info-new.png";re.gT.IsNotEmpty(ye.Icon)&&(xe=ye.Icon),this.notificationAlertService.showAlert(ye.Body,ye.Header,ye.URL,xe)}})}ngAfterViewInit(){this.inititalizeIntercom()}inititalizeIntercom(){let Z=localStorage.getItem("Intercom"),B=JSON.parse(Z);B.Enabled&&window.Intercom("boot",{app_id:"xv1oomgl",name:B.Name,email:B.Email,created_at:B.Created,user_hash:B.Hash})}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(Z){return re.gT.IsNotEmpty(Z)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return S.\u0275fac=function(Z){return new(Z||S)(l.Y36(G.g),l.Y36(J.G),l.Y36(ie.o),l.Y36(K.F0),l.Y36(A.e))},S.\u0275cmp=l.Xpm({type:S,selectors:[["POS-menu-master"]],decls:43,vars:17,consts:[[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["class","dropdown-item h5",3,"routerLink",4,"ngFor","ngForOf"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],[3,"active",4,"ngFor","ngForOf"],[1,"main-panel",3,"ngClass"],[1,"dropdown-item","h5",3,"routerLink"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(Z,B){1&Z&&(l.TgZ(0,"div",0)(1,"div",1)(2,"button",2),l.NdJ("click",function(){return B.toggleMenu()}),l._UZ(3,"i",3),l.qZA(),l.TgZ(4,"div",4)(5,"div",5)(6,"a",6),l._uU(7),l.ALo(8,"limitTo"),l.qZA(),l.TgZ(9,"div",7)(10,"div",8),l._uU(11),l.qZA(),l._UZ(12,"div",9),l.YNc(13,H,4,4,"a",10),l.TgZ(14,"a",11),l.NdJ("click",function(){return B.logout()}),l._UZ(15,"i",12),l.TgZ(16,"span"),l._uU(17,"Log Out"),l.qZA()(),l._UZ(18,"div",13),l.TgZ(19,"div",14),l._uU(20," Links "),l.qZA(),l.TgZ(21,"a",15),l._UZ(22,"i",16),l.TgZ(23,"span"),l._uU(24,"What's New"),l._UZ(25,"i",17),l.qZA()(),l.TgZ(26,"a",18),l._UZ(27,"i",19),l.TgZ(28,"span"),l._uU(29,"Help Center"),l.qZA()(),l.TgZ(30,"a",20),l._UZ(31,"i",21),l.TgZ(32,"span"),l._uU(33,"App Store"),l.qZA()(),l.TgZ(34,"a",22),l._UZ(35,"i",23),l.TgZ(36,"span"),l._uU(37,"Company Blog"),l.qZA()()()()(),l.TgZ(38,"div",24)(39,"ul",25),l.YNc(40,I,5,10,"li",26),l.qZA()()(),l.TgZ(41,"div",27),l._UZ(42,"router-outlet"),l.qZA()()),2&Z&&(l.ekj("nav-open",B.isNavOpen),l.xp6(1),l.Q6J("ngClass",B.toggleSideMenu?"collapses":""),l.xp6(2),l.Q6J("ngClass",B.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),l.xp6(3),l.s9C("matTooltip",B.Menu.CompanyName),l.xp6(1),l.Oqu(l.xi3(8,11,B.Menu.CompanyName,B.toggleSideMenu?1:11)),l.xp6(4),l.hij("",B.Menu.UserName," "),l.xp6(2),l.Q6J("ngForOf",B.Menu.Top),l.xp6(8),l.MGl("href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",B.appVersion,"",l.LSH),l.xp6(19),l.Q6J("ngForOf",B.Menu.Left),l.xp6(1),l.Q6J("ngClass",l.WLB(14,V,"/menu/SellV3"===(null==B.router?null:B.router.url),B.isNotEmpty(B.currentSubStatus)&&B.currentSubStatus!==B.subsStatusEnum.PAID)))},dependencies:[q.gM,K.lC,K.yS,ve.mk,ve.sg,oe.OI],styles:[".sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important;scrollbar-width:thin}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}"]}),S})();const be=[{path:"",component:ce,children:[{path:"Inventory",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(585),a.e(811),a.e(2255),a.e(8592),a.e(3894)]).then(a.bind(a,2406)).then(S=>S.InventoryModule),canLoad:[t]},{path:"Reports",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(3848),a.e(6308),a.e(811),a.e(2255),a.e(6510),a.e(7392),a.e(9844),a.e(8592),a.e(8094)]).then(a.bind(a,8094)).then(S=>S.ReportsModule),canLoad:[t],canDeactivate:[P]},{path:"Sell",loadChildren:()=>a.e(8126).then(a.bind(a,68126)).then(S=>S.SellModule),canLoad:[t]},{path:"SellV3",loadChildren:()=>Promise.all([a.e(3337),a.e(456),a.e(4537),a.e(2884),a.e(3848),a.e(9472),a.e(4825),a.e(585),a.e(811),a.e(2270),a.e(7193),a.e(7392),a.e(5533),a.e(9093),a.e(7877),a.e(7767),a.e(4205)]).then(a.bind(a,64205)).then(S=>S.SellV3Module),canLoad:[t]},{path:"Print",loadChildren:()=>Promise.all([a.e(3337),a.e(7193),a.e(4941)]).then(a.bind(a,64941)).then(S=>S.PrintModule),canLoad:[t]},{path:"Buy",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(2884),a.e(3848),a.e(9472),a.e(4825),a.e(585),a.e(811),a.e(2270),a.e(1407),a.e(5533),a.e(9093),a.e(158),a.e(8592),a.e(1930)]).then(a.bind(a,10735)).then(S=>S.BuyModule),canLoad:[t]},{path:"Dashboard",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(6510),a.e(4020)]).then(a.bind(a,74020)).then(S=>S.DashboardModule),canLoad:[t]},{path:"Products",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(4825),a.e(811),a.e(2255),a.e(6510),a.e(7331),a.e(343),a.e(8592),a.e(2312)]).then(a.bind(a,62312)).then(S=>S.ProductModule),canLoad:[t]},{path:"Shift",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(585),a.e(8592),a.e(7266)]).then(a.bind(a,47266)).then(S=>S.ShiftModule),canLoad:[t]},{path:"Debt",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(4825),a.e(585),a.e(811),a.e(2255),a.e(8592),a.e(7349)]).then(a.bind(a,27349)).then(S=>S.DebtModule),canLoad:[t]},{path:"Logistics",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(3848),a.e(4825),a.e(811),a.e(2255),a.e(2270),a.e(1407),a.e(8592),a.e(9207)]).then(a.bind(a,69207)).then(S=>S.DeliveryModule),canLoad:[t]},{path:"Users",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(585),a.e(811),a.e(2255),a.e(6709),a.e(8592),a.e(8105)]).then(a.bind(a,38105)).then(S=>S.UsersModule),canLoad:[t]},{path:"Setup",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(4825),a.e(585),a.e(811),a.e(2255),a.e(6709),a.e(8592),a.e(4694)]).then(a.bind(a,44694)).then(S=>S.SetupModule),canLoad:[t]},{path:"Contacts",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(3848),a.e(9472),a.e(6308),a.e(4825),a.e(585),a.e(811),a.e(2255),a.e(6709),a.e(8592),a.e(6099)]).then(a.bind(a,36099)).then(S=>S.ContactsModule),canLoad:[t]},{path:"Outlets",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(8006),a.e(9564),a.e(2884),a.e(9472),a.e(4825),a.e(343),a.e(2668)]).then(a.bind(a,2668)).then(S=>S.OutletsModule),canLoad:[t]},{path:"Orders",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(9472),a.e(4825),a.e(585),a.e(7392),a.e(7877),a.e(9844),a.e(8592),a.e(3571)]).then(a.bind(a,27449)).then(S=>S.OrdersModule),canLoad:[t]},{path:"Profile",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(8592),a.e(5378)]).then(a.bind(a,15378)).then(S=>S.ProfileModule),canLoad:[t]},{path:"Estimate",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(3848),a.e(4825),a.e(2270),a.e(1407),a.e(5533),a.e(7331),a.e(4749),a.e(8592),a.e(7998)]).then(a.bind(a,81920)).then(S=>S.EstimateModule),canLoad:[t]},{path:"Adjustment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(2884),a.e(3848),a.e(6308),a.e(4825),a.e(2270),a.e(6709),a.e(1407),a.e(7392),a.e(7331),a.e(4749),a.e(158),a.e(8592),a.e(3353)]).then(a.bind(a,45782)).then(S=>S.AdjustmentModule),canLoad:[t]},{path:"Payment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(6308),a.e(811),a.e(8592),a.e(6972)]).then(a.bind(a,76972)).then(S=>S.PaymentModule),canLoad:[t]},{path:"Promotion",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(9472),a.e(585),a.e(7298)]).then(a.bind(a,7298)).then(S=>S.PromotionModule),canLoad:[t]},{path:"Manufacture",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(9564),a.e(6308),a.e(6268)]).then(a.bind(a,26268)).then(S=>S.ManufactureModule),canLoad:[t]},{path:"Prepaid_Package",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(9564),a.e(2884),a.e(9472),a.e(6308),a.e(585),a.e(6709),a.e(7193),a.e(6510),a.e(4941),a.e(8592),a.e(8589)]).then(a.bind(a,88589)).then(S=>S.PrepaidPackageModule),canLoad:[t]},{path:"Fulfillment",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(456),a.e(4537),a.e(8006),a.e(6308),a.e(4825),a.e(6709),a.e(8592),a.e(2141)]).then(a.bind(a,32141)).then(S=>S.FulfillmentModule),canLoad:[t]},{path:"Unauthorized",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(6461)]).then(a.bind(a,96461)).then(S=>S.UnauthorizedModule),canLoad:[t]},{path:"Not_Found",loadChildren:()=>Promise.all([a.e(3337),a.e(273),a.e(3920)]).then(a.bind(a,43920)).then(S=>S.NotFoundModule),canLoad:[t]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}];let fe=(()=>{class S{}return S.\u0275fac=function(Z){return new(Z||S)},S.\u0275mod=l.oAB({type:S}),S.\u0275inj=l.cJS({imports:[K.Bz.forChild(be),K.Bz]}),S})();var Te=a(65412),Ae=a(99602),ke=a(47957),Be=a(88796);let Ie=(()=>{class S{constructor(){}}return S.\u0275fac=function(Z){return new(Z||S)},S.\u0275mod=l.oAB({type:S,bootstrap:[ce]}),S.\u0275inj=l.cJS({imports:[q.AV,fe,oe.dr,r.u5,ve.ez,Te.Is,Ae.FA,Be.A0,ke.Bb]}),S})()},10962:(ze,_e,a)=>{a.d(_e,{z:()=>A});var r=a(67327),K=a(94650),l=a(85657);let A=(()=>{class t{constructor(W){this.cookieService=W,this._reportFilter={from:null,outletIds:[],to:null},this._cookiesName="ReportFilter"}initOutletFilter(W=[]){let P=this.getReportFilter();return r.gT.IsNotEmpty(P?.outletIds)?W=P.outletIds:this.setOutletFilter(W),W}initDateFromFilter(W){let P=this.getReportFilter();return r.gT.IsNotEmpty(P?.from)?W=P.from:this.setDateFromFilter(W),W}initDateToFilter(W){let P=this.getReportFilter();return r.gT.IsNotEmpty(P?.to)?W=P.to:this.setDateToFilter(W),W}setDateFromFilter(W){let P=this.getReportFilter();r.gT.IsEmpty(P)&&(P=this._reportFilter),P.from=W,this.saveFilterToCookie(P)}setDateToFilter(W){let P=this.getReportFilter();r.gT.IsEmpty(P)&&(P=this._reportFilter),P.to=W,this.saveFilterToCookie(P)}setOutletFilter(W=[]){let P=this.getReportFilter();r.gT.IsEmpty(P)&&(P=this._reportFilter),P.outletIds=W,this.saveFilterToCookie(P)}saveFilterToCookie(W){this.cookieService.set(this._cookiesName,JSON.stringify(W),this.getExpiredDate(),"/")}getReportFilter(){if(this.cookieService.check("ReportFilter")){let W=this.cookieService.get("ReportFilter");this._reportFilter=JSON.parse(W)}return this._reportFilter}getExpiredDate(){let W=new Date;return W.setTime(W.getTime()+36e5),W}resetFilter(){this._reportFilter={from:null,outletIds:[],to:null}}}return t.\u0275fac=function(W){return new(W||t)(K.LFG(l.N))},t.\u0275prov=K.Yz7({token:t,factory:t.\u0275fac,providedIn:"root"}),t})()},8071:(ze,_e,a)=>{a.d(_e,{o:()=>l});var r=a(94650),K=a(97185);let l=(()=>{class A{constructor(Q){this.toastrService=Q,this.initPermissionToastr=!1}initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(W=>{this.isPermissionGranted=!1,"granted"==W&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(Q){console.error(Q)}}showAlert(Q,W,P,re){if(this.isPermissionGranted)try{new Notification(W,{body:Q,icon:re}).onerror=pe=>{this.toastrService.info(this.setBody(Q,P),W,{timeOut:6e4,enableHtml:this.hasUrl(P)})}}catch(he){console.error(he)}else this.toastrService.info(this.setBody(Q,P),W,{timeOut:6e4,enableHtml:this.hasUrl(P)})}setBody(Q,W){return this.hasUrl(W)&&(Q=`<a href="${W}" target="_blank" class="ps-0">${Q}</a>`),Q}hasUrl(Q){return!(!Q||0===Q.length)}}return A.\u0275fac=function(Q){return new(Q||A)(r.LFG(K._W))},A.\u0275prov=r.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},14070:(ze,_e,a)=>{a.d(_e,{G:()=>Ye});const r=[0,2e3,1e4,3e4,null];class K{constructor(n){this._retryDelays=void 0!==n?[...n,null]:r}nextRetryDelayInMilliseconds(n){return this._retryDelays[n.previousRetryCount]}}var l=a(15861);class A extends Error{constructor(n,s){const u=new.target.prototype;super(`${n}: Status code '${s}'`),this.statusCode=s,this.__proto__=u}}class t extends Error{constructor(n="A timeout occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class Q extends Error{constructor(n="An abort occurred."){const s=new.target.prototype;super(n),this.__proto__=s}}class W extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="UnsupportedTransportError",this.__proto__=u}}class P extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="DisabledTransportError",this.__proto__=u}}class re extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.transport=s,this.errorType="FailedToStartTransportError",this.__proto__=u}}class se extends Error{constructor(n){const s=new.target.prototype;super(n),this.errorType="FailedToNegotiateWithServerError",this.__proto__=s}}class he extends Error{constructor(n,s){const u=new.target.prototype;super(n),this.innerErrors=s,this.__proto__=u}}class pe{constructor(n,s,u){this.statusCode=n,this.statusText=s,this.content=u}}class x{get(n,s){return this.send({...s,method:"GET",url:n})}post(n,s){return this.send({...s,method:"POST",url:n})}delete(n,s){return this.send({...s,method:"DELETE",url:n})}getCookieString(n){return""}}var v=(()=>{return(b=v||(v={}))[b.Trace=0]="Trace",b[b.Debug=1]="Debug",b[b.Information=2]="Information",b[b.Warning=3]="Warning",b[b.Error=4]="Error",b[b.Critical=5]="Critical",b[b.None=6]="None",v;var b})();class G{constructor(){}log(n,s){}}G.instance=new G;class ie{static isRequired(n,s){if(null==n)throw new Error(`The '${s}' argument is required.`)}static isNotEmpty(n,s){if(!n||n.match(/^\s*$/))throw new Error(`The '${s}' argument should not be empty.`)}static isIn(n,s,u){if(!(n in s))throw new Error(`Unknown ${u} value: ${n}.`)}}class q{static get isBrowser(){return"object"==typeof window&&"object"==typeof window.document}static get isWebWorker(){return"object"==typeof self&&"importScripts"in self}static get isReactNative(){return"object"==typeof window&&typeof window.document>"u"}static get isNode(){return!this.isBrowser&&!this.isWebWorker&&!this.isReactNative}}function ve(b,n){let s="";return H(b)?(s=`Binary data of length ${b.byteLength}`,n&&(s+=`. Content: '${function oe(b){const n=new Uint8Array(b);let s="";return n.forEach(u=>{s+=`0x${u<16?"0":""}${u.toString(16)} `}),s.substr(0,s.length-1)}(b)}'`)):"string"==typeof b&&(s=`String data of length ${b.length}`,n&&(s+=`. Content: '${b}'`)),s}function H(b){return b&&typeof ArrayBuffer<"u"&&(b instanceof ArrayBuffer||b.constructor&&"ArrayBuffer"===b.constructor.name)}function le(b,n,s,u,f,D,O){return I.apply(this,arguments)}function I(){return(I=(0,l.Z)(function*(b,n,s,u,f,D,O){let k={};if(f){const Ue=yield f();Ue&&(k={Authorization:`Bearer ${Ue}`})}const[$,Y]=fe();k[$]=Y,b.log(v.Trace,`(${n} transport) sending data. ${ve(D,O.logMessageContent)}.`);const te=H(D)?"arraybuffer":"text",we=yield s.post(u,{content:D,headers:{...k,...O.headers},responseType:te,timeout:O.timeout,withCredentials:O.withCredentials});b.log(v.Trace,`(${n} transport) request complete. Response status: ${we.statusCode}.`)})).apply(this,arguments)}class ce{constructor(n,s){this._subject=n,this._observer=s}dispose(){const n=this._subject.observers.indexOf(this._observer);n>-1&&this._subject.observers.splice(n,1),0===this._subject.observers.length&&this._subject.cancelCallback&&this._subject.cancelCallback().catch(s=>{})}}class be{constructor(n){this._minLevel=n,this.out=console}log(n,s){if(n>=this._minLevel){const u=`[${(new Date).toISOString()}] ${v[n]}: ${s}`;switch(n){case v.Critical:case v.Error:this.out.error(u);break;case v.Warning:this.out.warn(u);break;case v.Information:this.out.info(u);break;default:this.out.log(u)}}}}function fe(){let b="X-SignalR-User-Agent";return q.isNode&&(b="User-Agent"),[b,Te("6.0.9",Ae(),q.isNode?"NodeJS":"Browser",ke())]}function Te(b,n,s,u){let f="Microsoft SignalR/";const D=b.split(".");return f+=`${D[0]}.${D[1]}`,f+=` (${b}; `,f+=n&&""!==n?`${n}; `:"Unknown OS; ",f+=`${s}`,f+=u?`; ${u}`:"; Unknown Runtime Version",f+=")",f}function Ae(){if(!q.isNode)return"";switch(process.platform){case"win32":return"Windows NT";case"darwin":return"macOS";case"linux":return"Linux";default:return process.platform}}function ke(){if(q.isNode)return process.versions.node}function Ie(b){return b.stack?b.stack:b.message?b.message:`${b}`}class me extends x{constructor(n){if(super(),this._logger=n,typeof fetch>"u"){const s=require;this._jar=new(s("tough-cookie").CookieJar),this._fetchType=s("node-fetch"),this._fetchType=s("fetch-cookie")(this._fetchType,this._jar)}else this._fetchType=fetch.bind(function S(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("could not find global")}());if(typeof AbortController>"u"){const s=require;this._abortControllerType=s("abort-controller")}else this._abortControllerType=AbortController}send(n){var s=this;return(0,l.Z)(function*(){if(n.abortSignal&&n.abortSignal.aborted)throw new Q;if(!n.method)throw new Error("No method defined.");if(!n.url)throw new Error("No url defined.");const u=new s._abortControllerType;let f;n.abortSignal&&(n.abortSignal.onabort=()=>{u.abort(),f=new Q});let O,D=null;n.timeout&&(D=setTimeout(()=>{u.abort(),s._logger.log(v.Warning,"Timeout from HTTP request."),f=new t},n.timeout));try{O=yield s._fetchType(n.url,{body:n.content,cache:"no-cache",credentials:!0===n.withCredentials?"include":"same-origin",headers:{"Content-Type":"text/plain;charset=UTF-8","X-Requested-With":"XMLHttpRequest",...n.headers},method:n.method,mode:"cors",redirect:"follow",signal:u.signal})}catch(Y){throw f||(s._logger.log(v.Warning,`Error from HTTP request. ${Y}.`),Y)}finally{D&&clearTimeout(D),n.abortSignal&&(n.abortSignal.onabort=null)}if(!O.ok){const Y=yield Z(O,"text");throw new A(Y||O.statusText,O.status)}const $=yield Z(O,n.responseType);return new pe(O.status,O.statusText,$)})()}getCookieString(n){let s="";return q.isNode&&this._jar&&this._jar.getCookies(n,(u,f)=>s=f.join("; ")),s}}function Z(b,n){let s;switch(n){case"arraybuffer":s=b.arrayBuffer();break;case"text":default:s=b.text();break;case"blob":case"document":case"json":throw new Error(`${n} is not supported.`)}return s}class B extends x{constructor(n){super(),this._logger=n}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new Q):n.method?n.url?new Promise((s,u)=>{const f=new XMLHttpRequest;f.open(n.method,n.url,!0),f.withCredentials=void 0===n.withCredentials||n.withCredentials,f.setRequestHeader("X-Requested-With","XMLHttpRequest"),f.setRequestHeader("Content-Type","text/plain;charset=UTF-8");const D=n.headers;D&&Object.keys(D).forEach(O=>{f.setRequestHeader(O,D[O])}),n.responseType&&(f.responseType=n.responseType),n.abortSignal&&(n.abortSignal.onabort=()=>{f.abort(),u(new Q)}),n.timeout&&(f.timeout=n.timeout),f.onload=()=>{n.abortSignal&&(n.abortSignal.onabort=null),f.status>=200&&f.status<300?s(new pe(f.status,f.statusText,f.response||f.responseText)):u(new A(f.response||f.responseText||f.statusText,f.status))},f.onerror=()=>{this._logger.log(v.Warning,`Error from HTTP request. ${f.status}: ${f.statusText}.`),u(new A(f.statusText,f.status))},f.ontimeout=()=>{this._logger.log(v.Warning,"Timeout from HTTP request."),u(new t)},f.send(n.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}}class ye extends x{constructor(n){if(super(),typeof fetch<"u"||q.isNode)this._httpClient=new me(n);else{if(!(typeof XMLHttpRequest<"u"))throw new Error("No usable HttpClient found.");this._httpClient=new B(n)}}send(n){return n.abortSignal&&n.abortSignal.aborted?Promise.reject(new Q):n.method?n.url?this._httpClient.send(n):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))}getCookieString(n){return this._httpClient.getCookieString(n)}}let xe=(()=>{class b{}return b.Authorization="Authorization",b.Cookie="Cookie",b})();var ae=(()=>{return(b=ae||(ae={}))[b.None=0]="None",b[b.WebSockets=1]="WebSockets",b[b.ServerSentEvents=2]="ServerSentEvents",b[b.LongPolling=4]="LongPolling",ae;var b})(),ge=(()=>{return(b=ge||(ge={}))[b.Text=1]="Text",b[b.Binary=2]="Binary",ge;var b})();class Je{constructor(){this._isAborted=!1,this.onabort=null}abort(){this._isAborted||(this._isAborted=!0,this.onabort&&this.onabort())}get signal(){return this}get aborted(){return this._isAborted}}class Ve{constructor(n,s,u,f){this._httpClient=n,this._accessTokenFactory=s,this._logger=u,this._pollAbort=new Je,this._options=f,this._running=!1,this.onreceive=null,this.onclose=null}get pollAborted(){return this._pollAbort.aborted}connect(n,s){var u=this;return(0,l.Z)(function*(){if(ie.isRequired(n,"url"),ie.isRequired(s,"transferFormat"),ie.isIn(s,ge,"transferFormat"),u._url=n,u._logger.log(v.Trace,"(LongPolling transport) Connecting."),s===ge.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");const[f,D]=fe(),O={[f]:D,...u._options.headers},k={abortSignal:u._pollAbort.signal,headers:O,timeout:1e5,withCredentials:u._options.withCredentials};s===ge.Binary&&(k.responseType="arraybuffer");const $=yield u._getAccessToken();u._updateHeaderToken(k,$);const Y=`${n}&_=${Date.now()}`;u._logger.log(v.Trace,`(LongPolling transport) polling: ${Y}.`);const te=yield u._httpClient.get(Y,k);200!==te.statusCode?(u._logger.log(v.Error,`(LongPolling transport) Unexpected response code: ${te.statusCode}.`),u._closeError=new A(te.statusText||"",te.statusCode),u._running=!1):u._running=!0,u._receiving=u._poll(u._url,k)})()}_getAccessToken(){var n=this;return(0,l.Z)(function*(){return n._accessTokenFactory?yield n._accessTokenFactory():null})()}_updateHeaderToken(n,s){n.headers||(n.headers={}),s?n.headers[xe.Authorization]=`Bearer ${s}`:n.headers[xe.Authorization]&&delete n.headers[xe.Authorization]}_poll(n,s){var u=this;return(0,l.Z)(function*(){try{for(;u._running;){const f=yield u._getAccessToken();u._updateHeaderToken(s,f);try{const D=`${n}&_=${Date.now()}`;u._logger.log(v.Trace,`(LongPolling transport) polling: ${D}.`);const O=yield u._httpClient.get(D,s);204===O.statusCode?(u._logger.log(v.Information,"(LongPolling transport) Poll terminated by server."),u._running=!1):200!==O.statusCode?(u._logger.log(v.Error,`(LongPolling transport) Unexpected response code: ${O.statusCode}.`),u._closeError=new A(O.statusText||"",O.statusCode),u._running=!1):O.content?(u._logger.log(v.Trace,`(LongPolling transport) data received. ${ve(O.content,u._options.logMessageContent)}.`),u.onreceive&&u.onreceive(O.content)):u._logger.log(v.Trace,"(LongPolling transport) Poll timed out, reissuing.")}catch(D){u._running?D instanceof t?u._logger.log(v.Trace,"(LongPolling transport) Poll timed out, reissuing."):(u._closeError=D,u._running=!1):u._logger.log(v.Trace,`(LongPolling transport) Poll errored after shutdown: ${D.message}`)}}}finally{u._logger.log(v.Trace,"(LongPolling transport) Polling complete."),u.pollAborted||u._raiseOnClose()}})()}send(n){var s=this;return(0,l.Z)(function*(){return s._running?le(s._logger,"LongPolling",s._httpClient,s._url,s._accessTokenFactory,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){var n=this;return(0,l.Z)(function*(){n._logger.log(v.Trace,"(LongPolling transport) Stopping polling."),n._running=!1,n._pollAbort.abort();try{yield n._receiving,n._logger.log(v.Trace,`(LongPolling transport) sending DELETE request to ${n._url}.`);const s={},[u,f]=fe();s[u]=f;const D={headers:{...s,...n._options.headers},timeout:n._options.timeout,withCredentials:n._options.withCredentials},O=yield n._getAccessToken();n._updateHeaderToken(D,O),yield n._httpClient.delete(n._url,D),n._logger.log(v.Trace,"(LongPolling transport) DELETE request sent.")}finally{n._logger.log(v.Trace,"(LongPolling transport) Stop finished."),n._raiseOnClose()}})()}_raiseOnClose(){if(this.onclose){let n="(LongPolling transport) Firing onclose event.";this._closeError&&(n+=" Error: "+this._closeError),this._logger.log(v.Trace,n),this.onclose(this._closeError)}}}class Qe{constructor(n,s,u,f){this._httpClient=n,this._accessTokenFactory=s,this._logger=u,this._options=f,this.onreceive=null,this.onclose=null}connect(n,s){var u=this;return(0,l.Z)(function*(){if(ie.isRequired(n,"url"),ie.isRequired(s,"transferFormat"),ie.isIn(s,ge,"transferFormat"),u._logger.log(v.Trace,"(SSE transport) Connecting."),u._url=n,u._accessTokenFactory){const f=yield u._accessTokenFactory();f&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(f)}`)}return new Promise((f,D)=>{let k,O=!1;if(s===ge.Text){if(q.isBrowser||q.isWebWorker)k=new u._options.EventSource(n,{withCredentials:u._options.withCredentials});else{const $=u._httpClient.getCookieString(n),Y={};Y.Cookie=$;const[te,we]=fe();Y[te]=we,k=new u._options.EventSource(n,{withCredentials:u._options.withCredentials,headers:{...Y,...u._options.headers}})}try{k.onmessage=$=>{if(u.onreceive)try{u._logger.log(v.Trace,`(SSE transport) data received. ${ve($.data,u._options.logMessageContent)}.`),u.onreceive($.data)}catch(Y){return void u._close(Y)}},k.onerror=$=>{O?u._close():D(new Error("EventSource failed to connect. The connection could not be found on the server, either the connection ID is not present on the server, or a proxy is refusing/buffering the connection. If you have multiple servers check that sticky sessions are enabled."))},k.onopen=()=>{u._logger.log(v.Information,`SSE connected to ${u._url}`),u._eventSource=k,O=!0,f()}}catch($){return void D($)}}else D(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})})()}send(n){var s=this;return(0,l.Z)(function*(){return s._eventSource?le(s._logger,"SSE",s._httpClient,s._url,s._accessTokenFactory,n,s._options):Promise.reject(new Error("Cannot send until the transport is connected"))})()}stop(){return this._close(),Promise.resolve()}_close(n){this._eventSource&&(this._eventSource.close(),this._eventSource=void 0,this.onclose&&this.onclose(n))}}class Fe{constructor(n,s,u,f,D,O){this._logger=u,this._accessTokenFactory=s,this._logMessageContent=f,this._webSocketConstructor=D,this._httpClient=n,this.onreceive=null,this.onclose=null,this._headers=O}connect(n,s){var u=this;return(0,l.Z)(function*(){if(ie.isRequired(n,"url"),ie.isRequired(s,"transferFormat"),ie.isIn(s,ge,"transferFormat"),u._logger.log(v.Trace,"(WebSockets transport) Connecting."),u._accessTokenFactory){const f=yield u._accessTokenFactory();f&&(n+=(n.indexOf("?")<0?"?":"&")+`access_token=${encodeURIComponent(f)}`)}return new Promise((f,D)=>{let O;n=n.replace(/^http/,"ws");const k=u._httpClient.getCookieString(n);let $=!1;if(q.isNode){const Y={},[te,we]=fe();Y[te]=we,k&&(Y[xe.Cookie]=`${k}`),O=new u._webSocketConstructor(n,void 0,{headers:{...Y,...u._headers}})}O||(O=new u._webSocketConstructor(n)),s===ge.Binary&&(O.binaryType="arraybuffer"),O.onopen=Y=>{u._logger.log(v.Information,`WebSocket connected to ${n}.`),u._webSocket=O,$=!0,f()},O.onerror=Y=>{let te=null;te=typeof ErrorEvent<"u"&&Y instanceof ErrorEvent?Y.error:"There was an error with the transport",u._logger.log(v.Information,`(WebSockets transport) ${te}.`)},O.onmessage=Y=>{if(u._logger.log(v.Trace,`(WebSockets transport) data received. ${ve(Y.data,u._logMessageContent)}.`),u.onreceive)try{u.onreceive(Y.data)}catch(te){return void u._close(te)}},O.onclose=Y=>{if($)u._close(Y);else{let te=null;te=typeof ErrorEvent<"u"&&Y instanceof ErrorEvent?Y.error:"WebSocket failed to connect. The connection could not be found on the server, either the endpoint may not be a SignalR endpoint, the connection ID is not present on the server, or there is a proxy blocking WebSockets. If you have multiple servers check that sticky sessions are enabled.",D(new Error(te))}}})})()}send(n){return this._webSocket&&this._webSocket.readyState===this._webSocketConstructor.OPEN?(this._logger.log(v.Trace,`(WebSockets transport) sending data. ${ve(n,this._logMessageContent)}.`),this._webSocket.send(n),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")}stop(){return this._webSocket&&this._close(void 0),Promise.resolve()}_close(n){this._webSocket&&(this._webSocket.onclose=()=>{},this._webSocket.onmessage=()=>{},this._webSocket.onerror=()=>{},this._webSocket.close(),this._webSocket=void 0),this._logger.log(v.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!this._isCloseEvent(n)||!1!==n.wasClean&&1e3===n.code?n instanceof Error?this.onclose(n):this.onclose():this.onclose(new Error(`WebSocket closed with status code: ${n.code} (${n.reason||"no reason given"}).`)))}_isCloseEvent(n){return n&&"boolean"==typeof n.wasClean&&"number"==typeof n.code}}class Oe{constructor(n,s={}){if(this._stopPromiseResolver=()=>{},this.features={},this._negotiateVersion=1,ie.isRequired(n,"url"),this._logger=function V(b){return void 0===b?new be(v.Information):null===b?G.instance:void 0!==b.log?b:new be(b)}(s.logger),this.baseUrl=this._resolveUrl(n),(s=s||{}).logMessageContent=void 0!==s.logMessageContent&&s.logMessageContent,"boolean"!=typeof s.withCredentials&&void 0!==s.withCredentials)throw new Error("withCredentials option was not a 'boolean' or 'undefined' value");s.withCredentials=void 0===s.withCredentials||s.withCredentials,s.timeout=void 0===s.timeout?1e5:s.timeout;let u=null,f=null;if(q.isNode){const D=require;u=D("ws"),f=D("eventsource")}!q.isNode&&typeof WebSocket<"u"&&!s.WebSocket?s.WebSocket=WebSocket:q.isNode&&!s.WebSocket&&u&&(s.WebSocket=u),!q.isNode&&typeof EventSource<"u"&&!s.EventSource?s.EventSource=EventSource:q.isNode&&!s.EventSource&&typeof f<"u"&&(s.EventSource=f),this._httpClient=s.httpClient||new ye(this._logger),this._connectionState="Disconnected",this._connectionStarted=!1,this._options=s,this.onreceive=null,this.onclose=null}start(n){var s=this;return(0,l.Z)(function*(){if(ie.isIn(n=n||ge.Binary,ge,"transferFormat"),s._logger.log(v.Debug,`Starting connection with transfer format '${ge[n]}'.`),"Disconnected"!==s._connectionState)return Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."));if(s._connectionState="Connecting",s._startInternalPromise=s._startInternal(n),yield s._startInternalPromise,"Disconnecting"===s._connectionState){const u="Failed to start the HttpConnection before stop() was called.";return s._logger.log(v.Error,u),yield s._stopPromise,Promise.reject(new Error(u))}if("Connected"!==s._connectionState){const u="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!";return s._logger.log(v.Error,u),Promise.reject(new Error(u))}s._connectionStarted=!0})()}send(n){return"Connected"!==this._connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this._sendQueue||(this._sendQueue=new ne(this.transport)),this._sendQueue.send(n))}stop(n){var s=this;return(0,l.Z)(function*(){return"Disconnected"===s._connectionState?(s._logger.log(v.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnected state.`),Promise.resolve()):"Disconnecting"===s._connectionState?(s._logger.log(v.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),s._stopPromise):(s._connectionState="Disconnecting",s._stopPromise=new Promise(u=>{s._stopPromiseResolver=u}),yield s._stopInternal(n),void(yield s._stopPromise))})()}_stopInternal(n){var s=this;return(0,l.Z)(function*(){s._stopError=n;try{yield s._startInternalPromise}catch{}if(s.transport){try{yield s.transport.stop()}catch(u){s._logger.log(v.Error,`HttpConnection.transport.stop() threw error '${u}'.`),s._stopConnection()}s.transport=void 0}else s._logger.log(v.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed.")})()}_startInternal(n){var s=this;return(0,l.Z)(function*(){let u=s.baseUrl;s._accessTokenFactory=s._options.accessTokenFactory;try{if(s._options.skipNegotiation){if(s._options.transport!==ae.WebSockets)throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");s.transport=s._constructTransport(ae.WebSockets),yield s._startTransport(u,n)}else{let f=null,D=0;do{if(f=yield s._getNegotiationResponse(u),"Disconnecting"===s._connectionState||"Disconnected"===s._connectionState)throw new Error("The connection was stopped during negotiation.");if(f.error)throw new Error(f.error);if(f.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");if(f.url&&(u=f.url),f.accessToken){const O=f.accessToken;s._accessTokenFactory=()=>O}D++}while(f.url&&D<100);if(100===D&&f.url)throw new Error("Negotiate redirection limit exceeded.");yield s._createTransport(u,s._options.transport,f,n)}s.transport instanceof Ve&&(s.features.inherentKeepAlive=!0),"Connecting"===s._connectionState&&(s._logger.log(v.Debug,"The HttpConnection connected successfully."),s._connectionState="Connected")}catch(f){return s._logger.log(v.Error,"Failed to start the connection: "+f),s._connectionState="Disconnected",s.transport=void 0,s._stopPromiseResolver(),Promise.reject(f)}})()}_getNegotiationResponse(n){var s=this;return(0,l.Z)(function*(){const u={};if(s._accessTokenFactory){const k=yield s._accessTokenFactory();k&&(u[xe.Authorization]=`Bearer ${k}`)}const[f,D]=fe();u[f]=D;const O=s._resolveNegotiateUrl(n);s._logger.log(v.Debug,`Sending negotiation request: ${O}.`);try{const k=yield s._httpClient.post(O,{content:"",headers:{...u,...s._options.headers},timeout:s._options.timeout,withCredentials:s._options.withCredentials});if(200!==k.statusCode)return Promise.reject(new Error(`Unexpected status code returned from negotiate '${k.statusCode}'`));const $=JSON.parse(k.content);return(!$.negotiateVersion||$.negotiateVersion<1)&&($.connectionToken=$.connectionId),$}catch(k){let $="Failed to complete negotiation with the server: "+k;return k instanceof A&&404===k.statusCode&&($+=" Either this is not a SignalR endpoint or there is a proxy blocking the connection."),s._logger.log(v.Error,$),Promise.reject(new se($))}})()}_createConnectUrl(n,s){return s?n+(-1===n.indexOf("?")?"?":"&")+`id=${s}`:n}_createTransport(n,s,u,f){var D=this;return(0,l.Z)(function*(){let O=D._createConnectUrl(n,u.connectionToken);if(D._isITransport(s))return D._logger.log(v.Debug,"Connection was provided an instance of ITransport, using that directly."),D.transport=s,yield D._startTransport(O,f),void(D.connectionId=u.connectionId);const k=[],$=u.availableTransports||[];let Y=u;for(const te of $){const we=D._resolveTransportOrError(te,s,f);if(we instanceof Error)k.push(`${te.transport} failed:`),k.push(we);else if(D._isITransport(we)){if(D.transport=we,!Y){try{Y=yield D._getNegotiationResponse(n)}catch(Ue){return Promise.reject(Ue)}O=D._createConnectUrl(n,Y.connectionToken)}try{return yield D._startTransport(O,f),void(D.connectionId=Y.connectionId)}catch(Ue){if(D._logger.log(v.Error,`Failed to start the transport '${te.transport}': ${Ue}`),Y=void 0,k.push(new re(`${te.transport} failed: ${Ue}`,ae[te.transport])),"Connecting"!==D._connectionState){const Xe="Failed to select transport before stop() was called.";return D._logger.log(v.Debug,Xe),Promise.reject(new Error(Xe))}}}}return Promise.reject(k.length>0?new he(`Unable to connect to the server with any of the available transports. ${k.join(" ")}`,k):new Error("None of the transports supported by the client are supported by the server."))})()}_constructTransport(n){switch(n){case ae.WebSockets:if(!this._options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Fe(this._httpClient,this._accessTokenFactory,this._logger,this._options.logMessageContent,this._options.WebSocket,this._options.headers||{});case ae.ServerSentEvents:if(!this._options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Qe(this._httpClient,this._accessTokenFactory,this._logger,this._options);case ae.LongPolling:return new Ve(this._httpClient,this._accessTokenFactory,this._logger,this._options);default:throw new Error(`Unknown transport: ${n}.`)}}_startTransport(n,s){return this.transport.onreceive=this.onreceive,this.transport.onclose=u=>this._stopConnection(u),this.transport.connect(n,s)}_resolveTransportOrError(n,s,u){const f=ae[n.transport];if(null==f)return this._logger.log(v.Debug,`Skipping transport '${n.transport}' because it is not supported by this client.`),new Error(`Skipping transport '${n.transport}' because it is not supported by this client.`);if(!function j(b,n){return!b||0!=(n&b)}(s,f))return this._logger.log(v.Debug,`Skipping transport '${ae[f]}' because it was disabled by the client.`),new P(`'${ae[f]}' is disabled by the client.`,f);if(!(n.transferFormats.map(O=>ge[O]).indexOf(u)>=0))return this._logger.log(v.Debug,`Skipping transport '${ae[f]}' because it does not support the requested transfer format '${ge[u]}'.`),new Error(`'${ae[f]}' does not support ${ge[u]}.`);if(f===ae.WebSockets&&!this._options.WebSocket||f===ae.ServerSentEvents&&!this._options.EventSource)return this._logger.log(v.Debug,`Skipping transport '${ae[f]}' because it is not supported in your environment.'`),new W(`'${ae[f]}' is not supported in your environment.`,f);this._logger.log(v.Debug,`Selecting transport '${ae[f]}'.`);try{return this._constructTransport(f)}catch(O){return O}}_isITransport(n){return n&&"object"==typeof n&&"connect"in n}_stopConnection(n){if(this._logger.log(v.Debug,`HttpConnection.stopConnection(${n}) called while in state ${this._connectionState}.`),this.transport=void 0,n=this._stopError||n,this._stopError=void 0,"Disconnected"!==this._connectionState){if("Connecting"===this._connectionState)throw this._logger.log(v.Warning,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is still in the connecting state.`),new Error(`HttpConnection.stopConnection(${n}) was called while the connection is still in the connecting state.`);if("Disconnecting"===this._connectionState&&this._stopPromiseResolver(),n?this._logger.log(v.Error,`Connection disconnected with error '${n}'.`):this._logger.log(v.Information,"Connection disconnected."),this._sendQueue&&(this._sendQueue.stop().catch(s=>{this._logger.log(v.Error,`TransportSendQueue.stop() threw error '${s}'.`)}),this._sendQueue=void 0),this.connectionId=void 0,this._connectionState="Disconnected",this._connectionStarted){this._connectionStarted=!1;try{this.onclose&&this.onclose(n)}catch(s){this._logger.log(v.Error,`HttpConnection.onclose(${n}) threw error '${s}'.`)}}}else this._logger.log(v.Debug,`Call to HttpConnection.stopConnection(${n}) was ignored because the connection is already in the disconnected state.`)}_resolveUrl(n){if(0===n.lastIndexOf("https://",0)||0===n.lastIndexOf("http://",0))return n;if(!q.isBrowser)throw new Error(`Cannot resolve '${n}'.`);const s=window.document.createElement("a");return s.href=n,this._logger.log(v.Information,`Normalizing '${n}' to '${s.href}'.`),s.href}_resolveNegotiateUrl(n){const s=n.indexOf("?");let u=n.substring(0,-1===s?n.length:s);return"/"!==u[u.length-1]&&(u+="/"),u+="negotiate",u+=-1===s?"":n.substring(s),-1===u.indexOf("negotiateVersion")&&(u+=-1===s?"?":"&",u+="negotiateVersion="+this._negotiateVersion),u}}class ne{constructor(n){this._transport=n,this._buffer=[],this._executing=!0,this._sendBufferedData=new y,this._transportResult=new y,this._sendLoopPromise=this._sendLoop()}send(n){return this._bufferData(n),this._transportResult||(this._transportResult=new y),this._transportResult.promise}stop(){return this._executing=!1,this._sendBufferedData.resolve(),this._sendLoopPromise}_bufferData(n){if(this._buffer.length&&typeof this._buffer[0]!=typeof n)throw new Error(`Expected data to be of type ${typeof this._buffer} but was of type ${typeof n}`);this._buffer.push(n),this._sendBufferedData.resolve()}_sendLoop(){var n=this;return(0,l.Z)(function*(){for(;;){if(yield n._sendBufferedData.promise,!n._executing){n._transportResult&&n._transportResult.reject("Connection stopped.");break}n._sendBufferedData=new y;const s=n._transportResult;n._transportResult=void 0;const u="string"==typeof n._buffer[0]?n._buffer.join(""):ne._concatBuffers(n._buffer);n._buffer.length=0;try{yield n._transport.send(u),s.resolve()}catch(f){s.reject(f)}}})()}static _concatBuffers(n){const s=n.map(D=>D.byteLength).reduce((D,O)=>D+O),u=new Uint8Array(s);let f=0;for(const D of n)u.set(new Uint8Array(D),f),f+=D.byteLength;return u.buffer}}class y{constructor(){this.promise=new Promise((n,s)=>[this._resolver,this._rejecter]=[n,s])}resolve(){this._resolver()}reject(n){this._rejecter(n)}}class E{static write(n){return`${n}${E.RecordSeparator}`}static parse(n){if(n[n.length-1]!==E.RecordSeparator)throw new Error("Message is incomplete.");const s=n.split(E.RecordSeparator);return s.pop(),s}}E.RecordSeparatorCode=30,E.RecordSeparator=String.fromCharCode(E.RecordSeparatorCode);class N{writeHandshakeRequest(n){return E.write(JSON.stringify(n))}parseHandshakeResponse(n){let s,u;if(H(n)){const k=new Uint8Array(n),$=k.indexOf(E.RecordSeparatorCode);if(-1===$)throw new Error("Message is incomplete.");const Y=$+1;s=String.fromCharCode.apply(null,Array.prototype.slice.call(k.slice(0,Y))),u=k.byteLength>Y?k.slice(Y).buffer:null}else{const k=n,$=k.indexOf(E.RecordSeparator);if(-1===$)throw new Error("Message is incomplete.");const Y=$+1;s=k.substring(0,Y),u=k.length>Y?k.substring(Y):null}const f=E.parse(s),D=JSON.parse(f[0]);if(D.type)throw new Error("Expected a handshake response from the server.");return[u,D]}}var U=(()=>{return(b=U||(U={}))[b.Invocation=1]="Invocation",b[b.StreamItem=2]="StreamItem",b[b.Completion=3]="Completion",b[b.StreamInvocation=4]="StreamInvocation",b[b.CancelInvocation=5]="CancelInvocation",b[b.Ping=6]="Ping",b[b.Close=7]="Close",U;var b})();class Ce{constructor(){this.observers=[]}next(n){for(const s of this.observers)s.next(n)}error(n){for(const s of this.observers)s.error&&s.error(n)}complete(){for(const n of this.observers)n.complete&&n.complete()}subscribe(n){return this.observers.push(n),new ce(this,n)}}var T=(()=>{return(b=T||(T={})).Disconnected="Disconnected",b.Connecting="Connecting",b.Connected="Connected",b.Disconnecting="Disconnecting",b.Reconnecting="Reconnecting",T;var b})();class z{constructor(n,s,u,f){this._nextKeepAlive=0,this._freezeEventListener=()=>{this._logger.log(v.Warning,"The page is being frozen, this will likely lead to the connection being closed and messages being lost. For more information see the docs at https://docs.microsoft.com/aspnet/core/signalr/javascript-client#bsleep")},ie.isRequired(n,"connection"),ie.isRequired(s,"logger"),ie.isRequired(u,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this._logger=s,this._protocol=u,this.connection=n,this._reconnectPolicy=f,this._handshakeProtocol=new N,this.connection.onreceive=D=>this._processIncomingData(D),this.connection.onclose=D=>this._connectionClosed(D),this._callbacks={},this._methods={},this._closedCallbacks=[],this._reconnectingCallbacks=[],this._reconnectedCallbacks=[],this._invocationId=0,this._receivedHandshakeResponse=!1,this._connectionState=T.Disconnected,this._connectionStarted=!1,this._cachedPingMessage=this._protocol.writeMessage({type:U.Ping})}static create(n,s,u,f){return new z(n,s,u,f)}get state(){return this._connectionState}get connectionId(){return this.connection&&this.connection.connectionId||null}get baseUrl(){return this.connection.baseUrl||""}set baseUrl(n){if(this._connectionState!==T.Disconnected&&this._connectionState!==T.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!n)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=n}start(){return this._startPromise=this._startWithStateTransitions(),this._startPromise}_startWithStateTransitions(){var n=this;return(0,l.Z)(function*(){if(n._connectionState!==T.Disconnected)return Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."));n._connectionState=T.Connecting,n._logger.log(v.Debug,"Starting HubConnection.");try{yield n._startInternal(),q.isBrowser&&window.document.addEventListener("freeze",n._freezeEventListener),n._connectionState=T.Connected,n._connectionStarted=!0,n._logger.log(v.Debug,"HubConnection connected successfully.")}catch(s){return n._connectionState=T.Disconnected,n._logger.log(v.Debug,`HubConnection failed to start successfully because of error '${s}'.`),Promise.reject(s)}})()}_startInternal(){var n=this;return(0,l.Z)(function*(){n._stopDuringStartError=void 0,n._receivedHandshakeResponse=!1;const s=new Promise((u,f)=>{n._handshakeResolver=u,n._handshakeRejecter=f});yield n.connection.start(n._protocol.transferFormat);try{const u={protocol:n._protocol.name,version:n._protocol.version};if(n._logger.log(v.Debug,"Sending handshake request."),yield n._sendMessage(n._handshakeProtocol.writeHandshakeRequest(u)),n._logger.log(v.Information,`Using HubProtocol '${n._protocol.name}'.`),n._cleanupTimeout(),n._resetTimeoutPeriod(),n._resetKeepAliveInterval(),yield s,n._stopDuringStartError)throw n._stopDuringStartError}catch(u){throw n._logger.log(v.Debug,`Hub handshake failed with error '${u}' during start(). Stopping HubConnection.`),n._cleanupTimeout(),n._cleanupPingTimer(),yield n.connection.stop(u),u}})()}stop(){var n=this;return(0,l.Z)(function*(){const s=n._startPromise;n._stopPromise=n._stopInternal(),yield n._stopPromise;try{yield s}catch{}})()}_stopInternal(n){return this._connectionState===T.Disconnected?(this._logger.log(v.Debug,`Call to HubConnection.stop(${n}) ignored because it is already in the disconnected state.`),Promise.resolve()):this._connectionState===T.Disconnecting?(this._logger.log(v.Debug,`Call to HttpConnection.stop(${n}) ignored because the connection is already in the disconnecting state.`),this._stopPromise):(this._connectionState=T.Disconnecting,this._logger.log(v.Debug,"Stopping HubConnection."),this._reconnectDelayHandle?(this._logger.log(v.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this._reconnectDelayHandle),this._reconnectDelayHandle=void 0,this._completeClose(),Promise.resolve()):(this._cleanupTimeout(),this._cleanupPingTimer(),this._stopDuringStartError=n||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(n)))}stream(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._createStreamInvocation(n,s,f);let O;const k=new Ce;return k.cancelCallback=()=>{const $=this._createCancelInvocation(D.invocationId);return delete this._callbacks[D.invocationId],O.then(()=>this._sendWithProtocol($))},this._callbacks[D.invocationId]=($,Y)=>{Y?k.error(Y):$&&($.type===U.Completion?$.error?k.error(new Error($.error)):k.complete():k.next($.item))},O=this._sendWithProtocol(D).catch($=>{k.error($),delete this._callbacks[D.invocationId]}),this._launchStreams(u,O),k}_sendMessage(n){return this._resetKeepAliveInterval(),this.connection.send(n)}_sendWithProtocol(n){return this._sendMessage(this._protocol.writeMessage(n))}send(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._sendWithProtocol(this._createInvocation(n,s,!0,f));return this._launchStreams(u,D),D}invoke(n,...s){const[u,f]=this._replaceStreamingParams(s),D=this._createInvocation(n,s,!1,f);return new Promise((k,$)=>{this._callbacks[D.invocationId]=(te,we)=>{we?$(we):te&&(te.type===U.Completion?te.error?$(new Error(te.error)):k(te.result):$(new Error(`Unexpected message type: ${te.type}`)))};const Y=this._sendWithProtocol(D).catch(te=>{$(te),delete this._callbacks[D.invocationId]});this._launchStreams(u,Y)})}on(n,s){!n||!s||(n=n.toLowerCase(),this._methods[n]||(this._methods[n]=[]),-1===this._methods[n].indexOf(s)&&this._methods[n].push(s))}off(n,s){if(!n)return;n=n.toLowerCase();const u=this._methods[n];if(u)if(s){const f=u.indexOf(s);-1!==f&&(u.splice(f,1),0===u.length&&delete this._methods[n])}else delete this._methods[n]}onclose(n){n&&this._closedCallbacks.push(n)}onreconnecting(n){n&&this._reconnectingCallbacks.push(n)}onreconnected(n){n&&this._reconnectedCallbacks.push(n)}_processIncomingData(n){if(this._cleanupTimeout(),this._receivedHandshakeResponse||(n=this._processHandshakeResponse(n),this._receivedHandshakeResponse=!0),n){const s=this._protocol.parseMessages(n,this._logger);for(const u of s)switch(u.type){case U.Invocation:this._invokeClientMethod(u);break;case U.StreamItem:case U.Completion:{const f=this._callbacks[u.invocationId];if(f){u.type===U.Completion&&delete this._callbacks[u.invocationId];try{f(u)}catch(D){this._logger.log(v.Error,`Stream callback threw error: ${Ie(D)}`)}}break}case U.Ping:break;case U.Close:{this._logger.log(v.Information,"Close message received from server.");const f=u.error?new Error("Server returned an error on close: "+u.error):void 0;!0===u.allowReconnect?this.connection.stop(f):this._stopPromise=this._stopInternal(f);break}default:this._logger.log(v.Warning,`Invalid message type: ${u.type}.`)}}this._resetTimeoutPeriod()}_processHandshakeResponse(n){let s,u;try{[u,s]=this._handshakeProtocol.parseHandshakeResponse(n)}catch(f){const D="Error parsing handshake response: "+f;this._logger.log(v.Error,D);const O=new Error(D);throw this._handshakeRejecter(O),O}if(s.error){const f="Server returned handshake error: "+s.error;this._logger.log(v.Error,f);const D=new Error(f);throw this._handshakeRejecter(D),D}return this._logger.log(v.Debug,"Server handshake complete."),this._handshakeResolver(),u}_resetKeepAliveInterval(){this.connection.features.inherentKeepAlive||(this._nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this._cleanupPingTimer())}_resetTimeoutPeriod(){var n=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this._timeoutHandle=setTimeout(()=>this.serverTimeout(),this.serverTimeoutInMilliseconds),void 0!==this._pingServerHandle))){let s=this._nextKeepAlive-(new Date).getTime();s<0&&(s=0),this._pingServerHandle=setTimeout((0,l.Z)(function*(){if(n._connectionState===T.Connected)try{yield n._sendMessage(n._cachedPingMessage)}catch{n._cleanupPingTimer()}}),s)}}serverTimeout(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))}_invokeClientMethod(n){const s=this._methods[n.target.toLowerCase()];if(s){try{s.forEach(u=>u.apply(this,n.arguments))}catch(u){this._logger.log(v.Error,`A callback for the method ${n.target.toLowerCase()} threw error '${u}'.`)}if(n.invocationId){const u="Server requested a response, which is not supported in this version of the client.";this._logger.log(v.Error,u),this._stopPromise=this._stopInternal(new Error(u))}}else this._logger.log(v.Warning,`No client method with the name '${n.target}' found.`)}_connectionClosed(n){this._logger.log(v.Debug,`HubConnection.connectionClosed(${n}) called while in state ${this._connectionState}.`),this._stopDuringStartError=this._stopDuringStartError||n||new Error("The underlying connection was closed before the hub handshake could complete."),this._handshakeResolver&&this._handshakeResolver(),this._cancelCallbacksWithError(n||new Error("Invocation canceled due to the underlying connection being closed.")),this._cleanupTimeout(),this._cleanupPingTimer(),this._connectionState===T.Disconnecting?this._completeClose(n):this._connectionState===T.Connected&&this._reconnectPolicy?this._reconnect(n):this._connectionState===T.Connected&&this._completeClose(n)}_completeClose(n){if(this._connectionStarted){this._connectionState=T.Disconnected,this._connectionStarted=!1,q.isBrowser&&window.document.removeEventListener("freeze",this._freezeEventListener);try{this._closedCallbacks.forEach(s=>s.apply(this,[n]))}catch(s){this._logger.log(v.Error,`An onclose callback called with error '${n}' threw error '${s}'.`)}}}_reconnect(n){var s=this;return(0,l.Z)(function*(){const u=Date.now();let f=0,D=void 0!==n?n:new Error("Attempting to reconnect due to a unknown error."),O=s._getNextRetryDelay(f++,0,D);if(null===O)return s._logger.log(v.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),void s._completeClose(n);if(s._connectionState=T.Reconnecting,s._logger.log(v.Information,n?`Connection reconnecting because of error '${n}'.`:"Connection reconnecting."),0!==s._reconnectingCallbacks.length){try{s._reconnectingCallbacks.forEach(k=>k.apply(s,[n]))}catch(k){s._logger.log(v.Error,`An onreconnecting callback called with error '${n}' threw error '${k}'.`)}if(s._connectionState!==T.Reconnecting)return void s._logger.log(v.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting.")}for(;null!==O;){if(s._logger.log(v.Information,`Reconnect attempt number ${f} will start in ${O} ms.`),yield new Promise(k=>{s._reconnectDelayHandle=setTimeout(k,O)}),s._reconnectDelayHandle=void 0,s._connectionState!==T.Reconnecting)return void s._logger.log(v.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting.");try{if(yield s._startInternal(),s._connectionState=T.Connected,s._logger.log(v.Information,"HubConnection reconnected successfully."),0!==s._reconnectedCallbacks.length)try{s._reconnectedCallbacks.forEach(k=>k.apply(s,[s.connection.connectionId]))}catch(k){s._logger.log(v.Error,`An onreconnected callback called with connectionId '${s.connection.connectionId}; threw error '${k}'.`)}return}catch(k){if(s._logger.log(v.Information,`Reconnect attempt failed because of error '${k}'.`),s._connectionState!==T.Reconnecting)return s._logger.log(v.Debug,`Connection moved to the '${s._connectionState}' from the reconnecting state during reconnect attempt. Done reconnecting.`),void(s._connectionState===T.Disconnecting&&s._completeClose());D=k instanceof Error?k:new Error(k.toString()),O=s._getNextRetryDelay(f++,Date.now()-u,D)}}s._logger.log(v.Information,`Reconnect retries have been exhausted after ${Date.now()-u} ms and ${f} failed attempts. Connection disconnecting.`),s._completeClose()})()}_getNextRetryDelay(n,s,u){try{return this._reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:s,previousRetryCount:n,retryReason:u})}catch(f){return this._logger.log(v.Error,`IRetryPolicy.nextRetryDelayInMilliseconds(${n}, ${s}) threw error '${f}'.`),null}}_cancelCallbacksWithError(n){const s=this._callbacks;this._callbacks={},Object.keys(s).forEach(u=>{const f=s[u];try{f(null,n)}catch(D){this._logger.log(v.Error,`Stream 'error' callback called with '${n}' threw error: ${Ie(D)}`)}})}_cleanupPingTimer(){this._pingServerHandle&&(clearTimeout(this._pingServerHandle),this._pingServerHandle=void 0)}_cleanupTimeout(){this._timeoutHandle&&clearTimeout(this._timeoutHandle)}_createInvocation(n,s,u,f){if(u)return 0!==f.length?{arguments:s,streamIds:f,target:n,type:U.Invocation}:{arguments:s,target:n,type:U.Invocation};{const D=this._invocationId;return this._invocationId++,0!==f.length?{arguments:s,invocationId:D.toString(),streamIds:f,target:n,type:U.Invocation}:{arguments:s,invocationId:D.toString(),target:n,type:U.Invocation}}}_launchStreams(n,s){if(0!==n.length){s||(s=Promise.resolve());for(const u in n)n[u].subscribe({complete:()=>{s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(u)))},error:f=>{let D;D=f instanceof Error?f.message:f&&f.toString?f.toString():"Unknown error",s=s.then(()=>this._sendWithProtocol(this._createCompletionMessage(u,D)))},next:f=>{s=s.then(()=>this._sendWithProtocol(this._createStreamItemMessage(u,f)))}})}}_replaceStreamingParams(n){const s=[],u=[];for(let f=0;f<n.length;f++){const D=n[f];if(this._isObservable(D)){const O=this._invocationId;this._invocationId++,s[O]=D,u.push(O.toString()),n.splice(f,1)}}return[s,u]}_isObservable(n){return n&&n.subscribe&&"function"==typeof n.subscribe}_createStreamInvocation(n,s,u){const f=this._invocationId;return this._invocationId++,0!==u.length?{arguments:s,invocationId:f.toString(),streamIds:u,target:n,type:U.StreamInvocation}:{arguments:s,invocationId:f.toString(),target:n,type:U.StreamInvocation}}_createCancelInvocation(n){return{invocationId:n,type:U.CancelInvocation}}_createStreamItemMessage(n,s){return{invocationId:n,item:s,type:U.StreamItem}}_createCompletionMessage(n,s,u){return s?{error:s,invocationId:n,type:U.Completion}:{invocationId:n,result:u,type:U.Completion}}}class F{constructor(){this.name="json",this.version=1,this.transferFormat=ge.Text}parseMessages(n,s){if("string"!=typeof n)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!n)return[];null===s&&(s=G.instance);const u=E.parse(n),f=[];for(const D of u){const O=JSON.parse(D);if("number"!=typeof O.type)throw new Error("Invalid payload.");switch(O.type){case U.Invocation:this._isInvocationMessage(O);break;case U.StreamItem:this._isStreamItemMessage(O);break;case U.Completion:this._isCompletionMessage(O);break;case U.Ping:case U.Close:break;default:s.log(v.Information,"Unknown message type '"+O.type+"' ignored.");continue}f.push(O)}return f}writeMessage(n){return E.write(JSON.stringify(n))}_isInvocationMessage(n){this._assertNotEmptyString(n.target,"Invalid payload for Invocation message."),void 0!==n.invocationId&&this._assertNotEmptyString(n.invocationId,"Invalid payload for Invocation message.")}_isStreamItemMessage(n){if(this._assertNotEmptyString(n.invocationId,"Invalid payload for StreamItem message."),void 0===n.item)throw new Error("Invalid payload for StreamItem message.")}_isCompletionMessage(n){if(n.result&&n.error)throw new Error("Invalid payload for Completion message.");!n.result&&n.error&&this._assertNotEmptyString(n.error,"Invalid payload for Completion message."),this._assertNotEmptyString(n.invocationId,"Invalid payload for Completion message.")}_assertNotEmptyString(n,s){if("string"!=typeof n||""===n)throw new Error(s)}}const X={trace:v.Trace,debug:v.Debug,info:v.Information,information:v.Information,warn:v.Warning,warning:v.Warning,error:v.Error,critical:v.Critical,none:v.None};class Ge{configureLogging(n){if(ie.isRequired(n,"logging"),function He(b){return void 0!==b.log}(n))this.logger=n;else if("string"==typeof n){const s=function ee(b){const n=X[b.toLowerCase()];if(typeof n<"u")return n;throw new Error(`Unknown log level: ${b}`)}(n);this.logger=new be(s)}else this.logger=new be(n);return this}withUrl(n,s){return ie.isRequired(n,"url"),ie.isNotEmpty(n,"url"),this.url=n,this.httpConnectionOptions="object"==typeof s?{...this.httpConnectionOptions,...s}:{...this.httpConnectionOptions,transport:s},this}withHubProtocol(n){return ie.isRequired(n,"protocol"),this.protocol=n,this}withAutomaticReconnect(n){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=n?Array.isArray(n)?new K(n):n:new K,this}build(){const n=this.httpConnectionOptions||{};if(void 0===n.logger&&(n.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");const s=new Oe(this.url,n);return z.create(s,this.logger||G.instance,this.protocol||new F,this.reconnectPolicy)}}var Le=a(61135),Ee=a(94650),De=a(97185);let Ye=(()=>{class b{constructor(s){this.toastr=s,this.OnPaymentReceived=new Le.X(null),this.OnReceivePushNotification=new Le.X(null),this.OnContactReceive=new Le.X(null),this.socketConnection=(new Ge).withUrl("/POSHub").withAutomaticReconnect().configureLogging(v.Information).build()}SubscribeGroup(s,u=null){s!=this.lastGroupID&&(this.socketConnection.state==T.Disconnected?this.socketConnection.start().then(()=>{this.invokeSubscribe(s,u),this.registerEventHandler()}).catch(f=>{this.toastr.error(f,"Error")}):this.invokeSubscribe(s,u))}invokeSubscribe(s,u){this.socketConnection.invoke("SubscribeGroup",{CurrentID:s,PreviousID:u}).then(()=>{this.lastGroupID=s})}registerEventHandler(){this.socketConnection.on("ReceiveMobilePaymentSignal",s=>{this.OnPaymentReceived.next(s)}),this.socketConnection.on("ReceivePushNotificationSignal",s=>{this.OnReceivePushNotification.next(s)}),this.socketConnection.on("OnContactReceive",s=>{this.OnContactReceive.next(s)})}Broadcast(s){null!=this.socketConnection&&null!=this.socketConnection.connectionId&&this.socketConnection.invoke("BroadCast",s).catch(u=>{console.error(u),this.toastr.error(u,"Error")})}}return b.\u0275fac=function(s){return new(s||b)(Ee.LFG(De._W))},b.\u0275prov=Ee.Yz7({token:b,factory:b.\u0275fac,providedIn:"root"}),b})()},35078:(ze,_e,a)=>{a.d(_e,{g:()=>l});var r=a(61135),K=a(94650);let l=(()=>{class A{constructor(){this._toggleState=new r.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return A.\u0275fac=function(Q){return new(Q||A)},A.\u0275prov=K.Yz7({token:A,factory:A.\u0275fac,providedIn:"root"}),A})()},91005:(ze,_e,a)=>{a.d(_e,{g:()=>pe});var r=a(34986),K=a(97272),l=a(95698),A=a(54482),t=a(25403),Q=a(25032),P=a(69718),re=a(95577);function se(x,v){return v?G=>(0,K.z)(v.pipe((0,l.q)(1),function W(){return(0,A.e)((x,v)=>{x.subscribe((0,t.x)(v,Q.Z))})}()),G.pipe(se(x))):(0,re.z)((G,J)=>x(G,J).pipe((0,l.q)(1),(0,P.h)(G)))}var he=a(82805);function pe(x,v=r.z){const G=(0,he.H)(x,v);return se(()=>G)}},47957:(ze,_e,a)=>{a.d(_e,{Bb:()=>Oe,XC:()=>B,ZL:()=>Ne});var r=a(12687),K=a(21281),l=a(83353),A=a(94650),t=a(3238),Q=a(50727),W=a(77579),P=a(49770),re=a(56451),se=a(39646),he=a(54968),pe=a(36895),x=a(98184),v=a(67376),G=a(40445),J=a(29521),ie=a(84080),q=a(24006),ve=a(59549),oe=a(68675),H=a(63900),le=a(95698),I=a(39300),V=a(54004),ce=a(18505),be=a(91005);const fe=["panel"];function Te(j,ne){if(1&j&&(A.TgZ(0,"div",0,1),A.Hsn(2),A.qZA()),2&j){const y=ne.id,E=A.oxw();A.Q6J("id",E.id)("ngClass",E._classList),A.uIk("aria-label",E.ariaLabel||null)("aria-labelledby",E._getPanelAriaLabelledby(y))}}const Ae=["*"];let ke=0;class Be{constructor(ne,y){this.source=ne,this.option=y}}const Ie=(0,t.Kr)(class{}),S=new A.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function me(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1}}});let Z=(()=>{class j extends Ie{constructor(y,E,N,U){super(),this._changeDetectorRef=y,this._elementRef=E,this._activeOptionChanges=Q.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new A.vpe,this.opened=new A.vpe,this.closed=new A.vpe,this.optionActivated=new A.vpe,this._classList={},this.id="mat-autocomplete-"+ke++,this.inertGroups=U?.SAFARI||!1,this._autoActiveFirstOption=!!N.autoActiveFirstOption,this._autoSelectActiveOption=!!N.autoSelectActiveOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(y){this._autoActiveFirstOption=(0,K.Ig)(y)}get autoSelectActiveOption(){return this._autoSelectActiveOption}set autoSelectActiveOption(y){this._autoSelectActiveOption=(0,K.Ig)(y)}set classList(y){this._classList=y&&y.length?(0,K.du)(y).reduce((E,N)=>(E[N]=!0,E),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new r.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(y=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[y]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(y){this.panel&&(this.panel.nativeElement.scrollTop=y)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(y){const E=new Be(this,y);this.optionSelected.emit(E)}_getPanelAriaLabelledby(y){return this.ariaLabel?null:this.ariaLabelledby?(y?y+" ":"")+this.ariaLabelledby:y}_setVisibilityClasses(y){y[this._visibleClass]=this.showPanel,y[this._hiddenClass]=!this.showPanel}}return j.\u0275fac=function(y){return new(y||j)(A.Y36(A.sBO),A.Y36(A.SBq),A.Y36(S),A.Y36(l.t4))},j.\u0275dir=A.lG2({type:j,viewQuery:function(y,E){if(1&y&&(A.Gf(A.Rgc,7),A.Gf(fe,5)),2&y){let N;A.iGM(N=A.CRH())&&(E.template=N.first),A.iGM(N=A.CRH())&&(E.panel=N.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",autoSelectActiveOption:"autoSelectActiveOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[A.qOj]}),j})(),B=(()=>{class j extends Z{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return j.\u0275fac=function(){let ne;return function(E){return(ne||(ne=A.n5z(j)))(E||j)}}(),j.\u0275cmp=A.Xpm({type:j,selectors:[["mat-autocomplete"]],contentQueries:function(y,E,N){if(1&y&&(A.Suo(N,t.K7,5),A.Suo(N,t.ey,5)),2&y){let U;A.iGM(U=A.CRH())&&(E.optionGroups=U),A.iGM(U=A.CRH())&&(E.options=U)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[A._Bn([{provide:t.HF,useExisting:j}]),A.qOj],ngContentSelectors:Ae,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(y,E){1&y&&(A.F$t(),A.YNc(0,Te,3,4,"ng-template"))},dependencies:[pe.mk],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}"],encapsulation:2,changeDetection:0}),j})();const ae=new A.OlP("mat-autocomplete-scroll-strategy"),Je={provide:ae,deps:[x.aV],useFactory:function ge(j){return()=>j.scrollStrategies.reposition()}},Ve={provide:q.JU,useExisting:(0,A.Gpc)(()=>Ne),multi:!0};let Fe=(()=>{class j{constructor(y,E,N,U,Ce,Ze,$e,T,z,M,F){this._element=y,this._overlay=E,this._viewContainerRef=N,this._zone=U,this._changeDetectorRef=Ce,this._dir=$e,this._formField=T,this._document=z,this._viewportRuler=M,this._defaults=F,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Q.w0.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new W.x,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=(0,P.P)(()=>{const X=this.autocomplete?this.autocomplete.options:null;return X?X.changes.pipe((0,oe.O)(X),(0,H.w)(()=>(0,re.T)(...X.map(ee=>ee.onSelectionChange)))):this._zone.onStable.pipe((0,le.q)(1),(0,H.w)(()=>this.optionSelections))}),this._scrollStrategy=Ze}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(y){this._autocompleteDisabled=(0,K.Ig)(y)}ngAfterViewInit(){const y=this._getWindow();typeof y<"u"&&this._zone.runOutsideAngular(()=>y.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(y){y.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const y=this._getWindow();typeof y<"u"&&y.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return(0,re.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,I.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,I.h)(()=>this._overlayAttached)):(0,se.of)()).pipe((0,V.U)(y=>y instanceof t.rN?y:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,re.T)((0,he.R)(this._document,"click"),(0,he.R)(this._document,"auxclick"),(0,he.R)(this._document,"touchend")).pipe((0,I.h)(y=>{const E=(0,l.sA)(y),N=this._formField?this._formField._elementRef.nativeElement:null,U=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&E!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!N||!N.contains(E))&&(!U||!U.contains(E))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(E)}))}writeValue(y){Promise.resolve(null).then(()=>this._assignOptionValue(y))}registerOnChange(y){this._onChange=y}registerOnTouched(y){this._onTouched=y}setDisabledState(y){this._element.nativeElement.disabled=y}_handleKeydown(y){const E=y.keyCode,N=(0,J.Vb)(y);if(E===J.hY&&!N&&y.preventDefault(),this.activeOption&&E===J.K5&&this.panelOpen&&!N)this.activeOption._selectViaInteraction(),this._resetActiveItem(),y.preventDefault();else if(this.autocomplete){const U=this.autocomplete._keyManager.activeItem,Ce=E===J.LH||E===J.JH;E===J.Mf||Ce&&!N&&this.panelOpen?this.autocomplete._keyManager.onKeydown(y):Ce&&this._canOpen()&&this.openPanel(),(Ce||this.autocomplete._keyManager.activeItem!==U)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._element.nativeElement.value),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(y){let E=y.target,N=E.value;"number"===E.type&&(N=""==N?null:parseFloat(N)),this._previousValue!==N&&(this._previousValue=N,this._pendingAutoselectedOption=null,this._onChange(N),this._canOpen()&&this._document.activeElement===y.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(y=!1){this._formField&&"auto"===this._formField.floatLabel&&(y?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const y=this._zone.onStable.pipe((0,le.q)(1)),E=this.autocomplete.options.changes.pipe((0,ce.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,be.g)(0));return(0,re.T)(y,E).pipe((0,H.w)(()=>(this._zone.run(()=>{const N=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),N!==this.panelOpen&&(this.panelOpen?this.autocomplete.opened.emit():this.autocomplete.closed.emit())}),this.panelClosingActions)),(0,le.q)(1)).subscribe(N=>this._setValueAndClose(N))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_assignOptionValue(y){const E=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(y):y;this._updateNativeInputValue(E??"")}_updateNativeInputValue(y){this._formField?this._formField._control.value=y:this._element.nativeElement.value=y,this._previousValue=y}_setValueAndClose(y){const E=y?y.source:this._pendingAutoselectedOption;E&&(this._clearPreviousSelectedOption(E),this._assignOptionValue(E.value),this._onChange(E.value),this.autocomplete._emitSelectEvent(E),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(y){this.autocomplete.options.forEach(E=>{E!==y&&E.selected&&E.deselect()})}_attachOverlay(){let y=this._overlayRef;y?(this._positionStrategy.setOrigin(this._getConnectedElement()),y.updateSize({width:this._getPanelWidth()})):(this._portal=new ie.UE(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),y=this._overlay.create(this._getOverlayConfig()),this._overlayRef=y,this._handleOverlayEvents(y),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&y&&y.updateSize({width:this._getPanelWidth()})})),y&&!y.hasAttached()&&(y.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const E=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&E!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new x.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:this._defaults?.overlayPanelClass})}_getOverlayPosition(){const y=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(y),this._positionStrategy=y,y}_setStrategyPositions(y){const E=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],N=this._aboveClass,U=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:N},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:N}];let Ce;Ce="above"===this.position?U:"below"===this.position?E:[...E,...U],y.withPositions(Ce)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const y=this.autocomplete;y.autoActiveFirstOption?y._keyManager.setFirstItemActive():y._keyManager.setActiveItem(-1)}_canOpen(){const y=this._element.nativeElement;return!y.readOnly&&!y.disabled&&!this._autocompleteDisabled}_getWindow(){return this._document?.defaultView||window}_scrollToOption(y){const E=this.autocomplete,N=(0,t.CB)(y,E.options,E.optionGroups);if(0===y&&1===N)E._setScrollTop(0);else if(E.panel){const U=E.options.toArray()[y];if(U){const Ce=U._getHostElement(),Ze=(0,t.jH)(Ce.offsetTop,Ce.offsetHeight,E._getScrollTop(),E.panel.nativeElement.offsetHeight);E._setScrollTop(Ze)}}}_handleOverlayEvents(y){y.keydownEvents().subscribe(E=>{(E.keyCode===J.hY&&!(0,J.Vb)(E)||E.keyCode===J.LH&&(0,J.Vb)(E,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),E.stopPropagation(),E.preventDefault())}),y.outsidePointerEvents().subscribe()}}return j.\u0275fac=function(y){return new(y||j)(A.Y36(A.SBq),A.Y36(x.aV),A.Y36(A.s_b),A.Y36(A.R0b),A.Y36(A.sBO),A.Y36(ae),A.Y36(G.Is,8),A.Y36(ve.G_,9),A.Y36(pe.K0,8),A.Y36(v.rL),A.Y36(S,8))},j.\u0275dir=A.lG2({type:j,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[A.TTD]}),j})(),Ne=(()=>{class j extends Fe{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return j.\u0275fac=function(){let ne;return function(E){return(ne||(ne=A.n5z(j)))(E||j)}}(),j.\u0275dir=A.lG2({type:j,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(y,E){1&y&&A.NdJ("focusin",function(){return E._handleFocus()})("blur",function(){return E._onTouched()})("input",function(U){return E._handleInput(U)})("keydown",function(U){return E._handleKeydown(U)})("click",function(){return E._handleClick()}),2&y&&A.uIk("autocomplete",E.autocompleteAttribute)("role",E.autocompleteDisabled?null:"combobox")("aria-autocomplete",E.autocompleteDisabled?null:"list")("aria-activedescendant",E.panelOpen&&E.activeOption?E.activeOption.id:null)("aria-expanded",E.autocompleteDisabled?null:E.panelOpen.toString())("aria-owns",E.autocompleteDisabled||!E.panelOpen||null==E.autocomplete?null:E.autocomplete.id)("aria-haspopup",E.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[A._Bn([Ve]),A.qOj]}),j})(),Oe=(()=>{class j{}return j.\u0275fac=function(y){return new(y||j)},j.\u0275mod=A.oAB({type:j}),j.\u0275inj=A.cJS({providers:[Je],imports:[x.U8,t.Ng,t.BQ,pe.ez,v.ZD,t.Ng,t.BQ]}),j})()},4859:(ze,_e,a)=>{a.d(_e,{lW:()=>se,ot:()=>pe});var r=a(94650),K=a(3238),l=a(12687);const A=["mat-button",""],t=["*"],P=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],re=(0,K.pj)((0,K.Id)((0,K.Kr)(class{constructor(x){this._elementRef=x}})));let se=(()=>{class x extends re{constructor(G,J,ie){super(G),this._focusMonitor=J,this._animationMode=ie,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const q of P)this._hasHostAttributes(q)&&this._getHostElement().classList.add(q);G.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(G,J){G?this._focusMonitor.focusVia(this._getHostElement(),G,J):this._getHostElement().focus(J)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...G){return G.some(J=>this._getHostElement().hasAttribute(J))}}return x.\u0275fac=function(G){return new(G||x)(r.Y36(r.SBq),r.Y36(l.tE),r.Y36(r.QbO,8))},x.\u0275cmp=r.Xpm({type:x,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(G,J){if(1&G&&r.Gf(K.wG,5),2&G){let ie;r.iGM(ie=r.CRH())&&(J.ripple=ie.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(G,J){2&G&&(r.uIk("disabled",J.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===J._animationMode)("mat-button-disabled",J.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:A,ngContentSelectors:t,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(G,J){1&G&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1)(3,"span",2)),2&G&&(r.xp6(2),r.ekj("mat-button-ripple-round",J.isRoundButton||J.isIconButton),r.Q6J("matRippleDisabled",J._isRippleDisabled())("matRippleCentered",J.isIconButton)("matRippleTrigger",J._getHostElement()))},dependencies:[K.wG],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}.mat-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.mat-flat-button::before,.mat-raised-button::before,.mat-fab::before,.mat-mini-fab::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px) * -1)}.mat-stroked-button::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}"],encapsulation:2,changeDetection:0}),x})(),pe=(()=>{class x{}return x.\u0275fac=function(G){return new(G||x)},x.\u0275mod=r.oAB({type:x}),x.\u0275inj=r.cJS({imports:[K.si,K.BQ,K.BQ]}),x})()},99602:(ze,_e,a)=>{a.d(_e,{By:()=>ue,C0:()=>N,DK:()=>Pe,E2:()=>$,FA:()=>ut,Lv:()=>Ue,M5:()=>it,Mq:()=>st,S8:()=>Fe,Ti:()=>O,Uu:()=>te,_H:()=>k,_g:()=>We,dp:()=>Re,hl:()=>p,nW:()=>i,wx:()=>Me,zY:()=>L});var r=a(12687),K=a(98184),l=a(84080),A=a(36895),t=a(94650),Q=a(4859),W=a(67376),P=a(3238),re=a(77579),se=a(50727),he=a(56451),pe=a(39646),x=a(29521),v=a(40445),G=a(95698),J=a(68675),ie=a(39300),q=a(21281),ve=a(83353),oe=a(37340),H=a(24006),le=a(59549),I=a(44144);const V=["mat-calendar-body",""];function ce(h,C){if(1&h&&(t.TgZ(0,"tr",2)(1,"td",3),t._uU(2),t.qZA()()),2&h){const e=t.oxw();t.xp6(1),t.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),t.uIk("colspan",e.numCols),t.xp6(1),t.hij(" ",e.label," ")}}function be(h,C){if(1&h&&(t.TgZ(0,"td",3),t._uU(1),t.qZA()),2&h){const e=t.oxw(2);t.Udp("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),t.uIk("colspan",e._firstRowOffset),t.xp6(1),t.hij(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function fe(h,C){if(1&h){const e=t.EpF();t.TgZ(0,"td",7)(1,"button",8),t.NdJ("click",function(d){const R=t.CHM(e).$implicit,de=t.oxw(2);return t.KtG(de._cellClicked(R,d))})("focus",function(d){const R=t.CHM(e).$implicit,de=t.oxw(2);return t.KtG(de._emitActiveDateChange(R,d))}),t.TgZ(2,"div",9),t._uU(3),t.qZA(),t._UZ(4,"div",10),t.qZA()()}if(2&h){const e=C.$implicit,o=C.index,d=t.oxw().index,m=t.oxw();t.Udp("width",m._cellWidth)("padding-top",m._cellPadding)("padding-bottom",m._cellPadding),t.uIk("data-mat-row",d)("data-mat-col",o),t.xp6(1),t.ekj("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",m._isActiveCell(d,o))("mat-calendar-body-range-start",m._isRangeStart(e.compareValue))("mat-calendar-body-range-end",m._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",m._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",m._isComparisonBridgeStart(e.compareValue,d,o))("mat-calendar-body-comparison-bridge-end",m._isComparisonBridgeEnd(e.compareValue,d,o))("mat-calendar-body-comparison-start",m._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",m._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",m._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",m._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",m._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",m._isInPreview(e.compareValue)),t.Q6J("ngClass",e.cssClasses)("tabindex",m._isActiveCell(d,o)?0:-1),t.uIk("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",m._isSelected(e.compareValue))("aria-current",m.todayValue===e.compareValue?"date":null),t.xp6(1),t.ekj("mat-calendar-body-selected",m._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",m._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",m.todayValue===e.compareValue),t.xp6(1),t.hij(" ",e.displayValue," ")}}function Te(h,C){if(1&h&&(t.TgZ(0,"tr",4),t.YNc(1,be,2,6,"td",5),t.YNc(2,fe,5,47,"td",6),t.qZA()),2&h){const e=C.$implicit,o=C.index,d=t.oxw();t.xp6(1),t.Q6J("ngIf",0===o&&d._firstRowOffset),t.xp6(1),t.Q6J("ngForOf",e)}}function Ae(h,C){if(1&h&&(t.TgZ(0,"th",5)(1,"span",6),t._uU(2),t.qZA(),t.TgZ(3,"span",7),t._uU(4),t.qZA()()),2&h){const e=C.$implicit;t.xp6(2),t.Oqu(e.long),t.xp6(2),t.Oqu(e.narrow)}}const ke=["*"];function Be(h,C){}function Ie(h,C){if(1&h){const e=t.EpF();t.TgZ(0,"mat-month-view",5),t.NdJ("activeDateChange",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m.activeDate=d)})("_userSelection",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m._dateSelected(d))}),t.qZA()}if(2&h){const e=t.oxw();t.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)}}function S(h,C){if(1&h){const e=t.EpF();t.TgZ(0,"mat-year-view",6),t.NdJ("activeDateChange",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m.activeDate=d)})("monthSelected",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m._monthSelectedInYearView(d))})("selectedChange",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m._goToDateInView(d,"month"))}),t.qZA()}if(2&h){const e=t.oxw();t.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function me(h,C){if(1&h){const e=t.EpF();t.TgZ(0,"mat-multi-year-view",7),t.NdJ("activeDateChange",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m.activeDate=d)})("yearSelected",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m._yearSelectedInMultiYearView(d))})("selectedChange",function(d){t.CHM(e);const m=t.oxw();return t.KtG(m._goToDateInView(d,"year"))}),t.qZA()}if(2&h){const e=t.oxw();t.Q6J("activeDate",e.activeDate)("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Z(h,C){}const B=["button"];function ye(h,C){1&h&&(t.O4$(),t.TgZ(0,"svg",3),t._UZ(1,"path",4),t.qZA())}const xe=[[["","matDatepickerToggleIcon",""]]],ae=["[matDatepickerToggleIcon]"],ge=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Je=["input[matStartDate]","input[matEndDate]"];function Ve(h,C){1&h&&(t.TgZ(0,"div",0),t.Hsn(1),t.qZA())}let Fe=(()=>{class h{constructor(){this.changes=new re.x,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year",this.startDateLabel="Start date",this.endDateLabel="End date"}formatYearRange(e,o){return`${e} \u2013 ${o}`}formatYearRangeLabel(e,o){return`${e} to ${o}`}}return h.\u0275fac=function(e){return new(e||h)},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac,providedIn:"root"}),h})();class Ne{constructor(C,e,o,d,m={},R=C,de){this.value=C,this.displayValue=e,this.ariaLabel=o,this.enabled=d,this.cssClasses=m,this.compareValue=R,this.rawValue=de}}let Oe=(()=>{class h{constructor(e,o){this._elementRef=e,this._ngZone=o,this._focusActiveCellAfterViewChecked=!1,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new t.vpe,this.previewChange=new t.vpe,this.activeDateChange=new t.vpe,this._enterHandler=d=>{if(this._skipNextFocus&&"focus"===d.type)this._skipNextFocus=!1;else if(d.target&&this.isRange){const m=this._getCellFromElement(d.target);m&&this._ngZone.run(()=>this.previewChange.emit({value:m.enabled?m:null,event:d}))}},this._leaveHandler=d=>{null!==this.previewEnd&&this.isRange&&d.target&&this._getCellFromElement(d.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:d}))},o.runOutsideAngular(()=>{const d=e.nativeElement;d.addEventListener("mouseenter",this._enterHandler,!0),d.addEventListener("focus",this._enterHandler,!0),d.addEventListener("mouseleave",this._leaveHandler,!0),d.addEventListener("blur",this._leaveHandler,!0)})}ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}_cellClicked(e,o){e.enabled&&this.selectedValueChange.emit({value:e.value,event:o})}_emitActiveDateChange(e,o){e.enabled&&this.activeDateChange.emit({value:e.value,event:o})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){const o=e.numCols,{rows:d,numCols:m}=this;(e.rows||o)&&(this._firstRowOffset=d&&d.length&&d[0].length?m-d[0].length:0),(e.cellAspectRatio||o||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/m+"%"),(o||!this._cellWidth)&&(this._cellWidth=100/m+"%")}ngOnDestroy(){const e=this._elementRef.nativeElement;e.removeEventListener("mouseenter",this._enterHandler,!0),e.removeEventListener("focus",this._enterHandler,!0),e.removeEventListener("mouseleave",this._leaveHandler,!0),e.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(e,o){let d=e*this.numCols+o;return e&&(d-=this._firstRowOffset),d==this.activeCell}_focusActiveCell(e=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>{setTimeout(()=>{const o=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");o&&(e||(this._skipNextFocus=!0),o.focus())})})})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return ne(e,this.startValue,this.endValue)}_isRangeEnd(e){return y(e,this.startValue,this.endValue)}_isInRange(e){return E(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return ne(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,o,d){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let m=this.rows[o][d-1];if(!m){const R=this.rows[o-1];m=R&&R[R.length-1]}return m&&!this._isRangeEnd(m.compareValue)}_isComparisonBridgeEnd(e,o,d){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let m=this.rows[o][d+1];if(!m){const R=this.rows[o+1];m=R&&R[0]}return m&&!this._isRangeStart(m.compareValue)}_isComparisonEnd(e){return y(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return E(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return ne(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return y(e,this.previewStart,this.previewEnd)}_isInPreview(e){return E(e,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(e){let o;if(j(e)?o=e:j(e.parentNode)&&(o=e.parentNode),o){const d=o.getAttribute("data-mat-row"),m=o.getAttribute("data-mat-col");if(d&&m)return this.rows[parseInt(d)][parseInt(m)]}return null}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.SBq),t.Y36(t.R0b))},h.\u0275cmp=t.Xpm({type:h,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange"},exportAs:["matCalendarBody"],features:[t.TTD],attrs:V,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click","focus"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(e,o){1&e&&(t.YNc(0,ce,3,6,"tr",0),t.YNc(1,Te,3,2,"tr",1)),2&e&&(t.Q6J("ngIf",o._firstRowOffset<o.labelMinRequiredCells),t.xp6(1),t.Q6J("ngForOf",o.rows))},dependencies:[A.mk,A.sg,A.O5],styles:['.mat-calendar-body{min-width:224px}.mat-calendar-body-label{height:0;line-height:0;text-align:left;padding-left:4.7142857143%;padding-right:4.7142857143%}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;font-family:inherit;margin:0}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.cdk-high-contrast-active .mat-calendar-body-disabled{opacity:.5}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}.cdk-high-contrast-active .mat-calendar-body-cell-content{border:none}.cdk-high-contrast-active .mat-datepicker-popup:not(:empty),.cdk-high-contrast-active .mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.cdk-high-contrast-active .mat-calendar-body-today{outline:dotted 1px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}'],encapsulation:2,changeDetection:0}),h})();function j(h){return"TD"===h.nodeName}function ne(h,C,e){return null!==e&&C!==e&&h<e&&h===C}function y(h,C,e){return null!==C&&C!==e&&h>=C&&h===e}function E(h,C,e,o){return o&&null!==C&&null!==e&&C!==e&&h>=C&&h<=e}class N{constructor(C,e){this.start=C,this.end=e}}let U=(()=>{class h{constructor(e,o){this.selection=e,this._adapter=o,this._selectionChanged=new re.x,this.selectionChanged=this._selectionChanged,this.selection=e}updateSelection(e,o){const d=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:o,oldValue:d})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}}return h.\u0275fac=function(e){t.$Z()},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})(),Ce=(()=>{class h extends U{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const e=new h(this._adapter);return e.updateSelection(this.selection,this),e}}return h.\u0275fac=function(e){return new(e||h)(t.LFG(P._A))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})(),Ze=(()=>{class h extends U{constructor(e){super(new N(null,null),e)}add(e){let{start:o,end:d}=this.selection;null==o?o=e:null==d?d=e:(o=e,d=null),super.updateSelection(new N(o,d),this)}isValid(){const{start:e,end:o}=this.selection;return null==e&&null==o||(null!=e&&null!=o?this._isValidDateInstance(e)&&this._isValidDateInstance(o)&&this._adapter.compareDate(e,o)<=0:(null==e||this._isValidDateInstance(e))&&(null==o||this._isValidDateInstance(o)))}isComplete(){return null!=this.selection.start&&null!=this.selection.end}clone(){const e=new h(this._adapter);return e.updateSelection(this.selection,this),e}}return h.\u0275fac=function(e){return new(e||h)(t.LFG(P._A))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})();const T={provide:U,deps:[[new t.FiY,new t.tp0,U],P._A],useFactory:function $e(h,C){return h||new Ce(C)}},M={provide:U,deps:[[new t.FiY,new t.tp0,U],P._A],useFactory:function z(h,C){return h||new Ze(C)}},F=new t.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let X=(()=>{class h{constructor(e){this._dateAdapter=e}selectionFinished(e,o){let{start:d,end:m}=o;return null==d?d=e:null==m&&e&&this._dateAdapter.compareDate(e,d)>=0?m=e:(d=e,m=null),new N(d,m)}createPreview(e,o){let d=null,m=null;return o.start&&!o.end&&e&&(d=o.start,m=e),new N(d,m)}}return h.\u0275fac=function(e){return new(e||h)(t.LFG(P._A))},h.\u0275prov=t.Yz7({token:h,factory:h.\u0275fac}),h})();const Ge={provide:F,deps:[[new t.FiY,new t.tp0,F],P._A],useFactory:function ee(h,C){return h||new X(C)}};let Le=(()=>{class h{constructor(e,o,d,m,R){this._changeDetectorRef=e,this._dateFormats=o,this._dateAdapter=d,this._dir=m,this._rangeStrategy=R,this._rerenderSubscription=se.w0.EMPTY,this.selectedChange=new t.vpe,this._userSelection=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){const o=this._activeDate,d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(d,this.minDate,this.maxDate),this._hasSameMonthAndYear(o,this._activeDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof N?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,J.O)(null)).subscribe(()=>this._init())}ngOnChanges(e){const o=e.comparisonStart||e.comparisonEnd;o&&!o.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){const o=e.value,d=this._getDateFromDayOfMonth(o);let m,R;this._selected instanceof N?(m=this._getDateInCurrentMonth(this._selected.start),R=this._getDateInCurrentMonth(this._selected.end)):m=R=this._getDateInCurrentMonth(this._selected),(m!==o||R!==o)&&this.selectedChange.emit(d),this._userSelection.emit({value:d,event:e.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_updateActiveDate(e){const d=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(e.value),this._dateAdapter.compareDate(d,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){const o=this._activeDate,d=this._isRtl();switch(e.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,d?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,d?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case x.Ku:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case x.VM:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case x.K5:case x.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&e.preventDefault());case x.hY:return void(null!=this._previewEnd&&!(0,x.Vb)(e)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e}),e.preventDefault(),e.stopPropagation()));default:return}this._dateAdapter.compareDate(o,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===x.L_||e.keyCode===x.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:o}){if(this._rangeStrategy){const m=this._rangeStrategy.createPreview(o?o.rawValue:null,this.selected,e);this._previewStart=this._getCellCompareValue(m.start),this._previewEnd=this._getCellCompareValue(m.end),this._changeDetectorRef.detectChanges()}}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){const e=this._dateAdapter.getFirstDayOfWeek(),o=this._dateAdapter.getDayOfWeekNames("narrow");let m=this._dateAdapter.getDayOfWeekNames("long").map((R,de)=>({long:R,narrow:o[de]}));this._weekdays=m.slice(e).concat(m.slice(0,e))}_createWeekCells(){const e=this._dateAdapter.getNumDaysInMonth(this.activeDate),o=this._dateAdapter.getDateNames();this._weeks=[[]];for(let d=0,m=this._firstWeekOffset;d<e;d++,m++){7==m&&(this._weeks.push([]),m=0);const R=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),d+1),de=this._shouldEnableDate(R),je=this._dateAdapter.format(R,this._dateFormats.display.dateA11yLabel),et=this.dateClass?this.dateClass(R,"month"):void 0;this._weeks[this._weeks.length-1].push(new Ne(d+1,o[d],je,de,et,this._getCellCompareValue(R),R))}}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,o){return!(!e||!o||this._dateAdapter.getMonth(e)!=this._dateAdapter.getMonth(o)||this._dateAdapter.getYear(e)!=this._dateAdapter.getYear(o))}_getCellCompareValue(e){if(e){const o=this._dateAdapter.getYear(e),d=this._dateAdapter.getMonth(e),m=this._dateAdapter.getDate(e);return new Date(o,d,m).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(e){e instanceof N?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.sBO),t.Y36(P.sG,8),t.Y36(P._A,8),t.Y36(v.Is,8),t.Y36(F,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-month-view"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oe,5),2&e){let d;t.iGM(d=t.CRH())&&(o._matCalendarBody=d.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[t.TTD],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","activeDateChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(e,o){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t.YNc(3,Ae,5,2,"th",2),t.qZA(),t.TgZ(4,"tr"),t._UZ(5,"th",3),t.qZA()(),t.TgZ(6,"tbody",4),t.NdJ("selectedValueChange",function(m){return o._dateSelected(m)})("activeDateChange",function(m){return o._updateActiveDate(m)})("previewChange",function(m){return o._previewChanged(m)})("keyup",function(m){return o._handleCalendarBodyKeyup(m)})("keydown",function(m){return o._handleCalendarBodyKeydown(m)}),t.qZA()()),2&e&&(t.xp6(3),t.Q6J("ngForOf",o._weekdays),t.xp6(3),t.Q6J("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1))},dependencies:[A.sg,Oe],encapsulation:2,changeDetection:0}),h})(),Ye=(()=>{class h{constructor(e,o,d){this._changeDetectorRef=e,this._dateAdapter=o,this._dir=d,this._rerenderSubscription=se.w0.EMPTY,this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let o=this._activeDate;const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(d,this.minDate,this.maxDate),b(this._dateAdapter,o,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof N?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,J.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const o=this._dateAdapter.getYear(this._activeDate)-n(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let d=0,m=[];d<24;d++)m.push(o+d),4==m.length&&(this._years.push(m.map(R=>this._createCellForYear(R))),m=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){const o=e.value,d=this._dateAdapter.createDate(o,0,1),m=this._getDateFromYear(o);this.yearSelected.emit(d),this.selectedChange.emit(m)}_updateActiveDate(e){const d=this._activeDate;this.activeDate=this._getDateFromYear(e.value),this._dateAdapter.compareDate(d,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const o=this._activeDate,d=this._isRtl();switch(e.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,d?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,d?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-n(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-n(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-240:-24);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?240:24);break;case x.K5:case x.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===x.L_||e.keyCode===x.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return n(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){const o=this._dateAdapter.getMonth(this.activeDate),d=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,o,1));return this._dateAdapter.createDate(e,o,Math.min(this._dateAdapter.getDate(this.activeDate),d))}_createCellForYear(e){const o=this._dateAdapter.createDate(e,0,1),d=this._dateAdapter.getYearName(o),m=this.dateClass?this.dateClass(o,"multi-year"):void 0;return new Ne(e,d,d,this._shouldEnableYear(e),m)}_shouldEnableYear(e){if(null==e||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;for(let d=this._dateAdapter.createDate(e,0,1);this._dateAdapter.getYear(d)==e;d=this._dateAdapter.addCalendarDays(d,1))if(this.dateFilter(d))return!0;return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedYear(e){if(this._selectedYear=null,e instanceof N){const o=e.start||e.end;o&&(this._selectedYear=this._dateAdapter.getYear(o))}else e&&(this._selectedYear=this._dateAdapter.getYear(e))}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.sBO),t.Y36(P._A,8),t.Y36(v.Is,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-multi-year-view"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oe,5),2&e){let d;t.iGM(d=t.CRH())&&(o._matCalendarBody=d.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,o){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t._UZ(3,"th",2),t.qZA()(),t.TgZ(4,"tbody",3),t.NdJ("selectedValueChange",function(m){return o._yearSelected(m)})("activeDateChange",function(m){return o._updateActiveDate(m)})("keyup",function(m){return o._handleCalendarBodyKeyup(m)})("keydown",function(m){return o._handleCalendarBodyKeydown(m)}),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("rows",o._years)("todayValue",o._todayYear)("startValue",o._selectedYear)("endValue",o._selectedYear)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._getActiveCell()))},dependencies:[Oe],encapsulation:2,changeDetection:0}),h})();function b(h,C,e,o,d){const m=h.getYear(C),R=h.getYear(e),de=s(h,o,d);return Math.floor((m-de)/24)===Math.floor((R-de)/24)}function n(h,C,e,o){return function u(h,C){return(h%C+C)%C}(h.getYear(C)-s(h,e,o),24)}function s(h,C,e){let o=0;return e?o=h.getYear(e)-24+1:C&&(o=h.getYear(C)),o}let f=(()=>{class h{constructor(e,o,d,m){this._changeDetectorRef=e,this._dateFormats=o,this._dateAdapter=d,this._dir=m,this._rerenderSubscription=se.w0.EMPTY,this.selectedChange=new t.vpe,this.monthSelected=new t.vpe,this.activeDateChange=new t.vpe,this._activeDate=this._dateAdapter.today()}get activeDate(){return this._activeDate}set activeDate(e){let o=this._activeDate;const d=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(d,this.minDate,this.maxDate),this._dateAdapter.getYear(o)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(e){this._selected=e instanceof N?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,J.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){const o=e.value,d=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),o,1);this.monthSelected.emit(d);const m=this._getDateFromMonth(o);this.selectedChange.emit(m)}_updateActiveDate(e){const d=this._activeDate;this.activeDate=this._getDateFromMonth(e.value),this._dateAdapter.compareDate(d,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){const o=this._activeDate,d=this._isRtl();switch(e.keyCode){case x.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,d?1:-1);break;case x.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,d?-1:1);break;case x.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case x.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case x.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case x.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case x.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case x.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case x.K5:case x.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(o,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===x.L_||e.keyCode===x.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(o=>o.map(d=>this._createCellForMonth(d,e[d]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){const o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),d=this._dateAdapter.getNumDaysInMonth(o);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),d))}_createCellForMonth(e,o){const d=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),m=this._dateAdapter.format(d,this._dateFormats.display.monthYearA11yLabel),R=this.dateClass?this.dateClass(d,"year"):void 0;return new Ne(e,o.toLocaleUpperCase(),m,this._shouldEnableMonth(e),R)}_shouldEnableMonth(e){const o=this._dateAdapter.getYear(this.activeDate);if(null==e||this._isYearAndMonthAfterMaxDate(o,e)||this._isYearAndMonthBeforeMinDate(o,e))return!1;if(!this.dateFilter)return!0;for(let m=this._dateAdapter.createDate(o,e,1);this._dateAdapter.getMonth(m)==e;m=this._dateAdapter.addCalendarDays(m,1))if(this.dateFilter(m))return!0;return!1}_isYearAndMonthAfterMaxDate(e,o){if(this.maxDate){const d=this._dateAdapter.getYear(this.maxDate),m=this._dateAdapter.getMonth(this.maxDate);return e>d||e===d&&o>m}return!1}_isYearAndMonthBeforeMinDate(e,o){if(this.minDate){const d=this._dateAdapter.getYear(this.minDate),m=this._dateAdapter.getMonth(this.minDate);return e<d||e===d&&o<m}return!1}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setSelectedMonth(e){this._selectedMonth=e instanceof N?this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end):this._getMonthInCurrentYear(e)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.sBO),t.Y36(P.sG,8),t.Y36(P._A,8),t.Y36(v.Is,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-year-view"]],viewQuery:function(e,o){if(1&e&&t.Gf(Oe,5),2&e){let d;t.iGM(d=t.CRH())&&(o._matCalendarBody=d.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell","selectedValueChange","activeDateChange","keyup","keydown"]],template:function(e,o){1&e&&(t.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),t._UZ(3,"th",2),t.qZA()(),t.TgZ(4,"tbody",3),t.NdJ("selectedValueChange",function(m){return o._monthSelected(m)})("activeDateChange",function(m){return o._updateActiveDate(m)})("keyup",function(m){return o._handleCalendarBodyKeyup(m)})("keydown",function(m){return o._handleCalendarBodyKeydown(m)}),t.qZA()()),2&e&&(t.xp6(4),t.Q6J("label",o._yearLabel)("rows",o._months)("todayValue",o._todayMonth)("startValue",o._selectedMonth)("endValue",o._selectedMonth)("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",o._dateAdapter.getMonth(o.activeDate)))},dependencies:[Oe],encapsulation:2,changeDetection:0}),h})(),D=0,O=(()=>{class h{constructor(e,o,d,m,R){this._intl=e,this.calendar=o,this._dateAdapter=d,this._dateFormats=m,this._buttonDescriptionId="mat-calendar-button-"+D++,this.calendar.stateChanges.subscribe(()=>R.markForCheck())}get periodButtonText(){if("month"==this.calendar.currentView)return this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase();if("year"==this.calendar.currentView)return this._dateAdapter.getYearName(this.calendar.activeDate);const o=this._dateAdapter.getYear(this.calendar.activeDate)-n(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),d=o+24-1,m=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1)),R=this._dateAdapter.getYearName(this._dateAdapter.createDate(d,0,1));return this._intl.formatYearRange(m,R)}get periodButtonLabel(){return"month"==this.calendar.currentView?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView="month"==this.calendar.currentView?"multi-year":"month"}previousClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?-1:-24)}nextClicked(){this.calendar.activeDate="month"==this.calendar.currentView?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,"year"==this.calendar.currentView?1:24)}previousEnabled(){return!this.calendar.minDate||!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate)}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,o){return"month"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(o)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(o):"year"==this.calendar.currentView?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(o):b(this._dateAdapter,e,o,this.calendar.minDate,this.calendar.maxDate)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Fe),t.Y36((0,t.Gpc)(()=>k)),t.Y36(P._A,8),t.Y36(P.sG,8),t.Y36(t.sBO))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ke,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"disabled","click"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"disabled","click"]],template:function(e,o){1&e&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return o.currentPeriodClicked()}),t.TgZ(3,"span"),t._uU(4),t.qZA(),t.O4$(),t.TgZ(5,"svg",3),t._UZ(6,"polygon",4),t.qZA()(),t.kcU(),t._UZ(7,"div",5),t.Hsn(8),t.TgZ(9,"button",6),t.NdJ("click",function(){return o.previousClicked()}),t.qZA(),t.TgZ(10,"button",7),t.NdJ("click",function(){return o.nextClicked()}),t.qZA()()()),2&e&&(t.xp6(2),t.uIk("aria-label",o.periodButtonLabel)("aria-describedby",o._buttonDescriptionId),t.xp6(1),t.uIk("id",o._buttonDescriptionId),t.xp6(1),t.Oqu(o.periodButtonText),t.xp6(1),t.ekj("mat-calendar-invert","month"!==o.calendar.currentView),t.xp6(4),t.Q6J("disabled",!o.previousEnabled()),t.uIk("aria-label",o.prevButtonLabel),t.xp6(1),t.Q6J("disabled",!o.nextEnabled()),t.uIk("aria-label",o.nextButtonLabel))},dependencies:[Q.lW],encapsulation:2,changeDetection:0}),h})(),k=(()=>{class h{constructor(e,o,d,m){this._dateAdapter=o,this._dateFormats=d,this._changeDetectorRef=m,this._moveFocusOnNextTick=!1,this.startView="month",this.selectedChange=new t.vpe,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this._userSelection=new t.vpe,this.stateChanges=new re.x,this._intlChanges=e.changes.subscribe(()=>{m.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get selected(){return this._selected}set selected(e){this._selected=e instanceof N?e:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(e){const o=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),o&&this.viewChanged.emit(o)}ngAfterContentInit(){this._calendarHeaderPortal=new l.C5(this.headerComponent||O),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){const o=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,d=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,m=o||d||e.dateFilter;if(m&&!m.firstChange){const R=this._getCurrentViewComponent();R&&(this._changeDetectorRef.detectChanges(),R._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){const o=e.value;(this.selected instanceof N||o&&!this._dateAdapter.sameDate(o,this.selected))&&this.selectedChange.emit(o),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,o){this.activeDate=e,this.currentView=o}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Fe),t.Y36(P._A,8),t.Y36(P.sG,8),t.Y36(t.sBO))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-calendar"]],viewQuery:function(e,o){if(1&e&&(t.Gf(Le,5),t.Gf(f,5),t.Gf(Ye,5)),2&e){let d;t.iGM(d=t.CRH())&&(o.monthView=d.first),t.iGM(d=t.CRH())&&(o.yearView=d.first),t.iGM(d=t.CRH())&&(o.multiYearView=d.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[t._Bn([T]),t.TTD],decls:5,vars:5,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content",3,"ngSwitch"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange",4,"ngSwitchCase"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","activeDateChange","_userSelection"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","monthSelected","selectedChange"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","activeDateChange","yearSelected","selectedChange"]],template:function(e,o){1&e&&(t.YNc(0,Be,0,0,"ng-template",0),t.TgZ(1,"div",1),t.YNc(2,Ie,1,8,"mat-month-view",2),t.YNc(3,S,1,6,"mat-year-view",3),t.YNc(4,me,1,6,"mat-multi-year-view",4),t.qZA()),2&e&&(t.Q6J("cdkPortalOutlet",o._calendarHeaderPortal),t.xp6(1),t.Q6J("ngSwitch",o.currentView),t.xp6(1),t.Q6J("ngSwitchCase","month"),t.xp6(1),t.Q6J("ngSwitchCase","year"),t.xp6(1),t.Q6J("ngSwitchCase","multi-year"))},dependencies:[A.RF,A.n9,r.kH,l.Pl,Le,f,Ye],styles:['.mat-calendar{display:block}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-controls .mat-icon-button:hover .mat-button-focus-overlay{opacity:.04}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.mat-calendar-previous-button,.mat-calendar-next-button{position:relative}.mat-calendar-previous-button::after,.mat-calendar-next-button::after{top:0;left:0;right:0;bottom:0;position:absolute;content:"";margin:15.5px;border:0 solid currentColor;border-top-width:2px}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-previous-button::after{border-left-width:2px;transform:translateX(2px) rotate(-45deg)}.mat-calendar-next-button::after{border-right-width:2px;transform:translateX(-2px) rotate(45deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}'],encapsulation:2,changeDetection:0}),h})();const $={transformPanel:(0,oe.X$)("transformPanel",[(0,oe.eR)("void => enter-dropdown",(0,oe.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,oe.F4)([(0,oe.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,oe.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,oe.eR)("void => enter-dialog",(0,oe.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,oe.F4)([(0,oe.oB)({opacity:0,transform:"scale(0.7)"}),(0,oe.oB)({transform:"none",opacity:1})]))),(0,oe.eR)("* => void",(0,oe.jt)("100ms linear",(0,oe.oB)({opacity:0})))]),fadeInCalendar:(0,oe.X$)("fadeInCalendar",[(0,oe.SB)("void",(0,oe.oB)({opacity:0})),(0,oe.SB)("enter",(0,oe.oB)({opacity:1})),(0,oe.eR)("void => *",(0,oe.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let Y=0;const te=new t.OlP("mat-datepicker-scroll-strategy"),Ue={provide:te,deps:[K.aV],useFactory:function we(h){return()=>h.scrollStrategies.reposition()}},Xe=(0,P.pj)(class{constructor(h){this._elementRef=h}});let rt=(()=>{class h extends Xe{constructor(e,o,d,m,R,de){super(e),this._changeDetectorRef=o,this._globalModel=d,this._dateAdapter=m,this._rangeSelectionStrategy=R,this._subscriptions=new se.w0,this._animationDone=new re.x,this._actionsPortal=null,this._closeButtonText=de.closeCalendarLabel}ngOnInit(){this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}ngAfterViewInit(){this._subscriptions.add(this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}ngOnDestroy(){this._subscriptions.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){const o=this._model.selection,d=e.value,m=o instanceof N;if(m&&this._rangeSelectionStrategy){const R=this._rangeSelectionStrategy.selectionFinished(d,o,e.event);this._model.updateSelection(R,this)}else d&&(m||!this._dateAdapter.sameDate(d,o))&&this._model.add(d);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_startExitAnimation(){this._animationState="void",this._changeDetectorRef.markForCheck()}_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,o){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,o&&this._changeDetectorRef.detectChanges()}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(U),t.Y36(P._A),t.Y36(F,8),t.Y36(Fe))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-datepicker-content"]],viewQuery:function(e,o){if(1&e&&t.Gf(k,5),2&e){let d;t.iGM(d=t.CRH())&&(o._calendar=d.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(e,o){1&e&&t.WFA("@transformPanel.done",function(){return o._animationDone.next()}),2&e&&(t.d8E("@transformPanel",o._animationState),t.ekj("mat-datepicker-content-touch",o.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[t.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(e,o){if(1&e&&(t.TgZ(0,"div",0)(1,"mat-calendar",1),t.NdJ("yearSelected",function(m){return o.datepicker._selectYear(m)})("monthSelected",function(m){return o.datepicker._selectMonth(m)})("viewChanged",function(m){return o.datepicker._viewChanged(m)})("_userSelection",function(m){return o._handleUserSelection(m)}),t.qZA(),t.YNc(2,Z,0,0,"ng-template",2),t.TgZ(3,"button",3),t.NdJ("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),t._uU(4),t.qZA()()),2&e){let d;t.ekj("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),t.uIk("aria-modal",!0)("aria-labelledby",null!==(d=o._dialogLabelId)&&void 0!==d?d:void 0),t.xp6(1),t.Q6J("id",o.datepicker.id)("ngClass",o.datepicker.panelClass)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("@fadeInCalendar","enter"),t.xp6(1),t.Q6J("cdkPortalOutlet",o._actionsPortal),t.xp6(1),t.ekj("cdk-visually-hidden",!o._closeButtonFocused),t.Q6J("color",o.color||"primary"),t.xp6(1),t.Oqu(o._closeButtonText)}},dependencies:[A.mk,Q.lW,r.mK,l.Pl,k],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}"],encapsulation:2,data:{animation:[$.transformPanel,$.fadeInCalendar]},changeDetection:0}),h})(),Ke=(()=>{class h{constructor(e,o,d,m,R,de,je){this._overlay=e,this._ngZone=o,this._viewContainerRef=d,this._dateAdapter=R,this._dir=de,this._model=je,this._inputStateChanges=se.w0.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new t.vpe,this.monthSelected=new t.vpe,this.viewChanged=new t.vpe(!0),this.openedStream=new t.vpe,this.closedStream=new t.vpe,this._opened=!1,this.id="mat-datepicker-"+Y++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new re.x,this._scrollStrategy=m}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}get touchUi(){return this._touchUi}set touchUi(e){this._touchUi=(0,q.Ig)(e)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){const o=(0,q.Ig)(e);o!==this._disabled&&(this._disabled=o,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(e){this._restoreFocus=(0,q.Ig)(e)}get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=(0,q.du)(e)}get opened(){return this._opened}set opened(e){(0,q.Ig)(e)?this.open():this.close()}_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}ngOnChanges(e){const o=e.xPosition||e.yPosition;if(o&&!o.firstChange&&this._overlayRef){const d=this._overlayRef.getConfig().positionStrategy;d instanceof K._G&&(this._setConnectedPositions(d),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ve.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const o=this._componentRef.instance;o._startExitAnimation(),o._animationDone.pipe((0,G.q)(1)).subscribe(()=>this._destroyOverlay())}const e=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();const e=this.touchUi,o=new l.C5(rt,this._viewContainerRef),d=this._overlayRef=this._overlay.create(new K.X_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(e?"dialog":"popup")}));this._getCloseStream(d).subscribe(m=>{m&&m.preventDefault(),this.close()}),d.keydownEvents().subscribe(m=>{const R=m.keyCode;(R===x.LH||R===x.JH||R===x.oh||R===x.SV||R===x.Ku||R===x.VM)&&m.preventDefault()}),this._componentRef=d.attach(o),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe((0,G.q)(1)).subscribe(()=>d.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){const o="end"===this.xPosition?"end":"start",d="start"===o?"end":"start",m="above"===this.yPosition?"bottom":"top",R="top"===m?"bottom":"top";return e.withPositions([{originX:o,originY:R,overlayX:o,overlayY:m},{originX:o,originY:m,overlayX:o,overlayY:R},{originX:d,originY:R,overlayX:d,overlayY:m},{originX:d,originY:m,overlayX:d,overlayY:R}])}_getCloseStream(e){return(0,he.T)(e.backdropClick(),e.detachments(),e.keydownEvents().pipe((0,ie.h)(o=>o.keyCode===x.hY&&!(0,x.Vb)(o)||this.datepickerInput&&(0,x.Vb)(o,"altKey")&&o.keyCode===x.LH)))}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(K.aV),t.Y36(t.R0b),t.Y36(t.s_b),t.Y36(te),t.Y36(P._A,8),t.Y36(v.Is,8),t.Y36(U))},h.\u0275dir=t.lG2({type:h,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[t.TTD]}),h})(),st=(()=>{class h extends Ke{}return h.\u0275fac=function(){let C;return function(o){return(C||(C=t.n5z(h)))(o||h)}}(),h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[t._Bn([T,{provide:Ke,useExisting:h}]),t.qOj],decls:0,vars:0,template:function(e,o){},encapsulation:2,changeDetection:0}),h})();class qe{constructor(C,e){this.target=C,this.targetElement=e,this.value=this.target.value}}let at=(()=>{class h{constructor(e,o,d){this._elementRef=e,this._dateAdapter=o,this._dateFormats=d,this.dateChange=new t.vpe,this.dateInput=new t.vpe,this.stateChanges=new re.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=se.w0.EMPTY,this._localeSubscription=se.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=m=>{const R=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value));return!R||this._matchesFilter(R)?null:{matDatepickerFilter:!0}},this._minValidator=m=>{const R=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),de=this._getMinDate();return!de||!R||this._dateAdapter.compareDate(de,R)<=0?null:{matDatepickerMin:{min:de,actual:R}}},this._maxValidator=m=>{const R=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(m.value)),de=this._getMaxDate();return!de||!R||this._dateAdapter.compareDate(de,R)>=0?null:{matDatepickerMax:{max:de,actual:R}}},this._lastValueValid=!1,this._localeSubscription=o.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){const o=(0,q.Ig)(e),d=this._elementRef.nativeElement;this._disabled!==o&&(this._disabled=o,this.stateChanges.next(void 0)),o&&this._isInitialized&&d.blur&&d.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(o=>{if(this._shouldHandleChangeEvent(o)){const d=this._getValueFromModel(o.selection);this._lastValueValid=this._isValidValue(d),this._cvaOnChange(d),this._onTouched(),this._formatValue(d),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)),this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ot(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){e.altKey&&e.keyCode===x.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){const o=this._lastValueValid;let d=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(d),d=this._dateAdapter.getValidDateOrNull(d);const m=!this._dateAdapter.sameDate(d,this.value);!d||m?this._cvaOnChange(d):(e&&!this.value&&this._cvaOnChange(d),o!==this._lastValueValid&&this._validatorOnChange()),m&&(this._assignValue(d),this.dateInput.emit(new qe(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new qe(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=null!=e?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){const o=this._getDateFilter();return!o||o(e)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.SBq),t.Y36(P._A,8),t.Y36(P.sG,8))},h.\u0275dir=t.lG2({type:h,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t.TTD]}),h})();function ot(h,C){const e=Object.keys(h);for(let o of e){const{previousValue:d,currentValue:m}=h[o];if(!C.isDateInstance(d)||!C.isDateInstance(m))return!0;if(!C.sameDate(d,m))return!0}return!1}const lt={provide:H.JU,useExisting:(0,t.Gpc)(()=>p),multi:!0},dt={provide:H.Cf,useExisting:(0,t.Gpc)(()=>p),multi:!0};let p=(()=>{class h extends at{constructor(e,o,d,m){super(e,o,d),this._formField=m,this._closedSubscription=se.w0.EMPTY,this._validator=H.kI.compose(super._getValidators())}set matDatepicker(e){e&&(this._datepicker=e,this._closedSubscription=e.closedStream.subscribe(()=>this._onTouched()),this._registerModel(e.registerInput(this)))}get min(){return this._min}set min(e){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(o,this._min)||(this._min=o,this._validatorOnChange())}get max(){return this._max}set max(e){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(o,this._max)||(this._max=o,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(e){const o=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==o&&this._validatorOnChange()}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.SBq),t.Y36(P._A,8),t.Y36(P.sG,8),t.Y36(le.G_,8))},h.\u0275dir=t.lG2({type:h,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(e,o){1&e&&t.NdJ("input",function(m){return o._onInput(m.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(m){return o._onKeydown(m)}),2&e&&(t.Ikx("disabled",o.disabled),t.uIk("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",(null==o._datepicker?null:o._datepicker.opened)&&o._datepicker.id||null)("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[t._Bn([lt,dt,{provide:I.Jk,useExisting:h}]),t.qOj]}),h})(),g=(()=>{class h{}return h.\u0275fac=function(e){return new(e||h)},h.\u0275dir=t.lG2({type:h,selectors:[["","matDatepickerToggleIcon",""]]}),h})(),i=(()=>{class h{constructor(e,o,d){this._intl=e,this._changeDetectorRef=o,this._stateChanges=se.w0.EMPTY;const m=Number(d);this.tabIndex=m||0===m?m:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=(0,q.Ig)(e)}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){const e=this.datepicker?this.datepicker.stateChanges:(0,pe.of)(),o=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,pe.of)(),d=this.datepicker?(0,he.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,pe.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,he.T)(this._intl.changes,e,o,d).subscribe(()=>this._changeDetectorRef.markForCheck())}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Fe),t.Y36(t.sBO),t.$8M("tabindex"))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-datepicker-toggle"]],contentQueries:function(e,o,d){if(1&e&&t.Suo(d,g,5),2&e){let m;t.iGM(m=t.CRH())&&(o._customIcon=m.first)}},viewQuery:function(e,o){if(1&e&&t.Gf(B,5),2&e){let d;t.iGM(d=t.CRH())&&(o._button=d.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(e,o){1&e&&t.NdJ("click",function(m){return o._open(m)}),2&e&&(t.uIk("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),t.ekj("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&"accent"===o.datepicker.color)("mat-warn",o.datepicker&&"warn"===o.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[t.TTD],ngContentSelectors:ae,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(e,o){1&e&&(t.F$t(xe),t.TgZ(0,"button",0,1),t.YNc(2,ye,2,0,"svg",2),t.Hsn(3),t.qZA()),2&e&&(t.Q6J("disabled",o.disabled)("disableRipple",o.disableRipple),t.uIk("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex),t.xp6(2),t.Q6J("ngIf",!o._customIcon))},dependencies:[A.O5,Q.lW],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}.cdk-high-contrast-active .mat-datepicker-toggle-default-icon{color:CanvasText}"],encapsulation:2,changeDetection:0}),h})();const c=new t.OlP("MAT_DATE_RANGE_INPUT_PARENT"),w=(0,P.FD)((()=>{class h extends at{constructor(e,o,d,m,R,de,je,et){super(o,je,et),this._rangeInput=e,this._defaultErrorStateMatcher=d,this._injector=m,this._parentForm=R,this._parentFormGroup=de}ngOnInit(){const e=this._injector.get(H.a5,null,t.XFs.Self|t.XFs.Optional);e&&(this.ngControl=e)}ngDoCheck(){this.ngControl&&this.updateErrorState()}isEmpty(){return 0===this._elementRef.nativeElement.value.length}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange()}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(c),t.Y36(t.SBq),t.Y36(P.rD),t.Y36(t.zs3),t.Y36(H.F,8),t.Y36(H.sg,8),t.Y36(P._A,8),t.Y36(P.sG,8))},h.\u0275dir=t.lG2({type:h,features:[t.qOj]}),h})());let L=(()=>{class h extends w{constructor(e,o,d,m,R,de,je,et){super(e,o,d,m,R,de,je,et),this._startValidator=ct=>{const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ct.value)),nt=this._model?this._model.selection.end:null;return!tt||!nt||this._dateAdapter.compareDate(tt,nt)<=0?null:{matStartDateInvalid:{end:nt,actual:tt}}},this._validator=H.kI.compose([...super._getValidators(),this._startValidator])}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.start?e.selection.start&&!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!e.selection.start))}_assignValueToModel(e){if(this._model){const o=new N(e,this._model.selection.end);this._model.updateSelection(o,this)}}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}getMirrorValue(){const e=this._elementRef.nativeElement,o=e.value;return o.length>0?o:e.placeholder}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(c),t.Y36(t.SBq),t.Y36(P.rD),t.Y36(t.zs3),t.Y36(H.F,8),t.Y36(H.sg,8),t.Y36(P._A,8),t.Y36(P.sG,8))},h.\u0275dir=t.lG2({type:h,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:6,hostBindings:function(e,o){1&e&&t.NdJ("input",function(m){return o._onInput(m.target.value)})("change",function(){return o._onChange()})("keydown",function(m){return o._onKeydown(m)})("blur",function(){return o._onBlur()}),2&e&&(t.Ikx("disabled",o.disabled),t.uIk("id",o._rangeInput.id)("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t._Bn([{provide:H.JU,useExisting:h,multi:!0},{provide:H.Cf,useExisting:h,multi:!0}]),t.qOj]}),h})(),ue=(()=>{class h extends w{constructor(e,o,d,m,R,de,je,et){super(e,o,d,m,R,de,je,et),this._endValidator=ct=>{const tt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(ct.value)),nt=this._model?this._model.selection.start:null;return!tt||!nt||this._dateAdapter.compareDate(tt,nt)>=0?null:{matEndDateInvalid:{start:nt,actual:tt}}},this._validator=H.kI.compose([...super._getValidators(),this._endValidator])}_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return!(!super._shouldHandleChangeEvent(e)||(e.oldValue?.end?e.selection.end&&!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!e.selection.end))}_assignValueToModel(e){if(this._model){const o=new N(this._model.selection.start,e);this._model.updateSelection(o,this)}}_onKeydown(e){e.keyCode===x.ZH&&!this._elementRef.nativeElement.value&&this._rangeInput._startInput.focus(),super._onKeydown(e)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(c),t.Y36(t.SBq),t.Y36(P.rD),t.Y36(t.zs3),t.Y36(H.F,8),t.Y36(H.sg,8),t.Y36(P._A,8),t.Y36(P.sG,8))},h.\u0275dir=t.lG2({type:h,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(e,o){1&e&&t.NdJ("input",function(m){return o._onInput(m.target.value)})("change",function(){return o._onChange()})("keydown",function(m){return o._onKeydown(m)})("blur",function(){return o._onBlur()}),2&e&&(t.Ikx("disabled",o.disabled),t.uIk("aria-haspopup",o._rangeInput.rangePicker?"dialog":null)("aria-owns",(null==o._rangeInput.rangePicker?null:o._rangeInput.rangePicker.opened)&&o._rangeInput.rangePicker.id||null)("min",o._getMinDate()?o._dateAdapter.toIso8601(o._getMinDate()):null)("max",o._getMaxDate()?o._dateAdapter.toIso8601(o._getMaxDate()):null))},inputs:{errorStateMatcher:"errorStateMatcher"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[t._Bn([{provide:H.JU,useExisting:h,multi:!0},{provide:H.Cf,useExisting:h,multi:!0}]),t.qOj]}),h})(),Se=0,Me=(()=>{class h{constructor(e,o,d,m,R){if(this._changeDetectorRef=e,this._elementRef=o,this._dateAdapter=m,this._formField=R,this._closedSubscription=se.w0.EMPTY,this.id="mat-date-range-input-"+Se++,this.focused=!1,this.controlType="mat-date-range-input",this._groupDisabled=!1,this._ariaDescribedBy=null,this.separator="\u2013",this.comparisonStart=null,this.comparisonEnd=null,this.stateChanges=new re.x,R?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")){const de=o.nativeElement.classList;de.add("mat-mdc-input-element"),de.add("mat-mdc-form-field-input-control")}this.ngControl=d}get value(){return this._model?this._model.selection:null}get shouldLabelFloat(){return this.focused||!this.empty}get placeholder(){const e=this._startInput?._getPlaceholder()||"",o=this._endInput?._getPlaceholder()||"";return e||o?`${e} ${this.separator} ${o}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched()}),this._registerModel(this._model))}get required(){return!!this._required}set required(e){this._required=(0,q.Ig)(e)}get dateFilter(){return this._dateFilter}set dateFilter(e){const o=this._startInput,d=this._endInput,m=o&&o._matchesFilter(o.value),R=d&&d._matchesFilter(o.value);this._dateFilter=e,o&&o._matchesFilter(o.value)!==m&&o._validatorOnChange(),d&&d._matchesFilter(d.value)!==R&&d._validatorOnChange()}get min(){return this._min}set min(e){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(o,this._min)||(this._min=o,this._revalidate())}get max(){return this._max}set max(e){const o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(o,this._max)||(this._max=o,this._revalidate())}get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){const o=(0,q.Ig)(e);o!==this._groupDisabled&&(this._groupDisabled=o,this.stateChanges.next(void 0))}get errorState(){return!(!this._startInput||!this._endInput)&&(this._startInput.errorState||this._endInput.errorState)}get empty(){const e=!!this._startInput&&this._startInput.isEmpty(),o=!!this._endInput&&this._endInput.isEmpty();return e&&o}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(this._model&&this._model.selection.start?this._endInput.focus():this._startInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),(0,he.T)(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){ot(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(){return this._startInput?this._startInput.getMirrorValue():""}_shouldHidePlaceholders(){return!!this._startInput&&!this._startInput.isEmpty()}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){const e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_updateFocus(e){this.focused=null!==e,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(t.sBO),t.Y36(t.SBq),t.Y36(H.gN,10),t.Y36(P._A,8),t.Y36(le.G_,8))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-date-range-input"]],contentQueries:function(e,o,d){if(1&e&&(t.Suo(d,L,5),t.Suo(d,ue,5)),2&e){let m;t.iGM(m=t.CRH())&&(o._startInput=m.first),t.iGM(m=t.CRH())&&(o._endInput=m.first)}},hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(e,o){2&e&&(t.uIk("id",null)("aria-labelledby",o._getAriaLabelledby())("aria-describedby",o._ariaDescribedBy)("data-mat-calendar",o.rangePicker?o.rangePicker.id:null),t.ekj("mat-date-range-input-hide-placeholders",o._shouldHidePlaceholders())("mat-date-range-input-required",o.required))},inputs:{rangePicker:"rangePicker",required:"required",dateFilter:"dateFilter",min:"min",max:"max",disabled:"disabled",separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[t._Bn([{provide:le.Eo,useExisting:h},{provide:c,useExisting:h}]),t.TTD],ngContentSelectors:Je,decls:9,vars:4,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-start-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-end-wrapper"]],template:function(e,o){1&e&&(t.F$t(ge),t.TgZ(0,"div",0),t.NdJ("cdkFocusChange",function(m){return o._updateFocus(m)}),t.TgZ(1,"div",1),t.Hsn(2),t.TgZ(3,"span",2),t._uU(4),t.qZA()(),t.TgZ(5,"span",3),t._uU(6),t.qZA(),t.TgZ(7,"div",4),t.Hsn(8,1),t.qZA()()),2&e&&(t.xp6(4),t.Oqu(o._getInputMirrorValue()),t.xp6(1),t.ekj("mat-date-range-input-separator-hidden",o._shouldHideSeparator()),t.xp6(1),t.Oqu(o.separator))},dependencies:[r.kH],styles:[".mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-inner{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.cdk-high-contrast-active .mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-date-range-input-start-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-start-wrapper .mat-date-range-input-inner{position:absolute;top:0;left:0}.mat-date-range-input-end-wrapper{flex-grow:1;max-width:calc(50% - 4px)}.mat-form-field-type-mat-date-range-input .mat-form-field-infix{width:200px}"],encapsulation:2,changeDetection:0}),h})(),We=(()=>{class h extends Ke{_forwardContentValues(e){super._forwardContentValues(e);const o=this.datepickerInput;o&&(e.comparisonStart=o.comparisonStart,e.comparisonEnd=o.comparisonEnd)}}return h.\u0275fac=function(){let C;return function(o){return(C||(C=t.n5z(h)))(o||h)}}(),h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[t._Bn([M,Ge,{provide:Ke,useExisting:h}]),t.qOj],decls:0,vars:0,template:function(e,o){},encapsulation:2,changeDetection:0}),h})(),Pe=(()=>{class h{constructor(e){this._datepicker=e}_applySelection(){this._datepicker._applyPendingSelection(),this._datepicker.close()}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Ke))},h.\u0275dir=t.lG2({type:h,selectors:[["","matDatepickerApply",""],["","matDateRangePickerApply",""]],hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o._applySelection()})}}),h})(),Re=(()=>{class h{constructor(e){this._datepicker=e}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Ke))},h.\u0275dir=t.lG2({type:h,selectors:[["","matDatepickerCancel",""],["","matDateRangePickerCancel",""]],hostBindings:function(e,o){1&e&&t.NdJ("click",function(){return o._datepicker.close()})}}),h})(),it=(()=>{class h{constructor(e,o){this._datepicker=e,this._viewContainerRef=o}ngAfterViewInit(){this._portal=new l.UE(this._template,this._viewContainerRef),this._datepicker.registerActions(this._portal)}ngOnDestroy(){this._datepicker.removeActions(this._portal),this._portal&&this._portal.isAttached&&this._portal?.detach()}}return h.\u0275fac=function(e){return new(e||h)(t.Y36(Ke),t.Y36(t.s_b))},h.\u0275cmp=t.Xpm({type:h,selectors:[["mat-datepicker-actions"],["mat-date-range-picker-actions"]],viewQuery:function(e,o){if(1&e&&t.Gf(t.Rgc,5),2&e){let d;t.iGM(d=t.CRH())&&(o._template=d.first)}},ngContentSelectors:ke,decls:1,vars:0,consts:[[1,"mat-datepicker-actions"]],template:function(e,o){1&e&&(t.F$t(),t.YNc(0,Ve,2,0,"ng-template"))},styles:[".mat-datepicker-actions{display:flex;justify-content:flex-end;align-items:center;padding:0 8px 8px 8px}.mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-datepicker-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,changeDetection:0}),h})(),ut=(()=>{class h{}return h.\u0275fac=function(e){return new(e||h)},h.\u0275mod=t.oAB({type:h}),h.\u0275inj=t.cJS({providers:[Fe,Ue],imports:[A.ez,Q.ot,K.U8,r.rt,l.eL,P.BQ,W.ZD]}),h})()},59549:(ze,_e,a)=>{a.d(_e,{Eo:()=>Z,G_:()=>Ce,KE:()=>Ze,R9:()=>j,hX:()=>Ve,lN:()=>$e});var r=a(49643),K=a(36895),l=a(94650),A=a(3238),t=a(40445),Q=a(21281),W=a(77579),P=a(56451),re=a(54968),se=a(68675),he=a(82722),pe=a(95698),x=a(37340),v=a(83353);const G=["connectionContainer"],J=["inputContainer"],ie=["label"];function q(T,z){1&T&&(l.ynx(0),l.TgZ(1,"div",14),l._UZ(2,"div",15)(3,"div",16)(4,"div",17),l.qZA(),l.TgZ(5,"div",18),l._UZ(6,"div",15)(7,"div",16)(8,"div",17),l.qZA(),l.BQk())}function ve(T,z){if(1&T){const M=l.EpF();l.TgZ(0,"div",19),l.NdJ("cdkObserveContent",function(){l.CHM(M);const X=l.oxw();return l.KtG(X.updateOutlineGap())}),l.Hsn(1,1),l.qZA()}if(2&T){const M=l.oxw();l.Q6J("cdkObserveContentDisabled","outline"!=M.appearance)}}function oe(T,z){if(1&T&&(l.ynx(0),l.Hsn(1,2),l.TgZ(2,"span"),l._uU(3),l.qZA(),l.BQk()),2&T){const M=l.oxw(2);l.xp6(3),l.Oqu(M._control.placeholder)}}function H(T,z){1&T&&l.Hsn(0,3,["*ngSwitchCase","true"])}function le(T,z){1&T&&(l.TgZ(0,"span",23),l._uU(1," *"),l.qZA())}function I(T,z){if(1&T){const M=l.EpF();l.TgZ(0,"label",20,21),l.NdJ("cdkObserveContent",function(){l.CHM(M);const X=l.oxw();return l.KtG(X.updateOutlineGap())}),l.YNc(2,oe,4,1,"ng-container",12),l.YNc(3,H,1,0,"ng-content",12),l.YNc(4,le,2,0,"span",22),l.qZA()}if(2&T){const M=l.oxw();l.ekj("mat-empty",M._control.empty&&!M._shouldAlwaysFloat())("mat-form-field-empty",M._control.empty&&!M._shouldAlwaysFloat())("mat-accent","accent"==M.color)("mat-warn","warn"==M.color),l.Q6J("cdkObserveContentDisabled","outline"!=M.appearance)("id",M._labelId)("ngSwitch",M._hasLabel()),l.uIk("for",M._control.id)("aria-owns",M._control.id),l.xp6(2),l.Q6J("ngSwitchCase",!1),l.xp6(1),l.Q6J("ngSwitchCase",!0),l.xp6(1),l.Q6J("ngIf",!M.hideRequiredMarker&&M._control.required&&!M._control.disabled)}}function V(T,z){1&T&&(l.TgZ(0,"div",24),l.Hsn(1,4),l.qZA())}function ce(T,z){if(1&T&&(l.TgZ(0,"div",25),l._UZ(1,"span",26),l.qZA()),2&T){const M=l.oxw();l.xp6(1),l.ekj("mat-accent","accent"==M.color)("mat-warn","warn"==M.color)}}function be(T,z){if(1&T&&(l.TgZ(0,"div"),l.Hsn(1,5),l.qZA()),2&T){const M=l.oxw();l.Q6J("@transitionMessages",M._subscriptAnimationState)}}function fe(T,z){if(1&T&&(l.TgZ(0,"div",30),l._uU(1),l.qZA()),2&T){const M=l.oxw(2);l.Q6J("id",M._hintLabelId),l.xp6(1),l.Oqu(M.hintLabel)}}function Te(T,z){if(1&T&&(l.TgZ(0,"div",27),l.YNc(1,fe,2,2,"div",28),l.Hsn(2,6),l._UZ(3,"div",29),l.Hsn(4,7),l.qZA()),2&T){const M=l.oxw();l.Q6J("@transitionMessages",M._subscriptAnimationState),l.xp6(1),l.Q6J("ngIf",M.hintLabel)}}const Ae=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],ke=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],Ie=new l.OlP("MatError"),me={transitionMessages:(0,x.X$)("transitionMessages",[(0,x.SB)("enter",(0,x.oB)({opacity:1,transform:"translateY(0%)"})),(0,x.eR)("void => enter",[(0,x.oB)({opacity:0,transform:"translateY(-5px)"}),(0,x.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Z=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275dir=l.lG2({type:T}),T})();const ge=new l.OlP("MatHint");let Ve=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275dir=l.lG2({type:T,selectors:[["mat-label"]]}),T})(),Qe=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275dir=l.lG2({type:T,selectors:[["mat-placeholder"]]}),T})();const Fe=new l.OlP("MatPrefix"),Oe=new l.OlP("MatSuffix");let j=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275dir=l.lG2({type:T,selectors:[["","matSuffix",""]],features:[l._Bn([{provide:Oe,useExisting:T}])]}),T})(),ne=0;const N=(0,A.pj)(class{constructor(T){this._elementRef=T}},"primary"),U=new l.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ce=new l.OlP("MatFormField");let Ze=(()=>{class T extends N{constructor(M,F,X,ee,Ge,He,Le){super(M),this._changeDetectorRef=F,this._dir=X,this._defaults=ee,this._platform=Ge,this._ngZone=He,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new W.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+ne++,this._labelId="mat-form-field-label-"+ne++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==Le,this.appearance=ee?.appearance||"legacy",ee&&(this._hideRequiredMarker=Boolean(ee.hideRequiredMarker),ee.color&&(this.color=this.defaultColor=ee.color))}get appearance(){return this._appearance}set appearance(M){const F=this._appearance;this._appearance=M||this._defaults?.appearance||"legacy","outline"===this._appearance&&F!==M&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(M){this._hideRequiredMarker=(0,Q.Ig)(M)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(M){this._hintLabel=M,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(M){M!==this._floatLabel&&(this._floatLabel=M||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(M){this._explicitFormFieldControl=M}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const M=this._control;M.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${M.controlType}`),M.stateChanges.pipe((0,se.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),M.ngControl&&M.ngControl.valueChanges&&M.ngControl.valueChanges.pipe((0,he.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,he.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,P.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,se.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,se.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,he.R)(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(M){const F=this._control?this._control.ngControl:null;return F&&F[M]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,(0,re.R)(this._label.nativeElement,"transitionend").pipe((0,pe.q)(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let M=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&M.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const F=this._hintChildren?this._hintChildren.find(ee=>"start"===ee.align):null,X=this._hintChildren?this._hintChildren.find(ee=>"end"===ee.align):null;F?M.push(F.id):this._hintLabel&&M.push(this._hintLabelId),X&&M.push(X.id)}else this._errorChildren&&M.push(...this._errorChildren.map(F=>F.id));this._control.setDescribedByIds(M)}}_validateControlChild(){}updateOutlineGap(){const M=this._label?this._label.nativeElement:null,F=this._connectionContainerRef.nativeElement,X=".mat-form-field-outline-start",ee=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!M||!M.children.length||!M.textContent.trim()){const De=F.querySelectorAll(`${X}, ${ee}`);for(let Ye=0;Ye<De.length;Ye++)De[Ye].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let Ge=0,He=0;const Le=F.querySelectorAll(X),Ee=F.querySelectorAll(ee);if(this._label&&this._label.nativeElement.children.length){const De=F.getBoundingClientRect();if(0===De.width&&0===De.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Ye=this._getStartEnd(De),b=M.children,n=this._getStartEnd(b[0].getBoundingClientRect());let s=0;for(let u=0;u<b.length;u++)s+=b[u].offsetWidth;Ge=Math.abs(n-Ye)-5,He=s>0?.75*s+10:0}for(let De=0;De<Le.length;De++)Le[De].style.width=`${Ge}px`;for(let De=0;De<Ee.length;De++)Ee[De].style.width=`${He}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(M){return this._dir&&"rtl"===this._dir.value?M.right:M.left}_isAttachedToDOM(){const M=this._elementRef.nativeElement;if(M.getRootNode){const F=M.getRootNode();return F&&F!==M}return document.documentElement.contains(M)}}return T.\u0275fac=function(M){return new(M||T)(l.Y36(l.SBq),l.Y36(l.sBO),l.Y36(t.Is,8),l.Y36(U,8),l.Y36(v.t4),l.Y36(l.R0b),l.Y36(l.QbO,8))},T.\u0275cmp=l.Xpm({type:T,selectors:[["mat-form-field"]],contentQueries:function(M,F,X){if(1&M&&(l.Suo(X,Z,5),l.Suo(X,Z,7),l.Suo(X,Ve,5),l.Suo(X,Ve,7),l.Suo(X,Qe,5),l.Suo(X,Ie,5),l.Suo(X,ge,5),l.Suo(X,Fe,5),l.Suo(X,Oe,5)),2&M){let ee;l.iGM(ee=l.CRH())&&(F._controlNonStatic=ee.first),l.iGM(ee=l.CRH())&&(F._controlStatic=ee.first),l.iGM(ee=l.CRH())&&(F._labelChildNonStatic=ee.first),l.iGM(ee=l.CRH())&&(F._labelChildStatic=ee.first),l.iGM(ee=l.CRH())&&(F._placeholderChild=ee.first),l.iGM(ee=l.CRH())&&(F._errorChildren=ee),l.iGM(ee=l.CRH())&&(F._hintChildren=ee),l.iGM(ee=l.CRH())&&(F._prefixChildren=ee),l.iGM(ee=l.CRH())&&(F._suffixChildren=ee)}},viewQuery:function(M,F){if(1&M&&(l.Gf(G,7),l.Gf(J,5),l.Gf(ie,5)),2&M){let X;l.iGM(X=l.CRH())&&(F._connectionContainerRef=X.first),l.iGM(X=l.CRH())&&(F._inputContainerRef=X.first),l.iGM(X=l.CRH())&&(F._label=X.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(M,F){2&M&&l.ekj("mat-form-field-appearance-standard","standard"==F.appearance)("mat-form-field-appearance-fill","fill"==F.appearance)("mat-form-field-appearance-outline","outline"==F.appearance)("mat-form-field-appearance-legacy","legacy"==F.appearance)("mat-form-field-invalid",F._control.errorState)("mat-form-field-can-float",F._canLabelFloat())("mat-form-field-should-float",F._shouldLabelFloat())("mat-form-field-has-label",F._hasFloatingLabel())("mat-form-field-hide-placeholder",F._hideControlPlaceholder())("mat-form-field-disabled",F._control.disabled)("mat-form-field-autofilled",F._control.autofilled)("mat-focused",F._control.focused)("ng-untouched",F._shouldForward("untouched"))("ng-touched",F._shouldForward("touched"))("ng-pristine",F._shouldForward("pristine"))("ng-dirty",F._shouldForward("dirty"))("ng-valid",F._shouldForward("valid"))("ng-invalid",F._shouldForward("invalid"))("ng-pending",F._shouldForward("pending"))("_mat-animation-noopable",!F._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[l._Bn([{provide:Ce,useExisting:T}]),l.qOj],ngContentSelectors:ke,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(M,F){1&M&&(l.F$t(Ae),l.TgZ(0,"div",0)(1,"div",1,2),l.NdJ("click",function(ee){return F._control.onContainerClick&&F._control.onContainerClick(ee)}),l.YNc(3,q,9,0,"ng-container",3),l.YNc(4,ve,2,1,"div",4),l.TgZ(5,"div",5,6),l.Hsn(7),l.TgZ(8,"span",7),l.YNc(9,I,5,16,"label",8),l.qZA()(),l.YNc(10,V,2,0,"div",9),l.qZA(),l.YNc(11,ce,2,4,"div",10),l.TgZ(12,"div",11),l.YNc(13,be,2,1,"div",12),l.YNc(14,Te,5,2,"div",13),l.qZA()()),2&M&&(l.xp6(3),l.Q6J("ngIf","outline"==F.appearance),l.xp6(1),l.Q6J("ngIf",F._prefixChildren.length),l.xp6(5),l.Q6J("ngIf",F._hasFloatingLabel()),l.xp6(1),l.Q6J("ngIf",F._suffixChildren.length),l.xp6(1),l.Q6J("ngIf","outline"!=F.appearance),l.xp6(1),l.Q6J("ngSwitch",F._getDisplayedMessages()),l.xp6(1),l.Q6J("ngSwitchCase","error"),l.xp6(1),l.Q6J("ngSwitchCase","hint"))},dependencies:[K.O5,K.RF,K.n9,r.wD],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}','.mat-input-element{font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}._mat-animation-noopable .mat-input-element::placeholder{transition:none}._mat-animation-noopable .mat-input-element::-moz-placeholder{transition:none}._mat-animation-noopable .mat-input-element::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-input-element:-ms-input-placeholder{transition:none}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:rgba(0,0,0,0)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:rgba(0,0,0,0)}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}"],encapsulation:2,data:{animation:[me.transitionMessages]},changeDetection:0}),T})(),$e=(()=>{class T{}return T.\u0275fac=function(M){return new(M||T)},T.\u0275mod=l.oAB({type:T}),T.\u0275inj=l.cJS({imports:[K.ez,A.BQ,r.Q8,A.BQ]}),T})()},44144:(ze,_e,a)=>{a.d(_e,{Jk:()=>G,Nt:()=>ve,c:()=>oe});var r=a(21281),K=a(83353),l=a(94650),A=a(60515),t=a(77579);const Q=(0,K.i$)({passive:!0});let W=(()=>{class H{constructor(I,V){this._platform=I,this._ngZone=V,this._monitoredElements=new Map}monitor(I){if(!this._platform.isBrowser)return A.E;const V=(0,r.fI)(I),ce=this._monitoredElements.get(V);if(ce)return ce.subject;const be=new t.x,fe="cdk-text-field-autofilled",Te=Ae=>{"cdk-text-field-autofill-start"!==Ae.animationName||V.classList.contains(fe)?"cdk-text-field-autofill-end"===Ae.animationName&&V.classList.contains(fe)&&(V.classList.remove(fe),this._ngZone.run(()=>be.next({target:Ae.target,isAutofilled:!1}))):(V.classList.add(fe),this._ngZone.run(()=>be.next({target:Ae.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{V.addEventListener("animationstart",Te,Q),V.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(V,{subject:be,unlisten:()=>{V.removeEventListener("animationstart",Te,Q)}}),be}stopMonitoring(I){const V=(0,r.fI)(I),ce=this._monitoredElements.get(V);ce&&(ce.unlisten(),ce.subject.complete(),V.classList.remove("cdk-text-field-autofill-monitored"),V.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(V))}ngOnDestroy(){this._monitoredElements.forEach((I,V)=>this.stopMonitoring(V))}}return H.\u0275fac=function(I){return new(I||H)(l.LFG(K.t4),l.LFG(l.R0b))},H.\u0275prov=l.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),se=(()=>{class H{}return H.\u0275fac=function(I){return new(I||H)},H.\u0275mod=l.oAB({type:H}),H.\u0275inj=l.cJS({}),H})();var he=a(24006),pe=a(3238),x=a(59549);const G=new l.OlP("MAT_INPUT_VALUE_ACCESSOR"),J=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let ie=0;const q=(0,pe.FD)(class{constructor(H,le,I,V){this._defaultErrorStateMatcher=H,this._parentForm=le,this._parentFormGroup=I,this.ngControl=V,this.stateChanges=new t.x}});let ve=(()=>{class H extends q{constructor(I,V,ce,be,fe,Te,Ae,ke,Be,Ie){super(Te,be,fe,ce),this._elementRef=I,this._platform=V,this._autofillMonitor=ke,this._formField=Ie,this._uid="mat-input-"+ie++,this.focused=!1,this.stateChanges=new t.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(Z=>(0,K.qK)().has(Z)),this._iOSKeyupListener=Z=>{const B=Z.target;!B.value&&0===B.selectionStart&&0===B.selectionEnd&&(B.setSelectionRange(1,1),B.setSelectionRange(0,0))};const S=this._elementRef.nativeElement,me=S.nodeName.toLowerCase();this._inputValueAccessor=Ae||S,this._previousNativeValue=this.value,this.id=this.id,V.IOS&&Be.runOutsideAngular(()=>{I.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===me,this._isTextarea="textarea"===me,this._isInFormField=!!Ie,this._isNativeSelect&&(this.controlType=S.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(I){this._disabled=(0,r.Ig)(I),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(I){this._id=I||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(he.kI.required)??!1}set required(I){this._required=(0,r.Ig)(I)}get type(){return this._type}set type(I){this._type=I||"text",this._validateType(),!this._isTextarea&&(0,K.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(I){I!==this.value&&(this._inputValueAccessor.value=I,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(I){this._readonly=(0,r.Ig)(I)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(I=>{this.autofilled=I.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(I){this._elementRef.nativeElement.focus(I)}_focusChanged(I){I!==this.focused&&(this.focused=I,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const I=this._formField,V=I&&"legacy"===I.appearance&&!I._hasLabel?.()?null:this.placeholder;if(V!==this._previousPlaceholder){const ce=this._elementRef.nativeElement;this._previousPlaceholder=V,V?ce.setAttribute("placeholder",V):ce.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const I=this._elementRef.nativeElement.value;this._previousNativeValue!==I&&(this._previousNativeValue=I,this.stateChanges.next())}_validateType(){J.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let I=this._elementRef.nativeElement.validity;return I&&I.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const I=this._elementRef.nativeElement,V=I.options[0];return this.focused||I.multiple||!this.empty||!!(I.selectedIndex>-1&&V&&V.label)}return this.focused||!this.empty}setDescribedByIds(I){I.length?this._elementRef.nativeElement.setAttribute("aria-describedby",I.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const I=this._elementRef.nativeElement;return this._isNativeSelect&&(I.multiple||I.size>1)}}return H.\u0275fac=function(I){return new(I||H)(l.Y36(l.SBq),l.Y36(K.t4),l.Y36(he.a5,10),l.Y36(he.F,8),l.Y36(he.sg,8),l.Y36(pe.rD),l.Y36(G,10),l.Y36(W),l.Y36(l.R0b),l.Y36(x.G_,8))},H.\u0275dir=l.lG2({type:H,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(I,V){1&I&&l.NdJ("focus",function(){return V._focusChanged(!0)})("blur",function(){return V._focusChanged(!1)})("input",function(){return V._onInput()}),2&I&&(l.Ikx("disabled",V.disabled)("required",V.required),l.uIk("id",V.id)("data-placeholder",V.placeholder)("name",V.name||null)("readonly",V.readonly&&!V._isNativeSelect||null)("aria-invalid",V.empty&&V.required?null:V.errorState)("aria-required",V.required),l.ekj("mat-input-server",V._isServer)("mat-native-select-inline",V._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[l._Bn([{provide:x.Eo,useExisting:H}]),l.qOj,l.TTD]}),H})(),oe=(()=>{class H{}return H.\u0275fac=function(I){return new(I||H)},H.\u0275mod=l.oAB({type:H}),H.\u0275inj=l.cJS({providers:[pe.rD],imports:[se,x.lN,pe.BQ,se,x.lN]}),H})()},88796:(ze,_e,a)=>{a.d(_e,{A0:()=>dt,Cm:()=>De,ir:()=>Ge,w9:()=>at});var r=a(94650),K=a(24006),l=a(82722),A=a(23601),t=a(68675),Q=a(18505),W=a(78372),P=a(39300),re=a(54004),se=a(66406),he=a(53101),pe=a(77579),x=a(54968),v=a(56451),G=a(36895);const J=["content"],ie=["scroll"],q=["padding"],ve=function(p){return{searchTerm:p}};function oe(p,g){if(1&p&&(r.TgZ(0,"div",6),r.GkF(1,7),r.qZA()),2&p){const i=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",i.headerTemplate)("ngTemplateOutletContext",r.VKq(2,ve,i.filterValue))}}function H(p,g){if(1&p&&(r.TgZ(0,"div",8),r.GkF(1,7),r.qZA()),2&p){const i=r.oxw();r.xp6(1),r.Q6J("ngTemplateOutlet",i.footerTemplate)("ngTemplateOutletContext",r.VKq(2,ve,i.filterValue))}}const le=["*"],I=["searchInput"];function V(p,g){if(1&p){const i=r.EpF();r.TgZ(0,"span",15),r.NdJ("click",function(){r.CHM(i);const _=r.oxw().$implicit,w=r.oxw(2);return r.KtG(w.unselect(_))}),r._uU(1,"\xd7"),r.qZA(),r._UZ(2,"span",16)}if(2&p){const i=r.oxw().$implicit,c=r.oxw(2);r.xp6(2),r.Q6J("ngItemLabel",i.label)("escape",c.escapeHTML)}}function ce(p,g){}const be=function(p,g,i){return{item:p,clear:g,label:i}};function fe(p,g){if(1&p&&(r.TgZ(0,"div",12),r.YNc(1,V,3,2,"ng-template",null,13,r.W1O),r.YNc(3,ce,0,0,"ng-template",14),r.qZA()),2&p){const i=g.$implicit,c=r.MAs(2),_=r.oxw(2);r.ekj("ng-value-disabled",i.disabled),r.xp6(3),r.Q6J("ngTemplateOutlet",_.labelTemplate||c)("ngTemplateOutletContext",r.kEZ(4,be,i.value,_.clearItem,i.label))}}function Te(p,g){if(1&p&&(r.ynx(0),r.YNc(1,fe,4,8,"div",11),r.BQk()),2&p){const i=r.oxw();r.xp6(1),r.Q6J("ngForOf",i.selectedItems)("ngForTrackBy",i.trackByOption)}}function Ae(p,g){}const ke=function(p,g){return{items:p,clear:g}};function Be(p,g){if(1&p&&r.YNc(0,Ae,0,0,"ng-template",14),2&p){const i=r.oxw();r.Q6J("ngTemplateOutlet",i.multiLabelTemplate)("ngTemplateOutletContext",r.WLB(2,ke,i.selectedValues,i.clearItem))}}function Ie(p,g){1&p&&r._UZ(0,"div",19)}function S(p,g){}function me(p,g){if(1&p&&(r.ynx(0),r.YNc(1,Ie,1,0,"ng-template",null,17,r.W1O),r.YNc(3,S,0,0,"ng-template",18),r.BQk()),2&p){const i=r.MAs(2),c=r.oxw();r.xp6(3),r.Q6J("ngTemplateOutlet",c.loadingSpinnerTemplate||i)}}function Z(p,g){if(1&p&&(r.TgZ(0,"span",20)(1,"span",21),r._uU(2,"\xd7"),r.qZA()()),2&p){const i=r.oxw();r.s9C("title",i.clearAllText)}}function B(p,g){if(1&p&&r._UZ(0,"span",27),2&p){const i=r.oxw().$implicit,c=r.oxw(2);r.Q6J("ngItemLabel",i.label)("escape",c.escapeHTML)}}function ye(p,g){}const xe=function(p,g,i,c){return{item:p,item$:g,index:i,searchTerm:c}};function ae(p,g){if(1&p){const i=r.EpF();r.TgZ(0,"div",25),r.NdJ("click",function(){const w=r.CHM(i).$implicit,L=r.oxw(2);return r.KtG(L.toggleItem(w))})("mouseover",function(){const w=r.CHM(i).$implicit,L=r.oxw(2);return r.KtG(L.onItemHover(w))}),r.YNc(1,B,1,2,"ng-template",null,26,r.W1O),r.YNc(3,ye,0,0,"ng-template",14),r.qZA()}if(2&p){const i=g.$implicit,c=r.MAs(2),_=r.oxw(2);r.ekj("ng-option-disabled",i.disabled)("ng-option-selected",i.selected)("ng-optgroup",i.children)("ng-option",!i.children)("ng-option-child",!!i.parent)("ng-option-marked",i===_.itemsList.markedItem),r.uIk("role",i.children?"group":"option")("aria-selected",i.selected)("id",null==i?null:i.htmlId),r.xp6(3),r.Q6J("ngTemplateOutlet",i.children?_.optgroupTemplate||c:_.optionTemplate||c)("ngTemplateOutletContext",r.l5B(17,xe,i.value,i,i.index,_.searchTerm))}}function ge(p,g){if(1&p&&(r.TgZ(0,"span")(1,"span",30),r._uU(2),r.qZA(),r._uU(3),r.qZA()),2&p){const i=r.oxw(3);r.xp6(2),r.Oqu(i.addTagText),r.xp6(1),r.hij('"',i.searchTerm,'"')}}function Je(p,g){}function Ve(p,g){if(1&p){const i=r.EpF();r.TgZ(0,"div",28),r.NdJ("mouseover",function(){r.CHM(i);const _=r.oxw(2);return r.KtG(_.itemsList.unmarkItem())})("click",function(){r.CHM(i);const _=r.oxw(2);return r.KtG(_.selectTag())}),r.YNc(1,ge,4,2,"ng-template",null,29,r.W1O),r.YNc(3,Je,0,0,"ng-template",14),r.qZA()}if(2&p){const i=r.MAs(2),c=r.oxw(2);r.ekj("ng-option-marked",!c.itemsList.markedItem),r.xp6(3),r.Q6J("ngTemplateOutlet",c.tagTemplate||i)("ngTemplateOutletContext",r.VKq(4,ve,c.searchTerm))}}function Qe(p,g){if(1&p&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&p){const i=r.oxw(3);r.xp6(1),r.Oqu(i.notFoundText)}}function Fe(p,g){}function Ne(p,g){if(1&p&&(r.ynx(0),r.YNc(1,Qe,2,1,"ng-template",null,31,r.W1O),r.YNc(3,Fe,0,0,"ng-template",14),r.BQk()),2&p){const i=r.MAs(2),c=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",c.notFoundTemplate||i)("ngTemplateOutletContext",r.VKq(2,ve,c.searchTerm))}}function Oe(p,g){if(1&p&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&p){const i=r.oxw(3);r.xp6(1),r.Oqu(i.typeToSearchText)}}function j(p,g){}function ne(p,g){if(1&p&&(r.ynx(0),r.YNc(1,Oe,2,1,"ng-template",null,33,r.W1O),r.YNc(3,j,0,0,"ng-template",18),r.BQk()),2&p){const i=r.MAs(2),c=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",c.typeToSearchTemplate||i)}}function y(p,g){if(1&p&&(r.TgZ(0,"div",32),r._uU(1),r.qZA()),2&p){const i=r.oxw(3);r.xp6(1),r.Oqu(i.loadingText)}}function E(p,g){}function N(p,g){if(1&p&&(r.ynx(0),r.YNc(1,y,2,1,"ng-template",null,34,r.W1O),r.YNc(3,E,0,0,"ng-template",14),r.BQk()),2&p){const i=r.MAs(2),c=r.oxw(2);r.xp6(3),r.Q6J("ngTemplateOutlet",c.loadingTextTemplate||i)("ngTemplateOutletContext",r.VKq(2,ve,c.searchTerm))}}function U(p,g){if(1&p){const i=r.EpF();r.TgZ(0,"ng-dropdown-panel",22),r.NdJ("update",function(_){r.CHM(i);const w=r.oxw();return r.KtG(w.viewPortItems=_)})("scroll",function(_){r.CHM(i);const w=r.oxw();return r.KtG(w.scroll.emit(_))})("scrollToEnd",function(_){r.CHM(i);const w=r.oxw();return r.KtG(w.scrollToEnd.emit(_))})("outsideClick",function(){r.CHM(i);const _=r.oxw();return r.KtG(_.close())}),r.ynx(1),r.YNc(2,ae,4,22,"div",23),r.YNc(3,Ve,4,6,"div",24),r.BQk(),r.YNc(4,Ne,4,4,"ng-container",3),r.YNc(5,ne,4,1,"ng-container",3),r.YNc(6,N,4,4,"ng-container",3),r.qZA()}if(2&p){const i=r.oxw();r.ekj("ng-select-multiple",i.multiple),r.Q6J("virtualScroll",i.virtualScroll)("bufferAmount",i.bufferAmount)("appendTo",i.appendTo)("position",i.dropdownPosition)("headerTemplate",i.headerTemplate)("footerTemplate",i.footerTemplate)("filterValue",i.searchTerm)("items",i.itemsList.filteredItems)("markedItem",i.itemsList.markedItem)("ngClass",i.appendTo?i.classes:null)("id",i.dropdownId),r.xp6(2),r.Q6J("ngForOf",i.viewPortItems)("ngForTrackBy",i.trackByOption),r.xp6(1),r.Q6J("ngIf",i.showAddTag),r.xp6(1),r.Q6J("ngIf",i.showNoItemsFound()),r.xp6(1),r.Q6J("ngIf",i.showTypeToSearch()),r.xp6(1),r.Q6J("ngIf",i.loading&&0===i.itemsList.filteredItems.length)}}const Ce=/[&<>"']/g,Ze=RegExp(Ce.source),$e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function z(p){return null!=p}function M(p){return"object"==typeof p&&z(p)}function X(p){return p instanceof Function}let ee=(()=>{class p{constructor(i){this.element=i,this.escape=!0}ngOnChanges(i){this.element.nativeElement.innerHTML=this.escape?function T(p){return p&&Ze.test(p)?p.replace(Ce,g=>$e[g]):p}(this.ngItemLabel):this.ngItemLabel}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.SBq))},p.\u0275dir=r.lG2({type:p,selectors:[["","ngItemLabel",""]],inputs:{ngItemLabel:"ngItemLabel",escape:"escape"},features:[r.TTD]}),p})(),Ge=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-option-tmp",""]]}),p})(),He=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-optgroup-tmp",""]]}),p})(),Le=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-label-tmp",""]]}),p})(),Ee=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-multi-label-tmp",""]]}),p})(),De=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-header-tmp",""]]}),p})(),Ye=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-footer-tmp",""]]}),p})(),b=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-notfound-tmp",""]]}),p})(),n=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-typetosearch-tmp",""]]}),p})(),s=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-loadingtext-tmp",""]]}),p})(),u=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-tag-tmp",""]]}),p})(),f=(()=>{class p{constructor(i){this.template=i}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Rgc))},p.\u0275dir=r.lG2({type:p,selectors:[["","ng-loadingspinner-tmp",""]]}),p})();function D(){return"axxxxxxxxxxx".replace(/[x]/g,()=>(16*Math.random()|0).toString(16))}const O={"\u24b6":"A",\uff21:"A",\u00c0:"A",\u00c1:"A",\u00c2:"A",\u1ea6:"A",\u1ea4:"A",\u1eaa:"A",\u1ea8:"A",\u00c3:"A",\u0100:"A",\u0102:"A",\u1eb0:"A",\u1eae:"A",\u1eb4:"A",\u1eb2:"A",\u0226:"A",\u01e0:"A",\u00c4:"A",\u01de:"A",\u1ea2:"A",\u00c5:"A",\u01fa:"A",\u01cd:"A",\u0200:"A",\u0202:"A",\u1ea0:"A",\u1eac:"A",\u1eb6:"A",\u1e00:"A",\u0104:"A",\u023a:"A",\u2c6f:"A",\ua732:"AA",\u00c6:"AE",\u01fc:"AE",\u01e2:"AE",\ua734:"AO",\ua736:"AU",\ua738:"AV",\ua73a:"AV",\ua73c:"AY","\u24b7":"B",\uff22:"B",\u1e02:"B",\u1e04:"B",\u1e06:"B",\u0243:"B",\u0182:"B",\u0181:"B","\u24b8":"C",\uff23:"C",\u0106:"C",\u0108:"C",\u010a:"C",\u010c:"C",\u00c7:"C",\u1e08:"C",\u0187:"C",\u023b:"C",\ua73e:"C","\u24b9":"D",\uff24:"D",\u1e0a:"D",\u010e:"D",\u1e0c:"D",\u1e10:"D",\u1e12:"D",\u1e0e:"D",\u0110:"D",\u018b:"D",\u018a:"D",\u0189:"D",\ua779:"D",\u01f1:"DZ",\u01c4:"DZ",\u01f2:"Dz",\u01c5:"Dz","\u24ba":"E",\uff25:"E",\u00c8:"E",\u00c9:"E",\u00ca:"E",\u1ec0:"E",\u1ebe:"E",\u1ec4:"E",\u1ec2:"E",\u1ebc:"E",\u0112:"E",\u1e14:"E",\u1e16:"E",\u0114:"E",\u0116:"E",\u00cb:"E",\u1eba:"E",\u011a:"E",\u0204:"E",\u0206:"E",\u1eb8:"E",\u1ec6:"E",\u0228:"E",\u1e1c:"E",\u0118:"E",\u1e18:"E",\u1e1a:"E",\u0190:"E",\u018e:"E","\u24bb":"F",\uff26:"F",\u1e1e:"F",\u0191:"F",\ua77b:"F","\u24bc":"G",\uff27:"G",\u01f4:"G",\u011c:"G",\u1e20:"G",\u011e:"G",\u0120:"G",\u01e6:"G",\u0122:"G",\u01e4:"G",\u0193:"G",\ua7a0:"G",\ua77d:"G",\ua77e:"G","\u24bd":"H",\uff28:"H",\u0124:"H",\u1e22:"H",\u1e26:"H",\u021e:"H",\u1e24:"H",\u1e28:"H",\u1e2a:"H",\u0126:"H",\u2c67:"H",\u2c75:"H",\ua78d:"H","\u24be":"I",\uff29:"I",\u00cc:"I",\u00cd:"I",\u00ce:"I",\u0128:"I",\u012a:"I",\u012c:"I",\u0130:"I",\u00cf:"I",\u1e2e:"I",\u1ec8:"I",\u01cf:"I",\u0208:"I",\u020a:"I",\u1eca:"I",\u012e:"I",\u1e2c:"I",\u0197:"I","\u24bf":"J",\uff2a:"J",\u0134:"J",\u0248:"J","\u24c0":"K",\uff2b:"K",\u1e30:"K",\u01e8:"K",\u1e32:"K",\u0136:"K",\u1e34:"K",\u0198:"K",\u2c69:"K",\ua740:"K",\ua742:"K",\ua744:"K",\ua7a2:"K","\u24c1":"L",\uff2c:"L",\u013f:"L",\u0139:"L",\u013d:"L",\u1e36:"L",\u1e38:"L",\u013b:"L",\u1e3c:"L",\u1e3a:"L",\u0141:"L",\u023d:"L",\u2c62:"L",\u2c60:"L",\ua748:"L",\ua746:"L",\ua780:"L",\u01c7:"LJ",\u01c8:"Lj","\u24c2":"M",\uff2d:"M",\u1e3e:"M",\u1e40:"M",\u1e42:"M",\u2c6e:"M",\u019c:"M","\u24c3":"N",\uff2e:"N",\u01f8:"N",\u0143:"N",\u00d1:"N",\u1e44:"N",\u0147:"N",\u1e46:"N",\u0145:"N",\u1e4a:"N",\u1e48:"N",\u0220:"N",\u019d:"N",\ua790:"N",\ua7a4:"N",\u01ca:"NJ",\u01cb:"Nj","\u24c4":"O",\uff2f:"O",\u00d2:"O",\u00d3:"O",\u00d4:"O",\u1ed2:"O",\u1ed0:"O",\u1ed6:"O",\u1ed4:"O",\u00d5:"O",\u1e4c:"O",\u022c:"O",\u1e4e:"O",\u014c:"O",\u1e50:"O",\u1e52:"O",\u014e:"O",\u022e:"O",\u0230:"O",\u00d6:"O",\u022a:"O",\u1ece:"O",\u0150:"O",\u01d1:"O",\u020c:"O",\u020e:"O",\u01a0:"O",\u1edc:"O",\u1eda:"O",\u1ee0:"O",\u1ede:"O",\u1ee2:"O",\u1ecc:"O",\u1ed8:"O",\u01ea:"O",\u01ec:"O",\u00d8:"O",\u01fe:"O",\u0186:"O",\u019f:"O",\ua74a:"O",\ua74c:"O",\u01a2:"OI",\ua74e:"OO",\u0222:"OU","\u24c5":"P",\uff30:"P",\u1e54:"P",\u1e56:"P",\u01a4:"P",\u2c63:"P",\ua750:"P",\ua752:"P",\ua754:"P","\u24c6":"Q",\uff31:"Q",\ua756:"Q",\ua758:"Q",\u024a:"Q","\u24c7":"R",\uff32:"R",\u0154:"R",\u1e58:"R",\u0158:"R",\u0210:"R",\u0212:"R",\u1e5a:"R",\u1e5c:"R",\u0156:"R",\u1e5e:"R",\u024c:"R",\u2c64:"R",\ua75a:"R",\ua7a6:"R",\ua782:"R","\u24c8":"S",\uff33:"S",\u1e9e:"S",\u015a:"S",\u1e64:"S",\u015c:"S",\u1e60:"S",\u0160:"S",\u1e66:"S",\u1e62:"S",\u1e68:"S",\u0218:"S",\u015e:"S",\u2c7e:"S",\ua7a8:"S",\ua784:"S","\u24c9":"T",\uff34:"T",\u1e6a:"T",\u0164:"T",\u1e6c:"T",\u021a:"T",\u0162:"T",\u1e70:"T",\u1e6e:"T",\u0166:"T",\u01ac:"T",\u01ae:"T",\u023e:"T",\ua786:"T",\ua728:"TZ","\u24ca":"U",\uff35:"U",\u00d9:"U",\u00da:"U",\u00db:"U",\u0168:"U",\u1e78:"U",\u016a:"U",\u1e7a:"U",\u016c:"U",\u00dc:"U",\u01db:"U",\u01d7:"U",\u01d5:"U",\u01d9:"U",\u1ee6:"U",\u016e:"U",\u0170:"U",\u01d3:"U",\u0214:"U",\u0216:"U",\u01af:"U",\u1eea:"U",\u1ee8:"U",\u1eee:"U",\u1eec:"U",\u1ef0:"U",\u1ee4:"U",\u1e72:"U",\u0172:"U",\u1e76:"U",\u1e74:"U",\u0244:"U","\u24cb":"V",\uff36:"V",\u1e7c:"V",\u1e7e:"V",\u01b2:"V",\ua75e:"V",\u0245:"V",\ua760:"VY","\u24cc":"W",\uff37:"W",\u1e80:"W",\u1e82:"W",\u0174:"W",\u1e86:"W",\u1e84:"W",\u1e88:"W",\u2c72:"W","\u24cd":"X",\uff38:"X",\u1e8a:"X",\u1e8c:"X","\u24ce":"Y",\uff39:"Y",\u1ef2:"Y",\u00dd:"Y",\u0176:"Y",\u1ef8:"Y",\u0232:"Y",\u1e8e:"Y",\u0178:"Y",\u1ef6:"Y",\u1ef4:"Y",\u01b3:"Y",\u024e:"Y",\u1efe:"Y","\u24cf":"Z",\uff3a:"Z",\u0179:"Z",\u1e90:"Z",\u017b:"Z",\u017d:"Z",\u1e92:"Z",\u1e94:"Z",\u01b5:"Z",\u0224:"Z",\u2c7f:"Z",\u2c6b:"Z",\ua762:"Z","\u24d0":"a",\uff41:"a",\u1e9a:"a",\u00e0:"a",\u00e1:"a",\u00e2:"a",\u1ea7:"a",\u1ea5:"a",\u1eab:"a",\u1ea9:"a",\u00e3:"a",\u0101:"a",\u0103:"a",\u1eb1:"a",\u1eaf:"a",\u1eb5:"a",\u1eb3:"a",\u0227:"a",\u01e1:"a",\u00e4:"a",\u01df:"a",\u1ea3:"a",\u00e5:"a",\u01fb:"a",\u01ce:"a",\u0201:"a",\u0203:"a",\u1ea1:"a",\u1ead:"a",\u1eb7:"a",\u1e01:"a",\u0105:"a",\u2c65:"a",\u0250:"a",\ua733:"aa",\u00e6:"ae",\u01fd:"ae",\u01e3:"ae",\ua735:"ao",\ua737:"au",\ua739:"av",\ua73b:"av",\ua73d:"ay","\u24d1":"b",\uff42:"b",\u1e03:"b",\u1e05:"b",\u1e07:"b",\u0180:"b",\u0183:"b",\u0253:"b","\u24d2":"c",\uff43:"c",\u0107:"c",\u0109:"c",\u010b:"c",\u010d:"c",\u00e7:"c",\u1e09:"c",\u0188:"c",\u023c:"c",\ua73f:"c",\u2184:"c","\u24d3":"d",\uff44:"d",\u1e0b:"d",\u010f:"d",\u1e0d:"d",\u1e11:"d",\u1e13:"d",\u1e0f:"d",\u0111:"d",\u018c:"d",\u0256:"d",\u0257:"d",\ua77a:"d",\u01f3:"dz",\u01c6:"dz","\u24d4":"e",\uff45:"e",\u00e8:"e",\u00e9:"e",\u00ea:"e",\u1ec1:"e",\u1ebf:"e",\u1ec5:"e",\u1ec3:"e",\u1ebd:"e",\u0113:"e",\u1e15:"e",\u1e17:"e",\u0115:"e",\u0117:"e",\u00eb:"e",\u1ebb:"e",\u011b:"e",\u0205:"e",\u0207:"e",\u1eb9:"e",\u1ec7:"e",\u0229:"e",\u1e1d:"e",\u0119:"e",\u1e19:"e",\u1e1b:"e",\u0247:"e",\u025b:"e",\u01dd:"e","\u24d5":"f",\uff46:"f",\u1e1f:"f",\u0192:"f",\ua77c:"f","\u24d6":"g",\uff47:"g",\u01f5:"g",\u011d:"g",\u1e21:"g",\u011f:"g",\u0121:"g",\u01e7:"g",\u0123:"g",\u01e5:"g",\u0260:"g",\ua7a1:"g",\u1d79:"g",\ua77f:"g","\u24d7":"h",\uff48:"h",\u0125:"h",\u1e23:"h",\u1e27:"h",\u021f:"h",\u1e25:"h",\u1e29:"h",\u1e2b:"h",\u1e96:"h",\u0127:"h",\u2c68:"h",\u2c76:"h",\u0265:"h",\u0195:"hv","\u24d8":"i",\uff49:"i",\u00ec:"i",\u00ed:"i",\u00ee:"i",\u0129:"i",\u012b:"i",\u012d:"i",\u00ef:"i",\u1e2f:"i",\u1ec9:"i",\u01d0:"i",\u0209:"i",\u020b:"i",\u1ecb:"i",\u012f:"i",\u1e2d:"i",\u0268:"i",\u0131:"i","\u24d9":"j",\uff4a:"j",\u0135:"j",\u01f0:"j",\u0249:"j","\u24da":"k",\uff4b:"k",\u1e31:"k",\u01e9:"k",\u1e33:"k",\u0137:"k",\u1e35:"k",\u0199:"k",\u2c6a:"k",\ua741:"k",\ua743:"k",\ua745:"k",\ua7a3:"k","\u24db":"l",\uff4c:"l",\u0140:"l",\u013a:"l",\u013e:"l",\u1e37:"l",\u1e39:"l",\u013c:"l",\u1e3d:"l",\u1e3b:"l",\u017f:"l",\u0142:"l",\u019a:"l",\u026b:"l",\u2c61:"l",\ua749:"l",\ua781:"l",\ua747:"l",\u01c9:"lj","\u24dc":"m",\uff4d:"m",\u1e3f:"m",\u1e41:"m",\u1e43:"m",\u0271:"m",\u026f:"m","\u24dd":"n",\uff4e:"n",\u01f9:"n",\u0144:"n",\u00f1:"n",\u1e45:"n",\u0148:"n",\u1e47:"n",\u0146:"n",\u1e4b:"n",\u1e49:"n",\u019e:"n",\u0272:"n",\u0149:"n",\ua791:"n",\ua7a5:"n",\u01cc:"nj","\u24de":"o",\uff4f:"o",\u00f2:"o",\u00f3:"o",\u00f4:"o",\u1ed3:"o",\u1ed1:"o",\u1ed7:"o",\u1ed5:"o",\u00f5:"o",\u1e4d:"o",\u022d:"o",\u1e4f:"o",\u014d:"o",\u1e51:"o",\u1e53:"o",\u014f:"o",\u022f:"o",\u0231:"o",\u00f6:"o",\u022b:"o",\u1ecf:"o",\u0151:"o",\u01d2:"o",\u020d:"o",\u020f:"o",\u01a1:"o",\u1edd:"o",\u1edb:"o",\u1ee1:"o",\u1edf:"o",\u1ee3:"o",\u1ecd:"o",\u1ed9:"o",\u01eb:"o",\u01ed:"o",\u00f8:"o",\u01ff:"o",\u0254:"o",\ua74b:"o",\ua74d:"o",\u0275:"o",\u01a3:"oi",\u0223:"ou",\ua74f:"oo","\u24df":"p",\uff50:"p",\u1e55:"p",\u1e57:"p",\u01a5:"p",\u1d7d:"p",\ua751:"p",\ua753:"p",\ua755:"p","\u24e0":"q",\uff51:"q",\u024b:"q",\ua757:"q",\ua759:"q","\u24e1":"r",\uff52:"r",\u0155:"r",\u1e59:"r",\u0159:"r",\u0211:"r",\u0213:"r",\u1e5b:"r",\u1e5d:"r",\u0157:"r",\u1e5f:"r",\u024d:"r",\u027d:"r",\ua75b:"r",\ua7a7:"r",\ua783:"r","\u24e2":"s",\uff53:"s",\u00df:"s",\u015b:"s",\u1e65:"s",\u015d:"s",\u1e61:"s",\u0161:"s",\u1e67:"s",\u1e63:"s",\u1e69:"s",\u0219:"s",\u015f:"s",\u023f:"s",\ua7a9:"s",\ua785:"s",\u1e9b:"s","\u24e3":"t",\uff54:"t",\u1e6b:"t",\u1e97:"t",\u0165:"t",\u1e6d:"t",\u021b:"t",\u0163:"t",\u1e71:"t",\u1e6f:"t",\u0167:"t",\u01ad:"t",\u0288:"t",\u2c66:"t",\ua787:"t",\ua729:"tz","\u24e4":"u",\uff55:"u",\u00f9:"u",\u00fa:"u",\u00fb:"u",\u0169:"u",\u1e79:"u",\u016b:"u",\u1e7b:"u",\u016d:"u",\u00fc:"u",\u01dc:"u",\u01d8:"u",\u01d6:"u",\u01da:"u",\u1ee7:"u",\u016f:"u",\u0171:"u",\u01d4:"u",\u0215:"u",\u0217:"u",\u01b0:"u",\u1eeb:"u",\u1ee9:"u",\u1eef:"u",\u1eed:"u",\u1ef1:"u",\u1ee5:"u",\u1e73:"u",\u0173:"u",\u1e77:"u",\u1e75:"u",\u0289:"u","\u24e5":"v",\uff56:"v",\u1e7d:"v",\u1e7f:"v",\u028b:"v",\ua75f:"v",\u028c:"v",\ua761:"vy","\u24e6":"w",\uff57:"w",\u1e81:"w",\u1e83:"w",\u0175:"w",\u1e87:"w",\u1e85:"w",\u1e98:"w",\u1e89:"w",\u2c73:"w","\u24e7":"x",\uff58:"x",\u1e8b:"x",\u1e8d:"x","\u24e8":"y",\uff59:"y",\u1ef3:"y",\u00fd:"y",\u0177:"y",\u1ef9:"y",\u0233:"y",\u1e8f:"y",\u00ff:"y",\u1ef7:"y",\u1e99:"y",\u1ef5:"y",\u01b4:"y",\u024f:"y",\u1eff:"y","\u24e9":"z",\uff5a:"z",\u017a:"z",\u1e91:"z",\u017c:"z",\u017e:"z",\u1e93:"z",\u1e95:"z",\u01b6:"z",\u0225:"z",\u0240:"z",\u2c6c:"z",\ua763:"z",\u0386:"\u0391",\u0388:"\u0395",\u0389:"\u0397",\u038a:"\u0399",\u03aa:"\u0399",\u038c:"\u039f",\u038e:"\u03a5",\u03ab:"\u03a5",\u038f:"\u03a9",\u03ac:"\u03b1",\u03ad:"\u03b5",\u03ae:"\u03b7",\u03af:"\u03b9",\u03ca:"\u03b9",\u0390:"\u03b9",\u03cc:"\u03bf",\u03cd:"\u03c5",\u03cb:"\u03c5",\u03b0:"\u03c5",\u03c9:"\u03c9",\u03c2:"\u03c3"};function k(p){return p.replace(/[^\u0000-\u007E]/g,i=>O[i]||i)}class ${constructor(g,i){this._ngSelect=g,this._selectionModel=i,this._items=[],this._filteredItems=[],this._markedIndex=-1}get items(){return this._items}get filteredItems(){return this._filteredItems}get markedIndex(){return this._markedIndex}get selectedItems(){return this._selectionModel.value}get markedItem(){return this._filteredItems[this._markedIndex]}get noItemsToSelect(){return this._ngSelect.hideSelected&&this._items.length===this.selectedItems.length}get maxItemsSelected(){return this._ngSelect.multiple&&this._ngSelect.maxSelectedItems<=this.selectedItems.length}get lastSelectedItem(){let g=this.selectedItems.length-1;for(;g>=0;g--){const i=this.selectedItems[g];if(!i.disabled)return i}return null}setItems(g){this._items=g.map((i,c)=>this.mapItem(i,c)),this._ngSelect.groupBy?(this._groups=this._groupBy(this._items,this._ngSelect.groupBy),this._items=this._flatten(this._groups)):(this._groups=new Map,this._groups.set(void 0,this._items)),this._filteredItems=[...this._items]}select(g){if(g.selected||this.maxItemsSelected)return;const i=this._ngSelect.multiple;i||this.clearSelected(),this._selectionModel.select(g,i,this._ngSelect.selectableGroupAsModel),this._ngSelect.hideSelected&&this._hideSelected(g)}unselect(g){!g.selected||(this._selectionModel.unselect(g,this._ngSelect.multiple),this._ngSelect.hideSelected&&z(g.index)&&this._ngSelect.multiple&&this._showSelected(g))}findItem(g){let i;return i=this._ngSelect.compareWith?c=>this._ngSelect.compareWith(c.value,g):this._ngSelect.bindValue?c=>!c.children&&this.resolveNested(c.value,this._ngSelect.bindValue)===g:c=>c.value===g||!c.children&&c.label&&c.label===this.resolveNested(g,this._ngSelect.bindLabel),this._items.find(c=>i(c))}addItem(g){const i=this.mapItem(g,this._items.length);return this._items.push(i),this._filteredItems.push(i),i}clearSelected(g=!1){this._selectionModel.clear(g),this._items.forEach(i=>{i.selected=g&&i.selected&&i.disabled,i.marked=!1}),this._ngSelect.hideSelected&&this.resetFilteredItems()}findByLabel(g){return g=k(g).toLocaleLowerCase(),this.filteredItems.find(i=>k(i.label).toLocaleLowerCase().substr(0,g.length)===g)}filter(g){if(!g)return void this.resetFilteredItems();this._filteredItems=[],g=this._ngSelect.searchFn?g:k(g).toLocaleLowerCase();const i=this._ngSelect.searchFn||this._defaultSearchFn,c=this._ngSelect.hideSelected;for(const _ of Array.from(this._groups.keys())){const w=[];for(const L of this._groups.get(_))c&&(L.parent&&L.parent.selected||L.selected)||i(g,this._ngSelect.searchFn?L.value:L)&&w.push(L);if(w.length>0){const[L]=w.slice(-1);if(L.parent){const ue=this._items.find(Se=>Se===L.parent);this._filteredItems.push(ue)}this._filteredItems.push(...w)}}}resetFilteredItems(){this._filteredItems.length!==this._items.length&&(this._filteredItems=this._ngSelect.hideSelected&&this.selectedItems.length>0?this._items.filter(g=>!g.selected):this._items)}unmarkItem(){this._markedIndex=-1}markNextItem(){this._stepToItem(1)}markPreviousItem(){this._stepToItem(-1)}markItem(g){this._markedIndex=this._filteredItems.indexOf(g)}markSelectedOrDefault(g){if(0===this._filteredItems.length)return;const i=this._getLastMarkedIndex();this._markedIndex=i>-1?i:g?this.filteredItems.findIndex(c=>!c.disabled):-1}resolveNested(g,i){if(!M(g))return g;if(-1===i.indexOf("."))return g[i];{const c=i.split(".");let _=g;for(let w=0,L=c.length;w<L;++w){if(null==_)return null;_=_[c[w]]}return _}}mapItem(g,i){const c=z(g.$ngOptionLabel)?g.$ngOptionLabel:this.resolveNested(g,this._ngSelect.bindLabel),_=z(g.$ngOptionValue)?g.$ngOptionValue:g;return{index:i,label:z(c)?c.toString():"",value:_,disabled:g.disabled,htmlId:`${this._ngSelect.dropdownId}-${i}`}}mapSelectedItems(){const g=this._ngSelect.multiple;for(const i of this.selectedItems){const c=this._ngSelect.bindValue?this.resolveNested(i.value,this._ngSelect.bindValue):i.value,_=z(c)?this.findItem(c):null;this._selectionModel.unselect(i,g),this._selectionModel.select(_||i,g,this._ngSelect.selectableGroupAsModel)}this._ngSelect.hideSelected&&(this._filteredItems=this.filteredItems.filter(i=>-1===this.selectedItems.indexOf(i)))}_showSelected(g){if(this._filteredItems.push(g),g.parent){const i=g.parent;this._filteredItems.find(_=>_===i)||this._filteredItems.push(i)}else if(g.children)for(const i of g.children)i.selected=!1,this._filteredItems.push(i);this._filteredItems=[...this._filteredItems.sort((i,c)=>i.index-c.index)]}_hideSelected(g){this._filteredItems=this._filteredItems.filter(i=>i!==g),g.parent?g.parent.children.every(c=>c.selected)&&(this._filteredItems=this._filteredItems.filter(c=>c!==g.parent)):g.children&&(this._filteredItems=this.filteredItems.filter(i=>i.parent!==g))}_defaultSearchFn(g,i){return k(i.label).toLocaleLowerCase().indexOf(g)>-1}_getNextItemIndex(g){return g>0?this._markedIndex>=this._filteredItems.length-1?0:this._markedIndex+1:this._markedIndex<=0?this._filteredItems.length-1:this._markedIndex-1}_stepToItem(g){0===this._filteredItems.length||this._filteredItems.every(i=>i.disabled)||(this._markedIndex=this._getNextItemIndex(g),this.markedItem.disabled&&this._stepToItem(g))}_getLastMarkedIndex(){if(this._ngSelect.hideSelected||this._markedIndex>-1&&void 0===this.markedItem)return-1;const g=this._filteredItems.indexOf(this.lastSelectedItem);return this.lastSelectedItem&&g<0?-1:Math.max(this.markedIndex,g)}_groupBy(g,i){const c=new Map;if(0===g.length)return c;if(Array.isArray(g[0].value[i])){for(const L of g){const ue=(L.value[i]||[]).map((Se,Me)=>this.mapItem(Se,Me));c.set(L,ue)}return c}const _=X(this._ngSelect.groupBy),w=L=>{const ue=_?i(L.value):L.value[i];return z(ue)?ue:void 0};for(const L of g){const ue=w(L),Se=c.get(ue);Se?Se.push(L):c.set(ue,[L])}return c}_flatten(g){const i=X(this._ngSelect.groupBy),c=[];for(const _ of Array.from(g.keys())){let w=c.length;if(void 0===_){const Pe=g.get(void 0)||[];c.push(...Pe.map(Re=>(Re.index=w++,Re)));continue}const L=M(_),ue={label:L?"":String(_),children:void 0,parent:null,index:w++,disabled:!this._ngSelect.selectableGroup,htmlId:D()},Se=i?this._ngSelect.bindLabel:this._ngSelect.groupBy,Me=this._ngSelect.groupValue||(()=>L?_.value:{[Se]:_}),We=g.get(_).map(Pe=>(Pe.parent=ue,Pe.children=void 0,Pe.index=w++,Pe));ue.children=We,ue.value=Me(_,We.map(Pe=>Pe.value)),c.push(ue),c.push(...We)}return c}}var Y=(()=>{return(p=Y||(Y={}))[p.Tab=9]="Tab",p[p.Enter=13]="Enter",p[p.Esc=27]="Esc",p[p.Space=32]="Space",p[p.ArrowUp=38]="ArrowUp",p[p.ArrowDown=40]="ArrowDown",p[p.Backspace=8]="Backspace",Y;var p})();let te=(()=>{class p{constructor(){this._dimensions={itemHeight:0,panelHeight:0,itemsPerViewport:0}}get dimensions(){return this._dimensions}calculateItems(i,c,_){const w=this._dimensions,L=w.itemHeight*c,Se=Math.max(0,i)/L*c;let Me=Math.min(c,Math.ceil(Se)+(w.itemsPerViewport+1));const Pe=Math.max(0,Me-w.itemsPerViewport);let Re=Math.min(Pe,Math.floor(Se)),it=w.itemHeight*Math.ceil(Re)-w.itemHeight*Math.min(Re,_);return it=isNaN(it)?0:it,Re=isNaN(Re)?-1:Re,Me=isNaN(Me)?-1:Me,Re-=_,Re=Math.max(0,Re),Me+=_,Me=Math.min(c,Me),{topPadding:it,scrollHeight:L,start:Re,end:Me}}setDimensions(i,c){const _=Math.max(1,Math.floor(c/i));this._dimensions={itemHeight:i,panelHeight:c,itemsPerViewport:_}}getScrollTo(i,c,_){const{panelHeight:w}=this.dimensions,L=i+c,Se=_+w;return w>=L&&_===i?null:L>Se?_+L-Se:i<=_?i:null}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac}),p})();const we=["top","right","bottom","left"],Ue=typeof requestAnimationFrame<"u"?se.Z:he.E;let Xe=(()=>{class p{constructor(i,c,_,w,L){this._renderer=i,this._zone=c,this._panelService=_,this._document=L,this.items=[],this.position="auto",this.virtualScroll=!1,this.filterValue=null,this.update=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.outsideClick=new r.vpe,this._destroy$=new pe.x,this._scrollToEndFired=!1,this._updateScrollHeight=!1,this._lastScrollPosition=0,this._dropdown=w.nativeElement}get currentPosition(){return this._currentPosition}get itemsLength(){return this._itemsLength}set itemsLength(i){i!==this._itemsLength&&(this._itemsLength=i,this._onItemsLengthChanged())}get _startOffset(){if(this.markedItem){const{itemHeight:i,panelHeight:c}=this._panelService.dimensions,_=this.markedItem.index*i;return c>_?0:_}return 0}ngOnInit(){this._select=this._dropdown.parentElement,this._virtualPadding=this.paddingElementRef.nativeElement,this._scrollablePanel=this.scrollElementRef.nativeElement,this._contentPanel=this.contentElementRef.nativeElement,this._handleScroll(),this._handleOutsideClick(),this._appendDropdown(),this._setupMousedownListener()}ngOnChanges(i){if(i.items){const c=i.items;this._onItemsChange(c.currentValue,c.firstChange)}}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete(),this._destroy$.unsubscribe(),this.appendTo&&this._renderer.removeChild(this._dropdown.parentNode,this._dropdown)}scrollTo(i,c=!1){if(!i)return;const _=this.items.indexOf(i);if(_<0||_>=this.itemsLength)return;let w;if(this.virtualScroll){const L=this._panelService.dimensions.itemHeight;w=this._panelService.getScrollTo(_*L,L,this._lastScrollPosition)}else{const L=this._dropdown.querySelector(`#${i.htmlId}`);w=this._panelService.getScrollTo(L.offsetTop,L.clientHeight,c?L.offsetTop:this._lastScrollPosition)}z(w)&&(this._scrollablePanel.scrollTop=w)}scrollToTag(){const i=this._scrollablePanel;i.scrollTop=i.scrollHeight-i.clientHeight}adjustPosition(){this._updateYPosition()}_handleDropdownPosition(){this._currentPosition=this._calculateCurrentPosition(this._dropdown),we.includes(this._currentPosition)?this._updateDropdownClass(this._currentPosition):this._updateDropdownClass("bottom"),this.appendTo&&this._updateYPosition(),this._dropdown.style.opacity="1"}_updateDropdownClass(i){we.forEach(_=>{const w=`ng-select-${_}`;this._renderer.removeClass(this._dropdown,w),this._renderer.removeClass(this._select,w)});const c=`ng-select-${i}`;this._renderer.addClass(this._dropdown,c),this._renderer.addClass(this._select,c)}_handleScroll(){this._zone.runOutsideAngular(()=>{(0,x.R)(this.scrollElementRef.nativeElement,"scroll").pipe((0,l.R)(this._destroy$),(0,A.e)(0,Ue)).subscribe(i=>{const c=i.path||i.composedPath&&i.composedPath();this._onContentScrolled(c&&0!==c.length?c[0].scrollTop:i.target.scrollTop)})})}_handleOutsideClick(){!this._document||this._zone.runOutsideAngular(()=>{(0,v.T)((0,x.R)(this._document,"touchstart",{capture:!0}),(0,x.R)(this._document,"mousedown",{capture:!0})).pipe((0,l.R)(this._destroy$)).subscribe(i=>this._checkToClose(i))})}_checkToClose(i){if(this._select.contains(i.target)||this._dropdown.contains(i.target))return;const c=i.path||i.composedPath&&i.composedPath();i.target&&i.target.shadowRoot&&c&&c[0]&&this._select.contains(c[0])||this._zone.run(()=>this.outsideClick.emit())}_onItemsChange(i,c){this.items=i||[],this._scrollToEndFired=!1,this.itemsLength=i.length,this.virtualScroll?this._updateItemsRange(c):(this._setVirtualHeight(),this._updateItems(c))}_updateItems(i){this.update.emit(this.items),!1!==i&&this._zone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._panelService.setDimensions(0,this._scrollablePanel.clientHeight),this._handleDropdownPosition(),this.scrollTo(this.markedItem,i)})})}_updateItemsRange(i){this._zone.runOutsideAngular(()=>{this._measureDimensions().then(()=>{i?(this._renderItemsRange(this._startOffset),this._handleDropdownPosition()):this._renderItemsRange()})})}_onContentScrolled(i){this.virtualScroll&&this._renderItemsRange(i),this._lastScrollPosition=i,this._fireScrollToEnd(i)}_updateVirtualHeight(i){this._updateScrollHeight&&(this._virtualPadding.style.height=`${i}px`,this._updateScrollHeight=!1)}_setVirtualHeight(){!this._virtualPadding||(this._virtualPadding.style.height="0px")}_onItemsLengthChanged(){this._updateScrollHeight=!0}_renderItemsRange(i=null){if(i&&this._lastScrollPosition===i)return;const c=this._panelService.calculateItems(i=i||this._scrollablePanel.scrollTop,this.itemsLength,this.bufferAmount);this._updateVirtualHeight(c.scrollHeight),this._contentPanel.style.transform=`translateY(${c.topPadding}px)`,this._zone.run(()=>{this.update.emit(this.items.slice(c.start,c.end)),this.scroll.emit({start:c.start,end:c.end})}),z(i)&&0===this._lastScrollPosition&&(this._scrollablePanel.scrollTop=i,this._lastScrollPosition=i)}_measureDimensions(){if(this._panelService.dimensions.itemHeight>0||0===this.itemsLength)return Promise.resolve(this._panelService.dimensions);const[i]=this.items;return this.update.emit([i]),Promise.resolve().then(()=>{const _=this._dropdown.querySelector(`#${i.htmlId}`).clientHeight;return this._virtualPadding.style.height=_*this.itemsLength+"px",this._panelService.setDimensions(_,this._scrollablePanel.clientHeight),this._panelService.dimensions})}_fireScrollToEnd(i){this._scrollToEndFired||0===i||i+this._dropdown.clientHeight>=(this.virtualScroll?this._virtualPadding:this._contentPanel).clientHeight-1&&(this._zone.run(()=>this.scrollToEnd.emit()),this._scrollToEndFired=!0)}_calculateCurrentPosition(i){if("auto"!==this.position)return this.position;const c=this._select.getBoundingClientRect(),_=document.documentElement.scrollTop||document.body.scrollTop;return c.top+window.pageYOffset+c.height+i.getBoundingClientRect().height>_+document.documentElement.clientHeight?"top":"bottom"}_appendDropdown(){if(this.appendTo){if(this._parent=document.querySelector(this.appendTo),!this._parent)throw new Error(`appendTo selector ${this.appendTo} did not found any parent element`);this._updateXPosition(),this._parent.appendChild(this._dropdown)}}_updateXPosition(){const i=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect();this._dropdown.style.left=i.left-c.left+"px",this._dropdown.style.width=i.width+"px",this._dropdown.style.minWidth=i.width+"px"}_updateYPosition(){const i=this._select.getBoundingClientRect(),c=this._parent.getBoundingClientRect(),_=i.height;"top"===this._currentPosition?(this._dropdown.style.bottom=c.bottom-i.bottom+_+"px",this._dropdown.style.top="auto"):"bottom"===this._currentPosition&&(this._dropdown.style.top=i.top-c.top+_+"px",this._dropdown.style.bottom="auto")}_setupMousedownListener(){this._zone.runOutsideAngular(()=>{(0,x.R)(this._dropdown,"mousedown").pipe((0,l.R)(this._destroy$)).subscribe(i=>{"INPUT"!==i.target.tagName&&i.preventDefault()})})}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.Qsj),r.Y36(r.R0b),r.Y36(te),r.Y36(r.SBq),r.Y36(G.K0,8))},p.\u0275cmp=r.Xpm({type:p,selectors:[["ng-dropdown-panel"]],viewQuery:function(i,c){if(1&i&&(r.Gf(J,7,r.SBq),r.Gf(ie,7,r.SBq),r.Gf(q,7,r.SBq)),2&i){let _;r.iGM(_=r.CRH())&&(c.contentElementRef=_.first),r.iGM(_=r.CRH())&&(c.scrollElementRef=_.first),r.iGM(_=r.CRH())&&(c.paddingElementRef=_.first)}},inputs:{items:"items",markedItem:"markedItem",position:"position",appendTo:"appendTo",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",headerTemplate:"headerTemplate",footerTemplate:"footerTemplate",filterValue:"filterValue"},outputs:{update:"update",scroll:"scroll",scrollToEnd:"scrollToEnd",outsideClick:"outsideClick"},features:[r.TTD],ngContentSelectors:le,decls:9,vars:6,consts:[["class","ng-dropdown-header",4,"ngIf"],[1,"ng-dropdown-panel-items","scroll-host"],["scroll",""],["padding",""],["content",""],["class","ng-dropdown-footer",4,"ngIf"],[1,"ng-dropdown-header"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ng-dropdown-footer"]],template:function(i,c){1&i&&(r.F$t(),r.YNc(0,oe,2,4,"div",0),r.TgZ(1,"div",1,2),r._UZ(3,"div",null,3),r.TgZ(5,"div",null,4),r.Hsn(7),r.qZA()(),r.YNc(8,H,2,4,"div",5)),2&i&&(r.Q6J("ngIf",c.headerTemplate),r.xp6(3),r.ekj("total-padding",c.virtualScroll),r.xp6(2),r.ekj("scrollable-content",c.virtualScroll&&c.items.length),r.xp6(3),r.Q6J("ngIf",c.footerTemplate))},dependencies:[G.O5,G.tP],encapsulation:2,changeDetection:0}),p})(),rt=(()=>{class p{constructor(i){this.elementRef=i,this.stateChange$=new pe.x,this._disabled=!1}get disabled(){return this._disabled}set disabled(i){this._disabled=this._isDisabled(i)}get label(){return(this.elementRef.nativeElement.textContent||"").trim()}ngOnChanges(i){i.disabled&&this.stateChange$.next({value:this.value,disabled:this._disabled})}ngAfterViewChecked(){this.label!==this._previousLabel&&(this._previousLabel=this.label,this.stateChange$.next({value:this.value,disabled:this._disabled,label:this.elementRef.nativeElement.innerHTML}))}ngOnDestroy(){this.stateChange$.complete()}_isDisabled(i){return null!=i&&"false"!=`${i}`}}return p.\u0275fac=function(i){return new(i||p)(r.Y36(r.SBq))},p.\u0275cmp=r.Xpm({type:p,selectors:[["ng-option"]],inputs:{value:"value",disabled:"disabled"},features:[r.TTD],ngContentSelectors:le,decls:1,vars:0,template:function(i,c){1&i&&(r.F$t(),r.Hsn(0))},encapsulation:2,changeDetection:0}),p})(),Ke=(()=>{class p{constructor(){this.notFoundText="No items found",this.typeToSearchText="Type to search",this.addTagText="Add item",this.loadingText="Loading...",this.clearAllText="Clear all",this.disableVirtualScroll=!0,this.openOnEnter=!0,this.appearance="underline"}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})(),st=(()=>{class p{warn(i){console.warn(i)}}return p.\u0275fac=function(i){return new(i||p)},p.\u0275prov=r.Yz7({token:p,factory:p.\u0275fac,providedIn:"root"}),p})();const qe=new r.OlP("ng-select-selection-model");let at=(()=>{class p{constructor(i,c,_,w,L,ue,Se){this.classes=i,this.autoFocus=c,this.config=_,this._cd=ue,this._console=Se,this.markFirst=!0,this.dropdownPosition="auto",this.loading=!1,this.closeOnSelect=!0,this.hideSelected=!1,this.selectOnTab=!1,this.bufferAmount=4,this.selectableGroup=!1,this.selectableGroupAsModel=!0,this.searchFn=null,this.trackByFn=null,this.clearOnBackspace=!0,this.labelForId=null,this.inputAttrs={},this.readonly=!1,this.searchWhileComposing=!0,this.minTermLength=0,this.editableSearchTerm=!1,this.keyDownFn=Me=>!0,this.multiple=!1,this.addTag=!1,this.searchable=!0,this.clearable=!0,this.isOpen=!1,this.blurEvent=new r.vpe,this.focusEvent=new r.vpe,this.changeEvent=new r.vpe,this.openEvent=new r.vpe,this.closeEvent=new r.vpe,this.searchEvent=new r.vpe,this.clearEvent=new r.vpe,this.addEvent=new r.vpe,this.removeEvent=new r.vpe,this.scroll=new r.vpe,this.scrollToEnd=new r.vpe,this.useDefaultClass=!0,this.viewPortItems=[],this.searchTerm=null,this.dropdownId=D(),this.escapeHTML=!0,this._items=[],this._defaultLabel="label",this._pressedKeys=[],this._isComposing=!1,this._destroy$=new pe.x,this._keyPress$=new pe.x,this._onChange=Me=>{},this._onTouched=()=>{},this.clearItem=Me=>{const We=this.selectedItems.find(Pe=>Pe.value===Me);this.unselect(We)},this.trackByOption=(Me,We)=>this.trackByFn?this.trackByFn(We.value):We,this._mergeGlobalConfig(_),this.itemsList=new $(this,w()),this.element=L.nativeElement}get items(){return this._items}set items(i){null===i&&(i=[]),this._itemsAreUsed=!0,this._items=i}get compareWith(){return this._compareWith}set compareWith(i){if(null!=i&&!X(i))throw Error("`compareWith` must be a function.");this._compareWith=i}get clearSearchOnAdd(){return z(this._clearSearchOnAdd)?this._clearSearchOnAdd:z(this.config.clearSearchOnAdd)?this.config.clearSearchOnAdd:this.closeOnSelect}set clearSearchOnAdd(i){this._clearSearchOnAdd=i}get disabled(){return this.readonly||this._disabled}get filtered(){return!!this.searchTerm&&this.searchable||this._isComposing}get single(){return!this.multiple}get _editableSearchTerm(){return this.editableSearchTerm&&!this.multiple}get selectedItems(){return this.itemsList.selectedItems}get selectedValues(){return this.selectedItems.map(i=>i.value)}get hasValue(){return this.selectedItems.length>0}get currentPanelPosition(){if(this.dropdownPanel)return this.dropdownPanel.currentPosition}ngOnInit(){this._handleKeyPresses(),this._setInputAttributes()}ngOnChanges(i){i.multiple&&this.itemsList.clearSelected(),i.items&&this._setItems(i.items.currentValue||[]),i.isOpen&&(this._manualOpen=z(i.isOpen.currentValue))}ngAfterViewInit(){this._itemsAreUsed||(this.escapeHTML=!1,this._setItemsFromNgOptions()),z(this.autoFocus)&&this.focus()}ngOnDestroy(){this._destroy$.next(),this._destroy$.complete()}handleKeyDown(i){if(Y[i.which]){if(!1===this.keyDownFn(i))return;this.handleKeyCode(i)}else i.key&&1===i.key.length&&this._keyPress$.next(i.key.toLocaleLowerCase())}handleKeyCode(i){switch(i.which){case Y.ArrowDown:this._handleArrowDown(i);break;case Y.ArrowUp:this._handleArrowUp(i);break;case Y.Space:this._handleSpace(i);break;case Y.Enter:this._handleEnter(i);break;case Y.Tab:this._handleTab(i);break;case Y.Esc:this.close(),i.preventDefault();break;case Y.Backspace:this._handleBackspace()}}handleMousedown(i){const c=i.target;"INPUT"!==c.tagName&&i.preventDefault(),c.classList.contains("ng-clear-wrapper")?this.handleClearClick():c.classList.contains("ng-arrow-wrapper")?this.handleArrowClick():c.classList.contains("ng-value-icon")||(this.focused||this.focus(),this.searchable?this.open():this.toggle())}handleArrowClick(){this.isOpen?this.close():this.open()}handleClearClick(){this.hasValue&&(this.itemsList.clearSelected(!0),this._updateNgModel()),this._clearSearch(),this.focus(),this.clearEvent.emit(),this._onSelectionChanged()}clearModel(){!this.clearable||(this.itemsList.clearSelected(),this._updateNgModel())}writeValue(i){this.itemsList.clearSelected(),this._handleWriteValue(i),this._cd.markForCheck()}registerOnChange(i){this._onChange=i}registerOnTouched(i){this._onTouched=i}setDisabledState(i){this._disabled=i,this._cd.markForCheck()}toggle(){this.isOpen?this.close():this.open()}open(){this.disabled||this.isOpen||this._manualOpen||!this._isTypeahead&&!this.addTag&&this.itemsList.noItemsToSelect||(this.isOpen=!0,this.itemsList.markSelectedOrDefault(this.markFirst),this.openEvent.emit(),this.searchTerm||this.focus(),this.detectChanges())}close(){!this.isOpen||this._manualOpen||(this.isOpen=!1,this._isComposing=!1,this._editableSearchTerm?this.itemsList.resetFilteredItems():this._clearSearch(),this.itemsList.unmarkItem(),this._onTouched(),this.closeEvent.emit(),this._cd.markForCheck())}toggleItem(i){!i||i.disabled||this.disabled||(this.multiple&&i.selected?this.unselect(i):this.select(i),this._editableSearchTerm&&this._setSearchTermFromItems(),this._onSelectionChanged())}select(i){i.selected||(this.itemsList.select(i),this.clearSearchOnAdd&&!this._editableSearchTerm&&this._clearSearch(),this._updateNgModel(),this.multiple&&this.addEvent.emit(i.value)),(this.closeOnSelect||this.itemsList.noItemsToSelect)&&this.close()}focus(){this.searchInput.nativeElement.focus()}blur(){this.searchInput.nativeElement.blur()}unselect(i){!i||(this.itemsList.unselect(i),this.focus(),this._updateNgModel(),this.removeEvent.emit(i))}selectTag(){let i;i=X(this.addTag)?this.addTag(this.searchTerm):this._primitive?this.searchTerm:{[this.bindLabel]:this.searchTerm};const c=_=>this._isTypeahead||!this.isOpen?this.itemsList.mapItem(_,null):this.itemsList.addItem(_);!function F(p){return p instanceof Promise}(i)?i&&this.select(c(i)):i.then(_=>this.select(c(_))).catch(()=>{})}showClear(){return this.clearable&&(this.hasValue||this.searchTerm)&&!this.disabled}get showAddTag(){if(!this._validTerm)return!1;const i=this.searchTerm.toLowerCase().trim();return this.addTag&&!this.itemsList.filteredItems.some(c=>c.label.toLowerCase()===i)&&(!this.hideSelected&&this.isOpen||!this.selectedItems.some(c=>c.label.toLowerCase()===i))&&!this.loading}showNoItemsFound(){const i=0===this.itemsList.filteredItems.length;return(i&&!this._isTypeahead&&!this.loading||i&&this._isTypeahead&&this._validTerm&&!this.loading)&&!this.showAddTag}showTypeToSearch(){return 0===this.itemsList.filteredItems.length&&this._isTypeahead&&!this._validTerm&&!this.loading}onCompositionStart(){this._isComposing=!0}onCompositionEnd(i){this._isComposing=!1,!this.searchWhileComposing&&this.filter(i)}filter(i){this._isComposing&&!this.searchWhileComposing||(this.searchTerm=i,this._isTypeahead&&(this._validTerm||0===this.minTermLength)&&this.typeahead.next(i),this._isTypeahead||(this.itemsList.filter(this.searchTerm),this.isOpen&&this.itemsList.markSelectedOrDefault(this.markFirst)),this.searchEvent.emit({term:i,items:this.itemsList.filteredItems.map(c=>c.value)}),this.open())}onInputFocus(i){this.focused||(this._editableSearchTerm&&this._setSearchTermFromItems(),this.element.classList.add("ng-select-focused"),this.focusEvent.emit(i),this.focused=!0)}onInputBlur(i){this.element.classList.remove("ng-select-focused"),this.blurEvent.emit(i),!this.isOpen&&!this.disabled&&this._onTouched(),this._editableSearchTerm&&this._setSearchTermFromItems(),this.focused=!1}onItemHover(i){i.disabled||this.itemsList.markItem(i)}detectChanges(){this._cd.destroyed||this._cd.detectChanges()}_setSearchTermFromItems(){const i=this.selectedItems&&this.selectedItems[0];this.searchTerm=i&&i.label||null}_setItems(i){const c=i[0];this.bindLabel=this.bindLabel||this._defaultLabel,this._primitive=z(c)?!M(c):this._primitive||this.bindLabel===this._defaultLabel,this.itemsList.setItems(i),i.length>0&&this.hasValue&&this.itemsList.mapSelectedItems(),this.isOpen&&z(this.searchTerm)&&!this._isTypeahead&&this.itemsList.filter(this.searchTerm),(this._isTypeahead||this.isOpen)&&this.itemsList.markSelectedOrDefault(this.markFirst)}_setItemsFromNgOptions(){const i=_=>{this.items=_.map(w=>({$ngOptionValue:w.value,$ngOptionLabel:w.elementRef.nativeElement.innerHTML,disabled:w.disabled})),this.itemsList.setItems(this.items),this.hasValue&&this.itemsList.mapSelectedItems(),this.detectChanges()},c=()=>{const _=(0,v.T)(this.ngOptions.changes,this._destroy$);(0,v.T)(...this.ngOptions.map(w=>w.stateChange$)).pipe((0,l.R)(_)).subscribe(w=>{const L=this.itemsList.findItem(w.value);L.disabled=w.disabled,L.label=w.label||L.label,this._cd.detectChanges()})};this.ngOptions.changes.pipe((0,t.O)(this.ngOptions),(0,l.R)(this._destroy$)).subscribe(_=>{this.bindLabel=this._defaultLabel,i(_),c()})}_isValidWriteValue(i){if(!z(i)||this.multiple&&""===i||Array.isArray(i)&&0===i.length)return!1;const c=_=>!(!z(this.compareWith)&&M(_)&&this.bindValue&&(this._console.warn(`Setting object(${JSON.stringify(_)}) as your model with bindValue is not allowed unless [compareWith] is used.`),1));return this.multiple?Array.isArray(i)?i.every(_=>c(_)):(this._console.warn("Multiple select ngModel should be array."),!1):c(i)}_handleWriteValue(i){if(!this._isValidWriteValue(i))return;const c=_=>{let w=this.itemsList.findItem(_);if(w)this.itemsList.select(w);else{const L=M(_),ue=!L&&!this.bindValue;L||ue?this.itemsList.select(this.itemsList.mapItem(_,null)):this.bindValue&&(w={[this.bindLabel]:null,[this.bindValue]:_},this.itemsList.select(this.itemsList.mapItem(w,null)))}};this.multiple?i.forEach(_=>c(_)):c(i)}_handleKeyPresses(){this.searchable||this._keyPress$.pipe((0,l.R)(this._destroy$),(0,Q.b)(i=>this._pressedKeys.push(i)),(0,W.b)(200),(0,P.h)(()=>this._pressedKeys.length>0),(0,re.U)(()=>this._pressedKeys.join(""))).subscribe(i=>{const c=this.itemsList.findByLabel(i);c&&(this.isOpen?(this.itemsList.markItem(c),this._scrollToMarked(),this._cd.markForCheck()):this.select(c)),this._pressedKeys=[]})}_setInputAttributes(){const i=this.searchInput.nativeElement,c={type:"text",autocorrect:"off",autocapitalize:"off",autocomplete:this.labelForId?"off":this.dropdownId,...this.inputAttrs};for(const _ of Object.keys(c))i.setAttribute(_,c[_])}_updateNgModel(){const i=[];for(const _ of this.selectedItems)if(this.bindValue){let w=null;w=_.children?_.value[(this.groupValue?this.bindValue:this.groupBy)||this.groupBy]:this.itemsList.resolveNested(_.value,this.bindValue),i.push(w)}else i.push(_.value);const c=this.selectedItems.map(_=>_.value);this.multiple?(this._onChange(i),this.changeEvent.emit(c)):(this._onChange(z(i[0])?i[0]:null),this.changeEvent.emit(c[0])),this._cd.markForCheck()}_clearSearch(){!this.searchTerm||(this._changeSearch(null),this.itemsList.resetFilteredItems())}_changeSearch(i){this.searchTerm=i,this._isTypeahead&&this.typeahead.next(i)}_scrollToMarked(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollTo(this.itemsList.markedItem)}_scrollToTag(){!this.isOpen||!this.dropdownPanel||this.dropdownPanel.scrollToTag()}_onSelectionChanged(){this.isOpen&&this.multiple&&this.appendTo&&(this._cd.detectChanges(),this.dropdownPanel.adjustPosition())}_handleTab(i){!1===this.isOpen&&!this.addTag||(this.selectOnTab?this.itemsList.markedItem?(this.toggleItem(this.itemsList.markedItem),i.preventDefault()):this.showAddTag?(this.selectTag(),i.preventDefault()):this.close():this.close())}_handleEnter(i){if(this.isOpen||this._manualOpen)this.itemsList.markedItem?this.toggleItem(this.itemsList.markedItem):this.showAddTag&&this.selectTag();else{if(!this.openOnEnter)return;this.open()}i.preventDefault()}_handleSpace(i){this.isOpen||this._manualOpen||(this.open(),i.preventDefault())}_handleArrowDown(i){this._nextItemIsTag(1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markNextItem(),this._scrollToMarked()),this.open(),i.preventDefault()}_handleArrowUp(i){!this.isOpen||(this._nextItemIsTag(-1)?(this.itemsList.unmarkItem(),this._scrollToTag()):(this.itemsList.markPreviousItem(),this._scrollToMarked()),i.preventDefault())}_nextItemIsTag(i){const c=this.itemsList.markedIndex+i;return this.addTag&&this.searchTerm&&this.itemsList.markedItem&&(c<0||c===this.itemsList.filteredItems.length)}_handleBackspace(){this.searchTerm||!this.clearable||!this.clearOnBackspace||!this.hasValue||(this.multiple?this.unselect(this.itemsList.lastSelectedItem):this.clearModel())}get _isTypeahead(){return this.typeahead&&this.typeahead.observers.length>0}get _validTerm(){const i=this.searchTerm&&this.searchTerm.trim();return i&&i.length>=this.minTermLength}_mergeGlobalConfig(i){this.placeholder=this.placeholder||i.placeholder,this.notFoundText=this.notFoundText||i.notFoundText,this.typeToSearchText=this.typeToSearchText||i.typeToSearchText,this.addTagText=this.addTagText||i.addTagText,this.loadingText=this.loadingText||i.loadingText,this.clearAllText=this.clearAllText||i.clearAllText,this.virtualScroll=z(this.virtualScroll)?this.virtualScroll:!!z(i.disableVirtualScroll)&&!i.disableVirtualScroll,this.openOnEnter=z(this.openOnEnter)?this.openOnEnter:i.openOnEnter,this.appendTo=this.appendTo||i.appendTo,this.bindValue=this.bindValue||i.bindValue,this.bindLabel=this.bindLabel||i.bindLabel,this.appearance=this.appearance||i.appearance}}return p.\u0275fac=function(i){return new(i||p)(r.$8M("class"),r.$8M("autofocus"),r.Y36(Ke),r.Y36(qe),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(st))},p.\u0275cmp=r.Xpm({type:p,selectors:[["ng-select"]],contentQueries:function(i,c,_){if(1&i&&(r.Suo(_,Ge,5,r.Rgc),r.Suo(_,He,5,r.Rgc),r.Suo(_,Le,5,r.Rgc),r.Suo(_,Ee,5,r.Rgc),r.Suo(_,De,5,r.Rgc),r.Suo(_,Ye,5,r.Rgc),r.Suo(_,b,5,r.Rgc),r.Suo(_,n,5,r.Rgc),r.Suo(_,s,5,r.Rgc),r.Suo(_,u,5,r.Rgc),r.Suo(_,f,5,r.Rgc),r.Suo(_,rt,5)),2&i){let w;r.iGM(w=r.CRH())&&(c.optionTemplate=w.first),r.iGM(w=r.CRH())&&(c.optgroupTemplate=w.first),r.iGM(w=r.CRH())&&(c.labelTemplate=w.first),r.iGM(w=r.CRH())&&(c.multiLabelTemplate=w.first),r.iGM(w=r.CRH())&&(c.headerTemplate=w.first),r.iGM(w=r.CRH())&&(c.footerTemplate=w.first),r.iGM(w=r.CRH())&&(c.notFoundTemplate=w.first),r.iGM(w=r.CRH())&&(c.typeToSearchTemplate=w.first),r.iGM(w=r.CRH())&&(c.loadingTextTemplate=w.first),r.iGM(w=r.CRH())&&(c.tagTemplate=w.first),r.iGM(w=r.CRH())&&(c.loadingSpinnerTemplate=w.first),r.iGM(w=r.CRH())&&(c.ngOptions=w)}},viewQuery:function(i,c){if(1&i&&(r.Gf(Xe,5),r.Gf(I,7)),2&i){let _;r.iGM(_=r.CRH())&&(c.dropdownPanel=_.first),r.iGM(_=r.CRH())&&(c.searchInput=_.first)}},hostVars:20,hostBindings:function(i,c){1&i&&r.NdJ("keydown",function(w){return c.handleKeyDown(w)}),2&i&&r.ekj("ng-select-typeahead",c.typeahead)("ng-select-multiple",c.multiple)("ng-select-taggable",c.addTag)("ng-select-searchable",c.searchable)("ng-select-clearable",c.clearable)("ng-select-opened",c.isOpen)("ng-select",c.useDefaultClass)("ng-select-disabled",c.disabled)("ng-select-filtered",c.filtered)("ng-select-single",c.single)},inputs:{bindLabel:"bindLabel",bindValue:"bindValue",markFirst:"markFirst",placeholder:"placeholder",notFoundText:"notFoundText",typeToSearchText:"typeToSearchText",addTagText:"addTagText",loadingText:"loadingText",clearAllText:"clearAllText",appearance:"appearance",dropdownPosition:"dropdownPosition",appendTo:"appendTo",loading:"loading",closeOnSelect:"closeOnSelect",hideSelected:"hideSelected",selectOnTab:"selectOnTab",openOnEnter:"openOnEnter",maxSelectedItems:"maxSelectedItems",groupBy:"groupBy",groupValue:"groupValue",bufferAmount:"bufferAmount",virtualScroll:"virtualScroll",selectableGroup:"selectableGroup",selectableGroupAsModel:"selectableGroupAsModel",searchFn:"searchFn",trackByFn:"trackByFn",clearOnBackspace:"clearOnBackspace",labelForId:"labelForId",inputAttrs:"inputAttrs",tabIndex:"tabIndex",readonly:"readonly",searchWhileComposing:"searchWhileComposing",minTermLength:"minTermLength",editableSearchTerm:"editableSearchTerm",keyDownFn:"keyDownFn",typeahead:"typeahead",multiple:"multiple",addTag:"addTag",searchable:"searchable",clearable:"clearable",isOpen:"isOpen",items:"items",compareWith:"compareWith",clearSearchOnAdd:"clearSearchOnAdd"},outputs:{blurEvent:"blur",focusEvent:"focus",changeEvent:"change",openEvent:"open",closeEvent:"close",searchEvent:"search",clearEvent:"clear",addEvent:"add",removeEvent:"remove",scroll:"scroll",scrollToEnd:"scrollToEnd"},features:[r._Bn([{provide:K.JU,useExisting:(0,r.Gpc)(()=>p),multi:!0},te]),r.TTD],decls:14,vars:19,consts:[[1,"ng-select-container",3,"mousedown"],[1,"ng-value-container"],[1,"ng-placeholder"],[4,"ngIf"],["role","combobox","aria-haspopup","listbox",1,"ng-input"],["aria-autocomplete","list",3,"readOnly","disabled","value","input","compositionstart","compositionend","focus","blur","change"],["searchInput",""],["class","ng-clear-wrapper",3,"title",4,"ngIf"],[1,"ng-arrow-wrapper"],[1,"ng-arrow"],["class","ng-dropdown-panel","role","listbox","aria-label","Options list",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ng-select-multiple","ngClass","id","update","scroll","scrollToEnd","outsideClick",4,"ngIf"],["class","ng-value",3,"ng-value-disabled",4,"ngFor","ngForOf","ngForTrackBy"],[1,"ng-value"],["defaultLabelTemplate",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["aria-hidden","true",1,"ng-value-icon","left",3,"click"],[1,"ng-value-label",3,"ngItemLabel","escape"],["defaultLoadingSpinnerTemplate",""],[3,"ngTemplateOutlet"],[1,"ng-spinner-loader"],[1,"ng-clear-wrapper",3,"title"],["aria-hidden","true",1,"ng-clear"],["role","listbox","aria-label","Options list",1,"ng-dropdown-panel",3,"virtualScroll","bufferAmount","appendTo","position","headerTemplate","footerTemplate","filterValue","items","markedItem","ngClass","id","update","scroll","scrollToEnd","outsideClick"],["class","ng-option",3,"ng-option-disabled","ng-option-selected","ng-optgroup","ng-option","ng-option-child","ng-option-marked","click","mouseover",4,"ngFor","ngForOf","ngForTrackBy"],["class","ng-option","role","option",3,"ng-option-marked","mouseover","click",4,"ngIf"],[1,"ng-option",3,"click","mouseover"],["defaultOptionTemplate",""],[1,"ng-option-label",3,"ngItemLabel","escape"],["role","option",1,"ng-option",3,"mouseover","click"],["defaultTagTemplate",""],[1,"ng-tag-label"],["defaultNotFoundTemplate",""],[1,"ng-option","ng-option-disabled"],["defaultTypeToSearchTemplate",""],["defaultLoadingTextTemplate",""]],template:function(i,c){if(1&i){const _=r.EpF();r.TgZ(0,"div",0),r.NdJ("mousedown",function(L){return c.handleMousedown(L)}),r.TgZ(1,"div",1)(2,"div",2),r._uU(3),r.qZA(),r.YNc(4,Te,2,2,"ng-container",3),r.YNc(5,Be,1,5,null,3),r.TgZ(6,"div",4)(7,"input",5,6),r.NdJ("input",function(){r.CHM(_);const L=r.MAs(8);return r.KtG(c.filter(L.value))})("compositionstart",function(){return c.onCompositionStart()})("compositionend",function(){r.CHM(_);const L=r.MAs(8);return r.KtG(c.onCompositionEnd(L.value))})("focus",function(L){return c.onInputFocus(L)})("blur",function(L){return c.onInputBlur(L)})("change",function(L){return L.stopPropagation()}),r.qZA()()(),r.YNc(9,me,4,1,"ng-container",3),r.YNc(10,Z,3,1,"span",7),r.TgZ(11,"span",8),r._UZ(12,"span",9),r.qZA()(),r.YNc(13,U,7,19,"ng-dropdown-panel",10)}2&i&&(r.ekj("ng-appearance-outline","outline"===c.appearance)("ng-has-value",c.hasValue),r.xp6(3),r.Oqu(c.placeholder),r.xp6(1),r.Q6J("ngIf",(!c.multiLabelTemplate||!c.multiple)&&c.selectedItems.length>0),r.xp6(1),r.Q6J("ngIf",c.multiple&&c.multiLabelTemplate&&c.selectedValues.length>0),r.xp6(1),r.uIk("aria-expanded",c.isOpen)("aria-owns",c.isOpen?c.dropdownId:null),r.xp6(1),r.Q6J("readOnly",!c.searchable||c.itemsList.maxItemsSelected)("disabled",c.disabled)("value",c.searchTerm?c.searchTerm:""),r.uIk("id",c.labelForId)("tabindex",c.tabIndex)("aria-activedescendant",c.isOpen?null==c.itemsList||null==c.itemsList.markedItem?null:c.itemsList.markedItem.htmlId:null)("aria-controls",c.isOpen?c.dropdownId:null),r.xp6(2),r.Q6J("ngIf",c.loading),r.xp6(1),r.Q6J("ngIf",c.showClear()),r.xp6(3),r.Q6J("ngIf",c.isOpen))},dependencies:[G.mk,G.sg,G.O5,G.tP,Xe,ee],styles:['@charset "UTF-8";.ng-select{position:relative;display:block;box-sizing:border-box}.ng-select div,.ng-select input,.ng-select span{box-sizing:border-box}.ng-select [hidden]{display:none}.ng-select.ng-select-searchable .ng-select-container .ng-value-container .ng-input{opacity:1}.ng-select.ng-select-opened .ng-select-container{z-index:1001}.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-placeholder,.ng-select.ng-select-disabled .ng-select-container .ng-value-container .ng-value{-webkit-user-select:none;user-select:none;cursor:default}.ng-select.ng-select-disabled .ng-arrow-wrapper{cursor:default}.ng-select.ng-select-filtered .ng-placeholder{display:none}.ng-select .ng-select-container{cursor:default;display:flex;outline:none;overflow:hidden;position:relative;width:100%}.ng-select .ng-select-container .ng-value-container{display:flex;flex:1}.ng-select .ng-select-container .ng-value-container .ng-input{opacity:0}.ng-select .ng-select-container .ng-value-container .ng-input>input{box-sizing:content-box;background:none transparent;border:0 none;box-shadow:none;outline:none;padding:0;cursor:default;width:100%}.ng-select .ng-select-container .ng-value-container .ng-input>input::-ms-clear{display:none}.ng-select .ng-select-container .ng-value-container .ng-input>input[readonly]{-webkit-user-select:none;user-select:none;width:0;padding:0}.ng-select.ng-select-single.ng-select-filtered .ng-select-container .ng-value-container .ng-value{visibility:hidden}.ng-select.ng-select-single .ng-select-container .ng-value-container,.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-single .ng-select-container .ng-value-container .ng-input{position:absolute;left:0;width:100%}.ng-select.ng-select-multiple.ng-select-disabled>.ng-select-container .ng-value-container .ng-value .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container{flex-wrap:wrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{position:absolute}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value{white-space:nowrap}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value.ng-value-disabled .ng-value-icon{display:none}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-value .ng-value-icon{cursor:pointer}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-input{flex:1;z-index:2}.ng-select.ng-select-multiple .ng-select-container .ng-value-container .ng-placeholder{z-index:1}.ng-select .ng-clear-wrapper{cursor:pointer;position:relative;width:17px;-webkit-user-select:none;user-select:none}.ng-select .ng-clear-wrapper .ng-clear{display:inline-block;font-size:18px;line-height:1;pointer-events:none}.ng-select .ng-spinner-loader{border-radius:50%;width:17px;height:17px;margin-right:5px;font-size:10px;position:relative;text-indent:-9999em;border-top:2px solid rgba(66,66,66,.2);border-right:2px solid rgba(66,66,66,.2);border-bottom:2px solid rgba(66,66,66,.2);border-left:2px solid #424242;transform:translateZ(0);animation:load8 .8s infinite linear}.ng-select .ng-spinner-loader:after{border-radius:50%;width:17px;height:17px}@keyframes load8{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ng-select .ng-arrow-wrapper{cursor:pointer;position:relative;text-align:center;-webkit-user-select:none;user-select:none}.ng-select .ng-arrow-wrapper .ng-arrow{pointer-events:none;display:inline-block;height:0;width:0;position:relative}.ng-dropdown-panel{box-sizing:border-box;position:absolute;opacity:0;width:100%;z-index:1050;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .ng-dropdown-panel-items{display:block;height:auto;box-sizing:border-box;max-height:240px;overflow-y:auto}.ng-dropdown-panel .ng-dropdown-panel-items .ng-optgroup{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option{box-sizing:border-box;cursor:pointer;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .ng-option-label:empty:before{content:"\\200b"}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option .highlighted{font-weight:700;text-decoration:underline}.ng-dropdown-panel .ng-dropdown-panel-items .ng-option.disabled{cursor:default}.ng-dropdown-panel .scroll-host{overflow:hidden;overflow-y:auto;position:relative;display:block;-webkit-overflow-scrolling:touch}.ng-dropdown-panel .scrollable-content{top:0;left:0;width:100%;height:100%;position:absolute}.ng-dropdown-panel .total-padding{width:1px;opacity:0}\n'],encapsulation:2,changeDetection:0}),p})();function ot(){return new lt}class lt{constructor(){this._selected=[]}get value(){return this._selected}select(g,i,c){if(g.selected=!0,(!g.children||!i&&c)&&this._selected.push(g),i)if(g.parent){const _=g.parent.children.length,w=g.parent.children.filter(L=>L.selected).length;g.parent.selected=_===w}else g.children&&(this._setChildrenSelectedState(g.children,!0),this._removeChildren(g),this._selected=c&&this._activeChildren(g)?[...this._selected.filter(_=>_.parent!==g),g]:[...this._selected,...g.children.filter(_=>!_.disabled)])}unselect(g,i){if(this._selected=this._selected.filter(c=>c!==g),g.selected=!1,i)if(g.parent&&g.parent.selected){const c=g.parent.children;this._removeParent(g.parent),this._removeChildren(g.parent),this._selected.push(...c.filter(_=>_!==g&&!_.disabled)),g.parent.selected=!1}else g.children&&(this._setChildrenSelectedState(g.children,!1),this._removeChildren(g))}clear(g){this._selected=g?this._selected.filter(i=>i.disabled):[]}_setChildrenSelectedState(g,i){for(const c of g)c.disabled||(c.selected=i)}_removeChildren(g){this._selected=[...this._selected.filter(i=>i.parent!==g),...g.children.filter(i=>i.parent===g&&i.disabled&&i.selected)]}_removeParent(g){this._selected=this._selected.filter(i=>i!==g)}_activeChildren(g){return g.children.every(i=>!i.disabled||i.selected)}}let dt=(()=>{class p{}return p.\u0275fac=function(i){return new(i||p)},p.\u0275mod=r.oAB({type:p}),p.\u0275inj=r.cJS({providers:[{provide:qe,useValue:ot}],imports:[G.ez]}),p})()}}]);