marketplacepos 2.4.9 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkpos_marketplace=self.webpackChunkpos_marketplace||[]).push([[397],{7481:(Tt,ft,l)=>{l.d(ft,{R:()=>et,p:()=>L});var r=l(4650),c=l(6895),n=l(4006),E=l(8252),nt=l(1589);function w(B,T){if(1&B){const F=r.EpF();r.ynx(0),r.TgZ(1,"div",18)(2,"input",19),r.NdJ("ngModelChange",function(K){r.CHM(F);const Q=r.oxw();return r.KtG(Q.text=K)})("keyup",function(){r.CHM(F);const K=r.oxw();return r.KtG(K.onTextChange())})("keyup.enter",function(){r.CHM(F);const K=r.oxw();return r.KtG(K.submit())}),r.qZA(),r.TgZ(3,"div")(4,"button",20),r.NdJ("click",function(){r.CHM(F);const K=r.oxw();return r.KtG(K.submit())}),r._UZ(5,"i",21),r.qZA()()(),r.BQk()}if(2&B){const F=r.oxw();r.xp6(2),r.Q6J("ngModel",F.text)("placeholder",F.searchBoxPlaceHolder)}}function at(B,T){if(1&B){const F=r.EpF();r.TgZ(0,"div",22)(1,"a",23)(2,"i",24),r._UZ(3,"i",25),r.qZA()(),r.TgZ(4,"form",26),r.Hsn(5,2),r.TgZ(6,"button",27),r.NdJ("click",function(){r.CHM(F);const K=r.oxw();return r.KtG(K.submit())}),r._UZ(7,"i",28),r._uU(8,"Search "),r.qZA()()()}}const v=[[["actions"]],[["content"]],[["filters"]]],y=["actions","content","filters"];let L=(()=>{class B{constructor(F){this.sidebarService=F,this.onSubmit=new r.vpe,this.textChange=new r.vpe,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search.."}submit(){this.inputText=this.text,this.onSubmit.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}IsActive(F){return this.getMenuNameByUrl(window.location.href)==this.getMenuNameByUrl(F)}toggledropdown(F){F.stopPropagation()}getMenuNameByUrl(F){var W=F.split("#");if(W.length>1){var Q=W[1].split("/");return""!=Q[0]?Q[0]:Q[1]}return F}toggleMenu(){this.sidebarService.toggleSidebar()}}return B.\u0275fac=function(F){return new(F||B)(r.Y36(nt.g))},B.\u0275cmp=r.Xpm({type:B,selectors:[["mainpanel"]],inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",showBeside:"showBeside",description:"description"},outputs:{onSubmit:"onSubmit",textChange:"textChange"},ngContentSelectors:y,decls:26,vars:4,consts:[[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"title"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","dropdown text-secondary ps-5",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModel","placeholder","ngModelChange","keyup","keyup.enter"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"dropdown","text-secondary","ps-5"],["id","dropdown-filter","role","button","data-bs-toggle","dropdown","data-bs-auto-close","outside","aria-expanded","false",1,"text-muted","h5"],[1,"fa","fa-filter"],[1,"fa-solid","fa-caret-down"],[1,"dropdown-menu",2,"left","auto !important"],["title","Click to filter!",1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-search","pointer","me-1"]],template:function(F,W){1&F&&(r.F$t(v),r.TgZ(0,"nav",0)(1,"div",1)(2,"div",2)(3,"h1",3),r._uU(4),r.qZA()(),r.TgZ(5,"div",4)(6,"div",5)(7,"div",6)(8,"div")(9,"div"),r.YNc(10,w,6,2,"ng-container",7),r.qZA()(),r.YNc(11,at,9,0,"div",8),r.qZA()()(),r.TgZ(12,"div",9)(13,"button",10),r._UZ(14,"i",11),r.qZA(),r.TgZ(15,"button",12),r._UZ(16,"i",13),r.qZA(),r.TgZ(17,"button",14),r.NdJ("click",function(){return W.toggleMenu()}),r._UZ(18,"span",15)(19,"span",15)(20,"span",15),r.qZA()(),r.TgZ(21,"div",16),r.Hsn(22),r.qZA()()(),r.TgZ(23,"div",17)(24,"div"),r.Hsn(25,1),r.qZA()()),2&F&&(r.xp6(3),r.Q6J("title",W.description?W.description:""),r.xp6(1),r.hij(" ",W.headerTitle," "),r.xp6(6),r.Q6J("ngIf",!W.hideSearchBox),r.xp6(1),r.Q6J("ngIf",!W.hideSearchDropdown))},dependencies:[c.O5,n._Y,n.Fj,n.JJ,n.JL,n.On,n.F],styles:[".dropdown .dropdown-menu.show{top:100%!important;transform:none!important;z-index:10000;cursor:pointer}.search-box .dropdown-menu{border-radius:4px!important;margin:-5px 0 0!important;padding:10px}.search-box .dropdown-menu div.d-flex>div:not(:last-child){margin-right:10px}.search-box .dropdown-menu div[container]{width:200px}.search-box .dropdown-menu div[container]>div{margin:0 0 12px}.search-box .dropdown-menu div[container]>div>h6{margin-bottom:5px}.search-box .dropdown-menu div[container]>div>input,.search-box .dropdown-menu div[container]>div>select{width:100%;padding:7px 5px 6px;border:solid 1px #ddd}.search-box .dropdown-menu div[container]>div>input[datepicker]{width:95px}.search-box .dropdown-menu div[container]>div radioyesnob ul{margin:10px 0 0}.search-box .dropdown-menu .more{background-color:#fff;position:absolute;bottom:-15px;width:5rem}.search-box .dropdown-menu div[container]>div>h6{font-size:12px}.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}\n"],encapsulation:2}),B})(),et=(()=>{class B{}return B.\u0275fac=function(F){return new(F||B)},B.\u0275mod=r.oAB({type:B}),B.\u0275inj=r.cJS({imports:[c.ez,n.u5,E.Bz]}),B})()},2397:(Tt,ft,l)=>{l.r(ft),l.d(ft,{MenuModule:()=>H});var r=l(6895),c=l(8252),n=l(8063),E=l(2722),nt=l(7579);class w{constructor(){this.menus=[{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products"},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory"},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price"},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/Order"},{Icon:"fas fa-clipboard-list",Title:"Report",Url:"/menu/report"},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic"},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel"},{Icon:"fas fa-file-alt",Title:"Logs",Url:"/menu/log"},{Icon:"fas fa-bell",Title:"Notification",Url:"/menu/Notification",Badge:!0},{Icon:"fas fa-wand-magic-sparkles",Title:"What`s New",Url:"https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete",ExternalLink:!0,CustomColor:"#ff2323"}]}get getMenu(){return this.menus}}var at=l(4004),v=l(4650),y=l(9568),L=l(1589),et=l(6989),B=l(8002),T=l(266),F=l(3238),W=l(2687),K=l(1281);let Q=0;const ht=(0,F.Id)(class{}),rt="mat-badge-content";let ut=(()=>{class R extends ht{constructor(U,it,kt,It,Lt){super(),this._ngZone=U,this._elementRef=it,this._ariaDescriber=kt,this._renderer=It,this._animationMode=Lt,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=Q++,this._isInitialized=!1}get color(){return this._color}set color(U){this._setColor(U),this._color=U}get overlap(){return this._overlap}set overlap(U){this._overlap=(0,K.Ig)(U)}get content(){return this._content}set content(U){this._updateRenderedContent(U)}get description(){return this._description}set description(U){this._updateHostAriaDescription(U)}get hidden(){return this._hidden}set hidden(U){this._hidden=(0,K.Ig)(U)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const U=this._renderer.createElement("span"),it="mat-badge-active";return U.setAttribute("id",`mat-badge-content-${this._id}`),U.setAttribute("aria-hidden","true"),U.classList.add(rt),"NoopAnimations"===this._animationMode&&U.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(U),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{U.classList.add(it)})}):U.classList.add(it),U}_updateRenderedContent(U){const it=`${U??""}`.trim();this._isInitialized&&it&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=it),this._content=it}_updateHostAriaDescription(U){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),U&&this._ariaDescriber.describe(this._elementRef.nativeElement,U),this._description=U}_setColor(U){const it=this._elementRef.nativeElement.classList;it.remove(`mat-badge-${this._color}`),U&&it.add(`mat-badge-${U}`)}_clearExistingBadges(){const U=this._elementRef.nativeElement.querySelectorAll(`:scope > .${rt}`);for(const it of Array.from(U))it!==this._badgeElement&&it.remove()}}return R.\u0275fac=function(U){return new(U||R)(v.Y36(v.R0b),v.Y36(v.SBq),v.Y36(W.$s),v.Y36(v.Qsj),v.Y36(v.QbO,8))},R.\u0275dir=v.lG2({type:R,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(U,it){2&U&&v.ekj("mat-badge-overlap",it.overlap)("mat-badge-above",it.isAbove())("mat-badge-below",!it.isAbove())("mat-badge-before",!it.isAfter())("mat-badge-after",it.isAfter())("mat-badge-small","small"===it.size)("mat-badge-medium","medium"===it.size)("mat-badge-large","large"===it.size)("mat-badge-hidden",it.hidden||!it.content)("mat-badge-disabled",it.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[v.qOj]}),R})(),Z=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=v.oAB({type:R}),R.\u0275inj=v.cJS({imports:[W.rt,F.BQ,F.BQ]}),R})();function $(R,ot){if(1&R&&(v.ynx(0),v.TgZ(1,"p",22),v.ALo(2,"async"),v._uU(3),v.qZA(),v.BQk()),2&R){const U=v.oxw(2).$implicit,it=v.oxw();v.xp6(1),v.Udp("color",U.CustomColor),v.Q6J("matBadgeHidden",0==v.lcZ(2,4,it.notifications$)),v.xp6(2),v.Oqu(U.Title)}}function _(R,ot){if(1&R&&(v.TgZ(0,"p"),v._uU(1),v.qZA()),2&R){const U=v.oxw(2).$implicit;v.Udp("color",U.CustomColor),v.xp6(1),v.hij("",U.Title," ")}}function x(R,ot){if(1&R&&(v.ynx(0),v.TgZ(1,"a",20),v._UZ(2,"i"),v.YNc(3,$,4,6,"ng-container",18),v.YNc(4,_,2,3,"ng-template",null,21,v.W1O),v.qZA(),v.BQk()),2&R){const U=v.MAs(5),it=v.oxw().$implicit,kt=v.oxw();v.xp6(1),v.Q6J("matTooltip",kt.isCollapseSidebar?it.Title:"")("href",it.Url,v.LSH),v.xp6(1),v.Tol(it.Icon),v.Udp("color",it.CustomColor),v.xp6(1),v.Q6J("ngIf",it.Badge)("ngIfElse",U)}}function b(R,ot){if(1&R&&(v.ynx(0),v.TgZ(1,"p",22),v.ALo(2,"async"),v._uU(3),v.qZA(),v.BQk()),2&R){const U=v.oxw(2).$implicit,it=v.oxw();v.xp6(1),v.Q6J("matBadgeHidden",0==v.lcZ(2,2,it.notifications$)),v.xp6(2),v.Oqu(U.Title)}}function O(R,ot){if(1&R&&(v.TgZ(0,"p"),v._uU(1),v.qZA()),2&R){const U=v.oxw(2).$implicit;v.xp6(1),v.hij("",U.Title," ")}}function st(R,ot){if(1&R&&(v.TgZ(0,"a",23),v._UZ(1,"i"),v.YNc(2,b,4,4,"ng-container",18),v.YNc(3,O,2,1,"ng-template",null,21,v.W1O),v.qZA()),2&R){const U=v.MAs(4),it=v.oxw().$implicit,kt=v.oxw();v.Q6J("matTooltip",kt.isCollapseSidebar?it.Title:"")("routerLink",it.Url),v.xp6(1),v.Tol(it.Icon),v.xp6(1),v.Q6J("ngIf",it.Badge)("ngIfElse",U)}}function vt(R,ot){if(1&R&&(v.TgZ(0,"li",17),v.YNc(1,x,6,8,"ng-container",18),v.YNc(2,st,5,6,"ng-template",null,19,v.W1O),v.qZA()),2&R){const U=ot.$implicit,it=v.MAs(3);v.xp6(1),v.Q6J("ngIf",U.ExternalLink)("ngIfElse",it)}}function gt(R,ot){if(1&R){const U=v.EpF();v.TgZ(0,"div",24)(1,"span"),v._uU(2),v.TgZ(3,"a",25),v._uU(4,"this Article"),v.qZA(),v._uU(5," to renew your ShopID! "),v.qZA(),v.TgZ(6,"a",26),v.NdJ("click",function(){v.CHM(U);const kt=v.oxw();return v.KtG(kt.CloseWarning())}),v._UZ(7,"i",27),v.qZA()()}if(2&R){const U=v.oxw();v.xp6(2),v.AsE(" Your Shopee Channel ShopID ",U.ShopID," is expired in (",U.Difference_In_Days,") days, please refer to ")}}const bt=[{path:"",component:(()=>{class R{constructor(U,it,kt,It,Lt){this._router=U,this.LocalData=it,this.toggleSidebarService=kt,this.notificationService=It,this.decodeTokenService=Lt,this.Menu={},this.Difference_In_Days=0,this.IsExpired=!1,this.destroy$=new nt.x,this.isCollapseSidebar=!1,this.initIntercom(),this.token=Lt.getParseToken(),this.storeName=this.token.StoreName,this.Menu=(new w).getMenu,this.CheckExpired()}ngOnInit(){this.subscribeToSidebarChange(),this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe((0,at.U)(U=>U.length))}initIntercom(){var U=localStorage.getItem("Intercom"),it=JSON.parse(U);null==it?window.Intercom("boot",{app_id:"xv1oomgl"}):window.Intercom("boot",{app_id:"xv1oomgl",name:it.Name,email:it.Email,created_at:it.Created,user_hash:it.Hash})}subscribeToSidebarChange(){this.toggleSidebarService.toggleState$.pipe((0,E.R)(this.destroy$)).subscribe(U=>{this.isNavOpen=U})}CloseWarning(){localStorage.removeItem("channel"),this.IsExpired=!1}CheckExpired(){let U=JSON.parse(window.localStorage.getItem("user"));if(U)if(null!=U.expiredAt)this.LogOut();else{let kt=U.Channel;if(kt.length>0)for(let It of kt)if(null!=It.ExpiredTime&&0==It.TypeID){let Lt=new Date(It.ExpiredTime),Nt=new Date;var it=Lt.getTime()-Nt.getTime();this.Difference_In_Days=Math.round(it/864e5),this.Difference_In_Days<=10&&(this.IsExpired=!0,this.ShopID=It.ShopID)}}}user(){this._router.navigate(["/menu/users"])}LogOut(){window.Intercom("shutdown"),window.localStorage.removeItem("user"),window.localStorage.removeItem("Intercom"),window.localStorage.removeItem("channel"),this.LocalData.clearDatabase(),this._router.navigate([""])}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(U){if(U){let it;const kt=U.split(" ");return it=1==kt.length?kt[0].substring(0,2):kt.shift().charAt(0)+kt.pop().charAt(0),it}}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}}return R.\u0275fac=function(U){return new(U||R)(v.Y36(c.F0),v.Y36(y.T),v.Y36(L.g),v.Y36(et.g),v.Y36(B.e))},R.\u0275cmp=v.Xpm({type:R,selectors:[["app-menu"]],decls:23,vars:9,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer",3,"title"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["DEFAULT_ROUTE",""],["matTooltipPosition","right","target","_blank",1,"nav-link","position-relative","d-block",3,"matTooltip","href"],["WITHOUT_BADGE",""],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation",3,"matBadgeHidden"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["target","_blank","href","https://support.dealpos.com/en/articles/5334947-renew-shopee-authorization"],[1,"alert-link","text-danger",2,"cursor","pointer",3,"click"],[1,"far","fa-times-circle","fa-lg"]],template:function(U,it){1&U&&(v.TgZ(0,"div",0)(1,"div",1)(2,"button",2),v.NdJ("click",function(){return it.onCallapseSidebar()}),v._UZ(3,"i",3),v.qZA(),v.TgZ(4,"div",4)(5,"div",5)(6,"a",6),v._uU(7),v.qZA(),v.TgZ(8,"div",7)(9,"div",8),v._uU(10),v.qZA(),v._UZ(11,"div",9),v.TgZ(12,"a",10),v.NdJ("click",function(){return it.LogOut()}),v._UZ(13,"i",11),v._uU(14,"\xa0 "),v.TgZ(15,"span"),v._uU(16," Log Out"),v.qZA()()()()(),v.TgZ(17,"div",12)(18,"ul",13),v.YNc(19,vt,4,2,"li",14),v.qZA()()(),v.TgZ(20,"div",15),v.YNc(21,gt,8,2,"div",16),v._UZ(22,"router-outlet"),v.qZA()()),2&U&&(v.ekj("nav-open",it.isNavOpen),v.xp6(1),v.Q6J("ngClass",it.isCollapseSidebar?"collapses":""),v.xp6(2),v.Q6J("ngClass",it.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),v.xp6(3),v.s9C("title",it.token.StoreName),v.xp6(1),v.hij(" ",it.storeName," "),v.xp6(3),v.hij("",it.token.UserName," "),v.xp6(9),v.Q6J("ngForOf",it.Menu),v.xp6(2),v.Q6J("ngIf",it.IsExpired))},dependencies:[r.mk,r.sg,r.O5,c.lC,c.yS,c.Od,T.gM,ut,r.Ov],styles:[".top-initial[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:initial!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}} p.shake-animation.mat-badge>span.mat-badge-content{animation:shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}}"]}),R})(),children:[{path:"",redirectTo:"products",pathMatch:"full"},{path:"products",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(739),l.e(592),l.e(180)]).then(l.bind(l,1180)).then(R=>R.ProductModule),canActivate:[n.a],data:{title:"Products"}},{path:"inventory",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(455),l.e(785),l.e(162)]).then(l.bind(l,9162)).then(R=>R.InventoryModule),canActivate:[n.a],data:{title:"Inventory"}},{path:"price",loadChildren:()=>Promise.all([l.e(796),l.e(516),l.e(32),l.e(455),l.e(785),l.e(592),l.e(874)]).then(l.bind(l,1874)).then(R=>R.PriceModule),canActivate:[n.a],data:{title:"Price"}},{path:"Order",loadChildren:()=>Promise.all([l.e(796),l.e(616),l.e(739),l.e(592),l.e(716)]).then(l.bind(l,1716)).then(R=>R.OrdersModule),canActivate:[n.a],data:{title:"Order"}},{path:"report",loadChildren:()=>Promise.all([l.e(616),l.e(585),l.e(360)]).then(l.bind(l,4360)).then(R=>R.ReportModule),canActivate:[n.a],data:{title:"Report"}},{path:"Logistic",loadChildren:()=>l.e(512).then(l.bind(l,5512)).then(R=>R.LogisticModule),canActivate:[n.a],data:{title:"Logistic"}},{path:"channel",loadChildren:()=>Promise.all([l.e(796),l.e(455),l.e(463)]).then(l.bind(l,6463)).then(R=>R.ChannelsModule),canActivate:[n.a],data:{title:"Marketplace"}},{path:"log",loadChildren:()=>Promise.all([l.e(796),l.e(616),l.e(739),l.e(585),l.e(832)]).then(l.bind(l,1832)).then(R=>R.LogsModule),canActivate:[n.a],data:{title:"Orders"}},{path:"Notification",loadChildren:()=>Promise.all([l.e(796),l.e(592),l.e(717)]).then(l.bind(l,6717)).then(R=>R.NotificationModule),canActivate:[n.a],data:{title:"Push Notification"}}]}];let mt=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=v.oAB({type:R}),R.\u0275inj=v.cJS({imports:[c.Bz.forChild(bt),c.Bz]}),R})();var ct=l(7481),z=l(4006),J=l(5412),dt=l(1948),N=l(4144),q=l(9549),X=l(4385),Mt=l(5960),lt=l(6709),St=l(6401);let I=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=v.oAB({type:R}),R.\u0275inj=v.cJS({imports:[r.ez,z.u5,J.Is,dt.Fk,N.c,q.lN,X.LD,lt.p9,T.AV,Mt.n,St.d]}),R})(),H=(()=>{class R{}return R.\u0275fac=function(U){return new(U||R)},R.\u0275mod=v.oAB({type:R}),R.\u0275inj=v.cJS({providers:[r.uU],imports:[r.ez,mt,ct.R,T.AV,I,Z]}),R})()},3154:(Tt,ft,l)=>{l.d(ft,{g:()=>n});var r=(()=>{return(E=r||(r={})).SHOOPE="//res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png",E.WOOCOMMERCE="//res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp",E.TOKOPEDIA="//res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png",E.TIKTOK="//res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png",E.LAZADA="//res.cloudinary.com/pos/image/upload/w_30/v1641528003/icons/marketplace_icons/lazada.png",E.KALCARE="//res.cloudinary.com/pos/image/upload/v1654230268/icons/marketplace_icons/kalcare.png",r;var E})(),c=l(9694);let n=(()=>{class E{static IsNotEmpty(w){return""!=w&&w!=E.GuidEMpty&&null!=w&&null!=w}static IsEmpty(w){return""==w||null==w||null==w||w==E.GuidEMpty}static getChannelLogoByTypeId(w){let at;switch(w){case c.x.Tokopedia:at=r.TOKOPEDIA;break;case c.x.ShopeeV2:at=r.SHOOPE;break;case c.x.WooCommerce:at=r.WOOCOMMERCE;break;case c.x.Lazada:at=r.LAZADA;break;case c.x.Tiktok:at=r.TIKTOK;break;case c.x.KalCare:at=r.KALCARE}return at}static getDaysDiff(w,at){return(at.getTime()-w.getTime())/864e5}static addDays(w,at){const v=new Date(Number(w));return v.setDate(w.getDate()-at),v}static isValidDate(w){return w instanceof Date&&!isNaN(w)}static getImageInfo(w){return new Promise((at,v)=>{let y=new Image;y.src=w,y.decode().then(()=>{at({img:w,height:y.height,width:y.width})}).catch(()=>{v(new Error(`Image load error for ${w}`))})})}static formatTitleForFromDate(w,at){let v="dd MMM";return w.getMonth()==at.getMonth()&&(v="dd"),w.getFullYear()!=at.getFullYear()&&(v="dd MMM yyyy"),v}}return E.GuidEMpty="00000000-0000-0000-0000-000000000000",E.MinDate="0001-01-01T00:00:00",E})()},9694:(Tt,ft,l)=>{l.d(ft,{x:()=>r});var r=(()=>{return(c=r||(r={}))[c.Shopee=0]="Shopee",c[c.Tokopedia=1]="Tokopedia",c[c.WooCommerce=2]="WooCommerce",c[c.None=3]="None",c[c.KalCare=4]="KalCare",c[c.ShopeeV2=5]="ShopeeV2",c[c.Tiktok=6]="Tiktok",c[c.Lazada=7]="Lazada",r;var c})()},8063:(Tt,ft,l)=>{l.d(ft,{a:()=>n});var r=l(4650),c=l(8252);let n=(()=>{class E{constructor(w){this.router=w}canActivate(w,at){let v=JSON.parse(window.localStorage.getItem("user")),y=new Date;return null!=v&&y<new Date(v.Token.expiredAt)||(this.router.navigate([""]),!1)}}return E.\u0275fac=function(w){return new(w||E)(r.LFG(c.F0))},E.\u0275prov=r.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},9568:(Tt,ft,l)=>{l.d(ft,{T:()=>w});var r=l(4004),c=l(3154),n=l(9694),E=l(4650),nt=l(5421);let w=(()=>{class at{constructor(y){this.db=y,this.DATABASE="Categories"}saveCategoriesByChannelType(y,L){let et=this.getKey(L);return this.db.add(this.DATABASE,y,et).pipe((0,r.U)(B=>y))}getCategoriesByChannelType(y){let L=this.getKey(y);return this.db.getByKey(this.DATABASE,L)}getKey(y){let L="";switch(y){case n.x.Lazada:L="Lazada";break;case n.x.Tokopedia:L="Tokopedia"}return L}clearDatabase(){this.db.clear(this.DATABASE)}getHostName(){if(c.g.IsEmpty(this.hostName)){const y=localStorage.getItem("Authorization");this.hostName=JSON.parse(y)?.Host}return this.hostName}}return at.\u0275fac=function(y){return new(y||at)(E.LFG(nt.ys))},at.\u0275prov=E.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})()},6989:(Tt,ft,l)=>{l.d(ft,{g:()=>j});var s,r=l(1135),c=(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])},function(e,t){function a(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}),n=function(s){function e(t,a){var u=this,k=this.constructor.prototype;return(u=s.call(this,t)||this).statusCode=a,u.__proto__=k,u}return c(e,s),e}(Error),E=function(s){function e(t){void 0===t&&(t="A timeout occurred.");var d=this,u=this.constructor.prototype;return(d=s.call(this,t)||this).__proto__=u,d}return c(e,s),e}(Error),nt=function(s){function e(t){void 0===t&&(t="An abort occurred.");var d=this,u=this.constructor.prototype;return(d=s.call(this,t)||this).__proto__=u,d}return c(e,s),e}(Error),w=Object.assign||function(s){for(var e,t=1,a=arguments.length;t<a;t++)for(var d in e=arguments[t])Object.prototype.hasOwnProperty.call(e,d)&&(s[d]=e[d]);return s},at=function s(e,t,a){this.statusCode=e,this.statusText=t,this.content=a},v=function(){function s(){}return s.prototype.get=function(e,t){return this.send(w({},t,{method:"GET",url:e}))},s.prototype.post=function(e,t){return this.send(w({},t,{method:"POST",url:e}))},s.prototype.delete=function(e,t){return this.send(w({},t,{method:"DELETE",url:e}))},s.prototype.getCookieString=function(e){return""},s}(),y=(()=>(function(s){s[s.Trace=0]="Trace",s[s.Debug=1]="Debug",s[s.Information=2]="Information",s[s.Warning=3]="Warning",s[s.Error=4]="Error",s[s.Critical=5]="Critical",s[s.None=6]="None"}(y||(y={})),y))(),L=function(){function s(){}return s.prototype.log=function(e,t){},s.instance=new s,s}(),T=function(){function s(){}return s.isRequired=function(e,t){if(null==e)throw new Error("The '"+t+"' argument is required.")},s.isIn=function(e,t,a){if(!(e in t))throw new Error("Unknown "+a+" value: "+e+".")},s}(),F=function(){function s(){}return Object.defineProperty(s,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(s,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(s,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),s}();function W(s,e){var t="";return Q(s)?(t="Binary data of length "+s.byteLength,e&&(t+=". Content: '"+function K(s){var e=new Uint8Array(s),t="";return e.forEach(function(a){t+="0x"+(a<16?"0":"")+a.toString(16)+" "}),t.substr(0,t.length-1)}(s)+"'")):"string"==typeof s&&(t="String data of length "+s.length,e&&(t+=". Content: '"+s+"'")),t}function Q(s){return s&&typeof ArrayBuffer<"u"&&(s instanceof ArrayBuffer||s.constructor&&"ArrayBuffer"===s.constructor.name)}function ht(s,e,t,a,d,u,k){return function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,[])).next())})}(this,0,void 0,function(){var G,M,f,g,Y;return function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}}(this,function(pt){switch(pt.label){case 0:return d?[4,d()]:[3,2];case 1:(f=pt.sent())&&((G={}).Authorization="Bearer "+f,M=G),pt.label=2;case 2:return s.log(y.Trace,"("+e+" transport) sending data. "+W(u,k)+"."),g=Q(u)?"arraybuffer":"text",[4,t.post(a,{content:u,headers:M,responseType:g})];case 3:return Y=pt.sent(),s.log(y.Trace,"("+e+" transport) request complete. Response status: "+Y.statusCode+"."),[2]}})})}var x,ut=function(){function s(e,t){this.subject=e,this.observer=t}return s.prototype.dispose=function(){var e=this.subject.observers.indexOf(this.observer);e>-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch(function(t){})},s}(),Z=function(){function s(e){this.minimumLogLevel=e,this.outputConsole=console}return s.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case y.Critical:case y.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+y[e]+": "+t);break;case y.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+y[e]+": "+t);break;case y.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+y[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+y[e]+": "+t)}},s}(),$=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){function a(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}}(),_=Object.assign||function(s){for(var e,t=1,a=arguments.length;t<a;t++)for(var d in e=arguments[t])Object.prototype.hasOwnProperty.call(e,d)&&(s[d]=e[d]);return s};if(typeof XMLHttpRequest>"u"){var b=require;x=b("request")}var O=function(s){function e(t){var a=s.call(this)||this;if(typeof x>"u")throw new Error("The 'request' module could not be loaded.");return a.logger=t,a.cookieJar=x.jar(),a.request=x.defaults({jar:a.cookieJar}),a}return $(e,s),e.prototype.send=function(t){var a=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new nt):new Promise(function(d,u){var k;k=Q(t.content)?Buffer.from(t.content):t.content||"";var G=a.request(t.url,{body:k,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:_({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},function(M,f,g){if(t.abortSignal&&(t.abortSignal.onabort=null),M)return"ETIMEDOUT"===M.code&&(a.logger.log(y.Warning,"Timeout from HTTP request."),u(new E)),a.logger.log(y.Warning,"Error from HTTP request. "+M),void u(M);f.statusCode>=200&&f.statusCode<300?d(new at(f.statusCode,f.statusMessage||"",g)):u(new n(f.statusMessage||"",f.statusCode||0))});t.abortSignal&&(t.abortSignal.onabort=function(){G.abort(),u(new nt)})})},e.prototype.getCookieString=function(t){return this.cookieJar.getCookieString(t)},e}(v),st=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){function a(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}}(),vt=function(s){function e(t){var a=s.call(this)||this;return a.logger=t,a}return st(e,s),e.prototype.send=function(t){var a=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new nt):t.method?t.url?new Promise(function(d,u){var k=new XMLHttpRequest;k.open(t.method,t.url,!0),k.withCredentials=!0,k.setRequestHeader("X-Requested-With","XMLHttpRequest"),k.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var G=t.headers;G&&Object.keys(G).forEach(function(M){k.setRequestHeader(M,G[M])}),t.responseType&&(k.responseType=t.responseType),t.abortSignal&&(t.abortSignal.onabort=function(){k.abort(),u(new nt)}),t.timeout&&(k.timeout=t.timeout),k.onload=function(){t.abortSignal&&(t.abortSignal.onabort=null),k.status>=200&&k.status<300?d(new at(k.status,k.statusText,k.response||k.responseText)):u(new n(k.statusText,k.status))},k.onerror=function(){a.logger.log(y.Warning,"Error from HTTP request. "+k.status+": "+k.statusText+"."),u(new n(k.statusText,k.status))},k.ontimeout=function(){a.logger.log(y.Warning,"Timeout from HTTP request."),u(new E)},k.send(t.content||"")}):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e}(v),gt=function(){var s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var a in t)t.hasOwnProperty(a)&&(e[a]=t[a])};return function(e,t){function a(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a)}}(),wt=function(s){function e(t){var a=s.call(this)||this;return a.httpClient=typeof XMLHttpRequest<"u"?new vt(t):new O(t),a}return gt(e,s),e.prototype.send=function(t){return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new nt):t.method?t.url?this.httpClient.send(t):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},e.prototype.getCookieString=function(t){return this.httpClient.getCookieString(t)},e}(v),bt=function(){function s(){}return s.write=function(e){return""+e+s.RecordSeparator},s.parse=function(e){if(e[e.length-1]!==s.RecordSeparator)throw new Error("Message is incomplete.");var t=e.split(s.RecordSeparator);return t.pop(),t},s.RecordSeparatorCode=30,s.RecordSeparator=String.fromCharCode(s.RecordSeparatorCode),s}(),mt=function(){function s(){}return s.prototype.writeHandshakeRequest=function(e){return bt.write(JSON.stringify(e))},s.prototype.parseHandshakeResponse=function(e){var a,d;if(Q(e)||typeof Buffer<"u"&&e instanceof Buffer){var u=new Uint8Array(e);if(-1===(k=u.indexOf(bt.RecordSeparatorCode)))throw new Error("Message is incomplete.");var G=k+1;a=String.fromCharCode.apply(null,u.slice(0,G)),d=u.byteLength>G?u.slice(G).buffer:null}else{var k,M=e;if(-1===(k=M.indexOf(bt.RecordSeparator)))throw new Error("Message is incomplete.");a=M.substring(0,G=k+1),d=M.length>G?M.substring(G):null}var f=bt.parse(a),g=JSON.parse(f[0]);if(g.type)throw new Error("Expected a handshake response from the server.");return[d,g]},s}(),ct=(()=>(function(s){s[s.Invocation=1]="Invocation",s[s.StreamItem=2]="StreamItem",s[s.Completion=3]="Completion",s[s.StreamInvocation=4]="StreamInvocation",s[s.CancelInvocation=5]="CancelInvocation",s[s.Ping=6]="Ping",s[s.Close=7]="Close"}(ct||(ct={})),ct))(),z=function(){function s(){this.observers=[]}return s.prototype.next=function(e){for(var t=0,a=this.observers;t<a.length;t++)a[t].next(e)},s.prototype.error=function(e){for(var t=0,a=this.observers;t<a.length;t++){var d=a[t];d.error&&d.error(e)}},s.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var a=t[e];a.complete&&a.complete()}},s.prototype.subscribe=function(e){return this.observers.push(e),new ut(this,e)},s}(),J=function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,e||[])).next())})},dt=function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},X=(()=>(function(s){s.Disconnected="Disconnected",s.Connecting="Connecting",s.Connected="Connected",s.Disconnecting="Disconnecting",s.Reconnecting="Reconnecting"}(X||(X={})),X))(),Mt=function(){function s(e,t,a,d){var u=this;this.nextKeepAlive=0,T.isRequired(e,"connection"),T.isRequired(t,"logger"),T.isRequired(a,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=a,this.connection=e,this.reconnectPolicy=d,this.handshakeProtocol=new mt,this.connection.onreceive=function(k){return u.processIncomingData(k)},this.connection.onclose=function(k){return u.connectionClosed(k)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=X.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:ct.Ping})}return s.create=function(e,t,a,d){return new s(e,t,a,d)},Object.defineProperty(s.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==X.Disconnected&&this.connectionState!==X.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),s.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},s.prototype.startWithStateTransitions=function(){return J(this,void 0,void 0,function(){var e;return dt(this,function(t){switch(t.label){case 0:if(this.connectionState!==X.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=X.Connecting,this.logger.log(y.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=X.Connected,this.connectionStarted=!0,this.logger.log(y.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=X.Disconnected,this.logger.log(y.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}})})},s.prototype.startInternal=function(){return J(this,void 0,void 0,function(){var e,t,a,d=this;return dt(this,function(u){switch(u.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise(function(k,G){d.handshakeResolver=k,d.handshakeRejecter=G}),[4,this.connection.start(this.protocol.transferFormat)];case 1:u.sent(),u.label=2;case 2:return u.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(y.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return u.sent(),this.logger.log(y.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(u.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return a=u.sent(),this.logger.log(y.Debug,"Hub handshake failed with error '"+a+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(a)];case 6:throw u.sent(),a;case 7:return[2]}})})},s.prototype.stop=function(){return J(this,void 0,void 0,function(){var e;return dt(this,function(a){switch(a.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:a.sent(),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,e];case 3:case 4:return a.sent(),[3,5];case 5:return[2]}})})},s.prototype.stopInternal=function(e){return this.connectionState===X.Disconnected?(this.logger.log(y.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===X.Disconnecting?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=X.Disconnecting,this.logger.log(y.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(y.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=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},s.prototype.stream=function(e){for(var t=this,a=[],d=1;d<arguments.length;d++)a[d-1]=arguments[d];var f,u=this.replaceStreamingParams(a),k=u[0],G=u[1],M=this.createStreamInvocation(e,a,G),g=new z;return g.cancelCallback=function(){var Y=t.createCancelInvocation(M.invocationId);return delete t.callbacks[M.invocationId],f.then(function(){return t.sendWithProtocol(Y)})},this.callbacks[M.invocationId]=function(Y,pt){pt?g.error(pt):Y&&(Y.type===ct.Completion?Y.error?g.error(new Error(Y.error)):g.complete():g.next(Y.item))},f=this.sendWithProtocol(M).catch(function(Y){g.error(Y),delete t.callbacks[M.invocationId]}),this.launchStreams(k,f),g},s.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},s.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},s.prototype.send=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];var d=this.replaceStreamingParams(t),u=d[0],k=d[1],G=this.sendWithProtocol(this.createInvocation(e,t,!0,k));return this.launchStreams(u,G),G},s.prototype.invoke=function(e){for(var t=this,a=[],d=1;d<arguments.length;d++)a[d-1]=arguments[d];var u=this.replaceStreamingParams(a),k=u[0],G=u[1],M=this.createInvocation(e,a,!1,G),f=new Promise(function(g,Y){t.callbacks[M.invocationId]=function(Ct,Pt){Pt?Y(Pt):Ct&&(Ct.type===ct.Completion?Ct.error?Y(new Error(Ct.error)):g(Ct.result):Y(new Error("Unexpected message type: "+Ct.type)))};var pt=t.sendWithProtocol(M).catch(function(Ct){Y(Ct),delete t.callbacks[M.invocationId]});t.launchStreams(k,pt)});return f},s.prototype.on=function(e,t){!e||!t||(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},s.prototype.off=function(e,t){if(e){e=e.toLowerCase();var a=this.methods[e];if(a)if(t){var d=a.indexOf(t);-1!==d&&(a.splice(d,1),0===a.length&&delete this.methods[e])}else delete this.methods[e]}},s.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},s.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},s.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},s.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var a=0,d=this.protocol.parseMessages(e,this.logger);a<d.length;a++){var u=d[a];switch(u.type){case ct.Invocation:this.invokeClientMethod(u);break;case ct.StreamItem:case ct.Completion:var k=this.callbacks[u.invocationId];k&&(u.type===ct.Completion&&delete this.callbacks[u.invocationId],k(u));break;case ct.Ping:break;case ct.Close:this.logger.log(y.Information,"Close message received from server.");var G=u.error?new Error("Server returned an error on close: "+u.error):void 0;!0===u.allowReconnect?this.connection.stop(G):this.stopPromise=this.stopInternal(G);break;default:this.logger.log(y.Warning,"Invalid message type: "+u.type+".")}}this.resetTimeoutPeriod()},s.prototype.processHandshakeResponse=function(e){var t,a,d,u;try{d=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],a=t[1]}catch(G){this.logger.log(y.Error,u="Error parsing handshake response: "+G);var k=new Error(u);throw this.handshakeRejecter(k),k}if(a.error)throw this.logger.log(y.Error,u="Server returned handshake error: "+a.error),k=new Error(u),this.handshakeRejecter(k),k;return this.logger.log(y.Debug,"Server handshake complete."),this.handshakeResolver(),d},s.prototype.resetKeepAliveInterval=function(){this.connection.features.inherentKeepAlive||(this.nextKeepAlive=(new Date).getTime()+this.keepAliveIntervalInMilliseconds,this.cleanupPingTimer())},s.prototype.resetTimeoutPeriod=function(){var e=this;if(!(this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout(function(){return e.serverTimeout()},this.serverTimeoutInMilliseconds),void 0!==this.pingServerHandle))){var t=this.nextKeepAlive-(new Date).getTime();t<0&&(t=0),this.pingServerHandle=setTimeout(function(){return J(e,void 0,void 0,function(){return dt(this,function(d){switch(d.label){case 0:if(this.connectionState!==X.Connected)return[3,4];d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return d.sent(),[3,4];case 3:return d.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}})})},t)}},s.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},s.prototype.invokeClientMethod=function(e){var t=this,a=this.methods[e.target.toLowerCase()];if(a){try{a.forEach(function(u){return u.apply(t,e.arguments)})}catch(u){this.logger.log(y.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+u+"'.")}if(e.invocationId){var d="Server requested a response, which is not supported in this version of the client.";this.logger.log(y.Error,d),this.stopPromise=this.stopInternal(new Error(d))}}else this.logger.log(y.Warning,"No client method with the name '"+e.target+"' found.")},s.prototype.connectionClosed=function(e){this.logger.log(y.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===X.Disconnecting?this.completeClose(e):this.connectionState===X.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===X.Connected&&this.completeClose(e)},s.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=X.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach(function(a){return a.apply(t,[e])})}catch(a){this.logger.log(y.Error,"An onclose callback called with error '"+e+"' threw error '"+a+"'.")}}},s.prototype.reconnect=function(e){return J(this,void 0,void 0,function(){var t,a,d,u,k,G=this;return dt(this,function(M){switch(M.label){case 0:if(t=Date.now(),a=0,d=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(u=this.getNextRetryDelay(a++,0,d)))return this.logger.log(y.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=X.Reconnecting,this.logger.log(y.Information,e?"Connection reconnecting because of error '"+e+"'.":"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach(function(f){return f.apply(G,[e])})}catch(f){this.logger.log(y.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+f+"'.")}if(this.connectionState!==X.Reconnecting)return this.logger.log(y.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}M.label=1;case 1:return null===u?[3,7]:(this.logger.log(y.Information,"Reconnect attempt number "+a+" will start in "+u+" ms."),[4,new Promise(function(f){G.reconnectDelayHandle=setTimeout(f,u)})]);case 2:if(M.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==X.Reconnecting)return this.logger.log(y.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];M.label=3;case 3:return M.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(M.sent(),this.connectionState=X.Connected,this.logger.log(y.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach(function(f){return f.apply(G,[G.connection.connectionId])})}catch(f){this.logger.log(y.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+f+"'.")}return[2];case 5:return k=M.sent(),this.logger.log(y.Information,"Reconnect attempt failed because of error '"+k+"'."),this.connectionState!==X.Reconnecting?(this.logger.log(y.Debug,"Connection moved to the '"+this.connectionState+"' from the reconnecting state during reconnect attempt. Done reconnecting."),this.connectionState===X.Disconnecting&&this.completeClose(),[2]):(d=k instanceof Error?k:new Error(k.toString()),u=this.getNextRetryDelay(a++,Date.now()-t,d),[3,6]);case 6:return[3,1];case 7:return this.logger.log(y.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+a+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}})})},s.prototype.getNextRetryDelay=function(e,t,a){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:a})}catch(d){return this.logger.log(y.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+d+"'."),null}},s.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach(function(a){(0,t[a])(null,e)})},s.prototype.cleanupPingTimer=function(){this.pingServerHandle&&(clearTimeout(this.pingServerHandle),this.pingServerHandle=void 0)},s.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},s.prototype.createInvocation=function(e,t,a,d){if(a)return{arguments:t,streamIds:d,target:e,type:ct.Invocation};var u=this.invocationId;return this.invocationId++,{arguments:t,invocationId:u.toString(),streamIds:d,target:e,type:ct.Invocation}},s.prototype.launchStreams=function(e,t){var a=this;if(0!==e.length){t||(t=Promise.resolve());var d=function(k){e[k].subscribe({complete:function(){t=t.then(function(){return a.sendWithProtocol(a.createCompletionMessage(k))})},error:function(G){var M;M=G instanceof Error?G.message:G&&G.toString?G.toString():"Unknown error",t=t.then(function(){return a.sendWithProtocol(a.createCompletionMessage(k,M))})},next:function(G){t=t.then(function(){return a.sendWithProtocol(a.createStreamItemMessage(k,G))})}})};for(var u in e)d(u)}},s.prototype.replaceStreamingParams=function(e){for(var t=[],a=[],d=0;d<e.length;d++){var u=e[d];if(this.isObservable(u)){var k=this.invocationId;this.invocationId++,t[k]=u,a.push(k.toString()),e.splice(d,1)}}return[t,a]},s.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},s.prototype.createStreamInvocation=function(e,t,a){var d=this.invocationId;return this.invocationId++,{arguments:t,invocationId:d.toString(),streamIds:a,target:e,type:ct.StreamInvocation}},s.prototype.createCancelInvocation=function(e){return{invocationId:e,type:ct.CancelInvocation}},s.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:ct.StreamItem}},s.prototype.createCompletionMessage=function(e,t,a){return t?{error:t,invocationId:e,type:ct.Completion}:{invocationId:e,result:a,type:ct.Completion}},s}(),lt=[0,2e3,1e4,3e4,null],St=function(){function s(e){this.retryDelays=void 0!==e?e.concat([null]):lt}return s.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},s}(),I=(()=>(function(s){s[s.None=0]="None",s[s.WebSockets=1]="WebSockets",s[s.ServerSentEvents=2]="ServerSentEvents",s[s.LongPolling=4]="LongPolling"}(I||(I={})),I))(),H=(()=>(function(s){s[s.Text=1]="Text",s[s.Binary=2]="Binary"}(H||(H={})),H))(),R=function(){function s(){this.isAborted=!1,this.onabort=null}return s.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(s.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(s.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),s}(),ot=function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,e||[])).next())})},U=function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},it=function(){function s(e,t,a,d){this.httpClient=e,this.accessTokenFactory=t,this.logger=a,this.pollAbort=new R,this.logMessageContent=d,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(s.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),s.prototype.connect=function(e,t){return ot(this,void 0,void 0,function(){var a,d,u,k;return U(this,function(G){switch(G.label){case 0:if(T.isRequired(e,"url"),T.isRequired(t,"transferFormat"),T.isIn(t,H,"transferFormat"),this.url=e,this.logger.log(y.Trace,"(LongPolling transport) Connecting."),t===H.Binary&&typeof XMLHttpRequest<"u"&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return a={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===H.Binary&&(a.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return d=G.sent(),this.updateHeaderToken(a,d),u=e+"&_="+Date.now(),this.logger.log(y.Trace,"(LongPolling transport) polling: "+u+"."),[4,this.httpClient.get(u,a)];case 2:return 200!==(k=G.sent()).statusCode?(this.logger.log(y.Error,"(LongPolling transport) Unexpected response code: "+k.statusCode+"."),this.closeError=new n(k.statusText||"",k.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,a),[2]}})})},s.prototype.getAccessToken=function(){return ot(this,void 0,void 0,function(){return U(this,function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}})})},s.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},s.prototype.poll=function(e,t){return ot(this,void 0,void 0,function(){var a,d,u,k;return U(this,function(G){switch(G.label){case 0:G.trys.push([0,,8,9]),G.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:a=G.sent(),this.updateHeaderToken(t,a),G.label=3;case 3:return G.trys.push([3,5,,6]),d=e+"&_="+Date.now(),this.logger.log(y.Trace,"(LongPolling transport) polling: "+d+"."),[4,this.httpClient.get(d,t)];case 4:return 204===(u=G.sent()).statusCode?(this.logger.log(y.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==u.statusCode?(this.logger.log(y.Error,"(LongPolling transport) Unexpected response code: "+u.statusCode+"."),this.closeError=new n(u.statusText||"",u.statusCode),this.running=!1):u.content?(this.logger.log(y.Trace,"(LongPolling transport) data received. "+W(u.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(u.content)):this.logger.log(y.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return k=G.sent(),this.running?k instanceof E?this.logger.log(y.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=k,this.running=!1):this.logger.log(y.Trace,"(LongPolling transport) Poll errored after shutdown: "+k.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(y.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}})})},s.prototype.send=function(e){return ot(this,void 0,void 0,function(){return U(this,function(t){return this.running?[2,ht(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},s.prototype.stop=function(){return ot(this,void 0,void 0,function(){var e,t;return U(this,function(a){switch(a.label){case 0:this.logger.log(y.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),a.label=1;case 1:return a.trys.push([1,,5,6]),[4,this.receiving];case 2:return a.sent(),this.logger.log(y.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=a.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return a.sent(),this.logger.log(y.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(y.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}})})},s.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(y.Trace,e),this.onclose(this.closeError)}},s}(),kt=function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,e||[])).next())})},It=function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},Lt=function(){function s(e,t,a,d,u){this.httpClient=e,this.accessTokenFactory=t,this.logger=a,this.logMessageContent=d,this.eventSourceConstructor=u,this.onreceive=null,this.onclose=null}return s.prototype.connect=function(e,t){return kt(this,void 0,void 0,function(){var a,d=this;return It(this,function(u){switch(u.label){case 0:return T.isRequired(e,"url"),T.isRequired(t,"transferFormat"),T.isIn(t,H,"transferFormat"),this.logger.log(y.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(a=u.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(a)),u.label=2;case 2:return[2,new Promise(function(k,G){var M=!1;if(t===H.Text){var f;if(F.isBrowser||F.isWebWorker)f=new d.eventSourceConstructor(e,{withCredentials:!0});else{var g=d.httpClient.getCookieString(e);f=new d.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:g}})}try{f.onmessage=function(Y){if(d.onreceive)try{d.logger.log(y.Trace,"(SSE transport) data received. "+W(Y.data,d.logMessageContent)+"."),d.onreceive(Y.data)}catch(pt){return void d.close(pt)}},f.onerror=function(Y){var pt=new Error(Y.data||"Error occurred");M?d.close(pt):G(pt)},f.onopen=function(){d.logger.log(y.Information,"SSE connected to "+d.url),d.eventSource=f,M=!0,k()}}catch(Y){return void G(Y)}}else G(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))})]}})})},s.prototype.send=function(e){return kt(this,void 0,void 0,function(){return It(this,function(t){return this.eventSource?[2,ht(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]})})},s.prototype.stop=function(){return this.close(),Promise.resolve()},s.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},s}(),Vt=function(){function s(e,t,a,d,u){this.logger=a,this.accessTokenFactory=t,this.logMessageContent=d,this.webSocketConstructor=u,this.httpClient=e,this.onreceive=null,this.onclose=null}return s.prototype.connect=function(e,t){return function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,[])).next())})}(this,0,void 0,function(){var a,d=this;return function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}}(this,function(u){switch(u.label){case 0:return T.isRequired(e,"url"),T.isRequired(t,"transferFormat"),T.isIn(t,H,"transferFormat"),this.logger.log(y.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(a=u.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(a)),u.label=2;case 2:return[2,new Promise(function(k,G){e=e.replace(/^http/,"ws");var M,f=d.httpClient.getCookieString(e),g=!1;F.isNode&&f&&(M=new d.webSocketConstructor(e,void 0,{headers:{Cookie:""+f}})),M||(M=new d.webSocketConstructor(e)),t===H.Binary&&(M.binaryType="arraybuffer"),M.onopen=function(Y){d.logger.log(y.Information,"WebSocket connected to "+e+"."),d.webSocket=M,g=!0,k()},M.onerror=function(Y){var pt;pt=typeof ErrorEvent<"u"&&Y instanceof ErrorEvent?Y.error:new Error("There was an error with the transport."),G(pt)},M.onmessage=function(Y){d.logger.log(y.Trace,"(WebSockets transport) data received. "+W(Y.data,d.logMessageContent)+"."),d.onreceive&&d.onreceive(Y.data)},M.onclose=function(Y){if(g)d.close(Y);else{var pt;pt=typeof ErrorEvent<"u"&&Y instanceof ErrorEvent?Y.error:new Error("There was an error with the transport."),G(pt)}}})]}})})},s.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(y.Trace,"(WebSockets transport) sending data. "+W(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},s.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},s.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(y.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},s}(),Et=function(s,e,t,a){return new(t||(t=Promise))(function(d,u){function k(f){try{M(a.next(f))}catch(g){u(g)}}function G(f){try{M(a.throw(f))}catch(g){u(g)}}function M(f){f.done?d(f.value):new t(function(g){g(f.value)}).then(k,G)}M((a=a.apply(s,e||[])).next())})},S=function(s,e){var a,d,u,k,t={label:0,sent:function(){if(1&u[0])throw u[1];return u[1]},trys:[],ops:[]};return k={next:G(0),throw:G(1),return:G(2)},"function"==typeof Symbol&&(k[Symbol.iterator]=function(){return this}),k;function G(f){return function(g){return function M(f){if(a)throw new TypeError("Generator is already executing.");for(;t;)try{if(a=1,d&&(u=2&f[0]?d.return:f[0]?d.throw||((u=d.return)&&u.call(d),0):d.next)&&!(u=u.call(d,f[1])).done)return u;switch(d=0,u&&(f=[2&f[0],u.value]),f[0]){case 0:case 1:u=f;break;case 4:return t.label++,{value:f[1],done:!1};case 5:t.label++,d=f[1],f=[0];continue;case 7:f=t.ops.pop(),t.trys.pop();continue;default:if(!(u=(u=t.trys).length>0&&u[u.length-1])&&(6===f[0]||2===f[0])){t=0;continue}if(3===f[0]&&(!u||f[1]>u[0]&&f[1]<u[3])){t.label=f[1];break}if(6===f[0]&&t.label<u[1]){t.label=u[1],u=f;break}if(u&&t.label<u[2]){t.label=u[2],t.ops.push(f);break}u[2]&&t.ops.pop(),t.trys.pop();continue}f=e.call(s,t)}catch(g){f=[6,g],d=0}finally{a=u=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([f,g])}}},o=null,i=null;if(F.isNode){var h=require;o=h("ws"),i=h("eventsource")}var p=function(){function s(e,t){void 0===t&&(t={}),this.stopPromiseResolver=function(){},this.features={},this.negotiateVersion=1,T.isRequired(e,"url"),this.logger=function rt(s){return void 0===s?new Z(y.Information):null===s?L.instance:s.log?s:new Z(s)}(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,!F.isNode&&typeof WebSocket<"u"&&!t.WebSocket?t.WebSocket=WebSocket:F.isNode&&!t.WebSocket&&o&&(t.WebSocket=o),!F.isNode&&typeof EventSource<"u"&&!t.EventSource?t.EventSource=EventSource:F.isNode&&!t.EventSource&&typeof i<"u"&&(t.EventSource=i),this.httpClient=t.httpClient||new wt(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return s.prototype.start=function(e){return Et(this,void 0,void 0,function(){var t;return S(this,function(a){switch(a.label){case 0:return T.isIn(e=e||H.Binary,H,"transferFormat"),this.logger.log(y.Debug,"Starting connection with transfer format '"+H[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return a.sent(),"Disconnecting"!==this.connectionState?[3,3]:(this.logger.log(y.Error,t="Failed to start the HttpConnection before stop() was called."),[4,this.stopPromise]);case 2:return a.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return this.logger.log(y.Error,t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!"),[2,Promise.reject(new Error(t))];a.label=4;case 4:return this.connectionStarted=!0,[2]}})})},s.prototype.send=function(e){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 P(this.transport)),this.sendQueue.send(e))},s.prototype.stop=function(e){return Et(this,void 0,void 0,function(){var t=this;return S(this,function(a){switch(a.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(y.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise(function(d){t.stopPromiseResolver=d}),[4,this.stopInternal(e)]);case 1:return a.sent(),[4,this.stopPromise];case 2:return a.sent(),[2]}})})},s.prototype.stopInternal=function(e){return Et(this,void 0,void 0,function(){var a;return S(this,function(d){switch(d.label){case 0:this.stopError=e,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:case 3:return d.sent(),[3,4];case 4:if(!this.transport)return[3,9];d.label=5;case 5:return d.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return d.sent(),[3,8];case 7:return a=d.sent(),this.logger.log(y.Error,"HttpConnection.transport.stop() threw error '"+a+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(y.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),d.label=10;case 10:return[2]}})})},s.prototype.startInternal=function(e){return Et(this,void 0,void 0,function(){var t,a,d,u,k,G;return S(this,function(M){switch(M.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,M.label=1;case 1:return M.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==I.WebSockets?[3,3]:(this.transport=this.constructTransport(I.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return M.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:a=null,d=0,u=function(){var f;return S(this,function(g){switch(g.label){case 0:return[4,k.getNegotiationResponse(t)];case 1:if(a=g.sent(),"Disconnecting"===k.connectionState||"Disconnected"===k.connectionState)throw new Error("The connection was stopped during negotiation.");if(a.error)throw new Error(a.error);if(a.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.");return a.url&&(t=a.url),a.accessToken&&(f=a.accessToken,k.accessTokenFactory=function(){return f}),d++,[2]}})},k=this,M.label=6;case 6:return[5,u()];case 7:M.sent(),M.label=8;case 8:if(a.url&&d<100)return[3,6];M.label=9;case 9:if(100===d&&a.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,a,e)];case 10:M.sent(),M.label=11;case 11:return this.transport instanceof it&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(y.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return G=M.sent(),this.logger.log(y.Error,"Failed to start the connection: "+G),this.connectionState="Disconnected",this.transport=void 0,this.stopPromiseResolver(),[2,Promise.reject(G)];case 13:return[2]}})})},s.prototype.getNegotiationResponse=function(e){return Et(this,void 0,void 0,function(){var t,a,d,u,k,G,M;return S(this,function(f){switch(f.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(d=f.sent())&&((t={}).Authorization="Bearer "+d,a=t),f.label=2;case 2:u=this.resolveNegotiateUrl(e),this.logger.log(y.Debug,"Sending negotiation request: "+u+"."),f.label=3;case 3:return f.trys.push([3,5,,6]),[4,this.httpClient.post(u,{content:"",headers:a})];case 4:return 200!==(k=f.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+k.statusCode))]:((!(G=JSON.parse(k.content)).negotiateVersion||G.negotiateVersion<1)&&(G.connectionToken=G.connectionId),[2,G]);case 5:return M=f.sent(),this.logger.log(y.Error,"Failed to complete negotiation with the server: "+M),[2,Promise.reject(M)];case 6:return[2]}})})},s.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},s.prototype.createTransport=function(e,t,a,d){return Et(this,void 0,void 0,function(){var u,k,M,f,g,Y,pt,Ct,Pt;return S(this,function(Bt){switch(Bt.label){case 0:return u=this.createConnectUrl(e,a.connectionToken),this.isITransport(t)?(this.logger.log(y.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(u,d)]):[3,2];case 1:return Bt.sent(),this.connectionId=a.connectionId,[2];case 2:k=[],M=a,f=0,g=a.availableTransports||[],Bt.label=3;case 3:return f<g.length?(pt=this.resolveTransportOrError(Y=g[f],t,d))instanceof Error?(k.push(Y.transport+" failed: "+pt),[3,12]):[3,4]:[3,13];case 4:if(!this.isITransport(pt))return[3,12];if(this.transport=pt,M)return[3,9];Bt.label=5;case 5:return Bt.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return M=Bt.sent(),[3,8];case 7:return Ct=Bt.sent(),[2,Promise.reject(Ct)];case 8:u=this.createConnectUrl(e,M.connectionToken),Bt.label=9;case 9:return Bt.trys.push([9,11,,12]),[4,this.startTransport(u,d)];case 10:return Bt.sent(),this.connectionId=M.connectionId,[2];case 11:return Pt=Bt.sent(),this.logger.log(y.Error,"Failed to start the transport '"+Y.transport+"': "+Pt),M=void 0,k.push(Y.transport+" failed: "+Pt),"Connecting "!==this.connectionState?(this.logger.log(y.Debug,"Failed to select transport before stop() was called."),[2,Promise.reject(new Error("Failed to select transport before stop() was called."))]):[3,12];case 12:return f++,[3,3];case 13:return k.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+k.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}})})},s.prototype.constructTransport=function(e){switch(e){case I.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Vt(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case I.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Lt(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case I.LongPolling:return new it(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},s.prototype.startTransport=function(e,t){var a=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(d){return a.stopConnection(d)},this.transport.connect(e,t)},s.prototype.resolveTransportOrError=function(e,t,a){var d=I[e.transport];if(null==d)return this.logger.log(y.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function D(s,e){return!s||0!=(e&s)}(t,d))return this.logger.log(y.Debug,"Skipping transport '"+I[d]+"' because it was disabled by the client."),new Error("'"+I[d]+"' is disabled by the client.");if(!(e.transferFormats.map(function(k){return H[k]}).indexOf(a)>=0))return this.logger.log(y.Debug,"Skipping transport '"+I[d]+"' because it does not support the requested transfer format '"+H[a]+"'."),new Error("'"+I[d]+"' does not support "+H[a]+".");if(d===I.WebSockets&&!this.options.WebSocket||d===I.ServerSentEvents&&!this.options.EventSource)return this.logger.log(y.Debug,"Skipping transport '"+I[d]+"' because it is not supported in your environment.'"),new Error("'"+I[d]+"' is not supported in your environment.");this.logger.log(y.Debug,"Selecting transport '"+I[d]+"'.");try{return this.constructTransport(d)}catch(k){return k}},s.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},s.prototype.stopConnection=function(e){var t=this;if(this.logger.log(y.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(y.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(y.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch(function(a){t.logger.log(y.Error,"TransportSendQueue.stop() threw error '"+a+"'.")}),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(a){this.logger.log(y.Error,"HttpConnection.onclose("+e+") threw error '"+a+"'.")}}}else this.logger.log(y.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(y.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},s.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!F.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(y.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},s.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),a=e.substring(0,-1===t?e.length:t);return"/"!==a[a.length-1]&&(a+="/"),a+="negotiate",-1===(a+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(a+=-1===t?"?":"&",a+="negotiateVersion="+this.negotiateVersion),a},s}(),P=function(){function s(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new tt,this.transportResult=new tt,this.sendLoopPromise=this.sendLoop()}return s.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new tt),this.transportResult.promise},s.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},s.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},s.prototype.sendLoop=function(){return Et(this,void 0,void 0,function(){var e,t,a;return S(this,function(d){switch(d.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(d.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new tt,e=this.transportResult,this.transportResult=void 0,t="string"==typeof this.buffer[0]?this.buffer.join(""):s.concatBuffers(this.buffer),this.buffer.length=0,d.label=2;case 2:return d.trys.push([2,4,,5]),[4,this.transport.send(t)];case 3:return d.sent(),e.resolve(),[3,5];case 4:return a=d.sent(),e.reject(a),[3,5];case 5:return[3,0];case 6:return[2]}})})},s.concatBuffers=function(e){for(var t=e.map(function(M){return M.byteLength}).reduce(function(M,f){return M+f}),a=new Uint8Array(t),d=0,u=0,k=e;u<k.length;u++){var G=k[u];a.set(new Uint8Array(G),d),d+=G.byteLength}return a},s}(),tt=function(){function s(){var e=this;this.promise=new Promise(function(t,a){var d;return e.resolver=(d=[t,a])[0],e.rejecter=d[1],d})}return s.prototype.resolve=function(){this.resolver()},s.prototype.reject=function(e){this.rejecter(e)},s}(),yt=function(){function s(){this.name="json",this.version=1,this.transferFormat=H.Text}return s.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=L.instance);for(var d=[],u=0,k=bt.parse(e);u<k.length;u++){var M=JSON.parse(k[u]);if("number"!=typeof M.type)throw new Error("Invalid payload.");switch(M.type){case ct.Invocation:this.isInvocationMessage(M);break;case ct.StreamItem:this.isStreamItemMessage(M);break;case ct.Completion:this.isCompletionMessage(M);break;case ct.Ping:case ct.Close:break;default:t.log(y.Information,"Unknown message type '"+M.type+"' ignored.");continue}d.push(M)}return d},s.prototype.writeMessage=function(e){return bt.write(JSON.stringify(e))},s.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},s.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},s.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},s.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},s}(),Dt=Object.assign||function(s){for(var e,t=1,a=arguments.length;t<a;t++)for(var d in e=arguments[t])Object.prototype.hasOwnProperty.call(e,d)&&(s[d]=e[d]);return s},xt={trace:y.Trace,debug:y.Debug,info:y.Information,information:y.Information,warn:y.Warning,warning:y.Warning,error:y.Error,critical:y.Critical,none:y.None},Rt=function(){function s(){}return s.prototype.configureLogging=function(e){if(T.isRequired(e,"logging"),function At(s){return void 0!==s.log}(e))this.logger=e;else if("string"==typeof e){var t=function Ot(s){var e=xt[s.toLowerCase()];if(typeof e<"u")return e;throw new Error("Unknown log level: "+s)}(e);this.logger=new Z(t)}else this.logger=new Z(e);return this},s.prototype.withUrl=function(e,t){return T.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=Dt({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},s.prototype.withHubProtocol=function(e){return T.isRequired(e,"protocol"),this.protocol=e,this},s.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return this.reconnectPolicy=e?Array.isArray(e)?new St(e):e:new St,this},s.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new p(this.url,e);return Mt.create(t,this.logger||L.instance,this.protocol||new yt,this.reconnectPolicy)},s}(),V=l(4650),A=l(8002),C=l(7185);let j=(()=>{class s{constructor(t,a){this.decodeTokenService=t,this.toastr=a,this.initNotifications(),this.parseToken=this.decodeTokenService.getParseToken(),this.buildConnection()}initNotifications(){let t=JSON.parse(localStorage.getItem("Notifications"));this._notifications=new r.X(t||[])}setNotification(t){const d=[...this._notifications.value,t];this.saveNotificationTotal(d),this._notifications.next(d)}saveNotificationTotal(t=[]){localStorage.setItem("Notifications",JSON.stringify(t))}getNotification(){return this._notifications.asObservable()}buildConnection(){this.hubConnection=(new Rt).withUrl("/MarketplaceHub").withAutomaticReconnect().configureLogging(y.Information).build(),this.startConnection(),this.onConnectionClose(),this.subscribeNotification()}connectToRegister(){this.hubConnection.invoke("SubscribeGroup",this.parseToken.POSAccountID)}startConnection(){this.hubConnection.start().then(()=>{this.connectToRegister()}).catch(t=>console.log("Error while starting connection: "+t))}onConnectionClose(){this.hubConnection.onclose(()=>{this.buildConnection()})}subscribeNotification(){this.hubConnection.on("Notification",t=>{let a=JSON.parse(t);this.setNotification(a),a.ID==this.parseToken.POSAccountID&&(200!=a.StatusCode?this.toastr.error(a.Message,a.Title,{enableHtml:!0}):this.toastr.success(a.Message,a.Title,{enableHtml:!0}))})}clearNotification(){localStorage.removeItem("Notifications"),this._notifications.next([])}}return s.\u0275fac=function(t){return new(t||s)(V.LFG(A.e),V.LFG(C._W))},s.\u0275prov=V.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})()},1589:(Tt,ft,l)=>{l.d(ft,{g:()=>n});var r=l(1135),c=l(4650);let n=(()=>{class E{constructor(){this._toggleState=new r.X(!1),this.toggleState$=this._toggleState.asObservable()}toggleSidebar(){this._toggleState.next(!this._toggleState.value)}}return E.\u0275fac=function(w){return new(w||E)},E.\u0275prov=c.Yz7({token:E,factory:E.\u0275fac,providedIn:"root"}),E})()},494:(Tt,ft,l)=>{l.d(ft,{n:()=>r});var r=(()=>{return(c=r||(r={})).Success="Success",c.Info="Info",c.Warning="Warning",c.Error="Error",r;var c})()},6779:(Tt,ft,l)=>{l.d(ft,{O:()=>c});var r=l(494);class c{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=r.n.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}}},6401:(Tt,ft,l)=>{l.d(ft,{M:()=>Q,d:()=>ht});var r=l(4650),c=l(6895),n=l(6779),E=l(494);function nt(rt,ut){if(1&rt){const Z=r.EpF();r.TgZ(0,"div",9),r.NdJ("click",function(){r.CHM(Z);const _=r.oxw();return r.KtG(_.onBack.emit())}),r.TgZ(1,"a",10),r._UZ(2,"i",11),r.qZA()()}}function w(rt,ut){if(1&rt){const Z=r.EpF();r.TgZ(0,"div",12)(1,"a",13),r.NdJ("click",function(){r.CHM(Z);const _=r.oxw();return r.KtG(_.onCancel.emit())}),r._UZ(2,"i",14),r.qZA()()}}function at(rt,ut){1&rt&&r.Hsn(0,2,["*ngIf","more"])}function v(rt,ut){if(1&rt){const Z=r.EpF();r.TgZ(0,"a",19),r.NdJ("click",function(){r.CHM(Z);const _=r.oxw(2);return r.KtG(_.more=!_.more)}),r._uU(1,"More"),r.qZA()}}function y(rt,ut){if(1&rt){const Z=r.EpF();r.TgZ(0,"a",20),r.NdJ("click",function(){r.CHM(Z);const _=r.oxw(2);return r.KtG(_.onCancel.emit())}),r._uU(1),r.qZA()}if(2&rt){const Z=r.oxw(2);r.xp6(1),r.hij(" ",Z.config.cancelText?Z.config.cancelText:"CANCEL","")}}function L(rt,ut){if(1&rt){const Z=r.EpF();r.TgZ(0,"button",21),r.NdJ("click",function(){r.CHM(Z);const _=r.oxw(2);return r.KtG(_.onOk.emit())})("keyup.F2",function(){r.CHM(Z);const _=r.oxw(2);return r.KtG(_.onOk.emit())}),r.qZA()}if(2&rt){const Z=r.oxw(2);r.Q6J("disabled",!Z.config.validated||!Z.dynamicValidated)("innerHTML",Z.config.okText?Z.config.okText:"OK",r.oJD)}}function et(rt,ut){if(1&rt&&(r.TgZ(0,"mat-dialog-actions",15),r.YNc(1,v,2,0,"a",16),r.Hsn(2,3),r.YNc(3,y,2,1,"a",17),r.YNc(4,L,1,2,"button",18),r.qZA()),2&rt){const Z=r.oxw();r.xp6(1),r.Q6J("ngIf",Z.config.showMoreButton),r.xp6(2),r.Q6J("ngIf",!Z.config.hideCancel),r.xp6(1),r.Q6J("ngIf",!Z.config.hideOk)}}const B=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],T=function(rt,ut){return{bodyScrollable:rt,hideScrollbar:ut}},F=function(rt){return{"mx-auto":rt}},W=function(rt,ut){return{"show-footer":rt,"p-0":ut}},K=["[header]","[content]","[more-content]","[footer]"];let Q=(()=>{class rt{constructor(){this.dynamicValidated=!0,this.onOk=new r.vpe,this.onCancel=new r.vpe,this.onClose=new r.vpe,this.onBack=new r.vpe,this.term="",this.more=!1}ngOnInit(){switch(null==this.config&&(this.config=new n.O),this.config.headerType){case E.n.Success:this.background="bg-success";break;case E.n.Warning:case E.n.Info:this.background="bg-warning";break;case E.n.Error:this.background="bg-danger";break;default:this.background=""}}onKeyup(Z){this.config.disableKeyup||("F2"==Z.code&&this.onOk.emit("F2"),("Enter"==Z.code||"NumpadEnter"==Z.code)&&this.onOk.emit("Enter"))}}return rt.\u0275fac=function(Z){return new(Z||rt)},rt.\u0275cmp=r.Xpm({type:rt,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:K,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"ngClass","keyup"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100","pb-3",3,"ngClass"],[4,"ngIf"],["class","w-100 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",2,"width","70px",3,"disabled","innerHTML","click","keyup.F2"]],template:function(Z,$){1&Z&&(r.F$t(B),r.TgZ(0,"div",0),r.NdJ("keyup",function(x){return $.onKeyup(x)}),r.TgZ(1,"div",1),r.YNc(2,nt,3,0,"div",2),r.TgZ(3,"div",3)(4,"h4",4),r._uU(5),r.qZA(),r.Hsn(6),r.qZA(),r.YNc(7,w,3,0,"div",5),r.qZA(),r.TgZ(8,"mat-dialog-content",6),r.Hsn(9,1),r.YNc(10,at,1,0,"ng-content",7),r.qZA(),r.YNc(11,et,5,3,"mat-dialog-actions",8),r.qZA()),2&Z&&(r.Udp("width",$.config.customWidth),r.Q6J("ngClass",r.WLB(13,T,$.config.bodyScrollable,$.config.hideScrollbar)),r.xp6(1),r.Gre("d-flex w-100 justify-content-between modal-header position-relative ",$.background,""),r.xp6(1),r.Q6J("ngIf",$.config.eMoney),r.xp6(1),r.Q6J("ngClass",r.VKq(16,F,$.config.eMoney)),r.xp6(2),r.Oqu($.config.title),r.xp6(2),r.Q6J("ngIf",!$.config.hideClose),r.xp6(1),r.Q6J("ngClass",r.WLB(18,W,!$.config.hideFooter,$.config.noPadding)),r.xp6(2),r.Q6J("ngIf",$.more),r.xp6(1),r.Q6J("ngIf",!$.config.hideFooter))},dependencies:[c.mk,c.O5],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%]{bottom:15px}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0px}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] input[type=text][_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .modal-body[_ngcontent-%COMP%] input[type=password][_ngcontent-%COMP%]{border:1px solid #c8d3df;padding:5px 7px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]}),rt})(),ht=(()=>{class rt{}return rt.\u0275fac=function(Z){return new(Z||rt)},rt.\u0275mod=r.oAB({type:rt}),rt.\u0275inj=r.cJS({imports:[c.ez]}),rt})()},5960:(Tt,ft,l)=>{l.d(ft,{h:()=>k,n:()=>G});var r=l(6895),c=l(4650),n=l(4006),E=l(9549),nt=l(4385),w=l(2722),at=l(8372),v=l(8505),y=l(7579),L=l(4968);let B=(()=>{class M{constructor(g,Y){this.matSelect=g,this.ngZone=Y,this.threshold="15%",this.debounceTime=150,this.infiniteScroll=new c.vpe,this.thrPx=0,this.thrPc=0,this.singleOptionHeight=3,this.destroyed$=new y.x}ngOnInit(){this.evaluateThreshold()}ngAfterViewInit(){this.matSelect.openedChange.pipe((0,w.R)(this.destroyed$)).subscribe(g=>{g&&(this.panel=this.matSelect.panel.nativeElement,this.singleOptionHeight=this.getSelectItemHeightPx(),this.registerScrollListener())})}ngOnDestroy(){this.destroyed$.next(!0),this.destroyed$.complete()}evaluateThreshold(){this.threshold.lastIndexOf("%")>-1?(this.thrPx=0,this.thrPc=parseFloat(this.threshold)/100):(this.thrPx=parseFloat(this.threshold),this.thrPc=0)}registerScrollListener(){(0,L.R)(this.panel,"scroll").pipe((0,w.R)(this.destroyed$),(0,at.b)(this.debounceTime),(0,v.b)(g=>{this.handleScrollEvent(g)})).subscribe()}handleScrollEvent(g){this.ngZone.runOutsideAngular(()=>{if(this.complete)return;const pt=this.singleOptionHeight*this.matSelect.options.length;this.panel.clientHeight+g.target.scrollTop+(0!==this.thrPc?pt*this.thrPc:this.thrPx)>=pt&&this.ngZone.run(()=>this.infiniteScroll.emit())})}getSelectItemHeightPx(){return 3*parseFloat(getComputedStyle(this.panel).fontSize)}}return M.\u0275fac=function(g){return new(g||M)(c.Y36(nt.gD),c.Y36(c.R0b))},M.\u0275dir=c.lG2({type:M,selectors:[["","msInfiniteScroll",""]],inputs:{threshold:"threshold",debounceTime:"debounceTime",complete:"complete"},outputs:{infiniteScroll:"infiniteScroll"}}),M})(),T=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[nt.LD]}),M})();var F=l(9521),W=l(3238),K=l(1135),Q=l(9646),ht=l(9841),rt=l(3900),ut=l(4004),Z=l(8675),$=l(4986),_=l(7272),x=l(5698),b=l(4482),O=l(5403),st=l(5032),gt=l(9718),wt=l(5577);function bt(M,f){return f?g=>(0,_.z)(f.pipe((0,x.q)(1),function vt(){return(0,b.e)((M,f)=>{M.subscribe((0,O.x)(f,st.Z))})}()),g.pipe(bt(M))):(0,wt.z)((g,Y)=>M(g,Y).pipe((0,x.q)(1),(0,gt.h)(g)))}var mt=l(2805),z=l(9300),J=l(7376),dt=l(2687),N=l(6709),q=l(1281),X=l(3353),Mt=l(727);function lt(M,f){if(1&M&&(c.O4$(),c._UZ(0,"circle",4)),2&M){const g=c.oxw(),Y=c.MAs(1);c.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+g._spinnerAnimationLabel)("stroke-dashoffset",g._getStrokeDashOffset(),"px")("stroke-dasharray",g._getStrokeCircumference(),"px")("stroke-width",g._getCircleStrokeWidth(),"%")("transform-origin",g._getCircleTransformOrigin(Y)),c.uIk("r",g._getCircleRadius())}}function St(M,f){if(1&M&&(c.O4$(),c._UZ(0,"circle",4)),2&M){const g=c.oxw(),Y=c.MAs(1);c.Udp("stroke-dashoffset",g._getStrokeDashOffset(),"px")("stroke-dasharray",g._getStrokeCircumference(),"px")("stroke-width",g._getCircleStrokeWidth(),"%")("transform-origin",g._getCircleTransformOrigin(Y)),c.uIk("r",g._getCircleRadius())}}const R=(0,W.pj)(class{constructor(M){this._elementRef=M}},"primary"),ot=new c.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function U(){return{diameter:100}}});class kt extends R{constructor(f,g,Y,pt,Ct,Pt,zt,Bt){super(f),this._document=Y,this._diameter=100,this._value=0,this._resizeSubscription=Mt.w0.EMPTY,this.mode="determinate";const Ut=kt._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),Ut.has(Y.head)||Ut.set(Y.head,new Set([100])),this._noopAnimations="NoopAnimations"===pt&&!!Ct&&!Ct._forceAnimations,"mat-spinner"===f.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),Ct&&(Ct.color&&(this.color=this.defaultColor=Ct.color),Ct.diameter&&(this.diameter=Ct.diameter),Ct.strokeWidth&&(this.strokeWidth=Ct.strokeWidth)),g.isBrowser&&g.SAFARI&&zt&&Pt&&Bt&&(this._resizeSubscription=zt.change(150).subscribe(()=>{"indeterminate"===this.mode&&Bt.run(()=>Pt.markForCheck())}))}get diameter(){return this._diameter}set diameter(f){this._diameter=(0,q.su)(f),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(f){this._strokeWidth=(0,q.su)(f)}get value(){return"determinate"===this.mode?this._value:0}set value(f){this._value=Math.max(0,Math.min(100,(0,q.su)(f)))}ngOnInit(){const f=this._elementRef.nativeElement;this._styleRoot=(0,X.kV)(f)||this._document.head,this._attachStyleNode(),f.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const f=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${f} ${f}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(f){const g=50*(f.currentScale??1);return`${g}% ${g}%`}_attachStyleNode(){const f=this._styleRoot,g=this._diameter,Y=kt._diameters;let pt=Y.get(f);if(!pt||!pt.has(g)){const Ct=this._document.createElement("style");Ct.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),Ct.textContent=this._getAnimationText(),f.appendChild(Ct),pt||(pt=new Set,Y.set(f,pt)),pt.add(g)}}_getAnimationText(){const f=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*f).replace(/END_VALUE/g,""+.2*f).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}kt._diameters=new WeakMap,kt.\u0275fac=function(f){return new(f||kt)(c.Y36(c.SBq),c.Y36(X.t4),c.Y36(r.K0,8),c.Y36(c.QbO,8),c.Y36(ot),c.Y36(c.sBO),c.Y36(J.rL),c.Y36(c.R0b))},kt.\u0275cmp=c.Xpm({type:kt,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(f,g){2&f&&(c.uIk("aria-valuemin","determinate"===g.mode?0:null)("aria-valuemax","determinate"===g.mode?100:null)("aria-valuenow","determinate"===g.mode?g.value:null)("mode",g.mode),c.Udp("width",g.diameter,"px")("height",g.diameter,"px"),c.ekj("_mat-animation-noopable",g._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[c.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(f,g){1&f&&(c.O4$(),c.TgZ(0,"svg",0,1),c.YNc(2,lt,1,11,"circle",2),c.YNc(3,St,1,9,"circle",3),c.qZA()),2&f&&(c.Udp("width",g.diameter,"px")("height",g.diameter,"px"),c.Q6J("ngSwitch","indeterminate"===g.mode),c.uIk("viewBox",g._getViewBox()),c.xp6(2),c.Q6J("ngSwitchCase",!0),c.xp6(1),c.Q6J("ngSwitchCase",!1))},dependencies:[r.RF,r.n9],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:rgba(0,0,0,0);transition:stroke-dashoffset 225ms linear}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:CanvasText}.mat-progress-spinner[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}.mat-progress-spinner[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}.mat-progress-spinner._mat-animation-noopable svg,.mat-progress-spinner._mat-animation-noopable circle{animation:none;transition:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}"],encapsulation:2,changeDetection:0});let It=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[W.BQ,r.ez,W.BQ]}),M})();var Nt=l(4859),Ht=l(7392),Vt=l(266);const Et=["searchSelectInput"],S=["innerSelectSearch"];function m(M,f){if(1&M){const g=c.EpF();c.TgZ(0,"mat-checkbox",9),c.NdJ("change",function(pt){c.CHM(g);const Ct=c.oxw();return c.KtG(Ct._emitSelectAllBooleanToParent(pt.checked))}),c.qZA()}if(2&M){const g=c.oxw();c.Q6J("color",null==g.matFormField?null:g.matFormField.color)("checked",g.toggleAllCheckboxChecked)("indeterminate",g.toggleAllCheckboxIndeterminate)("matTooltip",g.toggleAllCheckboxTooltipMessage)("matTooltipPosition",g.toogleAllCheckboxTooltipPosition)}}function o(M,f){1&M&&c._UZ(0,"mat-spinner",10)}function i(M,f){1&M&&c.Hsn(0,1,["*ngIf","clearIcon; else defaultIcon"])}function h(M,f){if(1&M&&(c.TgZ(0,"mat-icon",14),c._uU(1),c.qZA()),2&M){const g=c.oxw(2);c.Q6J("svgIcon",g.closeSvgIcon),c.xp6(1),c.hij(" ",g.closeSvgIcon?null:g.closeIcon," ")}}function p(M,f){if(1&M){const g=c.EpF();c.TgZ(0,"button",11),c.NdJ("click",function(){c.CHM(g);const pt=c.oxw();return c.KtG(pt._reset(!0))}),c.YNc(1,i,1,0,"ng-content",12),c.YNc(2,h,2,2,"ng-template",null,13,c.W1O),c.qZA()}if(2&M){const g=c.MAs(3),Y=c.oxw();c.xp6(1),c.Q6J("ngIf",Y.clearIcon)("ngIfElse",g)}}function D(M,f){1&M&&c.Hsn(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function P(M,f){if(1&M&&c._uU(0),2&M){const g=c.oxw(2);c.Oqu(g.noEntriesFoundLabel)}}function tt(M,f){if(1&M&&(c.TgZ(0,"div",15),c.YNc(1,D,1,0,"ng-content",12),c.YNc(2,P,1,1,"ng-template",null,16,c.W1O),c.qZA()),2&M){const g=c.MAs(3),Y=c.oxw();c.xp6(1),c.Q6J("ngIf",Y.noEntriesFound)("ngIfElse",g)}}const _t=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],yt=function(M,f){return{"mat-select-search-inner-multiple":M,"mat-select-search-inner-toggle-all":f}},Dt=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];let xt=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275dir=c.lG2({type:M,selectors:[["","ngxMatSelectSearchClear",""]]}),M})();const Ot=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","indexAndLengthScreenReaderText","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],Rt=new c.OlP("mat-selectsearch-default-options");let V=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275dir=c.lG2({type:M,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),M})(),C=(()=>{class M{constructor(g,Y,pt,Ct=null,Pt,zt=null,Bt){this.matSelect=g,this.changeDetectorRef=Y,this._viewportRuler=pt,this.matOption=Ct,this.liveAnnouncer=Pt,this.matFormField=zt,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.indexAndLengthScreenReaderText=" of ",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toogleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.toggleAll=new c.vpe,this.onTouched=Ut=>{},this._options$=new K.X(null),this.optionsList$=this._options$.pipe((0,rt.w)(Ut=>Ut?Ut.changes.pipe((0,ut.U)(Yt=>Yt.toArray()),(0,Z.O)(Ut.toArray())):(0,Q.of)(null))),this.optionsLength$=this.optionsList$.pipe((0,ut.U)(Ut=>Ut?Ut.length:0)),this._formControl=new n.NI(""),this._showNoEntriesFound$=(0,ht.a)([this._formControl.valueChanges,this.optionsLength$]).pipe((0,ut.U)(([Ut,Yt])=>this.noEntriesFoundLabel&&Ut&&Yt===this.getOptionsLengthOffset())),this._onDestroy=new y.x,this.applyDefaultOptions(Bt)}get isInsideMatOption(){return!!this.matOption}get value(){return this._formControl.value}set _options(g){this._options$.next(g)}get _options(){return this._options$.getValue()}applyDefaultOptions(g){if(g)for(const Y of Ot)g.hasOwnProperty(Y)&&(this[Y]=g[Y])}ngOnInit(){const g="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(g):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,g]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[g]=!0):this.matSelect.panelClass=g,this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(function ct(M,f=$.z){const g=(0,mt.H)(M,f);return bt(()=>g)}(1),(0,w.R)(this._onDestroy)).subscribe(Y=>{Y?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe((0,x.q)(1)).pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect._keyManager?this.matSelect._keyManager.change.pipe((0,w.R)(this._onDestroy)).subscribe(()=>this.adjustScrollTopToFitActiveOptionIntoView()):console.log("_keyManager was not initialized."),this._options=this.matSelect.options;let Y=this._options.toArray()[this.getOptionsLengthOffset()];this._options.changes.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{setTimeout(()=>{const pt=this._options.toArray(),Ct=pt[this.getOptionsLengthOffset()],Pt=this.matSelect._keyManager;Pt&&this.matSelect.panelOpen&&((!this.matSelect.compareWith(Y,Ct)||!Pt.activeItem||!pt.find(Bt=>this.matSelect.compareWith(Bt,Pt.activeItem)))&&Pt.setFirstItemActive(),setTimeout(()=>{this.updateInputWidth()}),this.disableScrollToActiveOnOptionsChanged||this.adjustScrollTopToFitActiveOptionIntoView()),Y=Ct})})}),this._showNoEntriesFound$.pipe((0,w.R)(this._onDestroy)).subscribe(Y=>{this.matOption&&(Y?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe((0,w.R)(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(g){this.toggleAll.emit(g)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(g){(g.key&&1===g.key.length||g.keyCode>=F.A&&g.keyCode<=F.Z||g.keyCode>=F.xE&&g.keyCode<=F.aO||g.keyCode===F.L_||this.preventHomeEndKeyPropagation&&(g.keyCode===F.Sd||g.keyCode===F.uR))&&g.stopPropagation(),this.matSelect.multiple&&g.key&&g.keyCode===F.K5&&setTimeout(()=>this._focus()),!0===this.enableClearOnEscapePressed&&g.keyCode===F.hY&&this.value&&(this._reset(!0),g.stopPropagation())}_handleKeyup(g){if(g.keyCode===F.LH||g.keyCode===F.JH){const Y=this.matSelect._getAriaActiveDescendant(),pt=this._options.toArray().findIndex(Ct=>Ct.id===Y);if(-1!==pt){const Ct=this._options.toArray()[pt];this.liveAnnouncer.announce(Ct.viewValue+" "+this.getAriaIndex(pt)+this.indexAndLengthScreenReaderText+this.getAriaLength())}}}getAriaIndex(g){return 0===this.getOptionsLengthOffset()?g+1:g}getAriaLength(){return this._options.toArray().length-this.getOptionsLengthOffset()}writeValue(g){this._lastExternalInputValue=g,this._formControl.setValue(g),this.changeDetectorRef.markForCheck()}onBlur(){this.onTouched()}registerOnChange(g){this._formControl.valueChanges.pipe((0,z.h)(Y=>Y!==this._lastExternalInputValue),(0,v.b)(()=>this._lastExternalInputValue=void 0),(0,w.R)(this._onDestroy)).subscribe(g)}registerOnTouched(g){this.onTouched=g}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;const g=this.matSelect.panel.nativeElement,Y=g.scrollTop;this.searchSelectInput.nativeElement.focus(),g.scrollTop=Y}_reset(g){this._formControl.setValue(""),g&&this._focus()}initMultipleHandling(){this.matSelect.ngControl?(this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges.pipe((0,w.R)(this._onDestroy)).subscribe(g=>{let Y=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!g||!Array.isArray(g))&&(g=[]);const pt=this.matSelect.options.map(Ct=>Ct.value);this.previousSelectedValues.forEach(Ct=>{!g.some(Pt=>this.matSelect.compareWith(Pt,Ct))&&!pt.some(Pt=>this.matSelect.compareWith(Pt,Ct))&&(g.push(Ct),Y=!0)})}this.previousSelectedValues=g,Y&&this.matSelect._onChange(g)})):this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true")}adjustScrollTopToFitActiveOptionIntoView(){if(this.matSelect.panel&&this.matSelect.options.length>0){const g=this.getMatOptionHeight(),Y=this.matSelect._keyManager.activeItemIndex||0,pt=(0,W.CB)(Y,this.matSelect.options,this.matSelect.optionGroups),Ct=(this.matOption?-1:0)+pt+Y,Pt=this.matSelect.panel.nativeElement.scrollTop,zt=this.innerSelectSearch.nativeElement.offsetHeight,Bt=Math.floor((256-zt)/g),Ut=Math.round((Pt+zt)/g)-1;Ut>=Ct?this.matSelect.panel.nativeElement.scrollTop=Ct*g:Ut+Bt<=Ct&&(this.matSelect.panel.nativeElement.scrollTop=(Ct+1)*g-(256-zt))}}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let Y,g=this.innerSelectSearch.nativeElement;for(;g=g.parentElement;)if(g.classList.contains("mat-select-panel")){Y=g;break}Y&&(this.innerSelectSearch.nativeElement.style.width=Y.clientWidth+"px")}getMatOptionHeight(){return this.matSelect.options.length>0?this.matSelect.options.first._getHostElement().getBoundingClientRect().height:0}getOptionsLengthOffset(){return this.matOption?1:0}}return M.\u0275fac=function(g){return new(g||M)(c.Y36(nt.gD),c.Y36(c.sBO),c.Y36(J.rL),c.Y36(W.ey,8),c.Y36(dt.Kd),c.Y36(E.KE,8),c.Y36(Rt,8))},M.\u0275cmp=c.Xpm({type:M,selectors:[["ngx-mat-select-search"]],contentQueries:function(g,Y,pt){if(1&g&&(c.Suo(pt,xt,5),c.Suo(pt,V,5)),2&g){let Ct;c.iGM(Ct=c.CRH())&&(Y.clearIcon=Ct.first),c.iGM(Ct=c.CRH())&&(Y.noEntriesFound=Ct.first)}},viewQuery:function(g,Y){if(1&g&&(c.Gf(Et,7,c.SBq),c.Gf(S,7,c.SBq)),2&g){let pt;c.iGM(pt=c.CRH())&&(Y.searchSelectInput=pt.first),c.iGM(pt=c.CRH())&&(Y.innerSelectSearch=pt.first)}},hostVars:2,hostBindings:function(g,Y){2&g&&c.ekj("mat-select-search-inside-mat-option",Y.isInsideMatOption)},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",indexAndLengthScreenReaderText:"indexAndLengthScreenReaderText",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toogleAllCheckboxTooltipPosition:"toogleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti"},outputs:{toggleAll:"toggleAll"},features:[c._Bn([{provide:n.JU,useExisting:(0,c.Gpc)(()=>M),multi:!0}])],ngContentSelectors:Dt,decls:11,vars:14,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input","mat-input-element",3,"type","formControl","placeholder","keydown","keyup","blur"],["searchSelectInput",""],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change"],["diameter","16",1,"mat-select-search-spinner"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],["defaultIcon",""],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"],["defaultNoEntriesFound",""]],template:function(g,Y){1&g&&(c.F$t(_t),c._UZ(0,"input",0),c.TgZ(1,"div",1,2),c.YNc(3,m,1,5,"mat-checkbox",3),c.TgZ(4,"input",4,5),c.NdJ("keydown",function(Ct){return Y._handleKeydown(Ct)})("keyup",function(Ct){return Y._handleKeyup(Ct)})("blur",function(){return Y.onBlur()}),c.qZA(),c.YNc(6,o,1,0,"mat-spinner",6),c.YNc(7,p,4,2,"button",7),c.Hsn(8),c.qZA(),c.YNc(9,tt,4,2,"div",8),c.ALo(10,"async")),2&g&&(c.xp6(1),c.Q6J("ngClass",c.WLB(11,yt,Y.matSelect.multiple,Y._isToggleAllCheckboxVisible())),c.xp6(2),c.Q6J("ngIf",Y._isToggleAllCheckboxVisible()),c.xp6(1),c.Q6J("type",Y.type)("formControl",Y._formControl)("placeholder",Y.placeholderLabel),c.uIk("aria-label",Y.ariaLabel),c.xp6(2),c.Q6J("ngIf",Y.searching),c.xp6(1),c.Q6J("ngIf",!Y.hideClearSearchButton&&Y.value&&!Y.searching),c.xp6(2),c.Q6J("ngIf",c.lcZ(10,9,Y._showNoEntriesFound$)))},dependencies:[N.oG,kt,Nt.lW,Ht.Hw,r.mk,r.O5,Vt.gM,n.Fj,n.JJ,n.oH,r.Ov],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:4px 4px 0 0;-webkit-transform:translate3d(0,0,0)}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]{flex-basis:auto}.mat-select-search-inner[_ngcontent-%COMP%] .mat-input-element[_ngcontent-%COMP%]:-ms-input-placeholder{-ms-user-select:text} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 44px 16px 16px;box-sizing:border-box;width:100%}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0;height:3em;line-height:3em}.mat-select-search-inside-mat-option[_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{top:3px} .mat-option[aria-disabled=true].contains-mat-select-search{position:static;padding:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-option[aria-disabled=true].contains-mat-select-search .mat-option-pseudo-checkbox{display:none} .mat-option[aria-disabled=true].contains-mat-select-search.mat-select-search-no-entries-found{height:6em}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:16px;padding-bottom:2px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:16px}"],changeDetection:0}),M})(),s=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[[r.ez,n.UX,Nt.ot,N.p9,Ht.Ps,It,Vt.AV]]}),M})();var e=l(6451),t=l(5026);const a=["matSelectInfiniteScroll"];function d(M,f){if(1&M&&(c.ynx(0),c._UZ(1,"img",7),c.BQk()),2&M){const g=c.oxw().$implicit;c.xp6(1),c.Q6J("src",g.Img,c.LSH)}}function u(M,f){if(1&M&&(c.TgZ(0,"mat-option",5),c.YNc(1,d,2,1,"ng-container",6),c._uU(2),c.qZA()),2&M){const g=f.$implicit,Y=c.oxw();c.Q6J("value",g[Y.bindValue]),c.xp6(1),c.Q6J("ngIf",null==g?null:g.Img),c.xp6(1),c.hij(" ",g[Y.bindLabel]," ")}}let k=(()=>{class M{constructor(){this.disabled=!1,this.batchSize=50,this.optionCtrl=new n.p4,this.searchCtrl=new n.p4,this.filteredData$=this.searchCtrl.valueChanges.pipe((0,Z.O)(""),(0,ut.U)(g=>g?this.data.filter(Y=>Y[this.bindLabel].toLowerCase().indexOf(g.toLowerCase())>-1):this.data)),this.incrementBatchOffset$=new y.x,this.resetBatchOffset$=new y.x,this.minimumBatchOffset$=(0,ht.a)([this.filteredData$,this.searchCtrl.valueChanges]).pipe((0,ut.U)(([g,Y])=>!this.searchCtrl.value&&this.optionCtrl.value?g.findIndex(Ct=>Ct[this.bindValue]===this.optionCtrl.value)+this.batchSize:0),(0,Z.O)(0)),this.batchOffset$=(0,ht.a)([(0,e.T)(this.incrementBatchOffset$.pipe((0,gt.h)(!0)),this.resetBatchOffset$.pipe((0,gt.h)(!1))),this.minimumBatchOffset$]).pipe((0,t.R)((g,[Y,pt])=>Y?Math.max(g+this.batchSize,pt+this.batchSize):Math.max(pt,this.batchSize),this.batchSize)),this.filteredBatchedData$=(0,ht.a)([this.filteredData$,this.batchOffset$]).pipe((0,ut.U)(([g,Y])=>g.slice(0,Y))),this.destroy$=new y.x,this.data=[],this.onSelect=new c.vpe}ngOnInit(){this.infiniteScrollSelect.openedChange.pipe((0,w.R)(this.destroy$)).subscribe(g=>{g&&this.resetBatchOffset$.next()}),this.onSelectData()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onSelectData(){this.optionCtrl.valueChanges.subscribe(g=>{g&&this.onSelect.emit(g)})}getNextBatch(){this.incrementBatchOffset$.next()}}return M.\u0275fac=function(g){return new(g||M)},M.\u0275cmp=c.Xpm({type:M,selectors:[["app-select-search"]],viewQuery:function(g,Y){if(1&g&&c.Gf(a,7),2&g){let pt;c.iGM(pt=c.CRH())&&(Y.infiniteScrollSelect=pt.first)}},inputs:{appearance:"appearance",data:"data",bindValue:"bindValue",bindLabel:"bindLabel",placeholder:"placeholder",disabled:"disabled",batchSize:"batchSize"},outputs:{onSelect:"onSelect"},decls:7,vars:9,consts:[[1,"select-search",3,"appearance"],["msInfiniteScroll","",3,"disabled","formControl","placeholder","infiniteScroll"],["matSelectInfiniteScroll",""],["placeholderLabel","search","noEntriesFoundLabel","No entry matches",3,"formControl","disableScrollToActiveOnOptionsChanged"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],[4,"ngIf"],["alt","",2,"width","18px","margin-right","10px",3,"src"]],template:function(g,Y){1&g&&(c.TgZ(0,"mat-form-field",0)(1,"mat-select",1,2),c.NdJ("infiniteScroll",function(){return Y.getNextBatch()}),c.TgZ(3,"mat-option"),c._UZ(4,"ngx-mat-select-search",3),c.qZA(),c.YNc(5,u,3,3,"mat-option",4),c.ALo(6,"async"),c.qZA()()),2&g&&(c.Q6J("appearance",Y.appearance),c.xp6(1),c.Q6J("disabled",Y.disabled)("formControl",Y.optionCtrl)("placeholder",Y.placeholder),c.xp6(3),c.Q6J("formControl",Y.searchCtrl)("disableScrollToActiveOnOptionsChanged",!0),c.xp6(1),c.Q6J("ngForOf",c.lcZ(6,7,Y.filteredBatchedData$)))},dependencies:[r.sg,r.O5,n.JJ,n.oH,E.KE,nt.gD,W.ey,C,B,r.Ov],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} mat-form-field.select-search>div.mat-form-field-wrapper{padding-bottom:0}"]}),M})(),G=(()=>{class M{}return M.\u0275fac=function(g){return new(g||M)},M.\u0275mod=c.oAB({type:M}),M.\u0275inj=c.cJS({imports:[r.ez,n.UX,nt.LD,E.lN,s,T]}),M})()},4968:(Tt,ft,l)=>{l.d(ft,{R:()=>L});var r=l(8421),c=l(8306),n=l(5577),E=l(1144),nt=l(576),w=l(3268);const at=["addListener","removeListener"],v=["addEventListener","removeEventListener"],y=["on","off"];function L(W,K,Q,ht){if((0,nt.m)(Q)&&(ht=Q,Q=void 0),ht)return L(W,K,Q).pipe((0,w.Z)(ht));const[rt,ut]=function F(W){return(0,nt.m)(W.addEventListener)&&(0,nt.m)(W.removeEventListener)}(W)?v.map(Z=>$=>W[Z](K,$,Q)):function B(W){return(0,nt.m)(W.addListener)&&(0,nt.m)(W.removeListener)}(W)?at.map(et(W,K)):function T(W){return(0,nt.m)(W.on)&&(0,nt.m)(W.off)}(W)?y.map(et(W,K)):[];if(!rt&&(0,E.z)(W))return(0,n.z)(Z=>L(Z,K,Q))((0,r.Xf)(W));if(!rt)throw new TypeError("Invalid event target");return new c.y(Z=>{const $=(..._)=>Z.next(1<_.length?_:_[0]);return rt($),()=>ut($)})}function et(W,K){return Q=>ht=>W[Q](K,ht)}},3601:(Tt,ft,l)=>{l.d(ft,{e:()=>at});var r=l(4986),c=l(4482),n=l(8421),E=l(5403),w=l(2805);function at(v,y=r.z){return function nt(v){return(0,c.e)((y,L)=>{let et=!1,B=null,T=null,F=!1;const W=()=>{if(T?.unsubscribe(),T=null,et){et=!1;const Q=B;B=null,L.next(Q)}F&&L.complete()},K=()=>{T=null,F&&L.complete()};y.subscribe((0,E.x)(L,Q=>{et=!0,B=Q,T||(0,n.Xf)(v(Q)).subscribe(T=(0,E.x)(L,W,K))},()=>{F=!0,(!et||!T||T.closed)&&L.complete()}))})}(()=>(0,w.H)(v,y))}},8372:(Tt,ft,l)=>{l.d(ft,{b:()=>E});var r=l(4986),c=l(4482),n=l(5403);function E(nt,w=r.z){return(0,c.e)((at,v)=>{let y=null,L=null,et=null;const B=()=>{if(y){y.unsubscribe(),y=null;const F=L;L=null,v.next(F)}};function T(){const F=et+nt,W=w.now();if(W<F)return y=this.schedule(void 0,F-W),void v.add(y);B()}at.subscribe((0,n.x)(v,F=>{L=F,et=w.now(),y||(y=w.schedule(T,nt),v.add(y))},()=>{B(),v.complete()},void 0,()=>{L=y=null}))})}},5684:(Tt,ft,l)=>{l.d(ft,{T:()=>c});var r=l(9300);function c(n){return(0,r.h)((E,nt)=>n<=nt)}},2722:(Tt,ft,l)=>{l.d(ft,{R:()=>nt});var r=l(4482),c=l(5403),n=l(8421),E=l(5032);function nt(w){return(0,r.e)((at,v)=>{(0,n.Xf)(w).subscribe((0,c.x)(v,()=>v.complete(),E.Z)),!v.closed&&at.subscribe(v)})}},6406:(Tt,ft,l)=>{l.d(ft,{Z:()=>at});var r=l(4408),c=l(727);const n={schedule(y){let L=requestAnimationFrame,et=cancelAnimationFrame;const{delegate:B}=n;B&&(L=B.requestAnimationFrame,et=B.cancelAnimationFrame);const T=L(F=>{et=void 0,y(F)});return new c.w0(()=>et?.(T))},requestAnimationFrame(...y){const{delegate:L}=n;return(L?.requestAnimationFrame||requestAnimationFrame)(...y)},cancelAnimationFrame(...y){const{delegate:L}=n;return(L?.cancelAnimationFrame||cancelAnimationFrame)(...y)},delegate:void 0};var nt=l(7565);const at=new class w extends nt.v{flush(L){this._active=!0;const et=this._scheduled;this._scheduled=void 0;const{actions:B}=this;let T;L=L||B.shift();do{if(T=L.execute(L.state,L.delay))break}while((L=B[0])&&L.id===et&&B.shift());if(this._active=!1,T){for(;(L=B[0])&&L.id===et&&B.shift();)L.unsubscribe();throw T}}}(class E extends r.o{constructor(L,et){super(L,et),this.scheduler=L,this.work=et}requestAsyncId(L,et,B=0){return null!==B&&B>0?super.requestAsyncId(L,et,B):(L.actions.push(this),L._scheduled||(L._scheduled=n.requestAnimationFrame(()=>L.flush(void 0))))}recycleAsyncId(L,et,B=0){if(null!=B&&B>0||null==B&&this.delay>0)return super.recycleAsyncId(L,et,B);L.actions.some(T=>T.id===et)||(n.cancelAnimationFrame(et),L._scheduled=void 0)}})},3101:(Tt,ft,l)=>{l.d(ft,{E:()=>F});var r=l(4408);let n,c=1;const E={};function nt(K){return K in E&&(delete E[K],!0)}const w={setImmediate(K){const Q=c++;return E[Q]=!0,n||(n=Promise.resolve()),n.then(()=>nt(Q)&&K()),Q},clearImmediate(K){nt(K)}},{setImmediate:v,clearImmediate:y}=w,L={setImmediate(...K){const{delegate:Q}=L;return(Q?.setImmediate||v)(...K)},clearImmediate(K){const{delegate:Q}=L;return(Q?.clearImmediate||y)(K)},delegate:void 0};var B=l(7565);const F=new class T extends B.v{flush(Q){this._active=!0;const ht=this._scheduled;this._scheduled=void 0;const{actions:rt}=this;let ut;Q=Q||rt.shift();do{if(ut=Q.execute(Q.state,Q.delay))break}while((Q=rt[0])&&Q.id===ht&&rt.shift());if(this._active=!1,ut){for(;(Q=rt[0])&&Q.id===ht&&rt.shift();)Q.unsubscribe();throw ut}}}(class et extends r.o{constructor(Q,ht){super(Q,ht),this.scheduler=Q,this.work=ht}requestAsyncId(Q,ht,rt=0){return null!==rt&&rt>0?super.requestAsyncId(Q,ht,rt):(Q.actions.push(this),Q._scheduled||(Q._scheduled=L.setImmediate(Q.flush.bind(Q,void 0))))}recycleAsyncId(Q,ht,rt=0){if(null!=rt&&rt>0||null==rt&&this.delay>0)return super.recycleAsyncId(Q,ht,rt);Q.actions.some(ut=>ut.id===ht)||(L.clearImmediate(ht),Q._scheduled=void 0)}})},2687:(Tt,ft,l)=>{l.d(ft,{$s:()=>vt,Em:()=>ct,Kd:()=>yt,X6:()=>S,ic:()=>J,kH:()=>At,mK:()=>It,qV:()=>kt,qm:()=>C,rt:()=>j,s1:()=>mt,tE:()=>Rt,yG:()=>m});var r=l(6895),c=l(4650),n=l(3353),E=l(7579),nt=l(727),w=l(1135),at=l(9646),v=l(9521),y=l(8505),L=l(8372),et=l(9300),B=l(4004),T=l(5698),F=l(5684),W=l(1884),K=l(2722),Q=l(1281),ht=l(9643),rt=l(2289);function _(s,e){return(s.getAttribute(e)||"").match(/\S+/g)||[]}const b="cdk-describedby-message",O="cdk-describedby-host";let st=0,vt=(()=>{class s{constructor(t,a){this._platform=a,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+st++,this._document=t,this._id=(0,c.f3M)(c.AFp)+"-"+st++}describe(t,a,d){if(!this._canBeDescribed(t,a))return;const u=gt(a,d);"string"!=typeof a?(wt(a,this._id),this._messageRegistry.set(u,{messageElement:a,referenceCount:0})):this._messageRegistry.has(u)||this._createMessageElement(a,d),this._isElementDescribedByMessage(t,u)||this._addMessageReference(t,u)}removeDescription(t,a,d){if(!a||!this._isElementNode(t))return;const u=gt(a,d);if(this._isElementDescribedByMessage(t,u)&&this._removeMessageReference(t,u),"string"==typeof a){const k=this._messageRegistry.get(u);k&&0===k.referenceCount&&this._deleteMessageElement(u)}0===this._messagesContainer?.childNodes.length&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){const t=this._document.querySelectorAll(`[${O}="${this._id}"]`);for(let a=0;a<t.length;a++)this._removeCdkDescribedByReferenceIds(t[a]),t[a].removeAttribute(O);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,a){const d=this._document.createElement("div");wt(d,this._id),d.textContent=t,a&&d.setAttribute("role",a),this._createMessagesContainer(),this._messagesContainer.appendChild(d),this._messageRegistry.set(gt(t,a),{messageElement:d,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;const t="cdk-describedby-message-container",a=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let u=0;u<a.length;u++)a[u].remove();const d=this._document.createElement("div");d.style.visibility="hidden",d.classList.add(t),d.classList.add("cdk-visually-hidden"),this._platform&&!this._platform.isBrowser&&d.setAttribute("platform","server"),this._document.body.appendChild(d),this._messagesContainer=d}_removeCdkDescribedByReferenceIds(t){const a=_(t,"aria-describedby").filter(d=>0!=d.indexOf(b));t.setAttribute("aria-describedby",a.join(" "))}_addMessageReference(t,a){const d=this._messageRegistry.get(a);(function Z(s,e,t){const a=_(s,e);a.some(d=>d.trim()==t.trim())||(a.push(t.trim()),s.setAttribute(e,a.join(" ")))})(t,"aria-describedby",d.messageElement.id),t.setAttribute(O,this._id),d.referenceCount++}_removeMessageReference(t,a){const d=this._messageRegistry.get(a);d.referenceCount--,function $(s,e,t){const d=_(s,e).filter(u=>u!=t.trim());d.length?s.setAttribute(e,d.join(" ")):s.removeAttribute(e)}(t,"aria-describedby",d.messageElement.id),t.removeAttribute(O)}_isElementDescribedByMessage(t,a){const d=_(t,"aria-describedby"),u=this._messageRegistry.get(a),k=u&&u.messageElement.id;return!!k&&-1!=d.indexOf(k)}_canBeDescribed(t,a){if(!this._isElementNode(t))return!1;if(a&&"object"==typeof a)return!0;const d=null==a?"":`${a}`.trim(),u=t.getAttribute("aria-label");return!(!d||u&&u.trim()===d)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(r.K0),c.LFG(n.t4))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function gt(s,e){return"string"==typeof s?`${e||""}/${s}`:s}function wt(s,e){s.id||(s.id=`${b}-${e}-${st++}`)}class bt{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new E.x,this._typeaheadSubscription=nt.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new E.x,this.change=new E.x,e instanceof c.n_E&&e.changes.subscribe(t=>{if(this._activeItem){const d=t.toArray().indexOf(this._activeItem);d>-1&&d!==this._activeItemIndex&&(this._activeItemIndex=d)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,y.b)(t=>this._pressedLetters.push(t)),(0,L.b)(e),(0,et.h)(()=>this._pressedLetters.length>0),(0,B.U)(()=>this._pressedLetters.join(""))).subscribe(t=>{const a=this._getItemsArray();for(let d=1;d<a.length+1;d++){const u=(this._activeItemIndex+d)%a.length,k=a[u];if(!this._skipPredicateFn(k)&&0===k.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(u);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,d=["altKey","ctrlKey","metaKey","shiftKey"].every(u=>!e[u]||this._allowedModifierKeys.indexOf(u)>-1);switch(t){case v.Mf:return void this.tabOut.next();case v.JH:if(this._vertical&&d){this.setNextItemActive();break}return;case v.LH:if(this._vertical&&d){this.setPreviousItemActive();break}return;case v.SV:if(this._horizontal&&d){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case v.oh:if(this._horizontal&&d){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case v.Sd:if(this._homeAndEnd&&d){this.setFirstItemActive();break}return;case v.uR:if(this._homeAndEnd&&d){this.setLastItemActive();break}return;default:return void((d||(0,v.Vb)(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=v.A&&t<=v.Z||t>=v.xE&&t<=v.aO)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),a="number"==typeof e?e:t.indexOf(e);this._activeItem=t[a]??null,this._activeItemIndex=a}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let a=1;a<=t.length;a++){const d=(this._activeItemIndex+e*a+t.length)%t.length;if(!this._skipPredicateFn(t[d]))return void this.setActiveItem(d)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const a=this._getItemsArray();if(a[e]){for(;this._skipPredicateFn(a[e]);)if(!a[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof c.n_E?this._items.toArray():this._items}}class mt extends bt{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}class ct extends bt{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}}let J=(()=>{class s{constructor(t){this._platform=t}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return function N(s){return!!(s.offsetWidth||s.offsetHeight||"function"==typeof s.getClientRects&&s.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}isTabbable(t){if(!this._platform.isBrowser)return!1;const a=function dt(s){try{return s.frameElement}catch{return null}}(function U(s){return s.ownerDocument&&s.ownerDocument.defaultView||window}(t));if(a&&(-1===H(a)||!this.isVisible(a)))return!1;let d=t.nodeName.toLowerCase(),u=H(t);return t.hasAttribute("contenteditable")?-1!==u:!("iframe"===d||"object"===d||this._platform.WEBKIT&&this._platform.IOS&&!function R(s){let e=s.nodeName.toLowerCase(),t="input"===e&&s.type;return"text"===t||"password"===t||"select"===e||"textarea"===e}(t))&&("audio"===d?!!t.hasAttribute("controls")&&-1!==u:"video"===d?-1!==u&&(null!==u||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}isFocusable(t,a){return function ot(s){return!function X(s){return function lt(s){return"input"==s.nodeName.toLowerCase()}(s)&&"hidden"==s.type}(s)&&(function q(s){let e=s.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(s)||function Mt(s){return function St(s){return"a"==s.nodeName.toLowerCase()}(s)&&s.hasAttribute("href")}(s)||s.hasAttribute("contenteditable")||I(s))}(t)&&!this.isDisabled(t)&&(a?.ignoreVisibility||this.isVisible(t))}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(n.t4))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function I(s){if(!s.hasAttribute("tabindex")||void 0===s.tabIndex)return!1;let e=s.getAttribute("tabindex");return!(!e||isNaN(parseInt(e,10)))}function H(s){if(!I(s))return null;const e=parseInt(s.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}class it{constructor(e,t,a,d,u=!1){this._element=e,this._checker=t,this._ngZone=a,this._document=d,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,u||this.attachAnchors()}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}destroy(){const e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){const t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return"start"==e?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){const t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){const a=this._getFirstTabbableElement(t);return a?.focus(e),!!a}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){const t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){const t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let a=0;a<t.length;a++){const d=t[a].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[a]):null;if(d)return d}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;const t=e.children;for(let a=t.length-1;a>=0;a--){const d=t[a].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[a]):null;if(d)return d}return null}_createAnchor(){const e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._ngZone.isStable?e():this._ngZone.onStable.pipe((0,T.q)(1)).subscribe(e)}}let kt=(()=>{class s{constructor(t,a,d){this._checker=t,this._ngZone=a,this._document=d}create(t,a=!1){return new it(t,this._checker,this._ngZone,this._document,a)}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(J),c.LFG(c.R0b),c.LFG(r.K0))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),It=(()=>{class s{constructor(t,a,d){this._elementRef=t,this._focusTrapFactory=a,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(t){this.focusTrap.enabled=(0,Q.Ig)(t)}get autoCapture(){return this._autoCapture}set autoCapture(t){this._autoCapture=(0,Q.Ig)(t)}ngOnDestroy(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}ngOnChanges(t){const a=t.autoCapture;a&&!a.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,n.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return s.\u0275fac=function(t){return new(t||s)(c.Y36(c.SBq),c.Y36(kt),c.Y36(r.K0))},s.\u0275dir=c.lG2({type:s,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[c.TTD]}),s})();function S(s){return 0===s.buttons||0===s.offsetX&&0===s.offsetY}function m(s){const e=s.touches&&s.touches[0]||s.changedTouches&&s.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}const o=new c.OlP("cdk-input-modality-detector-options"),i={ignoreKeys:[v.zL,v.jx,v.b2,v.MW,v.JU]},p=(0,n.i$)({passive:!0,capture:!0});let D=(()=>{class s{constructor(t,a,d,u){this._platform=t,this._mostRecentTarget=null,this._modality=new w.X(null),this._lastTouchMs=0,this._onKeydown=k=>{this._options?.ignoreKeys?.some(G=>G===k.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=(0,n.sA)(k))},this._onMousedown=k=>{Date.now()-this._lastTouchMs<650||(this._modality.next(S(k)?"keyboard":"mouse"),this._mostRecentTarget=(0,n.sA)(k))},this._onTouchstart=k=>{m(k)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,n.sA)(k))},this._options={...i,...u},this.modalityDetected=this._modality.pipe((0,F.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,W.x)()),t.isBrowser&&a.runOutsideAngular(()=>{d.addEventListener("keydown",this._onKeydown,p),d.addEventListener("mousedown",this._onMousedown,p),d.addEventListener("touchstart",this._onTouchstart,p)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,p),document.removeEventListener("mousedown",this._onMousedown,p),document.removeEventListener("touchstart",this._onTouchstart,p))}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(n.t4),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(o,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const P=new c.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tt(){return null}}),_t=new c.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let yt=(()=>{class s{constructor(t,a,d,u){this._ngZone=a,this._defaultOptions=u,this._document=d,this._liveElement=t||this._createLiveElement()}announce(t,...a){const d=this._defaultOptions;let u,k;return 1===a.length&&"number"==typeof a[0]?k=a[0]:[u,k]=a,this.clear(),clearTimeout(this._previousTimeout),u||(u=d&&d.politeness?d.politeness:"polite"),null==k&&d&&(k=d.duration),this._liveElement.setAttribute("aria-live",u),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(G=>this._currentResolve=G)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,"number"==typeof k&&(this._previousTimeout=setTimeout(()=>this.clear(),k)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const t="cdk-live-announcer-element",a=this._document.getElementsByClassName(t),d=this._document.createElement("div");for(let u=0;u<a.length;u++)a[u].remove();return d.classList.add(t),d.classList.add("cdk-visually-hidden"),d.setAttribute("aria-atomic","true"),d.setAttribute("aria-live","polite"),this._document.body.appendChild(d),d}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(P,8),c.LFG(c.R0b),c.LFG(r.K0),c.LFG(_t,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const xt=new c.OlP("cdk-focus-monitor-default-options"),Ot=(0,n.i$)({passive:!0,capture:!0});let Rt=(()=>{class s{constructor(t,a,d,u,k){this._ngZone=t,this._platform=a,this._inputModalityDetector=d,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new E.x,this._rootNodeFocusAndBlurListener=G=>{const M=(0,n.sA)(G),f="focus"===G.type?this._onFocus:this._onBlur;for(let g=M;g;g=g.parentElement)f.call(this,G,g)},this._document=u,this._detectionMode=k?.detectionMode||0}monitor(t,a=!1){const d=(0,Q.fI)(t);if(!this._platform.isBrowser||1!==d.nodeType)return(0,at.of)(null);const u=(0,n.kV)(d)||this._getDocument(),k=this._elementInfo.get(d);if(k)return a&&(k.checkChildren=!0),k.subject;const G={checkChildren:a,subject:new E.x,rootNode:u};return this._elementInfo.set(d,G),this._registerGlobalListeners(G),G.subject}stopMonitoring(t){const a=(0,Q.fI)(t),d=this._elementInfo.get(a);d&&(d.subject.complete(),this._setClasses(a),this._elementInfo.delete(a),this._removeGlobalListeners(d))}focusVia(t,a,d){const u=(0,Q.fI)(t);u===this._getDocument().activeElement?this._getClosestElementsInfo(u).forEach(([G,M])=>this._originChanged(G,a,M)):(this._setOrigin(a),"function"==typeof u.focus&&u.focus(d))}ngOnDestroy(){this._elementInfo.forEach((t,a)=>this.stopMonitoring(a))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(t){return 1===this._detectionMode||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,a){t.classList.toggle("cdk-focused",!!a),t.classList.toggle("cdk-touch-focused","touch"===a),t.classList.toggle("cdk-keyboard-focused","keyboard"===a),t.classList.toggle("cdk-mouse-focused","mouse"===a),t.classList.toggle("cdk-program-focused","program"===a)}_setOrigin(t,a=!1){this._ngZone.runOutsideAngular(()=>{this._origin=t,this._originFromTouchInteraction="touch"===t&&a,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(t,a){const d=this._elementInfo.get(a),u=(0,n.sA)(t);!d||!d.checkChildren&&a!==u||this._originChanged(a,this._getFocusOrigin(u),d)}_onBlur(t,a){const d=this._elementInfo.get(a);!d||d.checkChildren&&t.relatedTarget instanceof Node&&a.contains(t.relatedTarget)||(this._setClasses(a),this._emitOrigin(d,null))}_emitOrigin(t,a){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(a))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const a=t.rootNode,d=this._rootNodeFocusListenerCount.get(a)||0;d||this._ngZone.runOutsideAngular(()=>{a.addEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),a.addEventListener("blur",this._rootNodeFocusAndBlurListener,Ot)}),this._rootNodeFocusListenerCount.set(a,d+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,K.R)(this._stopInputModalityDetector)).subscribe(u=>{this._setOrigin(u,!0)}))}_removeGlobalListeners(t){const a=t.rootNode;if(this._rootNodeFocusListenerCount.has(a)){const d=this._rootNodeFocusListenerCount.get(a);d>1?this._rootNodeFocusListenerCount.set(a,d-1):(a.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Ot),a.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Ot),this._rootNodeFocusListenerCount.delete(a))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,a,d){this._setClasses(t,a),this._emitOrigin(d,a),this._lastFocusOrigin=a}_getClosestElementsInfo(t){const a=[];return this._elementInfo.forEach((d,u)=>{(u===t||d.checkChildren&&u.contains(t))&&a.push([u,d])}),a}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(c.R0b),c.LFG(n.t4),c.LFG(D),c.LFG(r.K0,8),c.LFG(xt,8))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),At=(()=>{class s{constructor(t,a){this._elementRef=t,this._focusMonitor=a,this.cdkFocusChange=new c.vpe}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(a=>this.cdkFocusChange.emit(a))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return s.\u0275fac=function(t){return new(t||s)(c.Y36(c.SBq),c.Y36(Rt))},s.\u0275dir=c.lG2({type:s,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),s})();const Ft="cdk-high-contrast-black-on-white",V="cdk-high-contrast-white-on-black",A="cdk-high-contrast-active";let C=(()=>{class s{constructor(t,a){this._platform=t,this._document=a,this._breakpointSubscription=(0,c.f3M)(rt.Yg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const a=this._document.defaultView||window,d=a&&a.getComputedStyle?a.getComputedStyle(t):null,u=(d&&d.backgroundColor||"").replace(/ /g,"");switch(t.remove(),u){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(A,Ft,V),this._hasCheckedHighContrastMode=!0;const a=this.getHighContrastMode();1===a?t.add(A,Ft):2===a&&t.add(A,V)}}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(n.t4),c.LFG(r.K0))},s.\u0275prov=c.Yz7({token:s,factory:s.\u0275fac,providedIn:"root"}),s})(),j=(()=>{class s{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return s.\u0275fac=function(t){return new(t||s)(c.LFG(C))},s.\u0275mod=c.oAB({type:s}),s.\u0275inj=c.cJS({imports:[ht.Q8]}),s})()},445:(Tt,ft,l)=>{l.d(ft,{Is:()=>at,vT:()=>y});var r=l(4650),c=l(6895);const n=new r.OlP("cdk-dir-doc",{providedIn:"root",factory:function E(){return(0,r.f3M)(c.K0)}}),nt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let at=(()=>{class L{constructor(B){if(this.value="ltr",this.change=new r.vpe,B){const F=B.documentElement?B.documentElement.dir:null;this.value=function w(L){const et=L?.toLowerCase()||"";return"auto"===et&&typeof navigator<"u"&&navigator?.language?nt.test(navigator.language)?"rtl":"ltr":"rtl"===et?"rtl":"ltr"}((B.body?B.body.dir:null)||F||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(B){return new(B||L)(r.LFG(n,8))},L.\u0275prov=r.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),y=(()=>{class L{}return L.\u0275fac=function(B){return new(B||L)},L.\u0275mod=r.oAB({type:L}),L.\u0275inj=r.cJS({}),L})()},1281:(Tt,ft,l)=>{l.d(ft,{Eq:()=>nt,HM:()=>w,Ig:()=>c,du:()=>v,fI:()=>at,su:()=>n});var r=l(4650);function c(y){return null!=y&&"false"!=`${y}`}function n(y,L=0){return function E(y){return!isNaN(parseFloat(y))&&!isNaN(Number(y))}(y)?Number(y):L}function nt(y){return Array.isArray(y)?y:[y]}function w(y){return null==y?"":"string"==typeof y?y:`${y}px`}function at(y){return y instanceof r.SBq?y.nativeElement:y}function v(y,L=/\s+/){const et=[];if(null!=y){const B=Array.isArray(y)?y:`${y}`.split(L);for(const T of B){const F=`${T}`.trim();F&&et.push(F)}}return et}},5017:(Tt,ft,l)=>{l.d(ft,{A8:()=>L,Ov:()=>v});var r=l(7579),c=l(4650);class v{constructor(T=!1,F,W=!0){this._multiple=T,this._emitChanges=W,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new r.x,F&&F.length&&(T?F.forEach(K=>this._markSelected(K)):this._markSelected(F[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...T){this._verifyValueAssignment(T),T.forEach(F=>this._markSelected(F)),this._emitChangeEvent()}deselect(...T){this._verifyValueAssignment(T),T.forEach(F=>this._unmarkSelected(F)),this._emitChangeEvent()}toggle(T){this.isSelected(T)?this.deselect(T):this.select(T)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(T){return this._selection.has(T)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(T){this._multiple&&this.selected&&this._selected.sort(T)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(T){this.isSelected(T)||(this._multiple||this._unmarkAll(),this._selection.add(T),this._emitChanges&&this._selectedToEmit.push(T))}_unmarkSelected(T){this.isSelected(T)&&(this._selection.delete(T),this._emitChanges&&this._deselectedToEmit.push(T))}_unmarkAll(){this.isEmpty()||this._selection.forEach(T=>this._unmarkSelected(T))}_verifyValueAssignment(T){}}let L=(()=>{class B{constructor(){this._listeners=[]}notify(F,W){for(let K of this._listeners)K(F,W)}listen(F){return this._listeners.push(F),()=>{this._listeners=this._listeners.filter(W=>F!==W)}}ngOnDestroy(){this._listeners=[]}}return B.\u0275fac=function(F){return new(F||B)},B.\u0275prov=c.Yz7({token:B,factory:B.\u0275fac,providedIn:"root"}),B})()},9521:(Tt,ft,l)=>{l.d(ft,{A:()=>X,JH:()=>ut,JU:()=>w,K5:()=>nt,Ku:()=>T,LH:()=>ht,L_:()=>B,MW:()=>_t,Mf:()=>n,SV:()=>rt,Sd:()=>K,VM:()=>F,Vb:()=>Kt,Z:()=>tt,ZH:()=>c,aO:()=>z,b2:()=>Gt,hY:()=>et,jx:()=>at,oh:()=>Q,uR:()=>W,xE:()=>b,yY:()=>x,zL:()=>v});const c=8,n=9,nt=13,w=16,at=17,v=18,et=27,B=32,T=33,F=34,W=35,K=36,Q=37,ht=38,rt=39,ut=40,x=46,b=48,z=57,X=65,tt=90,_t=91,Gt=224;function Kt(Wt,...jt){return jt.length?jt.some(Zt=>Wt[Zt]):Wt.altKey||Wt.shiftKey||Wt.ctrlKey||Wt.metaKey}},2289:(Tt,ft,l)=>{l.d(ft,{Yg:()=>ut,u3:()=>$});var r=l(4650),c=l(1281),n=l(7579),E=l(9841),nt=l(7272),w=l(8306),at=l(5698),v=l(5684),y=l(8372),L=l(4004),et=l(8675),B=l(2722),T=l(3353);const W=new Set;let K,Q=(()=>{class _{constructor(b){this._platform=b,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):rt}matchMedia(b){return(this._platform.WEBKIT||this._platform.BLINK)&&function ht(_){if(!W.has(_))try{K||(K=document.createElement("style"),K.setAttribute("type","text/css"),document.head.appendChild(K)),K.sheet&&(K.sheet.insertRule(`@media ${_} {body{ }}`,0),W.add(_))}catch(x){console.error(x)}}(b),this._matchMedia(b)}}return _.\u0275fac=function(b){return new(b||_)(r.LFG(T.t4))},_.\u0275prov=r.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function rt(_){return{matches:"all"===_||""===_,media:_,addListener:()=>{},removeListener:()=>{}}}let ut=(()=>{class _{constructor(b,O){this._mediaMatcher=b,this._zone=O,this._queries=new Map,this._destroySubject=new n.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(b){return Z((0,c.Eq)(b)).some(st=>this._registerQuery(st).mql.matches)}observe(b){const st=Z((0,c.Eq)(b)).map(gt=>this._registerQuery(gt).observable);let vt=(0,E.a)(st);return vt=(0,nt.z)(vt.pipe((0,at.q)(1)),vt.pipe((0,v.T)(1),(0,y.b)(0))),vt.pipe((0,L.U)(gt=>{const wt={matches:!1,breakpoints:{}};return gt.forEach(({matches:bt,query:mt})=>{wt.matches=wt.matches||bt,wt.breakpoints[mt]=bt}),wt}))}_registerQuery(b){if(this._queries.has(b))return this._queries.get(b);const O=this._mediaMatcher.matchMedia(b),vt={observable:new w.y(gt=>{const wt=bt=>this._zone.run(()=>gt.next(bt));return O.addListener(wt),()=>{O.removeListener(wt)}}).pipe((0,et.O)(O),(0,L.U)(({matches:gt})=>({query:b,matches:gt})),(0,B.R)(this._destroySubject)),mql:O};return this._queries.set(b,vt),vt}}return _.\u0275fac=function(b){return new(b||_)(r.LFG(Q),r.LFG(r.R0b))},_.\u0275prov=r.Yz7({token:_,factory:_.\u0275fac,providedIn:"root"}),_})();function Z(_){return _.map(x=>x.split(",")).reduce((x,b)=>x.concat(b)).map(x=>x.trim())}const $={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"}},9643:(Tt,ft,l)=>{l.d(ft,{Q8:()=>y,wD:()=>v});var r=l(1281),c=l(4650),n=l(8306),E=l(7579),nt=l(8372);let w=(()=>{class L{create(B){return typeof MutationObserver>"u"?null:new MutationObserver(B)}}return L.\u0275fac=function(B){return new(B||L)},L.\u0275prov=c.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),at=(()=>{class L{constructor(B){this._mutationObserverFactory=B,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((B,T)=>this._cleanupObserver(T))}observe(B){const T=(0,r.fI)(B);return new n.y(F=>{const K=this._observeElement(T).subscribe(F);return()=>{K.unsubscribe(),this._unobserveElement(T)}})}_observeElement(B){if(this._observedElements.has(B))this._observedElements.get(B).count++;else{const T=new E.x,F=this._mutationObserverFactory.create(W=>T.next(W));F&&F.observe(B,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(B,{observer:F,stream:T,count:1})}return this._observedElements.get(B).stream}_unobserveElement(B){this._observedElements.has(B)&&(this._observedElements.get(B).count--,this._observedElements.get(B).count||this._cleanupObserver(B))}_cleanupObserver(B){if(this._observedElements.has(B)){const{observer:T,stream:F}=this._observedElements.get(B);T&&T.disconnect(),F.complete(),this._observedElements.delete(B)}}}return L.\u0275fac=function(B){return new(B||L)(c.LFG(w))},L.\u0275prov=c.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),v=(()=>{class L{constructor(B,T,F){this._contentObserver=B,this._elementRef=T,this._ngZone=F,this.event=new c.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(B){this._disabled=(0,r.Ig)(B),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(B){this._debounce=(0,r.su)(B),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const B=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?B.pipe((0,nt.b)(this.debounce)):B).subscribe(this.event)})}_unsubscribe(){this._currentSubscription?.unsubscribe()}}return L.\u0275fac=function(B){return new(B||L)(c.Y36(at),c.Y36(c.SBq),c.Y36(c.R0b))},L.\u0275dir=c.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),y=(()=>{class L{}return L.\u0275fac=function(B){return new(B||L)},L.\u0275mod=c.oAB({type:L}),L.\u0275inj=c.cJS({providers:[w]}),L})()},2561:(Tt,ft,l)=>{l.d(ft,{pI:()=>Ht,xu:()=>Nt,_G:()=>X,aV:()=>kt,X_:()=>O,Xj:()=>J,U8:()=>S,Iu:()=>dt});var r=l(7376),c=l(6895),n=l(4650),E=l(1281),nt=l(3353),w=l(445),at=l(4080),v=l(7579),y=l(727),L=l(6451),et=l(4482),B=l(5403),F=l(5698),W=l(2722),K=l(9521);const Q=(0,nt.Mq)();class ht{constructor(i,h){this._viewportRuler=i,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=h}attach(){}enable(){if(this._canBeEnabled()){const i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=(0,E.HM)(-this._previousScrollPosition.left),i.style.top=(0,E.HM)(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const i=this._document.documentElement,p=i.style,D=this._document.body.style,P=p.scrollBehavior||"",tt=D.scrollBehavior||"";this._isEnabled=!1,p.left=this._previousHTMLStyles.left,p.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),Q&&(p.scrollBehavior=D.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Q&&(p.scrollBehavior=P,D.scrollBehavior=tt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const h=this._document.body,p=this._viewportRuler.getViewportSize();return h.scrollHeight>p.height||h.scrollWidth>p.width}}class ut{constructor(i,h,p,D){this._scrollDispatcher=i,this._ngZone=h,this._viewportRuler=p,this._config=D,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(i){this._overlayRef=i}enable(){if(this._scrollSubscription)return;const i=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{const h=this._viewportRuler.getViewportScrollPosition().top;Math.abs(h-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class Z{enable(){}disable(){}attach(){}}function $(o,i){return i.some(h=>o.bottom<h.top||o.top>h.bottom||o.right<h.left||o.left>h.right)}function _(o,i){return i.some(h=>o.top<h.top||o.bottom>h.bottom||o.left<h.left||o.right>h.right)}class x{constructor(i,h,p,D){this._scrollDispatcher=i,this._viewportRuler=h,this._ngZone=p,this._config=D,this._scrollSubscription=null}attach(i){this._overlayRef=i}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const h=this._overlayRef.overlayElement.getBoundingClientRect(),{width:p,height:D}=this._viewportRuler.getViewportSize();$(h,[{width:p,height:D,bottom:D,right:p,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let b=(()=>{class o{constructor(h,p,D,P){this._scrollDispatcher=h,this._viewportRuler=p,this._ngZone=D,this.noop=()=>new Z,this.close=tt=>new ut(this._scrollDispatcher,this._ngZone,this._viewportRuler,tt),this.block=()=>new ht(this._viewportRuler,this._document),this.reposition=tt=>new x(this._scrollDispatcher,this._viewportRuler,this._ngZone,tt),this._document=P}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(r.mF),n.LFG(r.rL),n.LFG(n.R0b),n.LFG(c.K0))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class O{constructor(i){if(this.scrollStrategy=new Z,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,i){const h=Object.keys(i);for(const p of h)void 0!==i[p]&&(this[p]=i[p])}}}class gt{constructor(i,h){this.connectionPair=i,this.scrollableViewProperties=h}}let mt=(()=>{class o{constructor(h){this._attachedOverlays=[],this._document=h}ngOnDestroy(){this.detach()}add(h){this.remove(h),this._attachedOverlays.push(h)}remove(h){const p=this._attachedOverlays.indexOf(h);p>-1&&this._attachedOverlays.splice(p,1),0===this._attachedOverlays.length&&this.detach()}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),ct=(()=>{class o extends mt{constructor(h,p){super(h),this._ngZone=p,this._keydownListener=D=>{const P=this._attachedOverlays;for(let tt=P.length-1;tt>-1;tt--)if(P[tt]._keydownEvents.observers.length>0){const _t=P[tt]._keydownEvents;this._ngZone?this._ngZone.run(()=>_t.next(D)):_t.next(D);break}}}add(h){super.add(h),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(n.R0b,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),z=(()=>{class o extends mt{constructor(h,p,D){super(h),this._platform=p,this._ngZone=D,this._cursorStyleIsSet=!1,this._pointerDownListener=P=>{this._pointerDownEventTarget=(0,nt.sA)(P)},this._clickListener=P=>{const tt=(0,nt.sA)(P),_t="click"===P.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:tt;this._pointerDownEventTarget=null;const yt=this._attachedOverlays.slice();for(let Dt=yt.length-1;Dt>-1;Dt--){const xt=yt[Dt];if(xt._outsidePointerEvents.observers.length<1||!xt.hasAttached())continue;if(xt.overlayElement.contains(tt)||xt.overlayElement.contains(_t))break;const Ot=xt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Ot.next(P)):Ot.next(P)}}}add(h){if(super.add(h),!this._isAttached){const p=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(p)):this._addEventListeners(p),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=p.style.cursor,p.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const h=this._document.body;h.removeEventListener("pointerdown",this._pointerDownListener,!0),h.removeEventListener("click",this._clickListener,!0),h.removeEventListener("auxclick",this._clickListener,!0),h.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(h.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(h){h.addEventListener("pointerdown",this._pointerDownListener,!0),h.addEventListener("click",this._clickListener,!0),h.addEventListener("auxclick",this._clickListener,!0),h.addEventListener("contextmenu",this._clickListener,!0)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(nt.t4),n.LFG(n.R0b,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),J=(()=>{class o{constructor(h,p){this._platform=p,this._document=h}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const h="cdk-overlay-container";if(this._platform.isBrowser||(0,nt.Oy)()){const D=this._document.querySelectorAll(`.${h}[platform="server"], .${h}[platform="test"]`);for(let P=0;P<D.length;P++)D[P].remove()}const p=this._document.createElement("div");p.classList.add(h),(0,nt.Oy)()?p.setAttribute("platform","test"):this._platform.isBrowser||p.setAttribute("platform","server"),this._document.body.appendChild(p),this._containerElement=p}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(c.K0),n.LFG(nt.t4))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})();class dt{constructor(i,h,p,D,P,tt,_t,yt,Dt,xt=!1){this._portalOutlet=i,this._host=h,this._pane=p,this._config=D,this._ngZone=P,this._keyboardDispatcher=tt,this._document=_t,this._location=yt,this._outsideClickDispatcher=Dt,this._animationsDisabled=xt,this._backdropElement=null,this._backdropClick=new v.x,this._attachments=new v.x,this._detachments=new v.x,this._locationChanges=y.w0.EMPTY,this._backdropClickHandler=Ot=>this._backdropClick.next(Ot),this._backdropTransitionendHandler=Ot=>{this._disposeBackdrop(Ot.target)},this._keydownEvents=new v.x,this._outsidePointerEvents=new v.x,D.scrollStrategy&&(this._scrollStrategy=D.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=D.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const h=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,F.q)(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),h}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const i=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){const i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._previousHostParent=this._pane=this._host=null,i&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config={...this._config,...i},this._updateElementSize()}setDirection(i){this._config={...this._config,direction:i},this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){const i=this._config.direction;return i?"string"==typeof i?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const i=this._pane.style;i.width=(0,E.HM)(this._config.width),i.height=(0,E.HM)(this._config.height),i.minWidth=(0,E.HM)(this._config.minWidth),i.minHeight=(0,E.HM)(this._config.minHeight),i.maxWidth=(0,E.HM)(this._config.maxWidth),i.maxHeight=(0,E.HM)(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){const i="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._animationsDisabled&&this._backdropElement.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(i)})}):this._backdropElement.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const i=this._backdropElement;if(i){if(this._animationsDisabled)return void this._disposeBackdrop(i);i.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{i.addEventListener("transitionend",this._backdropTransitionendHandler)}),i.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(i)},500))}}_toggleClasses(i,h,p){const D=(0,E.Eq)(h||[]).filter(P=>!!P);D.length&&(p?i.classList.add(...D):i.classList.remove(...D))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const i=this._ngZone.onStable.pipe((0,W.R)((0,L.T)(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),i.unsubscribe())})})}_disposeScrollStrategy(){const i=this._scrollStrategy;i&&(i.disable(),i.detach&&i.detach())}_disposeBackdrop(i){i&&(i.removeEventListener("click",this._backdropClickHandler),i.removeEventListener("transitionend",this._backdropTransitionendHandler),i.remove(),this._backdropElement===i&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}const N="cdk-overlay-connected-position-bounding-box",q=/([A-Za-z%]+)$/;class X{constructor(i,h,p,D,P){this._viewportRuler=h,this._document=p,this._platform=D,this._overlayContainer=P,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new v.x,this._resizeSubscription=y.w0.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(i)}get positions(){return this._preferredPositions}attach(i){this._validatePositions(),i.hostElement.classList.add(N),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const i=this._originRect,h=this._overlayRect,p=this._viewportRect,D=this._containerRect,P=[];let tt;for(let _t of this._preferredPositions){let yt=this._getOriginPoint(i,D,_t),Dt=this._getOverlayPoint(yt,h,_t),xt=this._getOverlayFit(Dt,h,p,_t);if(xt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(_t,yt);this._canFitWithFlexibleDimensions(xt,Dt,p)?P.push({position:_t,origin:yt,overlayRect:h,boundingBoxRect:this._calculateBoundingBoxRect(yt,_t)}):(!tt||tt.overlayFit.visibleArea<xt.visibleArea)&&(tt={overlayFit:xt,overlayPoint:Dt,originPoint:yt,position:_t,overlayRect:h})}if(P.length){let _t=null,yt=-1;for(const Dt of P){const xt=Dt.boundingBoxRect.width*Dt.boundingBoxRect.height*(Dt.position.weight||1);xt>yt&&(yt=xt,_t=Dt)}return this._isPushed=!1,void this._applyPosition(_t.position,_t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(tt.position,tt.originPoint);this._applyPosition(tt.position,tt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Mt(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(N),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const h=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,h)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,-1===i.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,h,p){let D,P;if("center"==p.originX)D=i.left+i.width/2;else{const tt=this._isRtl()?i.right:i.left,_t=this._isRtl()?i.left:i.right;D="start"==p.originX?tt:_t}return h.left<0&&(D-=h.left),P="center"==p.originY?i.top+i.height/2:"top"==p.originY?i.top:i.bottom,h.top<0&&(P-=h.top),{x:D,y:P}}_getOverlayPoint(i,h,p){let D,P;return D="center"==p.overlayX?-h.width/2:"start"===p.overlayX?this._isRtl()?-h.width:0:this._isRtl()?0:-h.width,P="center"==p.overlayY?-h.height/2:"top"==p.overlayY?0:-h.height,{x:i.x+D,y:i.y+P}}_getOverlayFit(i,h,p,D){const P=St(h);let{x:tt,y:_t}=i,yt=this._getOffset(D,"x"),Dt=this._getOffset(D,"y");yt&&(tt+=yt),Dt&&(_t+=Dt);let Rt=0-_t,At=_t+P.height-p.height,Ft=this._subtractOverflows(P.width,0-tt,tt+P.width-p.width),V=this._subtractOverflows(P.height,Rt,At),A=Ft*V;return{visibleArea:A,isCompletelyWithinViewport:P.width*P.height===A,fitsInViewportVertically:V===P.height,fitsInViewportHorizontally:Ft==P.width}}_canFitWithFlexibleDimensions(i,h,p){if(this._hasFlexibleDimensions){const D=p.bottom-h.y,P=p.right-h.x,tt=lt(this._overlayRef.getConfig().minHeight),_t=lt(this._overlayRef.getConfig().minWidth),Dt=i.fitsInViewportHorizontally||null!=_t&&_t<=P;return(i.fitsInViewportVertically||null!=tt&&tt<=D)&&Dt}return!1}_pushOverlayOnScreen(i,h,p){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};const D=St(h),P=this._viewportRect,tt=Math.max(i.x+D.width-P.width,0),_t=Math.max(i.y+D.height-P.height,0),yt=Math.max(P.top-p.top-i.y,0),Dt=Math.max(P.left-p.left-i.x,0);let xt=0,Ot=0;return xt=D.width<=P.width?Dt||-tt:i.x<this._viewportMargin?P.left-p.left-i.x:0,Ot=D.height<=P.height?yt||-_t:i.y<this._viewportMargin?P.top-p.top-i.y:0,this._previousPushAmount={x:xt,y:Ot},{x:i.x+xt,y:i.y+Ot}}_applyPosition(i,h){if(this._setTransformOrigin(i),this._setOverlayElementStyles(h,i),this._setBoundingBoxStyles(h,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._lastPosition=i,this._positionChanges.observers.length){const p=this._getScrollVisibility(),D=new gt(i,p);this._positionChanges.next(D)}this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;const h=this._boundingBox.querySelectorAll(this._transformOriginSelector);let p,D=i.overlayY;p="center"===i.overlayX?"center":this._isRtl()?"start"===i.overlayX?"right":"left":"start"===i.overlayX?"left":"right";for(let P=0;P<h.length;P++)h[P].style.transformOrigin=`${p} ${D}`}_calculateBoundingBoxRect(i,h){const p=this._viewportRect,D=this._isRtl();let P,tt,_t,xt,Ot,Rt;if("top"===h.overlayY)tt=i.y,P=p.height-tt+this._viewportMargin;else if("bottom"===h.overlayY)_t=p.height-i.y+2*this._viewportMargin,P=p.height-_t+this._viewportMargin;else{const At=Math.min(p.bottom-i.y+p.top,i.y),Ft=this._lastBoundingBoxSize.height;P=2*At,tt=i.y-At,P>Ft&&!this._isInitialRender&&!this._growAfterOpen&&(tt=i.y-Ft/2)}if("end"===h.overlayX&&!D||"start"===h.overlayX&&D)Rt=p.width-i.x+this._viewportMargin,xt=i.x-this._viewportMargin;else if("start"===h.overlayX&&!D||"end"===h.overlayX&&D)Ot=i.x,xt=p.right-i.x;else{const At=Math.min(p.right-i.x+p.left,i.x),Ft=this._lastBoundingBoxSize.width;xt=2*At,Ot=i.x-At,xt>Ft&&!this._isInitialRender&&!this._growAfterOpen&&(Ot=i.x-Ft/2)}return{top:tt,left:Ot,bottom:_t,right:Rt,width:xt,height:P}}_setBoundingBoxStyles(i,h){const p=this._calculateBoundingBoxRect(i,h);!this._isInitialRender&&!this._growAfterOpen&&(p.height=Math.min(p.height,this._lastBoundingBoxSize.height),p.width=Math.min(p.width,this._lastBoundingBoxSize.width));const D={};if(this._hasExactPosition())D.top=D.left="0",D.bottom=D.right=D.maxHeight=D.maxWidth="",D.width=D.height="100%";else{const P=this._overlayRef.getConfig().maxHeight,tt=this._overlayRef.getConfig().maxWidth;D.height=(0,E.HM)(p.height),D.top=(0,E.HM)(p.top),D.bottom=(0,E.HM)(p.bottom),D.width=(0,E.HM)(p.width),D.left=(0,E.HM)(p.left),D.right=(0,E.HM)(p.right),D.alignItems="center"===h.overlayX?"center":"end"===h.overlayX?"flex-end":"flex-start",D.justifyContent="center"===h.overlayY?"center":"bottom"===h.overlayY?"flex-end":"flex-start",P&&(D.maxHeight=(0,E.HM)(P)),tt&&(D.maxWidth=(0,E.HM)(tt))}this._lastBoundingBoxSize=p,Mt(this._boundingBox.style,D)}_resetBoundingBoxStyles(){Mt(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Mt(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,h){const p={},D=this._hasExactPosition(),P=this._hasFlexibleDimensions,tt=this._overlayRef.getConfig();if(D){const xt=this._viewportRuler.getViewportScrollPosition();Mt(p,this._getExactOverlayY(h,i,xt)),Mt(p,this._getExactOverlayX(h,i,xt))}else p.position="static";let _t="",yt=this._getOffset(h,"x"),Dt=this._getOffset(h,"y");yt&&(_t+=`translateX(${yt}px) `),Dt&&(_t+=`translateY(${Dt}px)`),p.transform=_t.trim(),tt.maxHeight&&(D?p.maxHeight=(0,E.HM)(tt.maxHeight):P&&(p.maxHeight="")),tt.maxWidth&&(D?p.maxWidth=(0,E.HM)(tt.maxWidth):P&&(p.maxWidth="")),Mt(this._pane.style,p)}_getExactOverlayY(i,h,p){let D={top:"",bottom:""},P=this._getOverlayPoint(h,this._overlayRect,i);return this._isPushed&&(P=this._pushOverlayOnScreen(P,this._overlayRect,p)),"bottom"===i.overlayY?D.bottom=this._document.documentElement.clientHeight-(P.y+this._overlayRect.height)+"px":D.top=(0,E.HM)(P.y),D}_getExactOverlayX(i,h,p){let tt,D={left:"",right:""},P=this._getOverlayPoint(h,this._overlayRect,i);return this._isPushed&&(P=this._pushOverlayOnScreen(P,this._overlayRect,p)),tt=this._isRtl()?"end"===i.overlayX?"left":"right":"end"===i.overlayX?"right":"left","right"===tt?D.right=this._document.documentElement.clientWidth-(P.x+this._overlayRect.width)+"px":D.left=(0,E.HM)(P.x),D}_getScrollVisibility(){const i=this._getOriginRect(),h=this._pane.getBoundingClientRect(),p=this._scrollables.map(D=>D.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:_(i,p),isOriginOutsideView:$(i,p),isOverlayClipped:_(h,p),isOverlayOutsideView:$(h,p)}}_subtractOverflows(i,...h){return h.reduce((p,D)=>p-Math.max(D,0),i)}_getNarrowedViewportRect(){const i=this._document.documentElement.clientWidth,h=this._document.documentElement.clientHeight,p=this._viewportRuler.getViewportScrollPosition();return{top:p.top+this._viewportMargin,left:p.left+this._viewportMargin,right:p.left+i-this._viewportMargin,bottom:p.top+h-this._viewportMargin,width:i-2*this._viewportMargin,height:h-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,h){return"x"===h?i.offsetX??this._offsetX:i.offsetY??this._offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&(0,E.Eq)(i).forEach(h=>{""!==h&&-1===this._appliedPanelClasses.indexOf(h)&&(this._appliedPanelClasses.push(h),this._pane.classList.add(h))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){const i=this._origin;if(i instanceof n.SBq)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();const h=i.width||0,p=i.height||0;return{top:i.y,bottom:i.y+p,left:i.x,right:i.x+h,height:p,width:h}}}function Mt(o,i){for(let h in i)i.hasOwnProperty(h)&&(o[h]=i[h]);return o}function lt(o){if("number"!=typeof o&&null!=o){const[i,h]=o.split(q);return h&&"px"!==h?null:parseFloat(i)}return o||null}function St(o){return{top:Math.floor(o.top),right:Math.floor(o.right),bottom:Math.floor(o.bottom),left:Math.floor(o.left),width:Math.floor(o.width),height:Math.floor(o.height)}}const R="cdk-global-overlay-wrapper";class ot{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._alignItems="",this._xPosition="",this._xOffset="",this._width="",this._height="",this._isDisposed=!1}attach(i){const h=i.getConfig();this._overlayRef=i,this._width&&!h.width&&i.updateSize({width:this._width}),this._height&&!h.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(R),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const i=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement.style,p=this._overlayRef.getConfig(),{width:D,height:P,maxWidth:tt,maxHeight:_t}=p,yt=!("100%"!==D&&"100vw"!==D||tt&&"100%"!==tt&&"100vw"!==tt),Dt=!("100%"!==P&&"100vh"!==P||_t&&"100%"!==_t&&"100vh"!==_t),xt=this._xPosition,Ot=this._xOffset,Rt="rtl"===this._overlayRef.getConfig().direction;let At="",Ft="",V="";yt?V="flex-start":"center"===xt?(V="center",Rt?Ft=Ot:At=Ot):Rt?"left"===xt||"end"===xt?(V="flex-end",At=Ot):("right"===xt||"start"===xt)&&(V="flex-start",Ft=Ot):"left"===xt||"start"===xt?(V="flex-start",At=Ot):("right"===xt||"end"===xt)&&(V="flex-end",Ft=Ot),i.position=this._cssPosition,i.marginLeft=yt?"0":At,i.marginTop=Dt?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=yt?"0":Ft,h.justifyContent=V,h.alignItems=Dt?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const i=this._overlayRef.overlayElement.style,h=this._overlayRef.hostElement,p=h.style;h.classList.remove(R),p.justifyContent=p.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}}let U=(()=>{class o{constructor(h,p,D,P){this._viewportRuler=h,this._document=p,this._platform=D,this._overlayContainer=P}global(){return new ot}flexibleConnectedTo(h){return new X(h,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(r.rL),n.LFG(c.K0),n.LFG(nt.t4),n.LFG(J))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac,providedIn:"root"}),o})(),it=0,kt=(()=>{class o{constructor(h,p,D,P,tt,_t,yt,Dt,xt,Ot,Rt,At){this.scrollStrategies=h,this._overlayContainer=p,this._componentFactoryResolver=D,this._positionBuilder=P,this._keyboardDispatcher=tt,this._injector=_t,this._ngZone=yt,this._document=Dt,this._directionality=xt,this._location=Ot,this._outsideClickDispatcher=Rt,this._animationsModuleType=At}create(h){const p=this._createHostElement(),D=this._createPaneElement(p),P=this._createPortalOutlet(D),tt=new O(h);return tt.direction=tt.direction||this._directionality.value,new dt(P,p,D,tt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,"NoopAnimations"===this._animationsModuleType)}position(){return this._positionBuilder}_createPaneElement(h){const p=this._document.createElement("div");return p.id="cdk-overlay-"+it++,p.classList.add("cdk-overlay-pane"),h.appendChild(p),p}_createHostElement(){const h=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(h),h}_createPortalOutlet(h){return this._appRef||(this._appRef=this._injector.get(n.z2F)),new at.u0(h,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return o.\u0275fac=function(h){return new(h||o)(n.LFG(b),n.LFG(J),n.LFG(n._Vd),n.LFG(U),n.LFG(ct),n.LFG(n.zs3),n.LFG(n.R0b),n.LFG(c.K0),n.LFG(w.Is),n.LFG(c.Ye),n.LFG(z),n.LFG(n.QbO,8))},o.\u0275prov=n.Yz7({token:o,factory:o.\u0275fac}),o})();const It=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Lt=new n.OlP("cdk-connected-overlay-scroll-strategy");let Nt=(()=>{class o{constructor(h){this.elementRef=h}}return o.\u0275fac=function(h){return new(h||o)(n.Y36(n.SBq))},o.\u0275dir=n.lG2({type:o,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),o})(),Ht=(()=>{class o{constructor(h,p,D,P,tt){this._overlay=h,this._dir=tt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=y.w0.EMPTY,this._attachSubscription=y.w0.EMPTY,this._detachSubscription=y.w0.EMPTY,this._positionSubscription=y.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new n.vpe,this.positionChange=new n.vpe,this.attach=new n.vpe,this.detach=new n.vpe,this.overlayKeydown=new n.vpe,this.overlayOutsideClick=new n.vpe,this._templatePortal=new at.UE(p,D),this._scrollStrategyFactory=P,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(h){this._offsetX=h,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(h){this._offsetY=h,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(h){this._hasBackdrop=(0,E.Ig)(h)}get lockPosition(){return this._lockPosition}set lockPosition(h){this._lockPosition=(0,E.Ig)(h)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(h){this._flexibleDimensions=(0,E.Ig)(h)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(h){this._growAfterOpen=(0,E.Ig)(h)}get push(){return this._push}set push(h){this._push=(0,E.Ig)(h)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}ngOnChanges(h){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),h.origin&&this.open&&this._position.apply()),h.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=It);const h=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=h.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=h.detachments().subscribe(()=>this.detach.emit()),h.keydownEvents().subscribe(p=>{this.overlayKeydown.next(p),p.keyCode===K.hY&&!this.disableClose&&!(0,K.Vb)(p)&&(p.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(p=>{this.overlayOutsideClick.next(p)})}_buildConfig(){const h=this._position=this.positionStrategy||this._createPositionStrategy(),p=new O({direction:this._dir,positionStrategy:h,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(p.width=this.width),(this.height||0===this.height)&&(p.height=this.height),(this.minWidth||0===this.minWidth)&&(p.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(p.minHeight=this.minHeight),this.backdropClass&&(p.backdropClass=this.backdropClass),this.panelClass&&(p.panelClass=this.panelClass),p}_updatePositionStrategy(h){const p=this.positions.map(D=>({originX:D.originX,originY:D.originY,overlayX:D.overlayX,overlayY:D.overlayY,offsetX:D.offsetX||this.offsetX,offsetY:D.offsetY||this.offsetY,panelClass:D.panelClass||void 0}));return h.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(p).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const h=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(h),h}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Nt?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(h=>{this.backdropClick.emit(h)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function T(o,i=!1){return(0,et.e)((h,p)=>{let D=0;h.subscribe((0,B.x)(p,P=>{const tt=o(P,D++);(tt||i)&&p.next(P),!tt&&p.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(h=>{this.positionChange.emit(h),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return o.\u0275fac=function(h){return new(h||o)(n.Y36(kt),n.Y36(n.Rgc),n.Y36(n.s_b),n.Y36(Lt),n.Y36(w.Is,8))},o.\u0275dir=n.lG2({type:o,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[n.TTD]}),o})();const Et={provide:Lt,deps:[kt],useFactory:function Vt(o){return()=>o.scrollStrategies.reposition()}};let S=(()=>{class o{}return o.\u0275fac=function(h){return new(h||o)},o.\u0275mod=n.oAB({type:o}),o.\u0275inj=n.cJS({providers:[kt,Et],imports:[w.vT,at.eL,r.Cl,r.Cl]}),o})()},3353:(Tt,ft,l)=>{l.d(ft,{Mq:()=>F,Oy:()=>Z,ht:()=>rt,i$:()=>et,kV:()=>ht,qK:()=>v,sA:()=>ut,t4:()=>E});var r=l(4650),c=l(6895);let n;try{n=typeof Intl<"u"&&Intl.v8BreakIterator}catch{n=!1}let w,E=(()=>{class ${constructor(x){this._platformId=x,this.isBrowser=this._platformId?(0,c.NF)(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!n)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return $.\u0275fac=function(x){return new(x||$)(r.LFG(r.Lbi))},$.\u0275prov=r.Yz7({token:$,factory:$.\u0275fac,providedIn:"root"}),$})();const at=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function v(){if(w)return w;if("object"!=typeof document||!document)return w=new Set(at),w;let $=document.createElement("input");return w=new Set(at.filter(_=>($.setAttribute("type",_),$.type===_))),w}let y,T,K;function et($){return function L(){if(null==y&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>y=!0}))}finally{y=y||!1}return y}()?$:!!$.capture}function F(){if(null==T){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return T=!1,T;if("scrollBehavior"in document.documentElement.style)T=!0;else{const $=Element.prototype.scrollTo;T=!!$&&!/\{\s*\[native code\]\s*\}/.test($.toString())}}return T}function ht($){if(function Q(){if(null==K){const $=typeof document<"u"?document.head:null;K=!(!$||!$.createShadowRoot&&!$.attachShadow)}return K}()){const _=$.getRootNode?$.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&_ instanceof ShadowRoot)return _}return null}function rt(){let $=typeof document<"u"&&document?document.activeElement:null;for(;$&&$.shadowRoot;){const _=$.shadowRoot.activeElement;if(_===$)break;$=_}return $}function ut($){return $.composedPath?$.composedPath()[0]:$.target}function Z(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}},4080:(Tt,ft,l)=>{l.d(ft,{C5:()=>L,Pl:()=>rt,UE:()=>et,eL:()=>Z,en:()=>T,u0:()=>W});var r=l(4650),c=l(6895);class y{attach(x){return this._attachedHost=x,x.attach(this)}detach(){let x=this._attachedHost;null!=x&&(this._attachedHost=null,x.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(x){this._attachedHost=x}}class L extends y{constructor(x,b,O,st){super(),this.component=x,this.viewContainerRef=b,this.injector=O,this.componentFactoryResolver=st}}class et extends y{constructor(x,b,O,st){super(),this.templateRef=x,this.viewContainerRef=b,this.context=O,this.injector=st}get origin(){return this.templateRef.elementRef}attach(x,b=this.context){return this.context=b,super.attach(x)}detach(){return this.context=void 0,super.detach()}}class B extends y{constructor(x){super(),this.element=x instanceof r.SBq?x.nativeElement:x}}class T{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(x){return x instanceof L?(this._attachedPortal=x,this.attachComponentPortal(x)):x instanceof et?(this._attachedPortal=x,this.attachTemplatePortal(x)):this.attachDomPortal&&x instanceof B?(this._attachedPortal=x,this.attachDomPortal(x)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(x){this._disposeFn=x}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class W extends T{constructor(x,b,O,st,vt){super(),this.outletElement=x,this._componentFactoryResolver=b,this._appRef=O,this._defaultInjector=st,this.attachDomPortal=gt=>{const wt=gt.element,bt=this._document.createComment("dom-portal");wt.parentNode.insertBefore(bt,wt),this.outletElement.appendChild(wt),this._attachedPortal=gt,super.setDisposeFn(()=>{bt.parentNode&&bt.parentNode.replaceChild(wt,bt)})},this._document=vt}attachComponentPortal(x){const O=(x.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(x.component);let st;return x.viewContainerRef?(st=x.viewContainerRef.createComponent(O,x.viewContainerRef.length,x.injector||x.viewContainerRef.injector),this.setDisposeFn(()=>st.destroy())):(st=O.create(x.injector||this._defaultInjector||r.zs3.NULL),this._appRef.attachView(st.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(st.hostView),st.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(st)),this._attachedPortal=x,st}attachTemplatePortal(x){let b=x.viewContainerRef,O=b.createEmbeddedView(x.templateRef,x.context,{injector:x.injector});return O.rootNodes.forEach(st=>this.outletElement.appendChild(st)),O.detectChanges(),this.setDisposeFn(()=>{let st=b.indexOf(O);-1!==st&&b.remove(st)}),this._attachedPortal=x,O}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(x){return x.hostView.rootNodes[0]}}let rt=(()=>{class _ extends T{constructor(b,O,st){super(),this._componentFactoryResolver=b,this._viewContainerRef=O,this._isInitialized=!1,this.attached=new r.vpe,this.attachDomPortal=vt=>{const gt=vt.element,wt=this._document.createComment("dom-portal");vt.setAttachedHost(this),gt.parentNode.insertBefore(wt,gt),this._getRootNode().appendChild(gt),this._attachedPortal=vt,super.setDisposeFn(()=>{wt.parentNode&&wt.parentNode.replaceChild(gt,wt)})},this._document=st}get portal(){return this._attachedPortal}set portal(b){this.hasAttached()&&!b&&!this._isInitialized||(this.hasAttached()&&super.detach(),b&&super.attach(b),this._attachedPortal=b||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(b){b.setAttachedHost(this);const O=null!=b.viewContainerRef?b.viewContainerRef:this._viewContainerRef,vt=(b.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(b.component),gt=O.createComponent(vt,O.length,b.injector||O.injector);return O!==this._viewContainerRef&&this._getRootNode().appendChild(gt.hostView.rootNodes[0]),super.setDisposeFn(()=>gt.destroy()),this._attachedPortal=b,this._attachedRef=gt,this.attached.emit(gt),gt}attachTemplatePortal(b){b.setAttachedHost(this);const O=this._viewContainerRef.createEmbeddedView(b.templateRef,b.context,{injector:b.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=b,this._attachedRef=O,this.attached.emit(O),O}_getRootNode(){const b=this._viewContainerRef.element.nativeElement;return b.nodeType===b.ELEMENT_NODE?b:b.parentNode}}return _.\u0275fac=function(b){return new(b||_)(r.Y36(r._Vd),r.Y36(r.s_b),r.Y36(c.K0))},_.\u0275dir=r.lG2({type:_,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[r.qOj]}),_})(),Z=(()=>{class _{}return _.\u0275fac=function(b){return new(b||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({}),_})()},7376:(Tt,ft,l)=>{l.d(ft,{Cl:()=>bt,ZD:()=>wt,mF:()=>Z,rL:()=>x});var r=l(1281),c=l(4650),n=l(7579),E=l(9646),nt=l(8306),w=l(4968),y=(l(6406),l(3101),l(3601)),L=l(9300),et=l(3353),B=l(6895),T=l(445);let Z=(()=>{class mt{constructor(z,J,dt){this._ngZone=z,this._platform=J,this._scrolled=new n.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=dt}register(z){this.scrollContainers.has(z)||this.scrollContainers.set(z,z.elementScrolled().subscribe(()=>this._scrolled.next(z)))}deregister(z){const J=this.scrollContainers.get(z);J&&(J.unsubscribe(),this.scrollContainers.delete(z))}scrolled(z=20){return this._platform.isBrowser?new nt.y(J=>{this._globalSubscription||this._addGlobalListener();const dt=z>0?this._scrolled.pipe((0,y.e)(z)).subscribe(J):this._scrolled.subscribe(J);return this._scrolledCount++,()=>{dt.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,E.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((z,J)=>this.deregister(J)),this._scrolled.complete()}ancestorScrolled(z,J){const dt=this.getAncestorScrollContainers(z);return this.scrolled(J).pipe((0,L.h)(N=>!N||dt.indexOf(N)>-1))}getAncestorScrollContainers(z){const J=[];return this.scrollContainers.forEach((dt,N)=>{this._scrollableContainsElement(N,z)&&J.push(N)}),J}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(z,J){let dt=(0,r.fI)(J),N=z.getElementRef().nativeElement;do{if(dt==N)return!0}while(dt=dt.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const z=this._getWindow();return(0,w.R)(z.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return mt.\u0275fac=function(z){return new(z||mt)(c.LFG(c.R0b),c.LFG(et.t4),c.LFG(B.K0,8))},mt.\u0275prov=c.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})(),x=(()=>{class mt{constructor(z,J,dt){this._platform=z,this._change=new n.x,this._changeListener=N=>{this._change.next(N)},this._document=dt,J.runOutsideAngular(()=>{if(z.isBrowser){const N=this._getWindow();N.addEventListener("resize",this._changeListener),N.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const z=this._getWindow();z.removeEventListener("resize",this._changeListener),z.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const z={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),z}getViewportRect(){const z=this.getViewportScrollPosition(),{width:J,height:dt}=this.getViewportSize();return{top:z.top,left:z.left,bottom:z.top+dt,right:z.left+J,height:dt,width:J}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const z=this._document,J=this._getWindow(),dt=z.documentElement,N=dt.getBoundingClientRect();return{top:-N.top||z.body.scrollTop||J.scrollY||dt.scrollTop||0,left:-N.left||z.body.scrollLeft||J.scrollX||dt.scrollLeft||0}}change(z=20){return z>0?this._change.pipe((0,y.e)(z)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const z=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:z.innerWidth,height:z.innerHeight}:{width:0,height:0}}}return mt.\u0275fac=function(z){return new(z||mt)(c.LFG(et.t4),c.LFG(c.R0b),c.LFG(B.K0,8))},mt.\u0275prov=c.Yz7({token:mt,factory:mt.\u0275fac,providedIn:"root"}),mt})(),wt=(()=>{class mt{}return mt.\u0275fac=function(z){return new(z||mt)},mt.\u0275mod=c.oAB({type:mt}),mt.\u0275inj=c.cJS({}),mt})(),bt=(()=>{class mt{}return mt.\u0275fac=function(z){return new(z||mt)},mt.\u0275mod=c.oAB({type:mt}),mt.\u0275inj=c.cJS({imports:[T.vT,wt,T.vT,wt]}),mt})()},4859:(Tt,ft,l)=>{l.d(ft,{lW:()=>L,ot:()=>B});var r=l(4650),c=l(3238),n=l(2687);const E=["mat-button",""],nt=["*"],v=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],y=(0,c.pj)((0,c.Id)((0,c.Kr)(class{constructor(T){this._elementRef=T}})));let L=(()=>{class T extends y{constructor(W,K,Q){super(W),this._focusMonitor=K,this._animationMode=Q,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ht of v)this._hasHostAttributes(ht)&&this._getHostElement().classList.add(ht);W.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(W,K){W?this._focusMonitor.focusVia(this._getHostElement(),W,K):this._getHostElement().focus(K)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...W){return W.some(K=>this._getHostElement().hasAttribute(K))}}return T.\u0275fac=function(W){return new(W||T)(r.Y36(r.SBq),r.Y36(n.tE),r.Y36(r.QbO,8))},T.\u0275cmp=r.Xpm({type:T,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(W,K){if(1&W&&r.Gf(c.wG,5),2&W){let Q;r.iGM(Q=r.CRH())&&(K.ripple=Q.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(W,K){2&W&&(r.uIk("disabled",K.disabled||null),r.ekj("_mat-animation-noopable","NoopAnimations"===K._animationMode)("mat-button-disabled",K.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[r.qOj],attrs:E,ngContentSelectors:nt,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(W,K){1&W&&(r.F$t(),r.TgZ(0,"span",0),r.Hsn(1),r.qZA(),r._UZ(2,"span",1)(3,"span",2)),2&W&&(r.xp6(2),r.ekj("mat-button-ripple-round",K.isRoundButton||K.isIconButton),r.Q6J("matRippleDisabled",K._isRippleDisabled())("matRippleCentered",K.isIconButton)("matRippleTrigger",K._getHostElement()))},dependencies:[c.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}.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}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}"],encapsulation:2,changeDetection:0}),T})(),B=(()=>{class T{}return T.\u0275fac=function(W){return new(W||T)},T.\u0275mod=r.oAB({type:T}),T.\u0275inj=r.cJS({imports:[c.si,c.BQ,c.BQ]}),T})()},6709:(Tt,ft,l)=>{l.d(ft,{oG:()=>ht,p9:()=>$});var r=l(2687),c=l(1281),n=l(4650),E=l(4006),nt=l(3238),w=l(9643);const at=["input"],v=function(_){return{enterDuration:_}},y=["*"],L=new n.OlP("mat-checkbox-default-options",{providedIn:"root",factory:et});function et(){return{color:"accent",clickAction:"check-indeterminate"}}let B=0;const T=et(),F={provide:E.JU,useExisting:(0,n.Gpc)(()=>ht),multi:!0};class W{}const K=(0,nt.sb)((0,nt.pj)((0,nt.Kr)((0,nt.Id)(class{constructor(_){this._elementRef=_}}))));let Q=(()=>{class _ extends K{constructor(b,O,st,vt,gt,wt,bt){super(O),this._changeDetectorRef=st,this._ngZone=vt,this._animationMode=wt,this._options=bt,this.ariaLabel="",this.ariaLabelledby=null,this.labelPosition="after",this.name=null,this.change=new n.vpe,this.indeterminateChange=new n.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||T,this.color=this.defaultColor=this._options.color||T.color,this.tabIndex=parseInt(gt)||0,this.id=this._uniqueId=`${b}${++B}`}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(b){this._required=(0,c.Ig)(b)}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(b){const O=(0,c.Ig)(b);O!=this.checked&&(this._checked=O,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(b){const O=(0,c.Ig)(b);O!==this.disabled&&(this._disabled=O,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(b){const O=b!=this._indeterminate;this._indeterminate=(0,c.Ig)(b),O&&(this._transitionCheckState(this._indeterminate?3:this.checked?1:2),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(b){this.checked=!!b}registerOnChange(b){this._controlValueAccessorChangeFn=b}registerOnTouched(b){this._onTouched=b}setDisabledState(b){this.disabled=b}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(b){let O=this._currentCheckState,st=this._getAnimationTargetElement();if(O!==b&&st&&(this._currentAnimationClass.length>0&&st.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(O,b),this._currentCheckState=b,this._currentAnimationClass.length>0)){st.classList.add(this._currentAnimationClass);const vt=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{st.classList.remove(vt)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){const b=this._options?.clickAction;this.disabled||"noop"===b?!this.disabled&&"noop"===b&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==b&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}_onInteractionEvent(b){b.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(b,O){if("NoopAnimations"===this._animationMode)return"";switch(b){case 0:if(1===O)return this._animationClasses.uncheckedToChecked;if(3==O)return this._animationClasses.uncheckedToIndeterminate;break;case 2:return 1===O?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case 1:return 2===O?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case 3:return 1===O?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(b){const O=this._inputElement;O&&(O.nativeElement.indeterminate=b)}}return _.\u0275fac=function(b){n.$Z()},_.\u0275dir=n.lG2({type:_,viewQuery:function(b,O){if(1&b&&(n.Gf(at,5),n.Gf(nt.wG,5)),2&b){let st;n.iGM(st=n.CRH())&&(O._inputElement=st.first),n.iGM(st=n.CRH())&&(O.ripple=st.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},features:[n.qOj]}),_})(),ht=(()=>{class _ extends Q{constructor(b,O,st,vt,gt,wt,bt){super("mat-checkbox-",b,O,vt,gt,wt,bt),this._focusMonitor=st,this._animationClasses={uncheckedToChecked:"mat-checkbox-anim-unchecked-checked",uncheckedToIndeterminate:"mat-checkbox-anim-unchecked-indeterminate",checkedToUnchecked:"mat-checkbox-anim-checked-unchecked",checkedToIndeterminate:"mat-checkbox-anim-checked-indeterminate",indeterminateToChecked:"mat-checkbox-anim-indeterminate-checked",indeterminateToUnchecked:"mat-checkbox-anim-indeterminate-unchecked"}}_createChangeEvent(b){const O=new W;return O.source=this,O.checked=b,O}_getAnimationTargetElement(){return this._elementRef.nativeElement}ngAfterViewInit(){super.ngAfterViewInit(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{b||this._onBlur()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onInputClick(b){b.stopPropagation(),super._handleInputClick()}focus(b,O){b?this._focusMonitor.focusVia(this._inputElement,b,O):this._inputElement.nativeElement.focus(O)}}return _.\u0275fac=function(b){return new(b||_)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(r.tE),n.Y36(n.R0b),n.$8M("tabindex"),n.Y36(n.QbO,8),n.Y36(L,8))},_.\u0275cmp=n.Xpm({type:_,selectors:[["mat-checkbox"]],hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(b,O){2&b&&(n.Ikx("id",O.id),n.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),n.ekj("mat-checkbox-indeterminate",O.indeterminate)("mat-checkbox-checked",O.checked)("mat-checkbox-disabled",O.disabled)("mat-checkbox-label-before","before"==O.labelPosition)("_mat-animation-noopable","NoopAnimations"===O._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matCheckbox"],features:[n._Bn([F]),n.qOj],ngContentSelectors:y,decls:17,vars:21,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(b,O){if(1&b&&(n.F$t(),n.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),n.NdJ("change",function(vt){return O._onInteractionEvent(vt)})("click",function(vt){return O._onInputClick(vt)}),n.qZA(),n.TgZ(5,"span",5),n._UZ(6,"span",6),n.qZA(),n._UZ(7,"span",7),n.TgZ(8,"span",8),n.O4$(),n.TgZ(9,"svg",9),n._UZ(10,"path",10),n.qZA(),n.kcU(),n._UZ(11,"span",11),n.qZA()(),n.TgZ(12,"span",12,13),n.NdJ("cdkObserveContent",function(){return O._onLabelTextChange()}),n.TgZ(14,"span",14),n._uU(15,"\xa0"),n.qZA(),n.Hsn(16),n.qZA()()),2&b){const st=n.MAs(1),vt=n.MAs(13);n.uIk("for",O.inputId),n.xp6(2),n.ekj("mat-checkbox-inner-container-no-side-margin",!vt.textContent||!vt.textContent.trim()),n.xp6(1),n.Q6J("id",O.inputId)("required",O.required)("checked",O.checked)("disabled",O.disabled)("tabIndex",O.tabIndex),n.uIk("value",O.value)("name",O.name)("aria-label",O.ariaLabel||null)("aria-labelledby",O.ariaLabelledby)("aria-checked",O._getAriaChecked())("aria-describedby",O.ariaDescribedby),n.xp6(2),n.Q6J("matRippleTrigger",st)("matRippleDisabled",O._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",n.VKq(19,v,"NoopAnimations"===O._animationMode?0:150))}},dependencies:[nt.wG,w.wD],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.910259}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);stroke-dashoffset:0}to{stroke-dashoffset:-22.910259}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 0.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0deg)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);opacity:1;transform:rotate(0deg)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}32.8%,100%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{display:inline-block;transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.cdk-high-contrast-active .mat-checkbox.cdk-keyboard-focused .mat-checkbox-ripple{outline:solid 3px}.mat-checkbox-layout{-webkit-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:rgba(0,0,0,0);transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0, 0, 0.2, 0.1),opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);-webkit-print-color-adjust:exact;color-adjust:exact}._mat-animation-noopable .mat-checkbox-background{transition:none}.cdk-high-contrast-active .mat-checkbox .mat-checkbox-background{background:none}.mat-checkbox-persistent-ripple{display:block;width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media(hover: none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.910259;stroke-dasharray:22.910259;stroke-width:2.1333333333px}.cdk-high-contrast-black-on-white .mat-checkbox-checkmark-path{stroke:#000 !important}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0deg);border-radius:2px}.cdk-high-contrast-active .mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0deg)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:rgba(0,0,0,0)}.mat-checkbox-disabled{cursor:default}.cdk-high-contrast-active .mat-checkbox-disabled{opacity:.5}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0ms mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0ms mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0ms mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:500ms linear 0ms mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0ms mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:300ms linear 0ms mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}"],encapsulation:2,changeDetection:0}),_})(),Z=(()=>{class _{}return _.\u0275fac=function(b){return new(b||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({}),_})(),$=(()=>{class _{}return _.\u0275fac=function(b){return new(b||_)},_.\u0275mod=n.oAB({type:_}),_.\u0275inj=n.cJS({imports:[nt.si,nt.BQ,w.Q8,Z,nt.BQ,Z]}),_})()},3238:(Tt,ft,l)=>{l.d(ft,{_A:()=>ct,rD:()=>St,sG:()=>z,Ad:()=>bt,K7:()=>tt,HF:()=>h,Y2:()=>Et,BQ:()=>Z,XK:()=>Mt,ey:()=>Ot,Ng:()=>Ft,wG:()=>S,si:()=>m,IR:()=>Ht,CB:()=>Rt,jH:()=>At,pj:()=>O,Kr:()=>st,Id:()=>b,FD:()=>gt,dB:()=>wt,sb:()=>vt});var r=l(4650),c=l(2687),n=l(445),nt=l(6895),w=l(3353),at=l(1281),v=l(8306),y=l(7579),L=l(9521);function T(V,A){if(1&V&&r._UZ(0,"mat-pseudo-checkbox",4),2&V){const C=r.oxw();r.Q6J("state",C.selected?"checked":"unchecked")("disabled",C.disabled)}}function F(V,A){if(1&V&&(r.TgZ(0,"span",5),r._uU(1),r.qZA()),2&V){const C=r.oxw();r.xp6(1),r.hij("(",C.group.label,")")}}const W=["*"],ut=new r.OlP("mat-sanity-checks",{providedIn:"root",factory:function rt(){return!0}});let Z=(()=>{class V{constructor(C,j,s){this._sanityChecks=j,this._document=s,this._hasDoneGlobalChecks=!1,C._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(C){return!(0,w.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[C])}}return V.\u0275fac=function(C){return new(C||V)(r.LFG(c.qm),r.LFG(ut,8),r.LFG(nt.K0))},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({imports:[n.vT,n.vT]}),V})();function b(V){return class extends V{constructor(...A){super(...A),this._disabled=!1}get disabled(){return this._disabled}set disabled(A){this._disabled=(0,at.Ig)(A)}}}function O(V,A){return class extends V{constructor(...C){super(...C),this.defaultColor=A,this.color=A}get color(){return this._color}set color(C){const j=C||this.defaultColor;j!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),j&&this._elementRef.nativeElement.classList.add(`mat-${j}`),this._color=j)}}}function st(V){return class extends V{constructor(...A){super(...A),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(A){this._disableRipple=(0,at.Ig)(A)}}}function vt(V,A=0){return class extends V{constructor(...C){super(...C),this._tabIndex=A,this.defaultTabIndex=A}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(C){this._tabIndex=null!=C?(0,at.su)(C):this.defaultTabIndex}}}function gt(V){return class extends V{constructor(...A){super(...A),this.errorState=!1}updateErrorState(){const A=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==A&&(this.errorState=e,this.stateChanges.next())}}}function wt(V){return class extends V{constructor(...A){super(...A),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new v.y(C=>{this._isInitialized?this._notifySubscriber(C):this._pendingSubscribers.push(C)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(A){A.next(),A.complete()}}}const bt=new r.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function mt(){return(0,r.f3M)(r.soG)}});class ct{constructor(){this._localeChanges=new y.x,this.localeChanges=this._localeChanges}getValidDateOrNull(A){return this.isDateInstance(A)&&this.isValid(A)?A:null}deserialize(A){return null==A||this.isDateInstance(A)&&this.isValid(A)?A:this.invalid()}setLocale(A){this.locale=A,this._localeChanges.next()}compareDate(A,C){return this.getYear(A)-this.getYear(C)||this.getMonth(A)-this.getMonth(C)||this.getDate(A)-this.getDate(C)}sameDate(A,C){if(A&&C){let j=this.isValid(A),s=this.isValid(C);return j&&s?!this.compareDate(A,C):j==s}return A==C}clampDate(A,C,j){return C&&this.compareDate(A,C)<0?C:j&&this.compareDate(A,j)>0?j:A}}const z=new r.OlP("mat-date-formats"),J=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function dt(V,A){const C=Array(V);for(let j=0;j<V;j++)C[j]=A(j);return C}let N=(()=>{class V extends ct{constructor(C,j){super(),this.useUtcForDisplay=!1,super.setLocale(C)}getYear(C){return C.getFullYear()}getMonth(C){return C.getMonth()}getDate(C){return C.getDate()}getDayOfWeek(C){return C.getDay()}getMonthNames(C){const j=new Intl.DateTimeFormat(this.locale,{month:C,timeZone:"utc"});return dt(12,s=>this._format(j,new Date(2017,s,1)))}getDateNames(){const C=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return dt(31,j=>this._format(C,new Date(2017,0,j+1)))}getDayOfWeekNames(C){const j=new Intl.DateTimeFormat(this.locale,{weekday:C,timeZone:"utc"});return dt(7,s=>this._format(j,new Date(2017,0,s+1)))}getYearName(C){const j=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(j,C)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(C){return this.getDate(this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+1,0))}clone(C){return new Date(C.getTime())}createDate(C,j,s){let e=this._createDateWithOverflow(C,j,s);return e.getMonth(),e}today(){return new Date}parse(C){return"number"==typeof C?new Date(C):C?new Date(Date.parse(C)):null}format(C,j){if(!this.isValid(C))throw Error("NativeDateAdapter: Cannot format invalid date.");const s=new Intl.DateTimeFormat(this.locale,{...j,timeZone:"utc"});return this._format(s,C)}addCalendarYears(C,j){return this.addCalendarMonths(C,12*j)}addCalendarMonths(C,j){let s=this._createDateWithOverflow(this.getYear(C),this.getMonth(C)+j,this.getDate(C));return this.getMonth(s)!=((this.getMonth(C)+j)%12+12)%12&&(s=this._createDateWithOverflow(this.getYear(s),this.getMonth(s),0)),s}addCalendarDays(C,j){return this._createDateWithOverflow(this.getYear(C),this.getMonth(C),this.getDate(C)+j)}toIso8601(C){return[C.getUTCFullYear(),this._2digit(C.getUTCMonth()+1),this._2digit(C.getUTCDate())].join("-")}deserialize(C){if("string"==typeof C){if(!C)return null;if(J.test(C)){let j=new Date(C);if(this.isValid(j))return j}}return super.deserialize(C)}isDateInstance(C){return C instanceof Date}isValid(C){return!isNaN(C.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(C,j,s){const e=new Date;return e.setFullYear(C,j,s),e.setHours(0,0,0,0),e}_2digit(C){return("00"+C).slice(-2)}_format(C,j){const s=new Date;return s.setUTCFullYear(j.getFullYear(),j.getMonth(),j.getDate()),s.setUTCHours(j.getHours(),j.getMinutes(),j.getSeconds(),j.getMilliseconds()),C.format(s)}}return V.\u0275fac=function(C){return new(C||V)(r.LFG(bt,8),r.LFG(w.t4))},V.\u0275prov=r.Yz7({token:V,factory:V.\u0275fac}),V})();const q={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}};let X=(()=>{class V{}return V.\u0275fac=function(C){return new(C||V)},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({providers:[{provide:ct,useClass:N}]}),V})(),Mt=(()=>{class V{}return V.\u0275fac=function(C){return new(C||V)},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({providers:[{provide:z,useValue:q}],imports:[X]}),V})(),St=(()=>{class V{isErrorState(C,j){return!!(C&&C.invalid&&(C.touched||j&&j.submitted))}}return V.\u0275fac=function(C){return new(C||V)},V.\u0275prov=r.Yz7({token:V,factory:V.\u0275fac,providedIn:"root"}),V})();class U{constructor(A,C,j,s=!1){this._renderer=A,this.element=C,this.config=j,this._animationForciblyDisabledThroughCss=s,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const it={enterDuration:225,exitDuration:150},It=(0,w.i$)({passive:!0}),Lt=["mousedown","touchstart"],Nt=["mouseup","mouseleave","touchend","touchcancel"];class Ht{constructor(A,C,j,s){this._target=A,this._ngZone=C,this._isPointerDown=!1,this._activeRipples=new Map,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=(0,at.fI)(j))}fadeInRipple(A,C,j={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),e={...it,...j.animation};j.centered&&(A=s.left+s.width/2,C=s.top+s.height/2);const t=j.radius||function Vt(V,A,C){const j=Math.max(Math.abs(V-C.left),Math.abs(V-C.right)),s=Math.max(Math.abs(A-C.top),Math.abs(A-C.bottom));return Math.sqrt(j*j+s*s)}(A,C,s),a=A-s.left,d=C-s.top,u=e.enterDuration,k=document.createElement("div");k.classList.add("mat-ripple-element"),k.style.left=a-t+"px",k.style.top=d-t+"px",k.style.height=2*t+"px",k.style.width=2*t+"px",null!=j.color&&(k.style.backgroundColor=j.color),k.style.transitionDuration=`${u}ms`,this._containerElement.appendChild(k);const G=window.getComputedStyle(k),f=G.transitionDuration,g="none"===G.transitionProperty||"0s"===f||"0s, 0s"===f,Y=new U(this,k,j,g);k.style.transform="scale3d(1, 1, 1)",Y.state=0,j.persistent||(this._mostRecentTransientRipple=Y);let pt=null;return!g&&(u||e.exitDuration)&&this._ngZone.runOutsideAngular(()=>{const Ct=()=>this._finishRippleTransition(Y),Pt=()=>this._destroyRipple(Y);k.addEventListener("transitionend",Ct),k.addEventListener("transitioncancel",Pt),pt={onTransitionEnd:Ct,onTransitionCancel:Pt}}),this._activeRipples.set(Y,pt),(g||!u)&&this._finishRippleTransition(Y),Y}fadeOutRipple(A){if(2===A.state||3===A.state)return;const C=A.element,j={...it,...A.config.animation};C.style.transitionDuration=`${j.exitDuration}ms`,C.style.opacity="0",A.state=2,(A._animationForciblyDisabledThroughCss||!j.exitDuration)&&this._finishRippleTransition(A)}fadeOutAll(){this._getActiveRipples().forEach(A=>A.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(A=>{A.config.persistent||A.fadeOut()})}setupTriggerEvents(A){const C=(0,at.fI)(A);!C||C===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=C,this._registerEvents(Lt))}handleEvent(A){"mousedown"===A.type?this._onMousedown(A):"touchstart"===A.type?this._onTouchStart(A):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(Nt),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(A){0===A.state?this._startFadeOutTransition(A):2===A.state&&this._destroyRipple(A)}_startFadeOutTransition(A){const C=A===this._mostRecentTransientRipple,{persistent:j}=A.config;A.state=1,!j&&(!C||!this._isPointerDown)&&A.fadeOut()}_destroyRipple(A){const C=this._activeRipples.get(A)??null;this._activeRipples.delete(A),this._activeRipples.size||(this._containerRect=null),A===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),A.state=3,null!==C&&(A.element.removeEventListener("transitionend",C.onTransitionEnd),A.element.removeEventListener("transitioncancel",C.onTransitionCancel)),A.element.remove()}_onMousedown(A){const C=(0,c.X6)(A),j=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!C&&!j&&(this._isPointerDown=!0,this.fadeInRipple(A.clientX,A.clientY,this._target.rippleConfig))}_onTouchStart(A){if(!this._target.rippleDisabled&&!(0,c.yG)(A)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const C=A.changedTouches;for(let j=0;j<C.length;j++)this.fadeInRipple(C[j].clientX,C[j].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._getActiveRipples().forEach(A=>{!A.config.persistent&&(1===A.state||A.config.terminateOnPointerUp&&0===A.state)&&A.fadeOut()}))}_registerEvents(A){this._ngZone.runOutsideAngular(()=>{A.forEach(C=>{this._triggerElement.addEventListener(C,this,It)})})}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){this._triggerElement&&(Lt.forEach(A=>{this._triggerElement.removeEventListener(A,this,It)}),this._pointerUpEventsRegistered&&Nt.forEach(A=>{this._triggerElement.removeEventListener(A,this,It)}))}}const Et=new r.OlP("mat-ripple-global-options");let S=(()=>{class V{constructor(C,j,s,e,t){this._elementRef=C,this._animationMode=t,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=e||{},this._rippleRenderer=new Ht(this,j,C,s)}get disabled(){return this._disabled}set disabled(C){C&&this.fadeOutAllNonPersistent(),this._disabled=C,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(C){this._trigger=C,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:{...this._globalOptions.animation,..."NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{},...this.animation},terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(C,j=0,s){return"number"==typeof C?this._rippleRenderer.fadeInRipple(C,j,{...this.rippleConfig,...s}):this._rippleRenderer.fadeInRipple(0,0,{...this.rippleConfig,...C})}}return V.\u0275fac=function(C){return new(C||V)(r.Y36(r.SBq),r.Y36(r.R0b),r.Y36(w.t4),r.Y36(Et,8),r.Y36(r.QbO,8))},V.\u0275dir=r.lG2({type:V,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(C,j){2&C&&r.ekj("mat-ripple-unbounded",j.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),V})(),m=(()=>{class V{}return V.\u0275fac=function(C){return new(C||V)},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({imports:[Z,Z]}),V})(),o=(()=>{class V{constructor(C){this._animationMode=C,this.state="unchecked",this.disabled=!1}}return V.\u0275fac=function(C){return new(C||V)(r.Y36(r.QbO,8))},V.\u0275cmp=r.Xpm({type:V,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(C,j){2&C&&r.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===j.state)("mat-pseudo-checkbox-checked","checked"===j.state)("mat-pseudo-checkbox-disabled",j.disabled)("_mat-animation-noopable","NoopAnimations"===j._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(C,j){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}'],encapsulation:2,changeDetection:0}),V})(),i=(()=>{class V{}return V.\u0275fac=function(C){return new(C||V)},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({imports:[Z]}),V})();const h=new r.OlP("MAT_OPTION_PARENT_COMPONENT"),tt=new r.OlP("MatOptgroup");let yt=0;class Dt{constructor(A,C=!1){this.source=A,this.isUserInput=C}}let xt=(()=>{class V{constructor(C,j,s,e){this._element=C,this._changeDetectorRef=j,this._parent=s,this.group=e,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+yt++,this.onSelectionChange=new r.vpe,this._stateChanges=new y.x}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(C){this._disabled=(0,at.Ig)(C)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(C,j){const s=this._getHostElement();"function"==typeof s.focus&&s.focus(j)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(C){(C.keyCode===L.K5||C.keyCode===L.L_)&&!(0,L.Vb)(C)&&(this._selectViaInteraction(),C.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const C=this.viewValue;C!==this._mostRecentViewValue&&(this._mostRecentViewValue=C,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(C=!1){this.onSelectionChange.emit(new Dt(this,C))}}return V.\u0275fac=function(C){r.$Z()},V.\u0275dir=r.lG2({type:V,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),V})(),Ot=(()=>{class V extends xt{constructor(C,j,s,e){super(C,j,s,e)}}return V.\u0275fac=function(C){return new(C||V)(r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(h,8),r.Y36(tt,8))},V.\u0275cmp=r.Xpm({type:V,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(C,j){1&C&&r.NdJ("click",function(){return j._selectViaInteraction()})("keydown",function(e){return j._handleKeydown(e)}),2&C&&(r.Ikx("id",j.id),r.uIk("tabindex",j._getTabIndex())("aria-selected",j._getAriaSelected())("aria-disabled",j.disabled.toString()),r.ekj("mat-selected",j.selected)("mat-option-multiple",j.multiple)("mat-active",j.active)("mat-option-disabled",j.disabled))},exportAs:["matOption"],features:[r.qOj],ngContentSelectors:W,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(C,j){1&C&&(r.F$t(),r.YNc(0,T,1,2,"mat-pseudo-checkbox",0),r.TgZ(1,"span",1),r.Hsn(2),r.qZA(),r.YNc(3,F,2,1,"span",2),r._UZ(4,"div",3)),2&C&&(r.Q6J("ngIf",j.multiple),r.xp6(3),r.Q6J("ngIf",j.group&&j.group._inert),r.xp6(1),r.Q6J("matRippleTrigger",j._getHostElement())("matRippleDisabled",j.disabled||j.disableRipple))},dependencies:[S,nt.O5,o],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}"],encapsulation:2,changeDetection:0}),V})();function Rt(V,A,C){if(C.length){let j=A.toArray(),s=C.toArray(),e=0;for(let t=0;t<V+1;t++)j[t].group&&j[t].group===s[e]&&e++;return e}return 0}function At(V,A,C,j){return V<C?V:V+A>C+j?Math.max(0,V-j+A):C}let Ft=(()=>{class V{}return V.\u0275fac=function(C){return new(C||V)},V.\u0275mod=r.oAB({type:V}),V.\u0275inj=r.cJS({imports:[m,nt.ez,Z,i]}),V})()},5412:(Tt,ft,l)=>{l.d(ft,{WI:()=>Mt,uw:()=>it,Is:()=>Et,so:()=>q});var r=l(2687),c=l(2561),n=l(3353),E=l(4080),nt=l(6895),w=l(4650),at=l(9521),v=l(7579),y=l(9770),L=l(9646),et=l(445),B=l(8675);function T(S,m){}class F{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.ariaModal=!0,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.closeOnNavigation=!0,this.closeOnDestroy=!0}}let K=(()=>{class S extends E.en{constructor(o,i,h,p,D,P,tt,_t){super(),this._elementRef=o,this._focusTrapFactory=i,this._config=p,this._interactivityChecker=D,this._ngZone=P,this._overlayRef=tt,this._focusMonitor=_t,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=yt=>{this._portalOutlet.hasAttached();const Dt=this._portalOutlet.attachDomPortal(yt);return this._contentAttached(),Dt},this._ariaLabelledBy=this._config.ariaLabelledBy||null,this._document=h}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._restoreFocus()}attachComponentPortal(o){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachComponentPortal(o);return this._contentAttached(),i}attachTemplatePortal(o){this._portalOutlet.hasAttached();const i=this._portalOutlet.attachTemplatePortal(o);return this._contentAttached(),i}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(o,i){this._interactivityChecker.isFocusable(o)||(o.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const h=()=>{o.removeEventListener("blur",h),o.removeEventListener("mousedown",h),o.removeAttribute("tabindex")};o.addEventListener("blur",h),o.addEventListener("mousedown",h)})),o.focus(i)}_focusByCssSelector(o,i){let h=this._elementRef.nativeElement.querySelector(o);h&&this._forceFocus(h,i)}_trapFocus(){const o=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||o.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(i=>{i||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const o=this._config.restoreFocus;let i=null;if("string"==typeof o?i=this._document.querySelector(o):"boolean"==typeof o?i=o?this._elementFocusedBeforeDialogWasOpened:null:o&&(i=o),this._config.restoreFocus&&i&&"function"==typeof i.focus){const h=(0,n.ht)(),p=this._elementRef.nativeElement;(!h||h===this._document.body||h===p||p.contains(h))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const o=this._elementRef.nativeElement,i=(0,n.ht)();return o===i||o.contains(i)}_initializeFocusTrap(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,n.ht)())}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}}return S.\u0275fac=function(o){return new(o||S)(w.Y36(w.SBq),w.Y36(r.qV),w.Y36(nt.K0,8),w.Y36(F),w.Y36(r.ic),w.Y36(w.R0b),w.Y36(c.Iu),w.Y36(r.tE))},S.\u0275cmp=w.Xpm({type:S,selectors:[["cdk-dialog-container"]],viewQuery:function(o,i){if(1&o&&w.Gf(E.Pl,7),2&o){let h;w.iGM(h=w.CRH())&&(i._portalOutlet=h.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(o,i){2&o&&w.uIk("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[w.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,i){1&o&&w.YNc(0,T,0,0,"ng-template",0)},dependencies:[E.Pl],styles:[".cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}"],encapsulation:2}),S})();class Q{constructor(m,o){this.overlayRef=m,this.config=o,this.closed=new v.x,this.disableClose=o.disableClose,this.backdropClick=m.backdropClick(),this.keydownEvents=m.keydownEvents(),this.outsidePointerEvents=m.outsidePointerEvents(),this.id=o.id,this.keydownEvents.subscribe(i=>{i.keyCode===at.hY&&!this.disableClose&&!(0,at.Vb)(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})})}close(m,o){if(this.containerInstance){const i=this.closed;this.containerInstance._closeInteractionType=o?.focusOrigin||"program",this.overlayRef.dispose(),i.next(m),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(m="",o=""){return this.overlayRef.updateSize({width:m,height:o}),this}addPanelClass(m){return this.overlayRef.addPanelClass(m),this}removePanelClass(m){return this.overlayRef.removePanelClass(m),this}}const ht=new w.OlP("DialogScrollStrategy"),rt=new w.OlP("DialogData"),ut=new w.OlP("DefaultDialogConfig"),$={provide:ht,deps:[c.aV],useFactory:function Z(S){return()=>S.scrollStrategies.block()}};let _=0,x=(()=>{class S{constructor(o,i,h,p,D,P){this._overlay=o,this._injector=i,this._defaultOptions=h,this._parentDialog=p,this._overlayContainer=D,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,y.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=P}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}open(o,i){(i={...this._defaultOptions||new F,...i}).id=i.id||"cdk-dialog-"+_++,i.id&&this.getDialogById(i.id);const p=this._getOverlayConfig(i),D=this._overlay.create(p),P=new Q(D,i),tt=this._attachContainer(D,P,i);return P.containerInstance=tt,this._attachDialogContent(o,P,tt,i),this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(P),P.closed.subscribe(()=>this._removeOpenDialog(P,!0)),this.afterOpened.next(P),P}closeAll(){b(this.openDialogs,o=>o.close())}getDialogById(o){return this.openDialogs.find(i=>i.id===o)}ngOnDestroy(){b(this._openDialogsAtThisLevel,o=>{!1===o.config.closeOnDestroy&&this._removeOpenDialog(o,!1)}),b(this._openDialogsAtThisLevel,o=>o.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(o){const i=new c.X_({positionStrategy:o.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:o.scrollStrategy||this._scrollStrategy(),panelClass:o.panelClass,hasBackdrop:o.hasBackdrop,direction:o.direction,minWidth:o.minWidth,minHeight:o.minHeight,maxWidth:o.maxWidth,maxHeight:o.maxHeight,width:o.width,height:o.height,disposeOnNavigation:o.closeOnNavigation});return o.backdropClass&&(i.backdropClass=o.backdropClass),i}_attachContainer(o,i,h){const p=h.injector??h.viewContainerRef?.injector,D=[{provide:F,useValue:h},{provide:Q,useValue:i},{provide:c.Iu,useValue:o}];let P;h.container?"function"==typeof h.container?P=h.container:(P=h.container.type,D.push(...h.container.providers(h))):P=K;const tt=new E.C5(P,h.viewContainerRef,w.zs3.create({parent:p||this._injector,providers:D}),h.componentFactoryResolver);return o.attach(tt).instance}_attachDialogContent(o,i,h,p){const D=this._createInjector(p,i,h);if(o instanceof w.Rgc){let P={$implicit:p.data,dialogRef:i};p.templateContext&&(P={...P,..."function"==typeof p.templateContext?p.templateContext():p.templateContext}),h.attachTemplatePortal(new E.UE(o,null,P,D))}else{const P=h.attachComponentPortal(new E.C5(o,p.viewContainerRef,D,p.componentFactoryResolver));i.componentInstance=P.instance}}_createInjector(o,i,h){const p=o&&o.viewContainerRef&&o.viewContainerRef.injector,D=[{provide:rt,useValue:o.data},{provide:Q,useValue:i}];return o.providers&&("function"==typeof o.providers?D.push(...o.providers(i,o,h)):D.push(...o.providers)),o.direction&&(!p||!p.get(et.Is,null,w.XFs.Optional))&&D.push({provide:et.Is,useValue:{value:o.direction,change:(0,L.of)()}}),w.zs3.create({parent:p||this._injector,providers:D})}_removeOpenDialog(o,i){const h=this.openDialogs.indexOf(o);h>-1&&(this.openDialogs.splice(h,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((p,D)=>{p?D.setAttribute("aria-hidden",p):D.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const o=this._overlayContainer.getContainerElement();if(o.parentElement){const i=o.parentElement.children;for(let h=i.length-1;h>-1;h--){const p=i[h];p!==o&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}}return S.\u0275fac=function(o){return new(o||S)(w.LFG(c.aV),w.LFG(w.zs3),w.LFG(ut,8),w.LFG(S,12),w.LFG(c.Xj),w.LFG(ht))},S.\u0275prov=w.Yz7({token:S,factory:S.\u0275fac}),S})();function b(S,m){let o=S.length;for(;o--;)m(S[o])}let O=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275mod=w.oAB({type:S}),S.\u0275inj=w.cJS({providers:[x,$],imports:[c.U8,E.eL,r.rt,E.eL]}),S})();var st=l(3238),vt=l(6451),gt=l(9300),wt=l(5698),bt=l(7340);function mt(S,m){}const ct={params:{enterAnimationDuration:"150ms",exitAnimationDuration:"75ms"}},z={dialogContainer:(0,bt.X$)("dialogContainer",[(0,bt.SB)("void, exit",(0,bt.oB)({opacity:0,transform:"scale(0.7)"})),(0,bt.SB)("enter",(0,bt.oB)({transform:"none"})),(0,bt.eR)("* => enter",(0,bt.ru)([(0,bt.jt)("{{enterAnimationDuration}} cubic-bezier(0, 0, 0.2, 1)",(0,bt.oB)({transform:"none",opacity:1})),(0,bt.IO)("@*",(0,bt.pV)(),{optional:!0})]),ct),(0,bt.eR)("* => void, * => exit",(0,bt.ru)([(0,bt.jt)("{{exitAnimationDuration}} cubic-bezier(0.4, 0.0, 0.2, 1)",(0,bt.oB)({opacity:0})),(0,bt.IO)("@*",(0,bt.pV)(),{optional:!0})]),ct)])};class J{constructor(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0,this.enterAnimationDuration=ct.params.enterAnimationDuration,this.exitAnimationDuration=ct.params.exitAnimationDuration}}let dt=(()=>{class S extends K{constructor(o,i,h,p,D,P,tt,_t){super(o,i,h,p,D,P,tt,_t),this._animationStateChanged=new w.vpe}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(o){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:o})}}return S.\u0275fac=function(o){return new(o||S)(w.Y36(w.SBq),w.Y36(r.qV),w.Y36(nt.K0,8),w.Y36(J),w.Y36(r.ic),w.Y36(w.R0b),w.Y36(c.Iu),w.Y36(r.tE))},S.\u0275cmp=w.Xpm({type:S,selectors:[["ng-component"]],features:[w.qOj],decls:0,vars:0,template:function(o,i){},encapsulation:2}),S})(),N=(()=>{class S extends dt{constructor(o,i,h,p,D,P,tt,_t,yt){super(o,i,h,p,D,P,tt,yt),this._changeDetectorRef=_t,this._state="enter"}_onAnimationDone({toState:o,totalTime:i}){"enter"===o?this._openAnimationDone(i):"exit"===o&&this._animationStateChanged.next({state:"closed",totalTime:i})}_onAnimationStart({toState:o,totalTime:i}){"enter"===o?this._animationStateChanged.next({state:"opening",totalTime:i}):("exit"===o||"void"===o)&&this._animationStateChanged.next({state:"closing",totalTime:i})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_getAnimationState(){return{value:this._state,params:{enterAnimationDuration:this._config.enterAnimationDuration||ct.params.enterAnimationDuration,exitAnimationDuration:this._config.exitAnimationDuration||ct.params.exitAnimationDuration}}}}return S.\u0275fac=function(o){return new(o||S)(w.Y36(w.SBq),w.Y36(r.qV),w.Y36(nt.K0,8),w.Y36(J),w.Y36(r.ic),w.Y36(w.R0b),w.Y36(c.Iu),w.Y36(w.sBO),w.Y36(r.tE))},S.\u0275cmp=w.Xpm({type:S,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-dialog-container"],hostVars:7,hostBindings:function(o,i){1&o&&w.WFA("@dialogContainer.start",function(p){return i._onAnimationStart(p)})("@dialogContainer.done",function(p){return i._onAnimationDone(p)}),2&o&&(w.Ikx("id",i._config.id),w.uIk("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledBy)("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),w.d8E("@dialogContainer",i._getAnimationState()))},features:[w.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(o,i){1&o&&w.YNc(0,mt,0,0,"ng-template",0)},dependencies:[E.Pl],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions.mat-dialog-actions-align-center,.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions.mat-dialog-actions-align-end,.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[z.dialogContainer]}}),S})();class q{constructor(m,o,i){this._ref=m,this._containerInstance=i,this._afterOpened=new v.x,this._beforeClosed=new v.x,this._state=0,this.disableClose=o.disableClose,this.id=m.id,i._animationStateChanged.pipe((0,gt.h)(h=>"opened"===h.state),(0,wt.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe((0,gt.h)(h=>"closed"===h.state),(0,wt.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),m.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),(0,vt.T)(this.backdropClick(),this.keydownEvents().pipe((0,gt.h)(h=>h.keyCode===at.hY&&!this.disableClose&&!(0,at.Vb)(h)))).subscribe(h=>{this.disableClose||(h.preventDefault(),function X(S,m,o){S._closeInteractionType=m,S.close(o)}(this,"keydown"===h.type?"keyboard":"mouse"))})}close(m){this._result=m,this._containerInstance._animationStateChanged.pipe((0,gt.h)(o=>"closing"===o.state),(0,wt.q)(1)).subscribe(o=>{this._beforeClosed.next(m),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),o.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(m){let o=this._ref.config.positionStrategy;return m&&(m.left||m.right)?m.left?o.left(m.left):o.right(m.right):o.centerHorizontally(),m&&(m.top||m.bottom)?m.top?o.top(m.top):o.bottom(m.bottom):o.centerVertically(),this._ref.updatePosition(),this}updateSize(m="",o=""){return this._ref.updateSize(m,o),this}addPanelClass(m){return this._ref.addPanelClass(m),this}removePanelClass(m){return this._ref.removePanelClass(m),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}}const Mt=new w.OlP("MatDialogData"),lt=new w.OlP("mat-dialog-default-options"),St=new w.OlP("mat-dialog-scroll-strategy"),R={provide:St,deps:[c.aV],useFactory:function H(S){return()=>S.scrollStrategies.block()}};let ot=0,U=(()=>{class S{constructor(o,i,h,p,D,P,tt,_t,yt,Dt){this._overlay=o,this._defaultOptions=h,this._parentDialog=p,this._dialogRefConstructor=tt,this._dialogContainerType=_t,this._dialogDataToken=yt,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new v.x,this._afterOpenedAtThisLevel=new v.x,this._idPrefix="mat-dialog-",this.afterAllClosed=(0,y.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,B.O)(void 0))),this._scrollStrategy=P,this._dialog=i.get(x)}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const o=this._parentDialog;return o?o._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(o,i){let h;(i={...this._defaultOptions||new J,...i}).id=i.id||`${this._idPrefix}${ot++}`,i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();const p=this._dialog.open(o,{...i,positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:J,useValue:i},{provide:F,useValue:i}]},templateContext:()=>({dialogRef:h}),providers:(D,P,tt)=>(h=new this._dialogRefConstructor(D,i,tt),h.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:tt},{provide:this._dialogDataToken,useValue:P.data},{provide:this._dialogRefConstructor,useValue:h}])});return h.componentInstance=p.componentInstance,this.openDialogs.push(h),this.afterOpened.next(h),h.afterClosed().subscribe(()=>{const D=this.openDialogs.indexOf(h);D>-1&&(this.openDialogs.splice(D,1),this.openDialogs.length||this._getAfterAllClosed().next())}),h}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(o){return this.openDialogs.find(i=>i.id===o)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(o){let i=o.length;for(;i--;)o[i].close()}}return S.\u0275fac=function(o){w.$Z()},S.\u0275prov=w.Yz7({token:S,factory:S.\u0275fac}),S})(),it=(()=>{class S extends U{constructor(o,i,h,p,D,P,tt,_t){super(o,i,p,P,tt,D,q,N,Mt,_t)}}return S.\u0275fac=function(o){return new(o||S)(w.LFG(c.aV),w.LFG(w.zs3),w.LFG(nt.Ye,8),w.LFG(lt,8),w.LFG(St),w.LFG(S,12),w.LFG(c.Xj),w.LFG(w.QbO,8))},S.\u0275prov=w.Yz7({token:S,factory:S.\u0275fac}),S})(),Et=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275mod=w.oAB({type:S}),S.\u0275inj=w.cJS({providers:[it,R],imports:[O,c.U8,E.eL,st.BQ,st.BQ]}),S})()},9549:(Tt,ft,l)=>{l.d(ft,{Eo:()=>J,G_:()=>Ht,KE:()=>Vt,R9:()=>U,hX:()=>St,lN:()=>Et,qo:()=>R});var r=l(9643),c=l(6895),n=l(4650),E=l(3238),nt=l(445),w=l(1281),at=l(7579),v=l(6451),y=l(4968),L=l(8675),et=l(2722),B=l(5698),T=l(7340),F=l(3353);const W=["connectionContainer"],K=["inputContainer"],Q=["label"];function ht(S,m){1&S&&(n.ynx(0),n.TgZ(1,"div",14),n._UZ(2,"div",15)(3,"div",16)(4,"div",17),n.qZA(),n.TgZ(5,"div",18),n._UZ(6,"div",15)(7,"div",16)(8,"div",17),n.qZA(),n.BQk())}function rt(S,m){if(1&S){const o=n.EpF();n.TgZ(0,"div",19),n.NdJ("cdkObserveContent",function(){n.CHM(o);const h=n.oxw();return n.KtG(h.updateOutlineGap())}),n.Hsn(1,1),n.qZA()}if(2&S){const o=n.oxw();n.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)}}function ut(S,m){if(1&S&&(n.ynx(0),n.Hsn(1,2),n.TgZ(2,"span"),n._uU(3),n.qZA(),n.BQk()),2&S){const o=n.oxw(2);n.xp6(3),n.Oqu(o._control.placeholder)}}function Z(S,m){1&S&&n.Hsn(0,3,["*ngSwitchCase","true"])}function $(S,m){1&S&&(n.TgZ(0,"span",23),n._uU(1," *"),n.qZA())}function _(S,m){if(1&S){const o=n.EpF();n.TgZ(0,"label",20,21),n.NdJ("cdkObserveContent",function(){n.CHM(o);const h=n.oxw();return n.KtG(h.updateOutlineGap())}),n.YNc(2,ut,4,1,"ng-container",12),n.YNc(3,Z,1,0,"ng-content",12),n.YNc(4,$,2,0,"span",22),n.qZA()}if(2&S){const o=n.oxw();n.ekj("mat-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-form-field-empty",o._control.empty&&!o._shouldAlwaysFloat())("mat-accent","accent"==o.color)("mat-warn","warn"==o.color),n.Q6J("cdkObserveContentDisabled","outline"!=o.appearance)("id",o._labelId)("ngSwitch",o._hasLabel()),n.uIk("for",o._control.id)("aria-owns",o._control.id),n.xp6(2),n.Q6J("ngSwitchCase",!1),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngIf",!o.hideRequiredMarker&&o._control.required&&!o._control.disabled)}}function x(S,m){1&S&&(n.TgZ(0,"div",24),n.Hsn(1,4),n.qZA())}function b(S,m){if(1&S&&(n.TgZ(0,"div",25),n._UZ(1,"span",26),n.qZA()),2&S){const o=n.oxw();n.xp6(1),n.ekj("mat-accent","accent"==o.color)("mat-warn","warn"==o.color)}}function O(S,m){if(1&S&&(n.TgZ(0,"div"),n.Hsn(1,5),n.qZA()),2&S){const o=n.oxw();n.Q6J("@transitionMessages",o._subscriptAnimationState)}}function st(S,m){if(1&S&&(n.TgZ(0,"div",30),n._uU(1),n.qZA()),2&S){const o=n.oxw(2);n.Q6J("id",o._hintLabelId),n.xp6(1),n.Oqu(o.hintLabel)}}function vt(S,m){if(1&S&&(n.TgZ(0,"div",27),n.YNc(1,st,2,2,"div",28),n.Hsn(2,6),n._UZ(3,"div",29),n.Hsn(4,7),n.qZA()),2&S){const o=n.oxw();n.Q6J("@transitionMessages",o._subscriptAnimationState),n.xp6(1),n.Q6J("ngIf",o.hintLabel)}}const gt=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],wt=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],mt=new n.OlP("MatError"),z={transitionMessages:(0,T.X$)("transitionMessages",[(0,T.SB)("enter",(0,T.oB)({opacity:1,transform:"translateY(0%)"})),(0,T.eR)("void => enter",[(0,T.oB)({opacity:0,transform:"translateY(-5px)"}),(0,T.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let J=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275dir=n.lG2({type:S}),S})();const Mt=new n.OlP("MatHint");let St=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275dir=n.lG2({type:S,selectors:[["mat-label"]]}),S})(),I=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275dir=n.lG2({type:S,selectors:[["mat-placeholder"]]}),S})();const H=new n.OlP("MatPrefix");let R=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275dir=n.lG2({type:S,selectors:[["","matPrefix",""]],features:[n._Bn([{provide:H,useExisting:S}])]}),S})();const ot=new n.OlP("MatSuffix");let U=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275dir=n.lG2({type:S,selectors:[["","matSuffix",""]],features:[n._Bn([{provide:ot,useExisting:S}])]}),S})(),it=0;const Lt=(0,E.pj)(class{constructor(S){this._elementRef=S}},"primary"),Nt=new n.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ht=new n.OlP("MatFormField");let Vt=(()=>{class S extends Lt{constructor(o,i,h,p,D,P,tt){super(o),this._changeDetectorRef=i,this._dir=h,this._defaults=p,this._platform=D,this._ngZone=P,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new at.x,this._hideRequiredMarker=!1,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+it++,this._labelId="mat-form-field-label-"+it++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==tt,this.appearance=p?.appearance||"legacy",p&&(this._hideRequiredMarker=Boolean(p.hideRequiredMarker),p.color&&(this.color=this.defaultColor=p.color))}get appearance(){return this._appearance}set appearance(o){const i=this._appearance;this._appearance=o||this._defaults?.appearance||"legacy","outline"===this._appearance&&i!==o&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(o){this._hideRequiredMarker=(0,w.Ig)(o)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(o){this._hintLabel=o,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(o){o!==this._floatLabel&&(this._floatLabel=o||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(o){this._explicitFormFieldControl=o}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const o=this._control;o.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${o.controlType}`),o.stateChanges.pipe((0,L.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),o.ngControl&&o.ngControl.valueChanges&&o.ngControl.valueChanges.pipe((0,et.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,et.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,v.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,L.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,et.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(o){const i=this._control?this._control.ngControl:null;return i&&i[o]}_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,y.R)(this._label.nativeElement,"transitionend").pipe((0,B.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 o=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&o.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(p=>"start"===p.align):null,h=this._hintChildren?this._hintChildren.find(p=>"end"===p.align):null;i?o.push(i.id):this._hintLabel&&o.push(this._hintLabelId),h&&o.push(h.id)}else this._errorChildren&&o.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(o)}}_validateControlChild(){}updateOutlineGap(){const o=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,h=".mat-form-field-outline-start",p=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!o||!o.children.length||!o.textContent.trim()){const yt=i.querySelectorAll(`${h}, ${p}`);for(let Dt=0;Dt<yt.length;Dt++)yt[Dt].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let D=0,P=0;const tt=i.querySelectorAll(h),_t=i.querySelectorAll(p);if(this._label&&this._label.nativeElement.children.length){const yt=i.getBoundingClientRect();if(0===yt.width&&0===yt.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const Dt=this._getStartEnd(yt),xt=o.children,Ot=this._getStartEnd(xt[0].getBoundingClientRect());let Rt=0;for(let At=0;At<xt.length;At++)Rt+=xt[At].offsetWidth;D=Math.abs(Ot-Dt)-5,P=Rt>0?.75*Rt+10:0}for(let yt=0;yt<tt.length;yt++)tt[yt].style.width=`${D}px`;for(let yt=0;yt<_t.length;yt++)_t[yt].style.width=`${P}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(o){return this._dir&&"rtl"===this._dir.value?o.right:o.left}_isAttachedToDOM(){const o=this._elementRef.nativeElement;if(o.getRootNode){const i=o.getRootNode();return i&&i!==o}return document.documentElement.contains(o)}}return S.\u0275fac=function(o){return new(o||S)(n.Y36(n.SBq),n.Y36(n.sBO),n.Y36(nt.Is,8),n.Y36(Nt,8),n.Y36(F.t4),n.Y36(n.R0b),n.Y36(n.QbO,8))},S.\u0275cmp=n.Xpm({type:S,selectors:[["mat-form-field"]],contentQueries:function(o,i,h){if(1&o&&(n.Suo(h,J,5),n.Suo(h,J,7),n.Suo(h,St,5),n.Suo(h,St,7),n.Suo(h,I,5),n.Suo(h,mt,5),n.Suo(h,Mt,5),n.Suo(h,H,5),n.Suo(h,ot,5)),2&o){let p;n.iGM(p=n.CRH())&&(i._controlNonStatic=p.first),n.iGM(p=n.CRH())&&(i._controlStatic=p.first),n.iGM(p=n.CRH())&&(i._labelChildNonStatic=p.first),n.iGM(p=n.CRH())&&(i._labelChildStatic=p.first),n.iGM(p=n.CRH())&&(i._placeholderChild=p.first),n.iGM(p=n.CRH())&&(i._errorChildren=p),n.iGM(p=n.CRH())&&(i._hintChildren=p),n.iGM(p=n.CRH())&&(i._prefixChildren=p),n.iGM(p=n.CRH())&&(i._suffixChildren=p)}},viewQuery:function(o,i){if(1&o&&(n.Gf(W,7),n.Gf(K,5),n.Gf(Q,5)),2&o){let h;n.iGM(h=n.CRH())&&(i._connectionContainerRef=h.first),n.iGM(h=n.CRH())&&(i._inputContainerRef=h.first),n.iGM(h=n.CRH())&&(i._label=h.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(o,i){2&o&&n.ekj("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[n._Bn([{provide:Ht,useExisting:S}]),n.qOj],ngContentSelectors:wt,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(o,i){1&o&&(n.F$t(gt),n.TgZ(0,"div",0)(1,"div",1,2),n.NdJ("click",function(p){return i._control.onContainerClick&&i._control.onContainerClick(p)}),n.YNc(3,ht,9,0,"ng-container",3),n.YNc(4,rt,2,1,"div",4),n.TgZ(5,"div",5,6),n.Hsn(7),n.TgZ(8,"span",7),n.YNc(9,_,5,16,"label",8),n.qZA()(),n.YNc(10,x,2,0,"div",9),n.qZA(),n.YNc(11,b,2,4,"div",10),n.TgZ(12,"div",11),n.YNc(13,O,2,1,"div",12),n.YNc(14,vt,5,2,"div",13),n.qZA()()),2&o&&(n.xp6(3),n.Q6J("ngIf","outline"==i.appearance),n.xp6(1),n.Q6J("ngIf",i._prefixChildren.length),n.xp6(5),n.Q6J("ngIf",i._hasFloatingLabel()),n.xp6(1),n.Q6J("ngIf",i._suffixChildren.length),n.xp6(1),n.Q6J("ngIf","outline"!=i.appearance),n.xp6(1),n.Q6J("ngSwitch",i._getDisplayedMessages()),n.xp6(1),n.Q6J("ngSwitchCase","error"),n.xp6(1),n.Q6J("ngSwitchCase","hint"))},dependencies:[c.O5,c.RF,c.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:[z.transitionMessages]},changeDetection:0}),S})(),Et=(()=>{class S{}return S.\u0275fac=function(o){return new(o||S)},S.\u0275mod=n.oAB({type:S}),S.\u0275inj=n.cJS({imports:[c.ez,E.BQ,r.Q8,E.BQ]}),S})()},7392:(Tt,ft,l)=>{l.d(ft,{Hw:()=>X,Ps:()=>Mt});var r=l(4650),c=l(3238),n=l(1281),E=l(6895),nt=l(9646),w=l(2843),at=l(4128),v=l(727),y=l(8505),L=l(4004),et=l(262),B=l(8746),T=l(3099),F=l(5698),W=l(529),K=l(1481);const Q=["*"];let ht;function ut(lt){return function rt(){if(void 0===ht&&(ht=null,typeof window<"u")){const lt=window;void 0!==lt.trustedTypes&&(ht=lt.trustedTypes.createPolicy("angular#components",{createHTML:St=>St}))}return ht}()?.createHTML(lt)||lt}function Z(lt){return Error(`Unable to find icon with the name "${lt}"`)}function _(lt){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${lt}".`)}function x(lt){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${lt}".`)}class b{constructor(St,I,H){this.url=St,this.svgText=I,this.options=H}}let O=(()=>{class lt{constructor(I,H,R,ot){this._httpClient=I,this._sanitizer=H,this._errorHandler=ot,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._resolvers=[],this._defaultFontSetClass=["material-icons"],this._document=R}addSvgIcon(I,H,R){return this.addSvgIconInNamespace("",I,H,R)}addSvgIconLiteral(I,H,R){return this.addSvgIconLiteralInNamespace("",I,H,R)}addSvgIconInNamespace(I,H,R,ot){return this._addSvgIconConfig(I,H,new b(R,null,ot))}addSvgIconResolver(I){return this._resolvers.push(I),this}addSvgIconLiteralInNamespace(I,H,R,ot){const U=this._sanitizer.sanitize(r.q3G.HTML,R);if(!U)throw x(R);const it=ut(U);return this._addSvgIconConfig(I,H,new b("",it,ot))}addSvgIconSet(I,H){return this.addSvgIconSetInNamespace("",I,H)}addSvgIconSetLiteral(I,H){return this.addSvgIconSetLiteralInNamespace("",I,H)}addSvgIconSetInNamespace(I,H,R){return this._addSvgIconSetConfig(I,new b(H,null,R))}addSvgIconSetLiteralInNamespace(I,H,R){const ot=this._sanitizer.sanitize(r.q3G.HTML,H);if(!ot)throw x(H);const U=ut(ot);return this._addSvgIconSetConfig(I,new b("",U,R))}registerFontClassAlias(I,H=I){return this._fontCssClassesByAlias.set(I,H),this}classNameForFontAlias(I){return this._fontCssClassesByAlias.get(I)||I}setDefaultFontSetClass(...I){return this._defaultFontSetClass=I,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(I){const H=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,I);if(!H)throw _(I);const R=this._cachedIconsByUrl.get(H);return R?(0,nt.of)(gt(R)):this._loadSvgIconFromConfig(new b(I,null)).pipe((0,y.b)(ot=>this._cachedIconsByUrl.set(H,ot)),(0,L.U)(ot=>gt(ot)))}getNamedSvgIcon(I,H=""){const R=wt(H,I);let ot=this._svgIconConfigs.get(R);if(ot)return this._getSvgFromConfig(ot);if(ot=this._getIconConfigFromResolvers(H,I),ot)return this._svgIconConfigs.set(R,ot),this._getSvgFromConfig(ot);const U=this._iconSetConfigs.get(H);return U?this._getSvgFromIconSetConfigs(I,U):(0,w._)(Z(R))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(I){return I.svgText?(0,nt.of)(gt(this._svgElementFromConfig(I))):this._loadSvgIconFromConfig(I).pipe((0,L.U)(H=>gt(H)))}_getSvgFromIconSetConfigs(I,H){const R=this._extractIconWithNameFromAnySet(I,H);if(R)return(0,nt.of)(R);const ot=H.filter(U=>!U.svgText).map(U=>this._loadSvgIconSetFromConfig(U).pipe((0,et.K)(it=>{const It=`Loading icon set URL: ${this._sanitizer.sanitize(r.q3G.RESOURCE_URL,U.url)} failed: ${it.message}`;return this._errorHandler.handleError(new Error(It)),(0,nt.of)(null)})));return(0,at.D)(ot).pipe((0,L.U)(()=>{const U=this._extractIconWithNameFromAnySet(I,H);if(!U)throw Z(I);return U}))}_extractIconWithNameFromAnySet(I,H){for(let R=H.length-1;R>=0;R--){const ot=H[R];if(ot.svgText&&ot.svgText.toString().indexOf(I)>-1){const U=this._svgElementFromConfig(ot),it=this._extractSvgIconFromSet(U,I,ot.options);if(it)return it}}return null}_loadSvgIconFromConfig(I){return this._fetchIcon(I).pipe((0,y.b)(H=>I.svgText=H),(0,L.U)(()=>this._svgElementFromConfig(I)))}_loadSvgIconSetFromConfig(I){return I.svgText?(0,nt.of)(null):this._fetchIcon(I).pipe((0,y.b)(H=>I.svgText=H))}_extractSvgIconFromSet(I,H,R){const ot=I.querySelector(`[id="${H}"]`);if(!ot)return null;const U=ot.cloneNode(!0);if(U.removeAttribute("id"),"svg"===U.nodeName.toLowerCase())return this._setSvgAttributes(U,R);if("symbol"===U.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(U),R);const it=this._svgElementFromString(ut("<svg></svg>"));return it.appendChild(U),this._setSvgAttributes(it,R)}_svgElementFromString(I){const H=this._document.createElement("DIV");H.innerHTML=I;const R=H.querySelector("svg");if(!R)throw Error("<svg> tag not found");return R}_toSvgElement(I){const H=this._svgElementFromString(ut("<svg></svg>")),R=I.attributes;for(let ot=0;ot<R.length;ot++){const{name:U,value:it}=R[ot];"id"!==U&&H.setAttribute(U,it)}for(let ot=0;ot<I.childNodes.length;ot++)I.childNodes[ot].nodeType===this._document.ELEMENT_NODE&&H.appendChild(I.childNodes[ot].cloneNode(!0));return H}_setSvgAttributes(I,H){return I.setAttribute("fit",""),I.setAttribute("height","100%"),I.setAttribute("width","100%"),I.setAttribute("preserveAspectRatio","xMidYMid meet"),I.setAttribute("focusable","false"),H&&H.viewBox&&I.setAttribute("viewBox",H.viewBox),I}_fetchIcon(I){const{url:H,options:R}=I,ot=R?.withCredentials??!1;if(!this._httpClient)throw function $(){return Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.")}();if(null==H)throw Error(`Cannot fetch icon from URL "${H}".`);const U=this._sanitizer.sanitize(r.q3G.RESOURCE_URL,H);if(!U)throw _(H);const it=this._inProgressUrlFetches.get(U);if(it)return it;const kt=this._httpClient.get(U,{responseType:"text",withCredentials:ot}).pipe((0,L.U)(It=>ut(It)),(0,B.x)(()=>this._inProgressUrlFetches.delete(U)),(0,T.B)());return this._inProgressUrlFetches.set(U,kt),kt}_addSvgIconConfig(I,H,R){return this._svgIconConfigs.set(wt(I,H),R),this}_addSvgIconSetConfig(I,H){const R=this._iconSetConfigs.get(I);return R?R.push(H):this._iconSetConfigs.set(I,[H]),this}_svgElementFromConfig(I){if(!I.svgElement){const H=this._svgElementFromString(I.svgText);this._setSvgAttributes(H,I.options),I.svgElement=H}return I.svgElement}_getIconConfigFromResolvers(I,H){for(let R=0;R<this._resolvers.length;R++){const ot=this._resolvers[R](H,I);if(ot)return bt(ot)?new b(ot.url,null,ot.options):new b(ot,null)}}}return lt.\u0275fac=function(I){return new(I||lt)(r.LFG(W.eN,8),r.LFG(K.H7),r.LFG(E.K0,8),r.LFG(r.qLn))},lt.\u0275prov=r.Yz7({token:lt,factory:lt.\u0275fac,providedIn:"root"}),lt})();function gt(lt){return lt.cloneNode(!0)}function wt(lt,St){return lt+":"+St}function bt(lt){return!(!lt.url||!lt.options)}const mt=(0,c.pj)(class{constructor(lt){this._elementRef=lt}}),ct=new r.OlP("MAT_ICON_DEFAULT_OPTIONS"),z=new r.OlP("mat-icon-location",{providedIn:"root",factory:function J(){const lt=(0,r.f3M)(E.K0),St=lt?lt.location:null;return{getPathname:()=>St?St.pathname+St.search:""}}}),dt=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],N=dt.map(lt=>`[${lt}]`).join(", "),q=/^url\(['"]?#(.*?)['"]?\)$/;let X=(()=>{class lt extends mt{constructor(I,H,R,ot,U,it){super(I),this._iconRegistry=H,this._location=ot,this._errorHandler=U,this._inline=!1,this._previousFontSetClass=[],this._currentIconFetch=v.w0.EMPTY,it&&(it.color&&(this.color=this.defaultColor=it.color),it.fontSet&&(this.fontSet=it.fontSet)),R||I.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(I){this._inline=(0,n.Ig)(I)}get svgIcon(){return this._svgIcon}set svgIcon(I){I!==this._svgIcon&&(I?this._updateSvgIcon(I):this._svgIcon&&this._clearSvgElement(),this._svgIcon=I)}get fontSet(){return this._fontSet}set fontSet(I){const H=this._cleanupFontValue(I);H!==this._fontSet&&(this._fontSet=H,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(I){const H=this._cleanupFontValue(I);H!==this._fontIcon&&(this._fontIcon=H,this._updateFontIconClasses())}_splitIconName(I){if(!I)return["",""];const H=I.split(":");switch(H.length){case 1:return["",H[0]];case 2:return H;default:throw Error(`Invalid icon name: "${I}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const I=this._elementsWithExternalReferences;if(I&&I.size){const H=this._location.getPathname();H!==this._previousPath&&(this._previousPath=H,this._prependPathToReferences(H))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(I){this._clearSvgElement();const H=this._location.getPathname();this._previousPath=H,this._cacheChildrenWithExternalReferences(I),this._prependPathToReferences(H),this._elementRef.nativeElement.appendChild(I)}_clearSvgElement(){const I=this._elementRef.nativeElement;let H=I.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();H--;){const R=I.childNodes[H];(1!==R.nodeType||"svg"===R.nodeName.toLowerCase())&&R.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const I=this._elementRef.nativeElement,H=(this.fontSet?[this._iconRegistry.classNameForFontAlias(this.fontSet)]:this._iconRegistry.getDefaultFontSetClass()).filter(R=>R.length>0);this._previousFontSetClass.forEach(R=>I.classList.remove(R)),H.forEach(R=>I.classList.add(R)),this._previousFontSetClass=H,this.fontIcon!==this._previousFontIconClass&&(this._previousFontIconClass&&I.classList.remove(this._previousFontIconClass),this.fontIcon&&I.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(I){return"string"==typeof I?I.trim().split(" ")[0]:I}_prependPathToReferences(I){const H=this._elementsWithExternalReferences;H&&H.forEach((R,ot)=>{R.forEach(U=>{ot.setAttribute(U.name,`url('${I}#${U.value}')`)})})}_cacheChildrenWithExternalReferences(I){const H=I.querySelectorAll(N),R=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let ot=0;ot<H.length;ot++)dt.forEach(U=>{const it=H[ot],kt=it.getAttribute(U),It=kt?kt.match(q):null;if(It){let Lt=R.get(it);Lt||(Lt=[],R.set(it,Lt)),Lt.push({name:U,value:It[1]})}})}_updateSvgIcon(I){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),I){const[H,R]=this._splitIconName(I);H&&(this._svgNamespace=H),R&&(this._svgName=R),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(R,H).pipe((0,F.q)(1)).subscribe(ot=>this._setSvgElement(ot),ot=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${H}:${R}! ${ot.message}`))})}}}return lt.\u0275fac=function(I){return new(I||lt)(r.Y36(r.SBq),r.Y36(O),r.$8M("aria-hidden"),r.Y36(z),r.Y36(r.qLn),r.Y36(ct,8))},lt.\u0275cmp=r.Xpm({type:lt,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(I,H){2&I&&(r.uIk("data-mat-icon-type",H._usingFontIcon()?"font":"svg")("data-mat-icon-name",H._svgName||H.fontIcon)("data-mat-icon-namespace",H._svgNamespace||H.fontSet),r.ekj("mat-icon-inline",H.inline)("mat-icon-no-color","primary"!==H.color&&"accent"!==H.color&&"warn"!==H.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[r.qOj],ngContentSelectors:Q,decls:1,vars:0,template:function(I,H){1&I&&(r.F$t(),r.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}"],encapsulation:2,changeDetection:0}),lt})(),Mt=(()=>{class lt{}return lt.\u0275fac=function(I){return new(I||lt)},lt.\u0275mod=r.oAB({type:lt}),lt.\u0275inj=r.cJS({imports:[c.BQ,c.BQ]}),lt})()},4144:(Tt,ft,l)=>{l.d(ft,{Jk:()=>W,Nt:()=>rt,c:()=>ut});var r=l(1281),c=l(3353),n=l(4650),E=l(515),nt=l(7579);const w=(0,c.i$)({passive:!0});let at=(()=>{class Z{constructor(_,x){this._platform=_,this._ngZone=x,this._monitoredElements=new Map}monitor(_){if(!this._platform.isBrowser)return E.E;const x=(0,r.fI)(_),b=this._monitoredElements.get(x);if(b)return b.subject;const O=new nt.x,st="cdk-text-field-autofilled",vt=gt=>{"cdk-text-field-autofill-start"!==gt.animationName||x.classList.contains(st)?"cdk-text-field-autofill-end"===gt.animationName&&x.classList.contains(st)&&(x.classList.remove(st),this._ngZone.run(()=>O.next({target:gt.target,isAutofilled:!1}))):(x.classList.add(st),this._ngZone.run(()=>O.next({target:gt.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{x.addEventListener("animationstart",vt,w),x.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(x,{subject:O,unlisten:()=>{x.removeEventListener("animationstart",vt,w)}}),O}stopMonitoring(_){const x=(0,r.fI)(_),b=this._monitoredElements.get(x);b&&(b.unlisten(),b.subject.complete(),x.classList.remove("cdk-text-field-autofill-monitored"),x.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(x))}ngOnDestroy(){this._monitoredElements.forEach((_,x)=>this.stopMonitoring(x))}}return Z.\u0275fac=function(_){return new(_||Z)(n.LFG(c.t4),n.LFG(n.R0b))},Z.\u0275prov=n.Yz7({token:Z,factory:Z.\u0275fac,providedIn:"root"}),Z})(),L=(()=>{class Z{}return Z.\u0275fac=function(_){return new(_||Z)},Z.\u0275mod=n.oAB({type:Z}),Z.\u0275inj=n.cJS({}),Z})();var et=l(4006),B=l(3238),T=l(9549);const W=new n.OlP("MAT_INPUT_VALUE_ACCESSOR"),K=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Q=0;const ht=(0,B.FD)(class{constructor(Z,$,_,x){this._defaultErrorStateMatcher=Z,this._parentForm=$,this._parentFormGroup=_,this.ngControl=x,this.stateChanges=new nt.x}});let rt=(()=>{class Z extends ht{constructor(_,x,b,O,st,vt,gt,wt,bt,mt){super(vt,O,st,b),this._elementRef=_,this._platform=x,this._autofillMonitor=wt,this._formField=mt,this._uid="mat-input-"+Q++,this.focused=!1,this.stateChanges=new nt.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(J=>(0,c.qK)().has(J)),this._iOSKeyupListener=J=>{const dt=J.target;!dt.value&&0===dt.selectionStart&&0===dt.selectionEnd&&(dt.setSelectionRange(1,1),dt.setSelectionRange(0,0))};const ct=this._elementRef.nativeElement,z=ct.nodeName.toLowerCase();this._inputValueAccessor=gt||ct,this._previousNativeValue=this.value,this.id=this.id,x.IOS&&bt.runOutsideAngular(()=>{_.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===z,this._isTextarea="textarea"===z,this._isInFormField=!!mt,this._isNativeSelect&&(this.controlType=ct.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(_){this._disabled=(0,r.Ig)(_),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(_){this._id=_||this._uid}get required(){return this._required??this.ngControl?.control?.hasValidator(et.kI.required)??!1}set required(_){this._required=(0,r.Ig)(_)}get type(){return this._type}set type(_){this._type=_||"text",this._validateType(),!this._isTextarea&&(0,c.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(_){_!==this.value&&(this._inputValueAccessor.value=_,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(_){this._readonly=(0,r.Ig)(_)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(_=>{this.autofilled=_.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(_){this._elementRef.nativeElement.focus(_)}_focusChanged(_){_!==this.focused&&(this.focused=_,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){const _=this._formField,x=_&&"legacy"===_.appearance&&!_._hasLabel?.()?null:this.placeholder;if(x!==this._previousPlaceholder){const b=this._elementRef.nativeElement;this._previousPlaceholder=x,x?b.setAttribute("placeholder",x):b.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const _=this._elementRef.nativeElement.value;this._previousNativeValue!==_&&(this._previousNativeValue=_,this.stateChanges.next())}_validateType(){K.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let _=this._elementRef.nativeElement.validity;return _&&_.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const _=this._elementRef.nativeElement,x=_.options[0];return this.focused||_.multiple||!this.empty||!!(_.selectedIndex>-1&&x&&x.label)}return this.focused||!this.empty}setDescribedByIds(_){_.length?this._elementRef.nativeElement.setAttribute("aria-describedby",_.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const _=this._elementRef.nativeElement;return this._isNativeSelect&&(_.multiple||_.size>1)}}return Z.\u0275fac=function(_){return new(_||Z)(n.Y36(n.SBq),n.Y36(c.t4),n.Y36(et.a5,10),n.Y36(et.F,8),n.Y36(et.sg,8),n.Y36(B.rD),n.Y36(W,10),n.Y36(at),n.Y36(n.R0b),n.Y36(T.G_,8))},Z.\u0275dir=n.lG2({type:Z,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(_,x){1&_&&n.NdJ("focus",function(){return x._focusChanged(!0)})("blur",function(){return x._focusChanged(!1)})("input",function(){return x._onInput()}),2&_&&(n.Ikx("disabled",x.disabled)("required",x.required),n.uIk("id",x.id)("data-placeholder",x.placeholder)("name",x.name||null)("readonly",x.readonly&&!x._isNativeSelect||null)("aria-invalid",x.empty&&x.required?null:x.errorState)("aria-required",x.required),n.ekj("mat-input-server",x._isServer)("mat-native-select-inline",x._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:[n._Bn([{provide:T.Eo,useExisting:Z}]),n.qOj,n.TTD]}),Z})(),ut=(()=>{class Z{}return Z.\u0275fac=function(_){return new(_||Z)},Z.\u0275mod=n.oAB({type:Z}),Z.\u0275inj=n.cJS({providers:[B.rD],imports:[L,T.lN,B.BQ,L,T.lN]}),Z})()},1948:(Tt,ft,l)=>{l.d(ft,{Fk:()=>$,U0:()=>Z,VQ:()=>Q});var r=l(4650),c=l(3238),n=l(2687),E=l(1281),nt=l(5017),w=l(4006);const at=["input"],v=function(_){return{enterDuration:_}},y=["*"],L=new r.OlP("mat-radio-default-options",{providedIn:"root",factory:function et(){return{color:"accent"}}});let B=0;const T={provide:w.JU,useExisting:(0,r.Gpc)(()=>Q),multi:!0};class F{constructor(x,b){this.source=x,this.value=b}}const W=new r.OlP("MatRadioGroup");let K=(()=>{class _{constructor(b){this._changeDetector=b,this._value=null,this._name="mat-radio-group-"+B++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new r.vpe}get name(){return this._name}set name(b){this._name=b,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(b){this._labelPosition="before"===b?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(b){this._value!==b&&(this._value=b,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(b){this._selected=b,this.value=b?b.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(b){this._disabled=(0,E.Ig)(b),this._markRadiosForCheck()}get required(){return this._required}set required(b){this._required=(0,E.Ig)(b),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(b=>{b.name=this.name,b._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(O=>{O.checked=this.value===O.value,O.checked&&(this._selected=O)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new F(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(b=>b._markForCheck())}writeValue(b){this.value=b,this._changeDetector.markForCheck()}registerOnChange(b){this._controlValueAccessorChangeFn=b}registerOnTouched(b){this.onTouched=b}setDisabledState(b){this.disabled=b,this._changeDetector.markForCheck()}}return _.\u0275fac=function(b){return new(b||_)(r.Y36(r.sBO))},_.\u0275dir=r.lG2({type:_,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),_})(),Q=(()=>{class _ extends K{}return _.\u0275fac=function(){let x;return function(O){return(x||(x=r.n5z(_)))(O||_)}}(),_.\u0275dir=r.lG2({type:_,selectors:[["mat-radio-group"]],contentQueries:function(b,O,st){if(1&b&&r.Suo(st,Z,5),2&b){let vt;r.iGM(vt=r.CRH())&&(O._radios=vt)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[r._Bn([T,{provide:W,useExisting:_}]),r.qOj]}),_})();class ht{constructor(x){this._elementRef=x}}const rt=(0,c.Kr)((0,c.sb)(ht));let ut=(()=>{class _ extends rt{constructor(b,O,st,vt,gt,wt,bt,mt){super(O),this._changeDetector=st,this._focusMonitor=vt,this._radioDispatcher=gt,this._providerOverride=bt,this._uniqueId="mat-radio-"+ ++B,this.id=this._uniqueId,this.change=new r.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=b,this._noopAnimations="NoopAnimations"===wt,mt&&(this.tabIndex=(0,E.su)(mt,0)),this._removeUniqueSelectionListener=gt.listen((ct,z)=>{ct!==this.id&&z===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(b){const O=(0,E.Ig)(b);this._checked!==O&&(this._checked=O,O&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!O&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),O&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(b){this._value!==b&&(this._value=b,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===b),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(b){this._labelPosition=b}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(b){this._setDisabled((0,E.Ig)(b))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(b){this._required=(0,E.Ig)(b)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(b){this._color=b}get inputId(){return`${this.id||this._uniqueId}-input`}focus(b,O){O?this._focusMonitor.focusVia(this._inputElement,O,b):this._inputElement.nativeElement.focus(b)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(b=>{!b&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new F(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(b){b.stopPropagation()}_onInputInteraction(b){if(b.stopPropagation(),!this.checked&&!this.disabled){const O=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),O&&this.radioGroup._emitChangeEvent())}}_setDisabled(b){this._disabled!==b&&(this._disabled=b,this._changeDetector.markForCheck())}_updateTabIndex(){const b=this.radioGroup;let O;if(O=b&&b.selected&&!this.disabled?b.selected===this?this.tabIndex:-1:this.tabIndex,O!==this._previousTabIndex){const st=this._inputElement?.nativeElement;st&&(st.setAttribute("tabindex",O+""),this._previousTabIndex=O)}}}return _.\u0275fac=function(b){r.$Z()},_.\u0275dir=r.lG2({type:_,viewQuery:function(b,O){if(1&b&&r.Gf(at,5),2&b){let st;r.iGM(st=r.CRH())&&(O._inputElement=st.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[r.qOj]}),_})(),Z=(()=>{class _ extends ut{constructor(b,O,st,vt,gt,wt,bt,mt){super(b,O,st,vt,gt,wt,bt,mt)}}return _.\u0275fac=function(b){return new(b||_)(r.Y36(W,8),r.Y36(r.SBq),r.Y36(r.sBO),r.Y36(n.tE),r.Y36(nt.A8),r.Y36(r.QbO,8),r.Y36(L,8),r.$8M("tabindex"))},_.\u0275cmp=r.Xpm({type:_,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(b,O){1&b&&r.NdJ("focus",function(){return O._inputElement.nativeElement.focus()}),2&b&&(r.uIk("tabindex",null)("id",O.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),r.ekj("mat-radio-checked",O.checked)("mat-radio-disabled",O.disabled)("_mat-animation-noopable",O._noopAnimations)("mat-primary","primary"===O.color)("mat-accent","accent"===O.color)("mat-warn","warn"===O.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[r.qOj],ngContentSelectors:y,decls:13,vars:19,consts:[[1,"mat-radio-label"],["label",""],[1,"mat-radio-container"],[1,"mat-radio-outer-circle"],[1,"mat-radio-inner-circle"],["type","radio",1,"mat-radio-input",3,"id","checked","disabled","required","change","click"],["input",""],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mat-radio-label-content"],[2,"display","none"]],template:function(b,O){if(1&b&&(r.F$t(),r.TgZ(0,"label",0,1)(2,"span",2),r._UZ(3,"span",3)(4,"span",4),r.TgZ(5,"input",5,6),r.NdJ("change",function(vt){return O._onInputInteraction(vt)})("click",function(vt){return O._onInputClick(vt)}),r.qZA(),r.TgZ(7,"span",7),r._UZ(8,"span",8),r.qZA()(),r.TgZ(9,"span",9)(10,"span",10),r._uU(11,"\xa0"),r.qZA(),r.Hsn(12),r.qZA()()),2&b){const st=r.MAs(1);r.uIk("for",O.inputId),r.xp6(5),r.Q6J("id",O.inputId)("checked",O.checked)("disabled",O.disabled)("required",O.required),r.uIk("name",O.name)("value",O.value)("aria-label",O.ariaLabel)("aria-labelledby",O.ariaLabelledby)("aria-describedby",O.ariaDescribedby),r.xp6(2),r.Q6J("matRippleTrigger",st)("matRippleDisabled",O._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",r.VKq(17,v,O._noopAnimations?0:150)),r.xp6(2),r.ekj("mat-radio-label-before","before"==O.labelPosition)}},dependencies:[c.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-radio-label{-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle;width:100%}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;display:block;height:20px;left:0;position:absolute;top:0;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-user-select:auto;user-select:auto;display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-button .mat-radio-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-radio-button .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple){opacity:.16}.mat-radio-persistent-ripple{width:100%;height:100%;transform:none;top:0;left:0}.mat-radio-container:hover .mat-radio-persistent-ripple{opacity:.04}.mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-persistent-ripple,.mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-persistent-ripple{opacity:.12}.mat-radio-persistent-ripple,.mat-radio-disabled .mat-radio-container:hover .mat-radio-persistent-ripple{opacity:0}@media(hover: none){.mat-radio-container:hover .mat-radio-persistent-ripple{display:none}}.mat-radio-input{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-keyboard-focused .mat-radio-ripple,.cdk-high-contrast-active .mat-radio-button:not(.mat-radio-disabled).cdk-program-focused .mat-radio-ripple{outline:solid 3px}.cdk-high-contrast-active .mat-radio-disabled{opacity:.5}"],encapsulation:2,changeDetection:0}),_})(),$=(()=>{class _{}return _.\u0275fac=function(b){return new(b||_)},_.\u0275mod=r.oAB({type:_}),_.\u0275inj=r.cJS({imports:[c.si,c.BQ,c.BQ]}),_})()},4385:(Tt,ft,l)=>{l.d(ft,{LD:()=>Vt,gD:()=>Ht});var r=l(2561),c=l(6895),n=l(4650),E=l(3238),nt=l(9549),w=l(7376),at=l(2687),v=l(445),y=l(1281),L=l(5017),et=l(9521),B=l(4006),T=l(7579),F=l(9770),W=l(6451),K=l(8675),Q=l(3900),ht=l(5698),rt=l(9300),ut=l(4004),Z=l(1884),$=l(2722),_=l(7340);const x=["trigger"],b=["panel"];function O(Et,S){if(1&Et&&(n.TgZ(0,"span",8),n._uU(1),n.qZA()),2&Et){const m=n.oxw();n.xp6(1),n.Oqu(m.placeholder)}}function st(Et,S){if(1&Et&&(n.TgZ(0,"span",12),n._uU(1),n.qZA()),2&Et){const m=n.oxw(2);n.xp6(1),n.Oqu(m.triggerValue)}}function vt(Et,S){1&Et&&n.Hsn(0,0,["*ngSwitchCase","true"])}function gt(Et,S){if(1&Et&&(n.TgZ(0,"span",9),n.YNc(1,st,2,1,"span",10),n.YNc(2,vt,1,0,"ng-content",11),n.qZA()),2&Et){const m=n.oxw();n.Q6J("ngSwitch",!!m.customTrigger),n.xp6(2),n.Q6J("ngSwitchCase",!0)}}function wt(Et,S){if(1&Et){const m=n.EpF();n.TgZ(0,"div",13)(1,"div",14,15),n.NdJ("@transformPanel.done",function(i){n.CHM(m);const h=n.oxw();return n.KtG(h._panelDoneAnimatingStream.next(i.toState))})("keydown",function(i){n.CHM(m);const h=n.oxw();return n.KtG(h._handleKeydown(i))}),n.Hsn(3,1),n.qZA()()}if(2&Et){const m=n.oxw();n.Q6J("@transformPanelWrap",void 0),n.xp6(1),n.Gre("mat-select-panel ",m._getPanelTheme(),""),n.Udp("transform-origin",m._transformOrigin)("font-size",m._triggerFontSize,"px"),n.Q6J("ngClass",m.panelClass)("@transformPanel",m.multiple?"showing-multiple":"showing"),n.uIk("id",m.id+"-panel")("aria-multiselectable",m.multiple)("aria-label",m.ariaLabel||null)("aria-labelledby",m._getPanelAriaLabelledby())}}const bt=[[["mat-select-trigger"]],"*"],mt=["mat-select-trigger","*"],ct={transformPanelWrap:(0,_.X$)("transformPanelWrap",[(0,_.eR)("* => void",(0,_.IO)("@transformPanel",[(0,_.pV)()],{optional:!0}))]),transformPanel:(0,_.X$)("transformPanel",[(0,_.SB)("void",(0,_.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,_.SB)("showing",(0,_.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,_.SB)("showing-multiple",(0,_.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,_.eR)("void => *",(0,_.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,_.eR)("* => void",(0,_.jt)("100ms 25ms linear",(0,_.oB)({opacity:0})))])};let N=0;const q=256,H=new n.OlP("mat-select-scroll-strategy"),ot=new n.OlP("MAT_SELECT_CONFIG"),U={provide:H,deps:[r.aV],useFactory:function R(Et){return()=>Et.scrollStrategies.reposition()}};class it{constructor(S,m){this.source=S,this.value=m}}const kt=(0,E.Kr)((0,E.sb)((0,E.Id)((0,E.FD)(class{constructor(Et,S,m,o,i){this._elementRef=Et,this._defaultErrorStateMatcher=S,this._parentForm=m,this._parentFormGroup=o,this.ngControl=i,this.stateChanges=new T.x}})))),It=new n.OlP("MatSelectTrigger");let Nt=(()=>{class Et extends kt{constructor(m,o,i,h,p,D,P,tt,_t,yt,Dt,xt,Ot,Rt){super(p,h,P,tt,yt),this._viewportRuler=m,this._changeDetectorRef=o,this._ngZone=i,this._dir=D,this._parentFormField=_t,this._liveAnnouncer=Ot,this._defaultOptions=Rt,this._panelOpen=!1,this._compareWith=(At,Ft)=>At===Ft,this._uid="mat-select-"+N++,this._triggerAriaLabelledBy=null,this._destroy=new T.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+N++,this._panelDoneAnimatingStream=new T.x,this._overlayPanelClass=this._defaultOptions?.overlayPanelClass||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1,this.ariaLabel="",this.optionSelectionChanges=(0,F.P)(()=>{const At=this.options;return At?At.changes.pipe((0,K.O)(At),(0,Q.w)(()=>(0,W.T)(...At.map(Ft=>Ft.onSelectionChange)))):this._ngZone.onStable.pipe((0,ht.q)(1),(0,Q.w)(()=>this.optionSelectionChanges))}),this.openedChange=new n.vpe,this._openedStream=this.openedChange.pipe((0,rt.h)(At=>At),(0,ut.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,rt.h)(At=>!At),(0,ut.U)(()=>{})),this.selectionChange=new n.vpe,this.valueChange=new n.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=Rt?.typeaheadDebounceInterval&&(this._typeaheadDebounceInterval=Rt.typeaheadDebounceInterval),this._scrollStrategyFactory=xt,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Dt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(m){this._placeholder=m,this.stateChanges.next()}get required(){return this._required??this.ngControl?.control?.hasValidator(B.kI.required)??!1}set required(m){this._required=(0,y.Ig)(m),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(m){this._multiple=(0,y.Ig)(m)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(m){this._disableOptionCentering=(0,y.Ig)(m)}get compareWith(){return this._compareWith}set compareWith(m){this._compareWith=m,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(m){this._assignValue(m)&&this._onChange(m)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(m){this._typeaheadDebounceInterval=(0,y.su)(m)}get id(){return this._id}set id(m){this._id=m||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new L.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,Z.x)(),(0,$.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,$.R)(this._destroy)).subscribe(m=>{m.added.forEach(o=>o.select()),m.removed.forEach(o=>o.deselect())}),this.options.changes.pipe((0,K.O)(null),(0,$.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const m=this._getTriggerAriaLabelledby(),o=this.ngControl;if(m!==this._triggerAriaLabelledBy){const i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=m,m?i.setAttribute("aria-labelledby",m):i.removeAttribute("aria-labelledby")}o&&(this._previousControl!==o.control&&(void 0!==this._previousControl&&null!==o.disabled&&o.disabled!==this.disabled&&(this.disabled=o.disabled),this._previousControl=o.control),this.updateErrorState())}ngOnChanges(m){(m.disabled||m.userAriaDescribedBy)&&this.stateChanges.next(),m.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}ngOnDestroy(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}close(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}writeValue(m){this._assignValue(m)}registerOnChange(m){this._onChange=m}registerOnTouched(m){this._onTouched=m}setDisabledState(m){this.disabled=m,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const m=this._selectionModel.selected.map(o=>o.viewValue);return this._isRtl()&&m.reverse(),m.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(m){this.disabled||(this.panelOpen?this._handleOpenKeydown(m):this._handleClosedKeydown(m))}_handleClosedKeydown(m){const o=m.keyCode,i=o===et.JH||o===et.LH||o===et.oh||o===et.SV,h=o===et.K5||o===et.L_,p=this._keyManager;if(!p.isTyping()&&h&&!(0,et.Vb)(m)||(this.multiple||m.altKey)&&i)m.preventDefault(),this.open();else if(!this.multiple){const D=this.selected;p.onKeydown(m);const P=this.selected;P&&D!==P&&this._liveAnnouncer.announce(P.viewValue,1e4)}}_handleOpenKeydown(m){const o=this._keyManager,i=m.keyCode,h=i===et.JH||i===et.LH,p=o.isTyping();if(h&&m.altKey)m.preventDefault(),this.close();else if(p||i!==et.K5&&i!==et.L_||!o.activeItem||(0,et.Vb)(m))if(!p&&this._multiple&&i===et.A&&m.ctrlKey){m.preventDefault();const D=this.options.some(P=>!P.disabled&&!P.selected);this.options.forEach(P=>{P.disabled||(D?P.select():P.deselect())})}else{const D=o.activeItemIndex;o.onKeydown(m),this._multiple&&h&&m.shiftKey&&o.activeItem&&o.activeItemIndex!==D&&o.activeItem._selectViaInteraction()}else m.preventDefault(),o.activeItem._selectViaInteraction()}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_onAttached(){this._overlayDir.positionChange.pipe((0,ht.q)(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()})}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(m){if(this._selectionModel.selected.forEach(o=>o.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&m)Array.isArray(m),m.forEach(o=>this._selectOptionByValue(o)),this._sortValues();else{const o=this._selectOptionByValue(m);o?this._keyManager.updateActiveItem(o):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(m){const o=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return null!=i.value&&this._compareWith(i.value,m)}catch{return!1}});return o&&this._selectionModel.select(o),o}_assignValue(m){return!!(m!==this._value||this._multiple&&Array.isArray(m))&&(this.options&&this._setSelectionByValue(m),this._value=m,!0)}_initKeyManager(){this._keyManager=new at.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,$.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,$.R)(this._destroy)).subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){const m=(0,W.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,$.R)(m)).subscribe(o=>{this._onSelect(o.source,o.isUserInput),o.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,W.T)(...this.options.map(o=>o._stateChanges)).pipe((0,$.R)(m)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(m,o){const i=this._selectionModel.isSelected(m);null!=m.value||this._multiple?(i!==m.selected&&(m.selected?this._selectionModel.select(m):this._selectionModel.deselect(m)),o&&this._keyManager.setActiveItem(m),this.multiple&&(this._sortValues(),o&&this.focus())):(m.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(m.value)),i!==this._selectionModel.isSelected(m)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const m=this.options.toArray();this._selectionModel.sort((o,i)=>this.sortComparator?this.sortComparator(o,i,m):m.indexOf(o)-m.indexOf(i)),this.stateChanges.next()}}_propagateChanges(m){let o=null;o=this.multiple?this.selected.map(i=>i.value):this.selected?this.selected.value:m,this._value=o,this.valueChange.emit(o),this._onChange(o),this.selectionChange.emit(this._getChangeEvent(o)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0}focus(m){this._elementRef.nativeElement.focus(m)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;const m=this._parentFormField?.getLabelId();return this.ariaLabelledby?(m?m+" ":"")+this.ariaLabelledby:m}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;const m=this._parentFormField?.getLabelId();let o=(m?m+" ":"")+this._valueId;return this.ariaLabelledby&&(o+=" "+this.ariaLabelledby),o}_panelDoneAnimating(m){this.openedChange.emit(m)}setDescribedByIds(m){m.length?this._elementRef.nativeElement.setAttribute("aria-describedby",m.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Et.\u0275fac=function(m){return new(m||Et)(n.Y36(w.rL),n.Y36(n.sBO),n.Y36(n.R0b),n.Y36(E.rD),n.Y36(n.SBq),n.Y36(v.Is,8),n.Y36(B.F,8),n.Y36(B.sg,8),n.Y36(nt.G_,8),n.Y36(B.a5,10),n.$8M("tabindex"),n.Y36(H),n.Y36(at.Kd),n.Y36(ot,8))},Et.\u0275dir=n.lG2({type:Et,viewQuery:function(m,o){if(1&m&&(n.Gf(x,5),n.Gf(b,5),n.Gf(r.pI,5)),2&m){let i;n.iGM(i=n.CRH())&&(o.trigger=i.first),n.iGM(i=n.CRH())&&(o.panel=i.first),n.iGM(i=n.CRH())&&(o._overlayDir=i.first)}},inputs:{userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[n.qOj,n.TTD]}),Et})(),Ht=(()=>{class Et extends Nt{constructor(){super(...arguments),this._scrollTop=0,this._triggerFontSize=0,this._transformOrigin="top",this._offsetY=0,this._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}]}_calculateOverlayScroll(m,o,i){const h=this._getItemHeight();return Math.min(Math.max(0,h*m-o+h/2),i)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,$.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._changeDetectorRef.markForCheck())})}open(){super._canOpen()&&(super.open(),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe((0,ht.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(m){const o=(0,E.CB)(m,this.options,this.optionGroups),i=this._getItemHeight();this.panel.nativeElement.scrollTop=0===m&&1===o?0:(0,E.jH)((m+o)*i,i,this.panel.nativeElement.scrollTop,q)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(m){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(m)}_getChangeEvent(m){return new it(this,m)}_calculateOverlayOffsetX(){const m=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),o=this._viewportRuler.getViewportSize(),i=this._isRtl(),h=this.multiple?56:32;let p;if(this.multiple)p=40;else if(this.disableOptionCentering)p=16;else{let tt=this._selectionModel.selected[0]||this.options.first;p=tt&&tt.group?32:16}i||(p*=-1);const D=0-(m.left+p-(i?h:0)),P=m.right+p-o.width+(i?0:h);D>0?p+=D+8:P>0&&(p-=P+8),this._overlayDir.offsetX=Math.round(p),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(m,o,i){const h=this._getItemHeight(),p=(h-this._triggerRect.height)/2,D=Math.floor(q/h);let P;return this.disableOptionCentering?0:(P=0===this._scrollTop?m*h:this._scrollTop===i?(m-(this._getItemCount()-D))*h+(h-(this._getItemCount()*h-q)%h):o-h/2,Math.round(-1*P-p))}_checkOverlayWithinViewport(m){const o=this._getItemHeight(),i=this._viewportRuler.getViewportSize(),h=this._triggerRect.top-8,p=i.height-this._triggerRect.bottom-8,D=Math.abs(this._offsetY),tt=Math.min(this._getItemCount()*o,q)-D-this._triggerRect.height;tt>p?this._adjustPanelUp(tt,p):D>h?this._adjustPanelDown(D,h,m):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(m,o){const i=Math.round(m-o);this._scrollTop-=i,this._offsetY-=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(m,o,i){const h=Math.round(m-o);if(this._scrollTop+=h,this._offsetY+=h,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=i)return this._scrollTop=i,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const m=this._getItemHeight(),o=this._getItemCount(),i=Math.min(o*m,q),p=o*m-i;let D;D=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),D+=(0,E.CB)(D,this.options,this.optionGroups);const P=i/2;this._scrollTop=this._calculateOverlayScroll(D,P,p),this._offsetY=this._calculateOverlayOffsetY(D,P,p),this._checkOverlayWithinViewport(p)}_getOriginBasedOnOption(){const m=this._getItemHeight(),o=(m-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-o+m/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Et.\u0275fac=function(){let S;return function(o){return(S||(S=n.n5z(Et)))(o||Et)}}(),Et.\u0275cmp=n.Xpm({type:Et,selectors:[["mat-select"]],contentQueries:function(m,o,i){if(1&m&&(n.Suo(i,It,5),n.Suo(i,E.ey,5),n.Suo(i,E.K7,5)),2&m){let h;n.iGM(h=n.CRH())&&(o.customTrigger=h.first),n.iGM(h=n.CRH())&&(o.options=h),n.iGM(h=n.CRH())&&(o.optionGroups=h)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:19,hostBindings:function(m,o){1&m&&n.NdJ("keydown",function(h){return o._handleKeydown(h)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),2&m&&(n.uIk("id",o.id)("tabindex",o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),n.ekj("mat-select-disabled",o.disabled)("mat-select-invalid",o.errorState)("mat-select-required",o.required)("mat-select-empty",o.empty)("mat-select-multiple",o.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[n._Bn([{provide:nt.Eo,useExisting:Et},{provide:E.HF,useExisting:Et}]),n.qOj],ngContentSelectors:mt,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(m,o){if(1&m&&(n.F$t(bt),n.TgZ(0,"div",0,1),n.NdJ("click",function(){return o.toggle()}),n.TgZ(3,"div",2),n.YNc(4,O,2,1,"span",3),n.YNc(5,gt,3,2,"span",4),n.qZA(),n.TgZ(6,"div",5),n._UZ(7,"div",6),n.qZA()(),n.YNc(8,wt,4,14,"ng-template",7),n.NdJ("backdropClick",function(){return o.close()})("attach",function(){return o._onAttached()})("detach",function(){return o.close()})),2&m){const i=n.MAs(1);n.uIk("aria-owns",o.panelOpen?o.id+"-panel":null),n.xp6(3),n.Q6J("ngSwitch",o.empty),n.uIk("id",o._valueId),n.xp6(1),n.Q6J("ngSwitchCase",!0),n.xp6(1),n.Q6J("ngSwitchCase",!1),n.xp6(3),n.Q6J("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",i)("cdkConnectedOverlayOpen",o.panelOpen)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayMinWidth",null==o._triggerRect?null:o._triggerRect.width)("cdkConnectedOverlayOffsetY",o._offsetY)}},dependencies:[c.mk,c.RF,c.n9,c.ED,r.pI,r.xu],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{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;margin:0 4px}.mat-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}'],encapsulation:2,data:{animation:[ct.transformPanelWrap,ct.transformPanel]},changeDetection:0}),Et})(),Vt=(()=>{class Et{}return Et.\u0275fac=function(m){return new(m||Et)},Et.\u0275mod=n.oAB({type:Et}),Et.\u0275inj=n.cJS({providers:[U],imports:[c.ez,r.U8,E.Ng,E.BQ,w.ZD,nt.lN,E.Ng,E.BQ]}),Et})()},266:(Tt,ft,l)=>{l.d(ft,{AV:()=>ct,gM:()=>wt});var r=l(2561),c=l(2687),n=l(6895),E=l(4650),nt=l(3238),w=l(7376),at=l(445),v=l(1281),y=l(9521),L=l(2289),et=l(3353),B=l(4080),T=l(7579),F=l(2722),W=l(5698);l(7340);const Q=["tooltip"],ut="tooltip-panel",Z=(0,et.i$)({passive:!0}),x=new E.OlP("mat-tooltip-scroll-strategy"),O={provide:x,deps:[r.aV],useFactory:function b(J){return()=>J.scrollStrategies.reposition({scrollThrottle:20})}},st=new E.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function vt(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let gt=(()=>{class J{constructor(N,q,X,Mt,lt,St,I,H,R,ot,U,it){this._overlay=N,this._elementRef=q,this._scrollDispatcher=X,this._viewContainerRef=Mt,this._ngZone=lt,this._platform=St,this._ariaDescriber=I,this._focusMonitor=H,this._dir=ot,this._defaultOptions=U,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this._showDelay=this._defaultOptions.showDelay,this._hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new T.x,this._scrollStrategy=R,this._document=it,U&&(U.position&&(this.position=U.position),U.touchGestures&&(this.touchGestures=U.touchGestures)),ot.change.pipe((0,F.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(N){N!==this._position&&(this._position=N,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(N){this._disabled=(0,v.Ig)(N),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(N){this._showDelay=(0,v.su)(N)}get hideDelay(){return this._hideDelay}set hideDelay(N){this._hideDelay=(0,v.su)(N),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(N){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=N?String(N).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(N){this._tooltipClass=N,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,F.R)(this._destroyed)).subscribe(N=>{N?"keyboard"===N&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const N=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([q,X])=>{N.removeEventListener(q,X,Z)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(N,this.message,"tooltip"),this._focusMonitor.stopMonitoring(N)}show(N=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const q=this._createOverlay();this._detach(),this._portal=this._portal||new B.C5(this._tooltipComponent,this._viewContainerRef);const X=this._tooltipInstance=q.attach(this._portal).instance;X._triggerElement=this._elementRef.nativeElement,X._mouseLeaveHideDelay=this._hideDelay,X.afterHidden().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),X.show(N)}hide(N=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(N)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),q=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return q.positionChanges.pipe((0,F.R)(this._destroyed)).subscribe(X=>{this._updateCurrentPositionClass(X.connectionPair),this._tooltipInstance&&X.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:q,panelClass:`${this._cssClassPrefix}-${ut}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,F.R)(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe((0,F.R)(this._destroyed)).subscribe(X=>{this._isTooltipVisible()&&X.keyCode===y.hY&&!(0,y.Vb)(X)&&(X.preventDefault(),X.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(N){const q=N.getConfig().positionStrategy,X=this._getOrigin(),Mt=this._getOverlayPosition();q.withPositions([this._addOffset({...X.main,...Mt.main}),this._addOffset({...X.fallback,...Mt.fallback})])}_addOffset(N){return N}_getOrigin(){const N=!this._dir||"ltr"==this._dir.value,q=this.position;let X;"above"==q||"below"==q?X={originX:"center",originY:"above"==q?"top":"bottom"}:"before"==q||"left"==q&&N||"right"==q&&!N?X={originX:"start",originY:"center"}:("after"==q||"right"==q&&N||"left"==q&&!N)&&(X={originX:"end",originY:"center"});const{x:Mt,y:lt}=this._invertPosition(X.originX,X.originY);return{main:X,fallback:{originX:Mt,originY:lt}}}_getOverlayPosition(){const N=!this._dir||"ltr"==this._dir.value,q=this.position;let X;"above"==q?X={overlayX:"center",overlayY:"bottom"}:"below"==q?X={overlayX:"center",overlayY:"top"}:"before"==q||"left"==q&&N||"right"==q&&!N?X={overlayX:"end",overlayY:"center"}:("after"==q||"right"==q&&N||"left"==q&&!N)&&(X={overlayX:"start",overlayY:"center"});const{x:Mt,y:lt}=this._invertPosition(X.overlayX,X.overlayY);return{main:X,fallback:{overlayX:Mt,overlayY:lt}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,W.q)(1),(0,F.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(N){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=N,this._tooltipInstance._markForCheck())}_invertPosition(N,q){return"above"===this.position||"below"===this.position?"top"===q?q="bottom":"bottom"===q&&(q="top"):"end"===N?N="start":"start"===N&&(N="end"),{x:N,y:q}}_updateCurrentPositionClass(N){const{overlayY:q,originX:X,originY:Mt}=N;let lt;if(lt="center"===q?this._dir&&"rtl"===this._dir.value?"end"===X?"left":"right":"start"===X?"left":"right":"bottom"===q&&"top"===Mt?"above":"below",lt!==this._currentPosition){const St=this._overlayRef;if(St){const I=`${this._cssClassPrefix}-${ut}-`;St.removePanelClass(I+this._currentPosition),St.addPanelClass(I+lt)}this._currentPosition=lt}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const N=[];if(this._platformSupportsMouseEvents())N.push(["mouseleave",q=>{const X=q.relatedTarget;(!X||!this._overlayRef?.overlayElement.contains(X))&&this.hide()}],["wheel",q=>this._wheelListener(q)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const q=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};N.push(["touchend",q],["touchcancel",q])}this._addListeners(N),this._passiveListeners.push(...N)}_addListeners(N){N.forEach(([q,X])=>{this._elementRef.nativeElement.addEventListener(q,X,Z)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(N){if(this._isTooltipVisible()){const q=this._document.elementFromPoint(N.clientX,N.clientY),X=this._elementRef.nativeElement;q!==X&&!X.contains(q)&&this.hide()}}_disableNativeGesturesIfNecessary(){const N=this.touchGestures;if("off"!==N){const q=this._elementRef.nativeElement,X=q.style;("on"===N||"INPUT"!==q.nodeName&&"TEXTAREA"!==q.nodeName)&&(X.userSelect=X.msUserSelect=X.webkitUserSelect=X.MozUserSelect="none"),("on"===N||!q.draggable)&&(X.webkitUserDrag="none"),X.touchAction="none",X.webkitTapHighlightColor="transparent"}}}return J.\u0275fac=function(N){E.$Z()},J.\u0275dir=E.lG2({type:J,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),J})(),wt=(()=>{class J extends gt{constructor(N,q,X,Mt,lt,St,I,H,R,ot,U,it){super(N,q,X,Mt,lt,St,I,H,R,ot,U,it),this._tooltipComponent=mt}}return J.\u0275fac=function(N){return new(N||J)(E.Y36(r.aV),E.Y36(E.SBq),E.Y36(w.mF),E.Y36(E.s_b),E.Y36(E.R0b),E.Y36(et.t4),E.Y36(c.$s),E.Y36(c.tE),E.Y36(x),E.Y36(at.Is,8),E.Y36(st,8),E.Y36(n.K0))},J.\u0275dir=E.lG2({type:J,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[E.qOj]}),J})(),bt=(()=>{class J{constructor(N,q){this._changeDetectorRef=N,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new T.x,this._animationsDisabled="NoopAnimations"===q}show(N){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},N)}hide(N){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},N)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:N}){(!N||!this._triggerElement.contains(N))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:N}){(N===this._showAnimation||N===this._hideAnimation)&&this._finalizeAnimation(N===this._showAnimation)}_finalizeAnimation(N){N?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(N){const q=this._tooltip.nativeElement,X=this._showAnimation,Mt=this._hideAnimation;if(q.classList.remove(N?Mt:X),q.classList.add(N?X:Mt),this._isVisible=N,N&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const lt=getComputedStyle(q);("0s"===lt.getPropertyValue("animation-duration")||"none"===lt.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}N&&this._onShow(),this._animationsDisabled&&(q.classList.add("_mat-animation-noopable"),this._finalizeAnimation(N))}}return J.\u0275fac=function(N){return new(N||J)(E.Y36(E.sBO),E.Y36(E.QbO,8))},J.\u0275dir=E.lG2({type:J}),J})(),mt=(()=>{class J extends bt{constructor(N,q,X){super(N,X),this._breakpointObserver=q,this._isHandset=this._breakpointObserver.observe(L.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return J.\u0275fac=function(N){return new(N||J)(E.Y36(E.sBO),E.Y36(L.Yg),E.Y36(E.QbO,8))},J.\u0275cmp=E.Xpm({type:J,selectors:[["mat-tooltip-component"]],viewQuery:function(N,q){if(1&N&&E.Gf(Q,7),2&N){let X;E.iGM(X=E.CRH())&&(q._tooltip=X.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(N,q){1&N&&E.NdJ("mouseleave",function(Mt){return q._handleMouseLeave(Mt)}),2&N&&E.Udp("zoom",q.isVisible()?1:null)},features:[E.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(N,q){if(1&N&&(E.TgZ(0,"div",0,1),E.NdJ("animationend",function(Mt){return q._handleAnimationEnd(Mt)}),E.ALo(2,"async"),E._uU(3),E.qZA()),2&N){let X;E.ekj("mat-tooltip-handset",null==(X=E.lcZ(2,4,q._isHandset))?null:X.matches),E.Q6J("ngClass",q.tooltipClass),E.xp6(3),E.Oqu(q.message)}},dependencies:[n.mk,n.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}"],encapsulation:2,changeDetection:0}),J})(),ct=(()=>{class J{}return J.\u0275fac=function(N){return new(N||J)},J.\u0275mod=E.oAB({type:J}),J.\u0275inj=E.cJS({providers:[O],imports:[c.rt,n.ez,r.U8,nt.BQ,nt.BQ,w.ZD]}),J})()}}]);